2 * \brief Header: panel layout module
8 #include "lib/global.h"
9 #include "lib/widget.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 panel_update_cols (Widget
* widget
, panel_display_t frame_size
);
46 void swap_panels (void);
47 panel_view_mode_t
get_display_type (int idx
);
48 panel_view_mode_t
get_current_type (void);
49 panel_view_mode_t
get_other_type (void);
50 int get_current_index (void);
51 int get_other_index (void);
52 const char *get_nth_panel_name (int num
);
54 struct Widget
*get_panel_widget (int idx
);
56 struct WPanel
*get_other_panel (void);
58 void save_panel_dir (int idx
);
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);
69 void repaint_screen (void);
70 void mc_refresh (void);
72 void print_vfs_message (const char *msg
, ...) __attribute__ ((format (__printf__
, 1, 2)));
74 /*** inline functions ****************************************************************************/
76 #endif /* MC__LAYOUT_H */