aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/interface-gtk.h
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2014-11-17 03:11:59 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2014-11-17 03:56:38 +0100
commite762a43754ba375789fa749ca2e00a3548500d6a (patch)
treebe3e0996f4bee068f58564fe38fac6fee51466a2 /src/interface-gtk.h
parent2ee2ddd07e41488b782056e911bcbe2fa51f7e22 (diff)
downloadsciteco-e762a43754ba375789fa749ca2e00a3548500d6a.tar.gz
simplified (User) Interface API
Both UIs have a current_view, so this field, the ssm(), undo_ssm() and get_current_view() methods can be refactored into the Interface base class
Diffstat (limited to 'src/interface-gtk.h')
-rw-r--r--src/interface-gtk.h25
1 files changed, 2 insertions, 23 deletions
diff --git a/src/interface-gtk.h b/src/interface-gtk.h
index f74bf24..5a083ab 100644
--- a/src/interface-gtk.h
+++ b/src/interface-gtk.h
@@ -59,16 +59,15 @@ typedef class InterfaceGtk : public Interface<InterfaceGtk, ViewGtk> {
GtkWidget *popup_widget;
- ViewGtk *current_view;
GtkWidget *current_view_widget;
public:
- InterfaceGtk() : window(NULL),
+ InterfaceGtk() : Interface(),
+ window(NULL),
vbox(NULL),
cmdline_widget(NULL),
info_widget(NULL), message_widget(NULL),
popup_widget(NULL),
- current_view(NULL),
current_view_widget(NULL) {}
~InterfaceGtk();
@@ -89,26 +88,6 @@ public:
/* implementation of Interface::show_view() */
void show_view_impl(ViewGtk *view);
- /* implementation of Interface::get_current_view() */
- inline ViewGtk *
- get_current_view_impl(void)
- {
- return current_view;
- }
-
- /* implementation of Interface::ssm() */
- inline sptr_t
- ssm_impl(unsigned int iMessage, uptr_t wParam = 0, sptr_t lParam = 0)
- {
- return current_view->ssm(iMessage, wParam, lParam);
- }
- /* implementation of Interface::undo_ssm() */
- inline void
- undo_ssm_impl(unsigned int iMessage,
- uptr_t wParam = 0, sptr_t lParam = 0)
- {
- current_view->undo_ssm(iMessage, wParam, lParam);
- }
/* implementation of Interface::info_update() */
void info_update_impl(QRegister *reg);