mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
init header buttons
This commit is contained in:
parent
f591398b51
commit
1d4c640def
2 changed files with 42 additions and 13 deletions
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
#include <gtkmm/window.h>
|
||||
#include <gtkmm/headerbar.h>
|
||||
#include <gtkmm/menubutton.h>
|
||||
#include <gtkmm/notebook.h>
|
||||
|
||||
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();
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue