mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-03 01:55:27 +00:00
rename widgets
This commit is contained in:
parent
38b2ac4f04
commit
57f43e2dd9
28 changed files with 365 additions and 365 deletions
33
src/app/browser/main/tab/page/navigation/history/back.cpp
Normal file
33
src/app/browser/main/tab/page/navigation/history/back.cpp
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
#include "back.hpp"
|
||||
|
||||
using namespace app::browser::main::tab::page::navigation::history;
|
||||
|
||||
Back::Back()
|
||||
{
|
||||
set_action_name(
|
||||
"win.tab_history_back"
|
||||
);
|
||||
|
||||
set_icon_name(
|
||||
"go-previous-symbolic"
|
||||
);
|
||||
|
||||
set_tooltip_text(
|
||||
_("Back")
|
||||
);
|
||||
|
||||
set_sensitive(
|
||||
false // @TODO no effect by set_action_name
|
||||
);
|
||||
|
||||
signal_clicked().connect(
|
||||
[this]
|
||||
{
|
||||
activate_action(
|
||||
"win.tab_history_back"
|
||||
);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
Back::~Back() = default;
|
||||
19
src/app/browser/main/tab/page/navigation/history/back.hpp
Normal file
19
src/app/browser/main/tab/page/navigation/history/back.hpp
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#ifndef APP_BROWSER_MAIN_TAB_PAGE_NAVIGATION_HISTORY_BACK_HPP
|
||||
#define APP_BROWSER_MAIN_TAB_PAGE_NAVIGATION_HISTORY_BACK_HPP
|
||||
|
||||
#include <glibmm/i18n.h>
|
||||
#include <gtkmm/button.h>
|
||||
|
||||
namespace app::browser::main::tab::page::navigation::history
|
||||
{
|
||||
class Back : public Gtk::Button
|
||||
{
|
||||
public:
|
||||
|
||||
Back();
|
||||
|
||||
~Back();
|
||||
};
|
||||
}
|
||||
|
||||
#endif // APP_BROWSER_MAIN_TAB_PAGE_NAVIGATION_HISTORY_BACK_HPP
|
||||
33
src/app/browser/main/tab/page/navigation/history/forward.cpp
Normal file
33
src/app/browser/main/tab/page/navigation/history/forward.cpp
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
#include "forward.hpp"
|
||||
|
||||
using namespace app::browser::main::tab::page::navigation::history;
|
||||
|
||||
Forward::Forward()
|
||||
{
|
||||
set_action_name(
|
||||
"win.tab_history_forward"
|
||||
);
|
||||
|
||||
set_icon_name(
|
||||
"go-next-symbolic"
|
||||
);
|
||||
|
||||
set_tooltip_text(
|
||||
_("Forward")
|
||||
);
|
||||
|
||||
set_sensitive(
|
||||
false // @TODO no effect by set_action_name
|
||||
);
|
||||
|
||||
signal_clicked().connect(
|
||||
[this]
|
||||
{
|
||||
activate_action(
|
||||
"win.tab_history_forward"
|
||||
);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
Forward::~Forward() = default;
|
||||
19
src/app/browser/main/tab/page/navigation/history/forward.hpp
Normal file
19
src/app/browser/main/tab/page/navigation/history/forward.hpp
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#ifndef APP_BROWSER_MAIN_TAB_PAGE_NAVIGATION_HISTORY_FORWARD_HPP
|
||||
#define APP_BROWSER_MAIN_TAB_PAGE_NAVIGATION_HISTORY_FORWARD_HPP
|
||||
|
||||
#include <glibmm/i18n.h>
|
||||
#include <gtkmm/button.h>
|
||||
|
||||
namespace app::browser::main::tab::page::navigation::history
|
||||
{
|
||||
class Forward : public Gtk::Button
|
||||
{
|
||||
public:
|
||||
|
||||
Forward();
|
||||
|
||||
~Forward();
|
||||
};
|
||||
}
|
||||
|
||||
#endif // APP_BROWSER_MAIN_TAB_PAGE_NAVIGATION_HISTORY_FORWARD_HPP
|
||||
Loading…
Add table
Add a link
Reference in a new issue