mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
draft tab actions
This commit is contained in:
parent
ebd2b843a4
commit
579ebfa037
4 changed files with 72 additions and 14 deletions
|
|
@ -10,12 +10,32 @@ Data::Data()
|
|||
Gtk::Orientation::VERTICAL
|
||||
);
|
||||
|
||||
// Init elements
|
||||
// Init children components
|
||||
navbar = new data::Navbar();
|
||||
|
||||
append(
|
||||
* navbar
|
||||
);
|
||||
|
||||
// Init actions group
|
||||
action_group = Gio::SimpleActionGroup::create();
|
||||
|
||||
// Define actions
|
||||
action_group->add_action(
|
||||
"update",
|
||||
sigc::mem_fun(
|
||||
* this,
|
||||
& Data::update
|
||||
)
|
||||
);
|
||||
|
||||
insert_action_group(
|
||||
"tab",
|
||||
action_group
|
||||
);
|
||||
}
|
||||
|
||||
Data::~Data() = default;
|
||||
|
||||
void Data::update()
|
||||
{} // @TODO
|
||||
|
|
|
|||
|
|
@ -2,6 +2,8 @@
|
|||
#define APP_BROWSER_MAIN_TAB_DATA_HPP
|
||||
|
||||
#include <gtkmm/box.h>
|
||||
#include <giomm/simpleactiongroup.h>
|
||||
#include <sigc++/functors/mem_fun.h>
|
||||
|
||||
namespace app::browser::main::tab
|
||||
{
|
||||
|
|
@ -14,6 +16,8 @@ namespace app::browser::main::tab
|
|||
{
|
||||
private:
|
||||
|
||||
Glib::RefPtr<Gio::SimpleActionGroup> action_group;
|
||||
|
||||
data::Navbar * navbar;
|
||||
|
||||
public:
|
||||
|
|
@ -21,6 +25,8 @@ namespace app::browser::main::tab
|
|||
Data();
|
||||
|
||||
~Data();
|
||||
|
||||
void update();
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue