61
ApvlvView (const char *);
69
ApvlvWindow *currentWindow ();
71
void delcurrentWindow ();
73
bool newtab (const char *filename);
75
bool newtab (ApvlvCore * core);
77
void promptcommand (char ch);
79
void promptcommand (const char *str);
81
void errormessage (const char *str, ...);
83
void infomessage (const char *str, ...);
85
bool run (const char *str);
87
bool loadfile (string file);
89
bool loadfile (const char *filename);
91
bool loaddir (const char *path);
93
ApvlvCore *hasloaded (const char *filename, int type);
95
void regloaded (ApvlvCore *);
107
returnType process (int hastimes, int times, guint keyval);
109
returnType subprocess (int times, guint keyval);
111
void cmd_show (int ct);
115
void cmd_auto (const char *);
117
void settitle (const char *);
119
ApvlvCore *crtadoc ();
126
GCompletion *filecompleteinit (const char *s);
128
bool runcmd (const char *cmd);
130
int new_tabcontext (ApvlvCore * core, bool insertAfterCurr);
132
void delete_tabcontext (int tabPos);
134
void switch_tabcontext (int tabPos);
136
// Caclulate number of pixels that the document should be.
137
// This figure accounts for decorations like (mCmdBar and mHaveTabs).
138
// Returns a nonnegative number.
141
void switchtab (int tabPos);
143
// Update the tab's context and update tab label.
146
void updatetabname ();
152
GtkWidget *mMainWindow;
158
GtkWidget *mTabContainer;
159
GtkWidget *mCommandBar;
167
TabEntry (ApvlvWindow * _r, ApvlvWindow * _c, int _n):root (_r),
168
curr (_c), numwindows (_n)
172
// possibly use GArray instead
60
ApvlvView (const char *);
68
ApvlvWindow *currentWindow ();
70
void delcurrentWindow ();
72
bool newtab (const char *filename);
74
bool newtab (ApvlvCore * core);
76
void promptcommand (char ch);
78
void promptcommand (const char *str);
80
void errormessage (const char *str, ...);
82
void infomessage (const char *str, ...);
84
bool run (const char *str);
86
bool loadfile (string file);
88
bool loadfile (const char *filename);
90
bool loaddir (const char *path);
92
ApvlvCore *hasloaded (const char *filename, int type);
94
void regloaded (ApvlvCore *);
106
returnType process (int hastimes, int times, guint keyval);
108
returnType subprocess (int times, guint keyval);
110
void cmd_show (int ct);
114
void cmd_auto (const char *);
116
void settitle (const char *);
118
ApvlvCore *crtadoc ();
125
GCompletion *filecompleteinit (const char *s);
127
bool runcmd (const char *cmd);
129
int new_tabcontext (ApvlvCore * core, bool insertAfterCurr);
131
void delete_tabcontext (int tabPos);
133
void switch_tabcontext (int tabPos);
135
// Caclulate number of pixels that the document should be.
136
// This figure accounts for decorations like (mCmdBar and mHaveTabs).
137
// Returns a nonnegative number.
140
void switchtab (int tabPos);
142
// Update the tab's context and update tab label.
145
void updatetabname ();
151
GtkWidget *mMainWindow;
157
GtkWidget *mTabContainer;
158
GtkWidget *mCommandBar;
166
TabEntry (ApvlvWindow * _r, ApvlvWindow * _c, int _n):root (_r),
167
curr (_c), numwindows (_n)
171
// possibly use GArray instead
173
172
std::vector < TabEntry > mTabList;
179
static void apvlv_view_delete_cb (GtkWidget * wid, GtkAllocation * al,
181
static void apvlv_view_resized_cb (GtkWidget * wid, GtkAllocation * al,
183
static gint apvlv_view_keypress_cb (GtkWidget * wid, GdkEvent * ev,
186
static gint apvlv_view_commandbar_cb (GtkWidget * wid, GdkEvent * ev,
189
static void apvlv_notebook_switch_cb (GtkWidget * wid,
190
GtkNotebookPage * page, guint num,
193
ApvlvWindow *mRootWindow;
178
static void apvlv_view_delete_cb (GtkWidget * wid, GtkAllocation * al,
180
static void apvlv_view_resized_cb (GtkWidget * wid, GtkAllocation * al,
182
static gint apvlv_view_keypress_cb (GtkWidget * wid, GdkEvent * ev,
185
static gint apvlv_view_commandbar_cb (GtkWidget * wid, GdkEvent * ev,
188
static void apvlv_notebook_switch_cb (GtkWidget * wid,
189
GtkNotebookPage * page, guint num,
192
ApvlvWindow *mRootWindow;
195
194
std::vector < ApvlvCore * >mDocs;
197
196
std::vector < string > mCmdHistroy;
201
static const int APVLV_MENU_HEIGHT, APVLV_CMD_BAR_HEIGHT,
200
static const int APVLV_MENU_HEIGHT, APVLV_CMD_BAR_HEIGHT,
202
201
APVLV_TABS_HEIGHT;
205
204
extern ApvlvView *gView;