From 1d4c640def954630931bc93fadc7a24fb1339d88 Mon Sep 17 00:00:00 2001 From: yggverse Date: Thu, 8 Aug 2024 14:39:43 +0300 Subject: [PATCH] init header buttons --- src/app/browser.cpp | 14 ++++++++++++++ src/app/browser.h | 41 ++++++++++++++++++++++++++++------------- 2 files changed, 42 insertions(+), 13 deletions(-) diff --git a/src/app/browser.cpp b/src/app/browser.cpp index 9d0bd623..7255a997 100644 --- a/src/app/browser.cpp +++ b/src/app/browser.cpp @@ -21,6 +21,20 @@ Browser::Header::Header() ); } +Browser::Header::Menu::Menu() +{ + set_tooltip_text( + TOOLTIP + ); +} + +Browser::Header::Tab::Tab() +{ + set_tooltip_text( + TOOLTIP + ); +} + Browser::Container::Container() { set_scrollable( diff --git a/src/app/browser.h b/src/app/browser.h index 426a6e28..1a29c6f9 100644 --- a/src/app/browser.h +++ b/src/app/browser.h @@ -3,6 +3,7 @@ #include #include +#include #include namespace app @@ -17,24 +18,38 @@ namespace app Browser(); - class Header : Gtk::HeaderBar - { - public: + class Header : Gtk::HeaderBar + { + public: - const bool SHOW_TITLE_BUTTONS = true; + const bool SHOW_TITLE_BUTTONS = true; - Header(); - }; + Header(); - class Container : Gtk::Notebook - { - public: + class Menu : public Gtk::MenuButton + { + const Glib::ustring TOOLTIP = "Menu"; - const bool SCROLLABLE = true; - const bool REORDERABLE = true; + Menu(); + }; - Container(); - }; + class Tab : public Gtk::MenuButton + { + const Glib::ustring TOOLTIP = "New tab"; + + Tab(); + }; + }; + + class Container : Gtk::Notebook + { + public: + + const bool SCROLLABLE = true; + const bool REORDERABLE = true; + + Container(); + }; }; }