Split file src/keybind.[ch] to lib/keybind.[ch] and src/keybind-defaults.[ch].
[midnight-commander.git] / src / layout.h
blob59d1b8f6660067a759894cf00faccafe14b41d54
1 /** \file layout.h
2 * \brief Header: panel layout module
3 */
5 #ifndef MC__LAYOUT_H
6 #define MC__LAYOUT_H
8 #include "lib/global.h"
9 #include "lib/widget.h"
11 #include "panel.h"
13 /*** typedefs(not structures) and defined constants **********************************************/
15 /*** enums ***************************************************************************************/
17 /*** structures declarations (and typedefs of structures)*****************************************/
19 /*** global variables defined in .c file *********************************************************/
21 extern int winch_flag;
22 extern int equal_split;
23 extern int first_panel_size;
24 extern int output_lines;
25 extern int command_prompt;
26 extern int menubar_visible;
27 extern int keybar_visible;
28 extern int output_start_y;
29 extern int message_visible;
30 extern int xterm_title;
31 extern int free_space;
33 extern int horizontal_split;
34 extern int nice_rotating_dash;
36 /*** declarations of public functions ************************************************************/
38 void layout_change (void);
39 void layout_box (void);
40 void setup_panels (void);
41 void destroy_panels (void);
42 void sigwinch_handler (int dummy);
43 void change_screen_size (void);
44 void set_display_type (int num, panel_view_mode_t type);
45 void swap_panels (void);
46 panel_view_mode_t get_display_type (int idx);
47 panel_view_mode_t get_current_type (void);
48 panel_view_mode_t get_other_type (void);
49 int get_current_index (void);
50 int get_other_index (void);
51 const char *get_nth_panel_name (int num);
53 struct Widget *get_panel_widget (int idx);
55 struct WPanel *get_other_panel (void);
57 void save_panel_dir (int idx);
58 Widget *restore_into_right_dir_panel (int idx, Widget * from_widget);
59 const char *get_panel_dir_for (const WPanel * widget);
61 void set_hintbar (const char *str);
63 /* Rotating dash routines */
64 void use_dash (gboolean flag); /* Disable/Enable rotate_dash routines */
65 void rotate_dash (void);
67 /* Clear screen */
68 void clr_scr (void);
69 void repaint_screen (void);
70 void mc_refresh (void);
72 /*** inline functions ****************************************************************************/
73 #endif /* MC__LAYOUT_H */