Ticket #2384: allow rebind Fx keys in the file manager.
[midnight-commander.git] / src / filemanager / midnight.h
blobadb1ebe86f4610c047bc9a569621c2cb557abe1b
1 /** \file midnight.h
2 * \brief Header: main dialog (file panel) for Midnight Commander
3 */
5 #ifndef MC__MIDNIGHT_H
6 #define MC__MIDNIGHT_H
8 #include "lib/widget.h"
10 #include "panel.h"
11 #include "layout.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)*****************************************/
27 struct WPanel;
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 /*** declarations of public functions ************************************************************/
42 void update_menu (void);
43 void midnight_set_buttonbar (WButtonBar * b);
44 void load_hint (gboolean force);
45 void change_panel (void);
46 void save_cwds_stat (void);
47 gboolean quiet_quit_cmd (void);
48 gboolean do_nc (void);
50 /*** inline functions ****************************************************************************/
52 #endif /* MC__MIDNIGHT_H */