1 /** \file filemanager.h
2 * \brief Header: main dialog (file panels) for Midnight Commander
5 #ifndef MC__FILEMANAGER_H
6 #define MC__FILEMANAGER_H
8 #include "lib/widget.h"
13 /* TODO: merge content of layout.h here */
15 /*** typedefs(not structures) and defined constants **********************************************/
17 #define MENU_PANEL (mc_global.widget.is_right ? right_panel : left_panel)
18 #define MENU_PANEL_IDX (mc_global.widget.is_right ? 1 : 0)
19 #define SELECTED_IS_PANEL (get_panel_type (MENU_PANEL_IDX) == view_listing)
21 #define other_panel get_other_panel()
23 /*** enums ***************************************************************************************/
25 /*** structures declarations (and typedefs of structures)*****************************************/
27 /*** global variables defined in .c file *********************************************************/
29 extern WMenuBar
*the_menubar
;
30 extern WLabel
*the_prompt
;
31 extern WLabel
*the_hint
;
32 extern WButtonBar
*the_bar
;
34 extern WPanel
*left_panel
;
35 extern WPanel
*right_panel
;
36 extern WPanel
*current_panel
;
38 extern const char *mc_prompt
;
40 /*** declarations of public functions ************************************************************/
42 void update_menu (void);
43 void midnight_set_buttonbar (WButtonBar
* b
);
44 char *get_random_hint (gboolean force
);
45 void load_hint (gboolean force
);
46 WPanel
*change_panel (void);
47 void save_cwds_stat (void);
48 gboolean
quiet_quit_cmd (void);
49 gboolean
do_nc (void);
51 /*** inline functions ****************************************************************************/
53 #endif /* MC__FILEMANAGER_H */