mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
rename tab elements namespace
This commit is contained in:
parent
4e733d8997
commit
2986a475c1
29 changed files with 181 additions and 181 deletions
55
src/app/browser/main/tab/page.cpp
Normal file
55
src/app/browser/main/tab/page.cpp
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
#include "page.hpp"
|
||||
#include "page/navbar.hpp"
|
||||
#include "page/content.hpp"
|
||||
|
||||
using namespace app::browser::main::tab;
|
||||
|
||||
Page::Page()
|
||||
{
|
||||
// Init container
|
||||
set_orientation(
|
||||
Gtk::Orientation::VERTICAL
|
||||
);
|
||||
|
||||
// Init actions group
|
||||
action_group = Gio::SimpleActionGroup::create();
|
||||
|
||||
// Define group actions
|
||||
action_group->add_action(
|
||||
"update",
|
||||
sigc::mem_fun(
|
||||
* this,
|
||||
& Page::update
|
||||
)
|
||||
);
|
||||
|
||||
insert_action_group(
|
||||
"page",
|
||||
action_group
|
||||
);
|
||||
|
||||
// Init components
|
||||
navbar = new page::Navbar();
|
||||
|
||||
append(
|
||||
* navbar
|
||||
);
|
||||
|
||||
// Refresh children elements view (e.g. buttons sensitivity)
|
||||
// because of insert_action_group + append here @TODO
|
||||
navbar->refresh();
|
||||
|
||||
content = new page::Content();
|
||||
|
||||
append(
|
||||
* content
|
||||
);
|
||||
}
|
||||
|
||||
Page::~Page() = default;
|
||||
|
||||
// Actions
|
||||
void Page::update()
|
||||
{
|
||||
// navbar->get_request_value() @TODO
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue