aboutsummaryrefslogtreecommitdiffhomepage
path: root/interface-gtk.h
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2012-11-16 14:42:47 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2012-11-16 14:42:47 +0100
commitf6ff327f0b7b50b74328e448ce862f7212dcae23 (patch)
tree4a773dcb9120d6a7fb96fce92422667e8702dbdf /interface-gtk.h
parent0a8f940ffe1aaf77ba12ccc02d4e382be2118151 (diff)
downloadsciteco-f6ff327f0b7b50b74328e448ce862f7212dcae23.tar.gz
keep a buffer dirty flag and display infos about the current buffer in the interfaces (including the dirty flag)
* was a bit tricky because the Scintilla SAVEPOINTS cannot be (fully) used * when a file is loaded or saved, a Scintilla SAVEPOINT is set * SAVEPOINTLEFT notifications are used to set a buffer dirty * SAVEPOINTREACHED notifications are useless since Scintilla does not consider the saves themselves to be undoable * GTK interface displays infos in window title bar * NCURSES interface has also been updated and cleaned up a bit. Infos are displayed in a new info line. * NCURSES: fixed popup display after terminal resizing
Diffstat (limited to 'interface-gtk.h')
-rw-r--r--interface-gtk.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/interface-gtk.h b/interface-gtk.h
index 661786a..1c62b4a 100644
--- a/interface-gtk.h
+++ b/interface-gtk.h
@@ -12,6 +12,7 @@
#include "interface.h"
extern class InterfaceGtk : public Interface {
+ GtkWidget *window;
GtkWidget *editor_widget;
GtkWidget *cmdline_widget;
GtkWidget *info_widget, *message_widget;
@@ -20,7 +21,7 @@ extern class InterfaceGtk : public Interface {
public:
InterfaceGtk();
- //~InterfaceGtk();
+ ~InterfaceGtk();
inline GOptionGroup *
get_options(void)
@@ -42,6 +43,9 @@ public:
iMessage, wParam, lParam);
}
+ void info_update(QRegister *reg);
+ void info_update(Buffer *buffer);
+
void cmdline_update(const gchar *cmdline = NULL);
void popup_add_filename(PopupFileType type,