Ticket #2123: crash while copying into directory named "????"
[midnight-commander.git] / src / layout.h
blob4ce5ab7caefbb6f91a2a4c245b599ea9c8d0ad3b
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_change (void);
13 void layout_box (void);
14 void setup_panels (void);
15 void destroy_panels (void);
16 void sigwinch_handler (int dummy);
17 void change_screen_size (void);
18 void set_display_type (int num, panel_view_mode_t type);
19 void swap_panels (void);
20 panel_view_mode_t get_display_type (int idx);
21 panel_view_mode_t get_current_type (void);
22 panel_view_mode_t get_other_type (void);
23 int get_current_index (void);
24 int get_other_index (void);
25 const char *get_nth_panel_name (int num);
27 struct Widget *get_panel_widget (int idx);
29 struct WPanel *get_other_panel (void);
31 void save_panel_dir (int idx);
32 Widget *restore_into_right_dir_panel (int idx, Widget *from_widget);
33 const char *get_panel_dir_for (const WPanel *widget);
35 void set_hintbar (const char *str);
37 /* Clear screen */
38 void clr_scr (void);
39 void repaint_screen (void);
40 void mc_refresh (void);
42 extern int winch_flag;
43 extern int equal_split;
44 extern int first_panel_size;
45 extern int output_lines;
46 extern int command_prompt;
47 extern int keybar_visible;
48 extern int output_start_y;
49 extern int message_visible;
50 extern int xterm_title;
51 extern int free_space;
53 extern int horizontal_split;
54 extern int nice_rotating_dash;
56 #endif