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 (is_right ? right_panel : left_panel)
18 #define MENU_PANEL_IDX (is_right ? 1 : 0)
19 #define SELECTED_IS_PANEL (get_display_type (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 Dlg_head
*midnight_dlg
;
32 extern WMenuBar
*the_menubar
;
33 extern WLabel
*the_prompt
;
34 extern WLabel
*the_hint
;
35 extern WButtonBar
*the_bar
;
37 /* Ugly hack in order to distinguish between left and right panel in menubar */
38 extern gboolean is_right
; /* If the selected menu was the right */
40 extern WPanel
*left_panel
;
41 extern WPanel
*right_panel
;
42 extern WPanel
*current_panel
;
44 /*** declarations of public functions ************************************************************/
46 void update_menu (void);
47 void midnight_set_buttonbar (WButtonBar
* b
);
48 void load_hint (gboolean force
);
49 void change_panel (void);
50 void save_cwds_stat (void);
51 gboolean
quiet_quit_cmd (void);
54 /*** inline functions ****************************************************************************/
56 #endif /* MC__MIDNIGHT_H */