~ubuntu-branches/ubuntu/utopic/pcmanfm/utopic

« back to all changes in this revision

Viewing changes to src/main-window.h

  • Committer: Bazaar Package Importer
  • Author(s): Andrew Lee
  • Date: 2006-10-16 16:47:04 UTC
  • Revision ID: james.westby@ubuntu.com-20061016164704-w8zobnrvdxc7rvm5
Tags: upstream-0.3.2.1
ImportĀ upstreamĀ versionĀ 0.3.2.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _MAIN_WINDOW_H_
 
2
#define _MAIN_WINDOW_H_
 
3
 
 
4
#include <gtk/gtk.h>
 
5
#include "ptk-file-browser.h"
 
6
 
 
7
G_BEGIN_DECLS
 
8
 
 
9
#define FM_TYPE_MAIN_WINDOW             (fm_main_window_get_type())
 
10
#define FM_MAIN_WINDOW(obj)             (G_TYPE_CHECK_INSTANCE_CAST((obj),  FM_TYPE_MAIN_WINDOW, FMMainWindow))
 
11
#define FM_MAIN_WINDOW_CLASS(klass)     (G_TYPE_CHECK_CLASS_CAST ((klass),  FM_TYPE_MAIN_WINDOW, FMMainWindowClass))
 
12
#define FM_IS_MAIN_WINDOW(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FM_TYPE_MAIN_WINDOW))
 
13
#define FM_IS_MAIN_WINDOW_CLASS(klass)  (G_TYPE_CHECK_CLASS_TYPE ((klass),  FM_TYPE_MAIN_WINDOW))
 
14
#define FM_MAIN_WINDOW_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj),  FM_TYPE_MAIN_WINDOW, FMMainWindowClass))
 
15
 
 
16
typedef struct _FMMainWindow
 
17
{
 
18
  /* Private */
 
19
  GtkWindow parent;
 
20
 
 
21
  /* protected */
 
22
  GtkWidget *main_vbox;
 
23
  GtkWidget *menu_bar;
 
24
  GtkWidget* toolbar;
 
25
  GtkEntry* address_bar;
 
26
  GtkWidget *bookmarks;
 
27
  GtkWidget *status_bar;
 
28
  GtkNotebook* notebook;
 
29
 
 
30
  gint splitter_pos;
 
31
 
 
32
  /* Check menu items & tool items */
 
33
  GtkCheckMenuItem* open_side_pane_menu;
 
34
  GtkCheckMenuItem* show_location_menu;
 
35
  GtkCheckMenuItem* show_dir_tree_menu;
 
36
  GtkCheckMenuItem* show_hidden_files_menu;
 
37
 
 
38
  GtkCheckMenuItem* view_as_icon;
 
39
  GtkCheckMenuItem* view_as_list;
 
40
 
 
41
  GtkCheckMenuItem* sort_by_name;
 
42
  GtkCheckMenuItem* sort_by_size;
 
43
  GtkCheckMenuItem* sort_by_mtime;
 
44
  GtkCheckMenuItem* sort_by_type;
 
45
  GtkCheckMenuItem* sort_by_perm;
 
46
  GtkCheckMenuItem* sort_by_owner;
 
47
  GtkCheckMenuItem* sort_ascending;
 
48
  GtkCheckMenuItem* sort_descending;
 
49
 
 
50
  GtkToggleToolButton* open_side_pane_btn;
 
51
  GtkWidget* back_btn;
 
52
  GtkWidget* forward_btn;
 
53
 
 
54
  GtkAccelGroup *accel_group;
 
55
  GtkTooltips *tooltips;
 
56
 
 
57
  int n_busy_tasks;
 
58
}FMMainWindow;
 
59
 
 
60
typedef struct _FMMainWindowClass
 
61
{
 
62
  GtkWindowClass parent;
 
63
 
 
64
}FMMainWindowClass;
 
65
 
 
66
GType fm_main_window_get_type (void);
 
67
 
 
68
GtkWidget* fm_main_window_new();
 
69
 
 
70
/* Utility functions */
 
71
GtkWidget* fm_main_window_get_current_file_browser( FMMainWindow* mainWindow );
 
72
 
 
73
void fm_main_window_add_new_tab( FMMainWindow* mainWindow,
 
74
                                 const char* folder_path,
 
75
                                 gboolean open_dir_tree,
 
76
                                 PtkFileBrowserSidePaneMode side_pane_mode );
 
77
 
 
78
void fm_main_window_preference( FMMainWindow* main_window );
 
79
 
 
80
FMMainWindow* fm_main_window_get_last_active();
 
81
 
 
82
void fm_main_window_open_terminal( GtkWindow* parent,
 
83
                                   const char* path );
 
84
 
 
85
G_END_DECLS
 
86
 
 
87
#endif