|
|
@ -10,7 +10,9 @@ Menu::Menu( |
|
|
|
const Glib::RefPtr<Gio::SimpleAction> & ACTION__MAIN_TAB_CLOSE_ALL, |
|
|
|
const Glib::RefPtr<Gio::SimpleAction> & ACTION__MAIN_TAB_CLOSE_ALL, |
|
|
|
const Glib::RefPtr<Gio::SimpleAction> & ACTION__MAIN_TAB_PAGE_NAVIGATION_HISTORY_BACK, |
|
|
|
const Glib::RefPtr<Gio::SimpleAction> & ACTION__MAIN_TAB_PAGE_NAVIGATION_HISTORY_BACK, |
|
|
|
const Glib::RefPtr<Gio::SimpleAction> & ACTION__MAIN_TAB_PAGE_NAVIGATION_HISTORY_FORWARD, |
|
|
|
const Glib::RefPtr<Gio::SimpleAction> & ACTION__MAIN_TAB_PAGE_NAVIGATION_HISTORY_FORWARD, |
|
|
|
const Glib::RefPtr<Gio::SimpleAction> & ACTION__MAIN_TAB_PAGE_NAVIGATION_UPDATE |
|
|
|
const Glib::RefPtr<Gio::SimpleAction> & ACTION__MAIN_TAB_PAGE_NAVIGATION_UPDATE, |
|
|
|
|
|
|
|
const Glib::RefPtr<Gio::SimpleAction> & ACTION__MAIN_TAB_SESSION_RESTORE, |
|
|
|
|
|
|
|
const Glib::RefPtr<Gio::SimpleAction> & ACTION__MAIN_TAB_SESSION_SAVE |
|
|
|
) { |
|
|
|
) { |
|
|
|
// Init widget
|
|
|
|
// Init widget
|
|
|
|
set_tooltip_text( |
|
|
|
set_tooltip_text( |
|
|
@ -29,47 +31,68 @@ Menu::Menu( |
|
|
|
) |
|
|
|
) |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
const auto MENU__MAIN_TAB_PAGE = Gio::Menu::create(); |
|
|
|
const auto MENU__MAIN_TAB_PAGE = Gio::Menu::create(); |
|
|
|
|
|
|
|
|
|
|
|
const auto MENU__MAIN_TAB_PAGE_NAVIGATION = Gio::Menu::create(); |
|
|
|
const auto MENU__MAIN_TAB_PAGE_NAVIGATION = Gio::Menu::create(); |
|
|
|
|
|
|
|
|
|
|
|
const auto MENU__MAIN_TAB_PAGE_NAVIGATION_HISTORY = Gio::Menu::create(); |
|
|
|
const auto MENU__MAIN_TAB_PAGE_NAVIGATION_HISTORY = Gio::Menu::create(); |
|
|
|
|
|
|
|
|
|
|
|
MENU__MAIN_TAB_PAGE_NAVIGATION_HISTORY->append( |
|
|
|
MENU__MAIN_TAB_PAGE_NAVIGATION_HISTORY->append( |
|
|
|
_("Back"), |
|
|
|
_("Back"), |
|
|
|
get_action_detailed_name( |
|
|
|
get_action_detailed_name( |
|
|
|
ACTION__MAIN_TAB_PAGE_NAVIGATION_HISTORY_BACK |
|
|
|
ACTION__MAIN_TAB_PAGE_NAVIGATION_HISTORY_BACK |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
MENU__MAIN_TAB_PAGE_NAVIGATION_HISTORY->append( |
|
|
|
|
|
|
|
_("Forward"), |
|
|
|
|
|
|
|
get_action_detailed_name( |
|
|
|
|
|
|
|
ACTION__MAIN_TAB_PAGE_NAVIGATION_HISTORY_FORWARD |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
MENU__MAIN_TAB_PAGE_NAVIGATION->append_submenu( |
|
|
|
|
|
|
|
_("History"), |
|
|
|
|
|
|
|
MENU__MAIN_TAB_PAGE_NAVIGATION_HISTORY |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
MENU__MAIN_TAB_PAGE_NAVIGATION_HISTORY->append( |
|
|
|
MENU__MAIN_TAB_PAGE_NAVIGATION->append( |
|
|
|
_("Forward"), |
|
|
|
_("Update"), |
|
|
|
get_action_detailed_name( |
|
|
|
get_action_detailed_name( |
|
|
|
ACTION__MAIN_TAB_PAGE_NAVIGATION_HISTORY_FORWARD |
|
|
|
ACTION__MAIN_TAB_PAGE_NAVIGATION_UPDATE |
|
|
|
) |
|
|
|
) |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
MENU__MAIN_TAB_PAGE_NAVIGATION->append_submenu( |
|
|
|
MENU__MAIN_TAB_PAGE->append_submenu( |
|
|
|
_("History"), |
|
|
|
_("Navigation"), |
|
|
|
MENU__MAIN_TAB_PAGE_NAVIGATION_HISTORY |
|
|
|
MENU__MAIN_TAB_PAGE_NAVIGATION |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
MENU__MAIN_TAB_PAGE_NAVIGATION->append( |
|
|
|
MENU__MAIN_TAB->append_submenu( |
|
|
|
_("Update"), |
|
|
|
_("Page"), |
|
|
|
|
|
|
|
MENU__MAIN_TAB_PAGE |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const auto MENU__MAIN_TAB_SESSION = Gio::Menu::create(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
MENU__MAIN_TAB_SESSION->append( |
|
|
|
|
|
|
|
_("Restore"), |
|
|
|
get_action_detailed_name( |
|
|
|
get_action_detailed_name( |
|
|
|
ACTION__MAIN_TAB_PAGE_NAVIGATION_UPDATE |
|
|
|
ACTION__MAIN_TAB_SESSION_RESTORE |
|
|
|
) |
|
|
|
) |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
MENU__MAIN_TAB_PAGE->append_submenu( |
|
|
|
MENU__MAIN_TAB_SESSION->append( |
|
|
|
_("Navigation"), |
|
|
|
_("Save"), |
|
|
|
MENU__MAIN_TAB_PAGE_NAVIGATION |
|
|
|
get_action_detailed_name( |
|
|
|
); |
|
|
|
ACTION__MAIN_TAB_SESSION_SAVE |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
MENU__MAIN_TAB->append_submenu( |
|
|
|
MENU__MAIN_TAB->append_submenu( |
|
|
|
_("Page"), |
|
|
|
_("Session"), |
|
|
|
MENU__MAIN_TAB_PAGE |
|
|
|
MENU__MAIN_TAB_SESSION |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
const auto MENU__MAIN_TAB_CLOSE = Gio::Menu::create(); |
|
|
|
const auto MENU__MAIN_TAB_CLOSE = Gio::Menu::create(); |
|
|
|
|
|
|
|
|
|
|
|