From f6ff327f0b7b50b74328e448ce862f7212dcae23 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Fri, 16 Nov 2012 14:42:47 +0100 Subject: 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 --- interface-gtk.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'interface-gtk.h') 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, -- cgit v1.2.3