use separated class files, use hpp header extension, update include model

This commit is contained in:
yggverse 2024-08-10 17:57:15 +03:00
parent 9b6dceddd8
commit 0f96ff851e
15 changed files with 235 additions and 145 deletions

View file

@ -0,0 +1,48 @@
#include "menu.hpp"
using namespace app::browser::header;
Menu::Menu()
{
set_tooltip_text(
TOOLTIP
);
// Build tab submenu
auto tab = Gio::Menu::create();
tab->append(
_("New tab"),
"app.tab.new"
);
// Build tool submenu
auto tool = Gio::Menu::create();
tool->append(
_("Debug"),
"app.tool.debug"
);
// Build main menu
auto main = Gio::Menu::create();
main->append_submenu(
_("Tab"),
tab
);
main->append_submenu(
_("Tool"),
tool
);
main->append(
_("Quit"),
"win.quit"
);
set_menu_model(
main
);
}