2 * \brief Header: main dialog (file panel) for Midnight Commander
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_display_type (mc_global.widget.is_right ? 1 : 0) == view_listing)
21 #define other_panel get_other_panel()
23 /*** enums ***************************************************************************************/
25 /*** structures declarations (and typedefs of structures)*****************************************/
29 /*** global variables defined in .c file *********************************************************/
31 extern WMenuBar
*the_menubar
;
32 extern WLabel
*the_prompt
;
33 extern WLabel
*the_hint
;
34 extern WButtonBar
*the_bar
;
36 extern WPanel
*left_panel
;
37 extern WPanel
*right_panel
;
38 extern WPanel
*current_panel
;
40 extern const char *mc_prompt
;
42 /*** declarations of public functions ************************************************************/
44 void update_menu (void);
45 void midnight_set_buttonbar (WButtonBar
* b
);
46 void load_hint (gboolean force
);
47 void change_panel (void);
48 void save_cwds_stat (void);
49 gboolean
quiet_quit_cmd (void);
50 gboolean
do_nc (void);
52 /*** inline functions ****************************************************************************/
54 #endif /* MC__MIDNIGHT_H */