mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
use separated class files, use hpp header extension, update include model
This commit is contained in:
parent
9b6dceddd8
commit
0f96ff851e
15 changed files with 235 additions and 145 deletions
48
src/app/browser/header/menu.cpp
Normal file
48
src/app/browser/header/menu.cpp
Normal 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
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue