gedit-window-private.h 3.37 KB
Newer Older
Paolo Borelli's avatar
Paolo Borelli committed
1 2 3 4
/*
 * gedit-window-private.h
 * This file is part of gedit
 *
5
 * Copyright (C) 2005 - Paolo Maggi
Paolo Borelli's avatar
Paolo Borelli committed
6 7 8 9 10 11 12 13 14 15 16 17
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANWINDOWILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
18
 * along with this program; if not, see <http://www.gnu.org/licenses/>.
Paolo Borelli's avatar
Paolo Borelli committed
19
 */
20

21 22
#ifndef GEDIT_WINDOW_PRIVATE_H
#define GEDIT_WINDOW_PRIVATE_H
Paolo Borelli's avatar
Paolo Borelli committed
23

24 25
#include <libpeas/peas-extension-set.h>

Paolo Borelli's avatar
Paolo Borelli committed
26
#include "gedit/gedit-window.h"
27
#include "gedit-message-bus.h"
28
#include "gedit-settings.h"
29
#include "gedit-multi-notebook.h"
30
#include "gedit-open-document-selector.h"
Paolo Borelli's avatar
Paolo Borelli committed
31 32 33 34 35 36 37

G_BEGIN_DECLS

/* WindowPrivate is in a separate .h so that we can access it from gedit-commands */

struct _GeditWindowPrivate
{
38 39 40 41
	GSettings      *editor_settings;
	GSettings      *ui_settings;
	GSettings      *window_settings;

42
	GeditMultiNotebook *multi_notebook;
Paolo Borelli's avatar
Paolo Borelli committed
43

44
	GtkWidget      *side_panel_box;
Paolo Borelli's avatar
Paolo Borelli committed
45
	GtkWidget      *side_panel;
46
	GtkWidget      *side_stack_switcher;
47
	GtkWidget      *side_panel_inline_stack_switcher;
48
	GtkWidget      *bottom_panel_box;
Paolo Borelli's avatar
Paolo Borelli committed
49 50 51
	GtkWidget      *bottom_panel;

	GtkWidget      *hpaned;
52
	GtkWidget      *vpaned;
53

54
	GeditMessageBus *message_bus;
55
	PeasExtensionSet *extensions;
Paolo Borelli's avatar
Paolo Borelli committed
56

57 58
	/* Widgets for fullscreen mode */
	GtkWidget      *fullscreen_controls;
59 60
	GtkWidget      *fullscreen_eventbox;
	GtkWidget      *fullscreen_headerbar;
61
	GtkMenuButton  *fullscreen_gear_button;
62

63 64 65 66 67
	GtkWidget       *fullscreen_new_button;
	GtkWidget       *fullscreen_open_button;
	GtkWidget       *fullscreen_open_document_popover;
	GeditOpenDocumentSelector *fullscreen_open_document_selector;

Paolo Borelli's avatar
Paolo Borelli committed
68
	/* statusbar and context ids for statusbar messages */
69
	GtkWidget      *statusbar;
70 71
	GtkWidget      *line_col_button;
	GtkWidget      *tab_width_button;
72 73
	GtkWidget      *language_button;
	GtkWidget      *language_button_label;
74
	GtkWidget      *language_popover;
Paolo Borelli's avatar
Paolo Borelli committed
75 76
	guint           generic_message_cid;
	guint           tip_message_cid;
77 78 79
	guint 	        bracket_match_message_cid;
	guint 	        tab_width_id;
	guint 	        language_changed_id;
80
	guint           wrap_mode_changed_id;
Paolo Borelli's avatar
Paolo Borelli committed
81

82
	/* Headerbars */
83 84
	GtkWidget      *titlebar_paned;
	GtkWidget      *side_headerbar;
85
	GtkWidget      *headerbar;
86 87 88 89 90 91

	GtkWidget       *open_document_popover;
	GtkWidget       *new_button;
	GtkWidget       *open_button;
	GeditOpenDocumentSelector *open_document_selector;

92
	GtkMenuButton  *gear_button;
Paolo Borelli's avatar
Paolo Borelli committed
93 94 95 96

	gint            num_tabs_with_error;

	gint            width;
97
	gint            height;
Paolo Borelli's avatar
Paolo Borelli committed
98 99
	GdkWindowState  window_state;

100 101
	gint            side_panel_size;
	gint            bottom_panel_size;
Paolo Borelli's avatar
Paolo Borelli committed
102 103 104

	GeditWindowState state;

105 106
	guint           inhibition_cookie;

107
	gint            bottom_panel_item_removed_handler_id;
108

Paolo Borelli's avatar
Paolo Borelli committed
109
	GtkWindowGroup *window_group;
110

111
	GFile          *default_location;
112

113 114
	gchar          *direct_save_uri;

ghugesagar's avatar
ghugesagar committed
115 116
	GSList         *closed_docs_stack;

117 118 119
	guint           removing_tabs : 1;
	guint           dispose_has_run : 1;

120
	guint           in_fullscreen_eventbox : 1;
Paolo Borelli's avatar
Paolo Borelli committed
121 122 123 124
};

G_END_DECLS

125
#endif  /* GEDIT_WINDOW_PRIVATE_H  */
126
/* ex:set ts=8 noet: */