init navbar actions

This commit is contained in:
yggverse 2024-08-14 09:16:45 +03:00
parent 49fd7d0ab8
commit d95b85932f
4 changed files with 68 additions and 17 deletions

View file

@ -1,7 +1,11 @@
#ifndef APP_BROWSER_MAIN_TAB_DATA_NAVBAR_HPP
#define APP_BROWSER_MAIN_TAB_DATA_NAVBAR_HPP
#include <giomm/simpleactiongroup.h>
#include <glibmm/refptr.h>
#include <glibmm/ustring.h>
#include <gtkmm/box.h>
#include <sigc++/functors/mem_fun.h>
namespace app::browser::main::tab::data
{
@ -18,9 +22,8 @@ namespace app::browser::main::tab::data
{
private:
// Defaults
const int SPACING = 8;
const int MARGIN = 8;
// Actions
Glib::RefPtr<Gio::SimpleActionGroup> action_group;
// Components
navbar::Base * base;
@ -29,11 +32,20 @@ namespace app::browser::main::tab::data
navbar::Request * request;
navbar::Update * update;
// Defaults
const int SPACING = 8;
const int MARGIN = 8;
public:
Navbar();
~Navbar();
// Actions
void refresh();
// Getters
Glib::ustring get_request_value();
};
}