Merge branch '1396_with_search_engine'
[midnight-commander.git] / src / layout.h
blob746bec8b59d36751cad4ab8b54b5661bf1b14670
2 /** \file layout.h
3 * \brief Header: panel layout module
4 */
6 #ifndef MC_LAYOUT_H
7 #define MC_LAYOUT_H
9 #include "panel.h"
10 #include "widget.h"
12 void layout_cmd (void);
13 void setup_panels (void);
14 void destroy_panels (void);
15 void sigwinch_handler (int dummy);
16 void change_screen_size (void);
17 void set_display_type (int num, int type);
18 void swap_panels (void);
19 int get_display_type (int index);
20 int get_current_type (void);
21 int get_other_type (void);
22 int get_current_index (void);
23 int get_other_index (void);
24 const char *get_nth_panel_name (int num);
26 struct Widget *get_panel_widget (int index);
28 struct WPanel *get_other_panel (void);
30 void save_panel_dir (int index);
31 Widget *restore_into_right_dir_panel (int index, Widget *from_widget);
32 const char *get_panel_dir_for (const WPanel *widget);
34 void set_hintbar (const char *str);
36 /* Clear screen */
37 void clr_scr (void);
38 void repaint_screen (void);
39 void mc_refresh (void);
41 extern int winch_flag;
42 extern int equal_split;
43 extern int first_panel_size;
44 extern int output_lines;
45 extern int command_prompt;
46 extern int keybar_visible;
47 extern int output_start_y;
48 extern int message_visible;
49 extern int xterm_title;
50 extern int free_space;
52 extern int horizontal_split;
53 extern int nice_rotating_dash;
55 #endif