1
2
3
4
5 #ifndef MC__FILEMANAGER_H
6 #define MC__FILEMANAGER_H
7
8 #include "lib/widget.h"
9
10 #include "panel.h"
11 #include "layout.h"
12
13
14
15
16
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)
20
21 #define other_panel get_other_panel()
22
23
24
25
26
27
28
29 extern WMenuBar *the_menubar;
30 extern WLabel *the_prompt;
31 extern WLabel *the_hint;
32 extern WButtonBar *the_bar;
33
34 extern WPanel *left_panel;
35 extern WPanel *right_panel;
36 extern WPanel *current_panel;
37
38 extern const char *mc_prompt;
39
40
41
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);
50
51
52
53 #endif