mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
52 lines
No EOL
1.1 KiB
C++
52 lines
No EOL
1.1 KiB
C++
#ifndef APP_BROWSER_MAIN_TAB_PAGE_NAVBAR_HPP
|
|
#define APP_BROWSER_MAIN_TAB_PAGE_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::page
|
|
{
|
|
namespace navbar
|
|
{
|
|
class Base;
|
|
class Bookmark;
|
|
class History;
|
|
class Update;
|
|
class Request;
|
|
}
|
|
|
|
class Navbar : public Gtk::Box
|
|
{
|
|
private:
|
|
|
|
// Actions
|
|
Glib::RefPtr<Gio::SimpleActionGroup> action_group;
|
|
|
|
// Components
|
|
navbar::Base * base;
|
|
navbar::Bookmark * bookmark;
|
|
navbar::History * history;
|
|
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();
|
|
};
|
|
}
|
|
|
|
#endif // APP_BROWSER_MAIN_TAB_PAGE_NAVBAR_HPP
|