diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2015-07-07 22:12:21 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-02-22 15:31:21 -0500 |
commit | 9010262bed21611f2db652d16f63e4af4380259d (patch) | |
tree | b112724d2b26eb3b66b5e1c5571dbf6c5509cc24 /libs/gtkmm2ext/gtkmm2ext/tabbable.h | |
parent | 85eee3b09dd53f6f5d1803f2b585270ab535e16f (diff) |
first compilable version of tabbable design.
I would have loved to split this apart, but there are just so many interrelated changes,
it makes little sense and would be a huge effort that would break future git bisect
use because so many intermediate commits would not compile
Diffstat (limited to 'libs/gtkmm2ext/gtkmm2ext/tabbable.h')
-rw-r--r-- | libs/gtkmm2ext/gtkmm2ext/tabbable.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/libs/gtkmm2ext/gtkmm2ext/tabbable.h b/libs/gtkmm2ext/gtkmm2ext/tabbable.h index 418602477e..7c7dd15d23 100644 --- a/libs/gtkmm2ext/gtkmm2ext/tabbable.h +++ b/libs/gtkmm2ext/gtkmm2ext/tabbable.h @@ -36,11 +36,14 @@ class VisibilityTracker; class LIBGTKMM2EXT_API Tabbable : public WindowProxy { public: - Tabbable (Gtk::Widget&); + Tabbable (Gtk::Widget&, const std::string&); ~Tabbable (); void add_to_notebook (Gtk::Notebook& notebook, const std::string& tab_title, int position); - + void show_tab (); + + Gtk::Widget& contents() const { return _contents; } + Gtk::Window* get (bool create = false); Gtk::Window* own_window () { return get (false); } Gtk::Notebook* tabbed_parent (); @@ -52,12 +55,17 @@ class LIBGTKMM2EXT_API Tabbable : public WindowProxy { virtual void show_window (); bool window_visible (); + + Gtk::Window* current_toplevel () const; + + Gtk::Notebook* tab_root_drop (); protected: bool delete_event_handler (GdkEventAny *ev); private: Gtk::Widget& _contents; + Gtk::Notebook _own_notebook; Gtk::Notebook* _parent_notebook; std::string _tab_title; int _notebook_position; |