root/src/filemanager/filemanager.h

/* [previous][next][first][last][top][bottom][index][help]  */

INCLUDED FROM


   1 /** \file filemanager.h
   2  *  \brief Header: main dialog (file panels) for Midnight Commander
   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 /* TODO: merge content of layout.h here */
  14 
  15 /*** typedefs(not structures) and defined constants **********************************************/
  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 /*** enums ***************************************************************************************/
  24 
  25 /*** structures declarations (and typedefs of structures)*****************************************/
  26 
  27 /*** global variables defined in .c file *********************************************************/
  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 /*** declarations of public functions ************************************************************/
  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 /*** inline functions ****************************************************************************/
  52 
  53 #endif /* MC__FILEMANAGER_H */

/* [previous][next][first][last][top][bottom][index][help]  */