mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 09:35:28 +00:00
rename tab elements namespace
This commit is contained in:
parent
4e733d8997
commit
2986a475c1
29 changed files with 181 additions and 181 deletions
20
Makefile
20
Makefile
|
|
@ -12,16 +12,16 @@ SRCS = src/main.cpp\
|
||||||
src/app/browser/header/tab.cpp\
|
src/app/browser/header/tab.cpp\
|
||||||
src/app/browser/main.cpp\
|
src/app/browser/main.cpp\
|
||||||
src/app/browser/main/tab.cpp\
|
src/app/browser/main/tab.cpp\
|
||||||
src/app/browser/main/tab/data.cpp\
|
src/app/browser/main/tab/page.cpp\
|
||||||
src/app/browser/main/tab/data/content.cpp\
|
src/app/browser/main/tab/page/content.cpp\
|
||||||
src/app/browser/main/tab/data/navbar.cpp\
|
src/app/browser/main/tab/page/navbar.cpp\
|
||||||
src/app/browser/main/tab/data/navbar/base.cpp\
|
src/app/browser/main/tab/page/navbar/base.cpp\
|
||||||
src/app/browser/main/tab/data/navbar/bookmark.cpp\
|
src/app/browser/main/tab/page/navbar/bookmark.cpp\
|
||||||
src/app/browser/main/tab/data/navbar/history.cpp\
|
src/app/browser/main/tab/page/navbar/history.cpp\
|
||||||
src/app/browser/main/tab/data/navbar/history/back.cpp\
|
src/app/browser/main/tab/page/navbar/history/back.cpp\
|
||||||
src/app/browser/main/tab/data/navbar/history/forward.cpp\
|
src/app/browser/main/tab/page/navbar/history/forward.cpp\
|
||||||
src/app/browser/main/tab/data/navbar/request.cpp\
|
src/app/browser/main/tab/page/navbar/request.cpp\
|
||||||
src/app/browser/main/tab/data/navbar/update.cpp\
|
src/app/browser/main/tab/page/navbar/update.cpp\
|
||||||
src/app/browser/main/tab/label.cpp\
|
src/app/browser/main/tab/label.cpp\
|
||||||
src/lib/database.cpp\
|
src/lib/database.cpp\
|
||||||
src/lib/database/session.cpp
|
src/lib/database/session.cpp
|
||||||
|
|
|
||||||
|
|
@ -4,16 +4,16 @@ src/app/browser/header/menu.cpp
|
||||||
src/app/browser/header/tab.cpp
|
src/app/browser/header/tab.cpp
|
||||||
src/app/browser/main.cpp
|
src/app/browser/main.cpp
|
||||||
src/app/browser/main/tab.cpp
|
src/app/browser/main/tab.cpp
|
||||||
src/app/browser/main/tab/data.cpp
|
src/app/browser/main/tab/page.cpp
|
||||||
src/app/browser/main/tab/data/content.cpp
|
src/app/browser/main/tab/page/content.cpp
|
||||||
src/app/browser/main/tab/data/navbar.cpp
|
src/app/browser/main/tab/page/navbar.cpp
|
||||||
src/app/browser/main/tab/data/navbar/base.cpp
|
src/app/browser/main/tab/page/navbar/base.cpp
|
||||||
src/app/browser/main/tab/data/navbar/bookmark.cpp
|
src/app/browser/main/tab/page/navbar/bookmark.cpp
|
||||||
src/app/browser/main/tab/data/navbar/history.cpp
|
src/app/browser/main/tab/page/navbar/history.cpp
|
||||||
src/app/browser/main/tab/data/navbar/history/back.cpp
|
src/app/browser/main/tab/page/navbar/history/back.cpp
|
||||||
src/app/browser/main/tab/data/navbar/history/forward.cpp
|
src/app/browser/main/tab/page/navbar/history/forward.cpp
|
||||||
src/app/browser/main/tab/data/navbar/request.cpp
|
src/app/browser/main/tab/page/navbar/request.cpp
|
||||||
src/app/browser/main/tab/data/navbar/update.cpp
|
src/app/browser/main/tab/page/navbar/update.cpp
|
||||||
src/app/browser/main/tab/label.cpp
|
src/app/browser/main/tab/label.cpp
|
||||||
src/lib/database.cpp
|
src/lib/database.cpp
|
||||||
src/lib/database/session.cpp
|
src/lib/database/session.cpp
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
#include "tab.hpp"
|
#include "tab.hpp"
|
||||||
#include "tab/data.hpp"
|
|
||||||
#include "tab/label.hpp"
|
#include "tab/label.hpp"
|
||||||
|
#include "tab/page.hpp"
|
||||||
|
|
||||||
using namespace app::browser::main;
|
using namespace app::browser::main;
|
||||||
|
|
||||||
|
|
@ -29,15 +29,15 @@ void Tab::append(
|
||||||
bool focus
|
bool focus
|
||||||
) {
|
) {
|
||||||
auto label = new tab::Label();
|
auto label = new tab::Label();
|
||||||
auto data = new tab::Data();
|
auto page = new tab::Page();
|
||||||
|
|
||||||
append_page(
|
append_page(
|
||||||
* data,
|
* page,
|
||||||
* label
|
* label
|
||||||
);
|
);
|
||||||
|
|
||||||
set_tab_reorderable(
|
set_tab_reorderable(
|
||||||
* data,
|
* page,
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
@ -45,7 +45,7 @@ void Tab::append(
|
||||||
{
|
{
|
||||||
set_current_page(
|
set_current_page(
|
||||||
page_num(
|
page_num(
|
||||||
* data
|
* page
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
@ -86,7 +86,7 @@ void Tab::update(
|
||||||
);
|
);
|
||||||
|
|
||||||
page->activate_action(
|
page->activate_action(
|
||||||
"data.update"
|
"page.update"
|
||||||
);
|
);
|
||||||
|
|
||||||
} // @TODO
|
} // @TODO
|
||||||
|
|
|
||||||
|
|
@ -1,18 +0,0 @@
|
||||||
#ifndef APP_BROWSER_MAIN_TAB_DATA_CONTENT_HPP
|
|
||||||
#define APP_BROWSER_MAIN_TAB_DATA_CONTENT_HPP
|
|
||||||
|
|
||||||
#include <gtkmm/box.h>
|
|
||||||
|
|
||||||
namespace app::browser::main::tab::data
|
|
||||||
{
|
|
||||||
class Content : public Gtk::Box
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
|
|
||||||
Content();
|
|
||||||
|
|
||||||
~Content();
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif // APP_BROWSER_MAIN_TAB_DATA_CONTENT_HPP
|
|
||||||
|
|
@ -1,19 +0,0 @@
|
||||||
#ifndef APP_BROWSER_MAIN_TAB_DATA_NAVBAR_BASE_HPP
|
|
||||||
#define APP_BROWSER_MAIN_TAB_DATA_NAVBAR_BASE_HPP
|
|
||||||
|
|
||||||
#include <glibmm/i18n.h>
|
|
||||||
#include <gtkmm/button.h>
|
|
||||||
|
|
||||||
namespace app::browser::main::tab::data::navbar
|
|
||||||
{
|
|
||||||
class Base : public Gtk::Button
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
|
|
||||||
Base();
|
|
||||||
|
|
||||||
~Base();
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif // APP_BROWSER_MAIN_TAB_DATA_NAVBAR_BASE_HPP
|
|
||||||
|
|
@ -1,19 +0,0 @@
|
||||||
#ifndef APP_BROWSER_MAIN_TAB_DATA_NAVBAR_BOOKMARK_HPP
|
|
||||||
#define APP_BROWSER_MAIN_TAB_DATA_NAVBAR_BOOKMARK_HPP
|
|
||||||
|
|
||||||
#include <glibmm/i18n.h>
|
|
||||||
#include <gtkmm/button.h>
|
|
||||||
|
|
||||||
namespace app::browser::main::tab::data::navbar
|
|
||||||
{
|
|
||||||
class Bookmark : public Gtk::Button
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
|
|
||||||
Bookmark();
|
|
||||||
|
|
||||||
~Bookmark();
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif // APP_BROWSER_MAIN_TAB_DATA_NAVBAR_BOOKMARK_HPP
|
|
||||||
|
|
@ -1,19 +0,0 @@
|
||||||
#ifndef APP_BROWSER_MAIN_TAB_DATA_NAVBAR_HISTORY_BACK_HPP
|
|
||||||
#define APP_BROWSER_MAIN_TAB_DATA_NAVBAR_HISTORY_BACK_HPP
|
|
||||||
|
|
||||||
#include <glibmm/i18n.h>
|
|
||||||
#include <gtkmm/button.h>
|
|
||||||
|
|
||||||
namespace app::browser::main::tab::data::navbar::history
|
|
||||||
{
|
|
||||||
class Back : public Gtk::Button
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
|
|
||||||
Back();
|
|
||||||
|
|
||||||
~Back();
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif // APP_BROWSER_MAIN_TAB_DATA_NAVBAR_HISTORY_BACK_HPP
|
|
||||||
|
|
@ -1,19 +0,0 @@
|
||||||
#ifndef APP_BROWSER_MAIN_TAB_DATA_NAVBAR_HISTORY_FORWARD_HPP
|
|
||||||
#define APP_BROWSER_MAIN_TAB_DATA_NAVBAR_HISTORY_FORWARD_HPP
|
|
||||||
|
|
||||||
#include <glibmm/i18n.h>
|
|
||||||
#include <gtkmm/button.h>
|
|
||||||
|
|
||||||
namespace app::browser::main::tab::data::navbar::history
|
|
||||||
{
|
|
||||||
class Forward : public Gtk::Button
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
|
|
||||||
Forward();
|
|
||||||
|
|
||||||
~Forward();
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif // APP_BROWSER_MAIN_TAB_DATA_NAVBAR_HISTORY_FORWARD_HPP
|
|
||||||
|
|
@ -1,19 +0,0 @@
|
||||||
#ifndef APP_BROWSER_MAIN_TAB_DATA_NAVBAR_UPDATE_HPP
|
|
||||||
#define APP_BROWSER_MAIN_TAB_DATA_NAVBAR_UPDATE_HPP
|
|
||||||
|
|
||||||
#include <glibmm/i18n.h>
|
|
||||||
#include <gtkmm/button.h>
|
|
||||||
|
|
||||||
namespace app::browser::main::tab::data::navbar
|
|
||||||
{
|
|
||||||
class Update : public Gtk::Button
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
|
|
||||||
Update();
|
|
||||||
|
|
||||||
~Update();
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif // APP_BROWSER_MAIN_TAB_DATA_NAVBAR_UPDATE_HPP
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
#include "data.hpp"
|
#include "page.hpp"
|
||||||
#include "data/navbar.hpp"
|
#include "page/navbar.hpp"
|
||||||
#include "data/content.hpp"
|
#include "page/content.hpp"
|
||||||
|
|
||||||
using namespace app::browser::main::tab;
|
using namespace app::browser::main::tab;
|
||||||
|
|
||||||
Data::Data()
|
Page::Page()
|
||||||
{
|
{
|
||||||
// Init container
|
// Init container
|
||||||
set_orientation(
|
set_orientation(
|
||||||
|
|
@ -19,17 +19,17 @@ Data::Data()
|
||||||
"update",
|
"update",
|
||||||
sigc::mem_fun(
|
sigc::mem_fun(
|
||||||
* this,
|
* this,
|
||||||
& Data::update
|
& Page::update
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
insert_action_group(
|
insert_action_group(
|
||||||
"data",
|
"page",
|
||||||
action_group
|
action_group
|
||||||
);
|
);
|
||||||
|
|
||||||
// Init components
|
// Init components
|
||||||
navbar = new data::Navbar();
|
navbar = new page::Navbar();
|
||||||
|
|
||||||
append(
|
append(
|
||||||
* navbar
|
* navbar
|
||||||
|
|
@ -39,17 +39,17 @@ Data::Data()
|
||||||
// because of insert_action_group + append here @TODO
|
// because of insert_action_group + append here @TODO
|
||||||
navbar->refresh();
|
navbar->refresh();
|
||||||
|
|
||||||
content = new data::Content();
|
content = new page::Content();
|
||||||
|
|
||||||
append(
|
append(
|
||||||
* content
|
* content
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
Data::~Data() = default;
|
Page::~Page() = default;
|
||||||
|
|
||||||
// Actions
|
// Actions
|
||||||
void Data::update()
|
void Page::update()
|
||||||
{
|
{
|
||||||
// navbar->get_request_value() @TODO
|
// navbar->get_request_value() @TODO
|
||||||
}
|
}
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#ifndef APP_BROWSER_MAIN_TAB_DATA_HPP
|
#ifndef APP_BROWSER_MAIN_TAB_PAGE_HPP
|
||||||
#define APP_BROWSER_MAIN_TAB_DATA_HPP
|
#define APP_BROWSER_MAIN_TAB_PAGE_HPP
|
||||||
|
|
||||||
#include <giomm/simpleactiongroup.h>
|
#include <giomm/simpleactiongroup.h>
|
||||||
#include <glibmm/refptr.h>
|
#include <glibmm/refptr.h>
|
||||||
|
|
@ -8,28 +8,28 @@
|
||||||
|
|
||||||
namespace app::browser::main::tab
|
namespace app::browser::main::tab
|
||||||
{
|
{
|
||||||
namespace data
|
namespace page
|
||||||
{
|
{
|
||||||
class Navbar;
|
class Navbar;
|
||||||
class Content;
|
class Content;
|
||||||
}
|
}
|
||||||
|
|
||||||
class Data : public Gtk::Box
|
class Page : public Gtk::Box
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
|
|
||||||
Glib::RefPtr<Gio::SimpleActionGroup> action_group;
|
Glib::RefPtr<Gio::SimpleActionGroup> action_group;
|
||||||
|
|
||||||
data::Navbar * navbar;
|
page::Navbar * navbar;
|
||||||
data::Content * content;
|
page::Content * content;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
Data();
|
Page();
|
||||||
~Data();
|
~Page();
|
||||||
|
|
||||||
void update();
|
void update();
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // APP_BROWSER_MAIN_TAB_DATA_HPP
|
#endif // APP_BROWSER_MAIN_TAB_PAGE_HPP
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
#include "content.hpp"
|
#include "content.hpp"
|
||||||
|
|
||||||
using namespace app::browser::main::tab::data;
|
using namespace app::browser::main::tab::page;
|
||||||
|
|
||||||
Content::Content()
|
Content::Content()
|
||||||
{
|
{
|
||||||
18
src/app/browser/main/tab/page/content.hpp
Normal file
18
src/app/browser/main/tab/page/content.hpp
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
#ifndef APP_BROWSER_MAIN_TAB_PAGE_CONTENT_HPP
|
||||||
|
#define APP_BROWSER_MAIN_TAB_PAGE_CONTENT_HPP
|
||||||
|
|
||||||
|
#include <gtkmm/box.h>
|
||||||
|
|
||||||
|
namespace app::browser::main::tab::page
|
||||||
|
{
|
||||||
|
class Content : public Gtk::Box
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
Content();
|
||||||
|
|
||||||
|
~Content();
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif // APP_BROWSER_MAIN_TAB_PAGE_CONTENT_HPP
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
#include "navbar/request.hpp"
|
#include "navbar/request.hpp"
|
||||||
#include "navbar/update.hpp"
|
#include "navbar/update.hpp"
|
||||||
|
|
||||||
using namespace app::browser::main::tab::data;
|
using namespace app::browser::main::tab::page;
|
||||||
|
|
||||||
Navbar::Navbar()
|
Navbar::Navbar()
|
||||||
{
|
{
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#ifndef APP_BROWSER_MAIN_TAB_DATA_NAVBAR_HPP
|
#ifndef APP_BROWSER_MAIN_TAB_PAGE_NAVBAR_HPP
|
||||||
#define APP_BROWSER_MAIN_TAB_DATA_NAVBAR_HPP
|
#define APP_BROWSER_MAIN_TAB_PAGE_NAVBAR_HPP
|
||||||
|
|
||||||
#include <giomm/simpleactiongroup.h>
|
#include <giomm/simpleactiongroup.h>
|
||||||
#include <glibmm/refptr.h>
|
#include <glibmm/refptr.h>
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
#include <gtkmm/box.h>
|
#include <gtkmm/box.h>
|
||||||
#include <sigc++/functors/mem_fun.h>
|
#include <sigc++/functors/mem_fun.h>
|
||||||
|
|
||||||
namespace app::browser::main::tab::data
|
namespace app::browser::main::tab::page
|
||||||
{
|
{
|
||||||
namespace navbar
|
namespace navbar
|
||||||
{
|
{
|
||||||
|
|
@ -49,4 +49,4 @@ namespace app::browser::main::tab::data
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // APP_BROWSER_MAIN_TAB_DATA_NAVBAR_HPP
|
#endif // APP_BROWSER_MAIN_TAB_PAGE_NAVBAR_HPP
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
#include "base.hpp"
|
#include "base.hpp"
|
||||||
|
|
||||||
using namespace app::browser::main::tab::data::navbar;
|
using namespace app::browser::main::tab::page::navbar;
|
||||||
|
|
||||||
Base::Base()
|
Base::Base()
|
||||||
{
|
{
|
||||||
19
src/app/browser/main/tab/page/navbar/base.hpp
Normal file
19
src/app/browser/main/tab/page/navbar/base.hpp
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
#ifndef APP_BROWSER_MAIN_TAB_PAGE_NAVBAR_BASE_HPP
|
||||||
|
#define APP_BROWSER_MAIN_TAB_PAGE_NAVBAR_BASE_HPP
|
||||||
|
|
||||||
|
#include <glibmm/i18n.h>
|
||||||
|
#include <gtkmm/button.h>
|
||||||
|
|
||||||
|
namespace app::browser::main::tab::page::navbar
|
||||||
|
{
|
||||||
|
class Base : public Gtk::Button
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
Base();
|
||||||
|
|
||||||
|
~Base();
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif // APP_BROWSER_MAIN_TAB_PAGE_NAVBAR_BASE_HPP
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
#include "bookmark.hpp"
|
#include "bookmark.hpp"
|
||||||
|
|
||||||
using namespace app::browser::main::tab::data::navbar;
|
using namespace app::browser::main::tab::page::navbar;
|
||||||
|
|
||||||
Bookmark::Bookmark()
|
Bookmark::Bookmark()
|
||||||
{
|
{
|
||||||
19
src/app/browser/main/tab/page/navbar/bookmark.hpp
Normal file
19
src/app/browser/main/tab/page/navbar/bookmark.hpp
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
#ifndef APP_BROWSER_MAIN_TAB_PAGE_NAVBAR_BOOKMARK_HPP
|
||||||
|
#define APP_BROWSER_MAIN_TAB_PAGE_NAVBAR_BOOKMARK_HPP
|
||||||
|
|
||||||
|
#include <glibmm/i18n.h>
|
||||||
|
#include <gtkmm/button.h>
|
||||||
|
|
||||||
|
namespace app::browser::main::tab::page::navbar
|
||||||
|
{
|
||||||
|
class Bookmark : public Gtk::Button
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
Bookmark();
|
||||||
|
|
||||||
|
~Bookmark();
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif // APP_BROWSER_MAIN_TAB_PAGE_NAVBAR_BOOKMARK_HPP
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
#include "history/back.hpp"
|
#include "history/back.hpp"
|
||||||
#include "history/forward.hpp"
|
#include "history/forward.hpp"
|
||||||
|
|
||||||
using namespace app::browser::main::tab::data::navbar;
|
using namespace app::browser::main::tab::page::navbar;
|
||||||
|
|
||||||
History::History()
|
History::History()
|
||||||
{
|
{
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
#ifndef APP_BROWSER_MAIN_TAB_DATA_NAVBAR_HISTORY_HPP
|
#ifndef APP_BROWSER_MAIN_TAB_PAGE_NAVBAR_HISTORY_HPP
|
||||||
#define APP_BROWSER_MAIN_TAB_DATA_NAVBAR_HISTORY_HPP
|
#define APP_BROWSER_MAIN_TAB_PAGE_NAVBAR_HISTORY_HPP
|
||||||
|
|
||||||
#include <glibmm/i18n.h>
|
#include <glibmm/i18n.h>
|
||||||
#include <gtkmm/box.h>
|
#include <gtkmm/box.h>
|
||||||
|
|
||||||
namespace app::browser::main::tab::data::navbar
|
namespace app::browser::main::tab::page::navbar
|
||||||
{
|
{
|
||||||
namespace history
|
namespace history
|
||||||
{
|
{
|
||||||
|
|
@ -27,4 +27,4 @@ namespace app::browser::main::tab::data::navbar
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // APP_BROWSER_MAIN_TAB_DATA_NAVBAR_HISTORY_HPP
|
#endif // APP_BROWSER_MAIN_TAB_PAGE_NAVBAR_HISTORY_HPP
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
#include "back.hpp"
|
#include "back.hpp"
|
||||||
|
|
||||||
using namespace app::browser::main::tab::data::navbar::history;
|
using namespace app::browser::main::tab::page::navbar::history;
|
||||||
|
|
||||||
Back::Back()
|
Back::Back()
|
||||||
{
|
{
|
||||||
19
src/app/browser/main/tab/page/navbar/history/back.hpp
Normal file
19
src/app/browser/main/tab/page/navbar/history/back.hpp
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
#ifndef APP_BROWSER_MAIN_TAB_PAGE_NAVBAR_HISTORY_BACK_HPP
|
||||||
|
#define APP_BROWSER_MAIN_TAB_PAGE_NAVBAR_HISTORY_BACK_HPP
|
||||||
|
|
||||||
|
#include <glibmm/i18n.h>
|
||||||
|
#include <gtkmm/button.h>
|
||||||
|
|
||||||
|
namespace app::browser::main::tab::page::navbar::history
|
||||||
|
{
|
||||||
|
class Back : public Gtk::Button
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
Back();
|
||||||
|
|
||||||
|
~Back();
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif // APP_BROWSER_MAIN_TAB_PAGE_NAVBAR_HISTORY_BACK_HPP
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
#include "forward.hpp"
|
#include "forward.hpp"
|
||||||
|
|
||||||
using namespace app::browser::main::tab::data::navbar::history;
|
using namespace app::browser::main::tab::page::navbar::history;
|
||||||
|
|
||||||
Forward::Forward()
|
Forward::Forward()
|
||||||
{
|
{
|
||||||
19
src/app/browser/main/tab/page/navbar/history/forward.hpp
Normal file
19
src/app/browser/main/tab/page/navbar/history/forward.hpp
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
#ifndef APP_BROWSER_MAIN_TAB_PAGE_NAVBAR_HISTORY_FORWARD_HPP
|
||||||
|
#define APP_BROWSER_MAIN_TAB_PAGE_NAVBAR_HISTORY_FORWARD_HPP
|
||||||
|
|
||||||
|
#include <glibmm/i18n.h>
|
||||||
|
#include <gtkmm/button.h>
|
||||||
|
|
||||||
|
namespace app::browser::main::tab::page::navbar::history
|
||||||
|
{
|
||||||
|
class Forward : public Gtk::Button
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
Forward();
|
||||||
|
|
||||||
|
~Forward();
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif // APP_BROWSER_MAIN_TAB_PAGE_NAVBAR_HISTORY_FORWARD_HPP
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
#include "request.hpp"
|
#include "request.hpp"
|
||||||
|
|
||||||
using namespace app::browser::main::tab::data::navbar;
|
using namespace app::browser::main::tab::page::navbar;
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
// Construct
|
// Construct
|
||||||
|
|
@ -33,7 +33,7 @@ Request::Request()
|
||||||
parse();
|
parse();
|
||||||
|
|
||||||
activate_action(
|
activate_action(
|
||||||
"data.update"
|
"page.update"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#ifndef APP_BROWSER_MAIN_TAB_DATA_NAVBAR_REQUEST_HPP
|
#ifndef APP_BROWSER_MAIN_TAB_PAGE_NAVBAR_REQUEST_HPP
|
||||||
#define APP_BROWSER_MAIN_TAB_DATA_NAVBAR_REQUEST_HPP
|
#define APP_BROWSER_MAIN_TAB_PAGE_NAVBAR_REQUEST_HPP
|
||||||
|
|
||||||
#include <glibmm/i18n.h>
|
#include <glibmm/i18n.h>
|
||||||
#include <gtkmm/entry.h>
|
#include <gtkmm/entry.h>
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
#include <regex>
|
#include <regex>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
namespace app::browser::main::tab::data::navbar
|
namespace app::browser::main::tab::page::navbar
|
||||||
{
|
{
|
||||||
class Request : public Gtk::Entry
|
class Request : public Gtk::Entry
|
||||||
{
|
{
|
||||||
|
|
@ -36,4 +36,4 @@ namespace app::browser::main::tab::data::navbar
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // APP_BROWSER_MAIN_TAB_DATA_NAVBAR_REQUEST_HPP
|
#endif // APP_BROWSER_MAIN_TAB_PAGE_NAVBAR_REQUEST_HPP
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
#include "update.hpp"
|
#include "update.hpp"
|
||||||
|
|
||||||
using namespace app::browser::main::tab::data::navbar;
|
using namespace app::browser::main::tab::page::navbar;
|
||||||
|
|
||||||
Update::Update()
|
Update::Update()
|
||||||
{
|
{
|
||||||
set_action_name(
|
set_action_name(
|
||||||
"data.update"
|
"page.update"
|
||||||
);
|
);
|
||||||
|
|
||||||
set_icon_name(
|
set_icon_name(
|
||||||
19
src/app/browser/main/tab/page/navbar/update.hpp
Normal file
19
src/app/browser/main/tab/page/navbar/update.hpp
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
#ifndef APP_BROWSER_MAIN_TAB_PAGE_NAVBAR_UPDATE_HPP
|
||||||
|
#define APP_BROWSER_MAIN_TAB_PAGE_NAVBAR_UPDATE_HPP
|
||||||
|
|
||||||
|
#include <glibmm/i18n.h>
|
||||||
|
#include <gtkmm/button.h>
|
||||||
|
|
||||||
|
namespace app::browser::main::tab::page::navbar
|
||||||
|
{
|
||||||
|
class Update : public Gtk::Button
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
Update();
|
||||||
|
|
||||||
|
~Update();
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif // APP_BROWSER_MAIN_TAB_PAGE_NAVBAR_UPDATE_HPP
|
||||||
Loading…
Add table
Add a link
Reference in a new issue