Browse Source

remove extra access level definition

CPP-GTK4
yggverse 4 months ago
parent
commit
09542c5134
  1. 6
      src/app/browser.hpp
  2. 6
      src/app/browser/header.hpp
  3. 10
      src/app/browser/header/menu.hpp
  4. 4
      src/app/browser/main.hpp
  5. 10
      src/app/browser/main/tab.hpp
  6. 14
      src/app/browser/main/tab/label.hpp
  7. 14
      src/app/browser/main/tab/page.hpp
  8. 28
      src/app/browser/main/tab/page/navbar.hpp
  9. 6
      src/app/browser/main/tab/page/navbar/history.hpp
  10. 14
      src/app/browser/main/tab/page/navbar/request.hpp
  11. 8
      src/lib/database.hpp
  12. 8
      src/lib/database/session.hpp

6
src/app/browser.hpp

@ -19,10 +19,8 @@ namespace app
class Browser : public Gtk::ApplicationWindow class Browser : public Gtk::ApplicationWindow
{ {
private: app::browser::Header * header;
app::browser::Main * main;
app::browser::Header * header;
app::browser::Main * main;
public: public:

6
src/app/browser/header.hpp

@ -13,10 +13,8 @@ namespace app::browser
class Header : public Gtk::HeaderBar class Header : public Gtk::HeaderBar
{ {
private: app::browser::header::Menu * menu;
app::browser::header::Tab * tab;
app::browser::header::Menu * menu;
app::browser::header::Tab * tab;
public: public:

10
src/app/browser/header/menu.hpp

@ -9,12 +9,10 @@ namespace app::browser::header
{ {
class Menu : public Gtk::MenuButton class Menu : public Gtk::MenuButton
{ {
private: Glib::RefPtr<Gio::Menu> tab,
tab_close,
Glib::RefPtr<Gio::Menu> tab, tool,
tab_close, main;
tool,
main;
public: public:

4
src/app/browser/main.hpp

@ -12,9 +12,7 @@ namespace app::browser
class Main : public Gtk::Box class Main : public Gtk::Box
{ {
private: app::browser::main::Tab * tab;
app::browser::main::Tab * tab;
public: public:

10
src/app/browser/main/tab.hpp

@ -9,12 +9,10 @@ namespace app::browser::main
{ {
class Tab : public Gtk::Notebook class Tab : public Gtk::Notebook
{ {
private: void on_switch(
Gtk::Widget * page,
void on_switch( guint page_num
Gtk::Widget * page, );
guint page_num
);
public: public:

14
src/app/browser/main/tab/label.hpp

@ -10,15 +10,13 @@ namespace app::browser::main::tab
{ {
class Label : public Gtk::Label class Label : public Gtk::Label
{ {
private: Glib::RefPtr<Gtk::GestureClick> controller;
Glib::RefPtr<Gtk::GestureClick> controller; void on_click(
int n,
void on_click( double x,
int n, double y
double x, );
double y
);
public: public:

14
src/app/browser/main/tab/page.hpp

@ -22,16 +22,14 @@ namespace app::browser::main::tab
class Page : public Gtk::Box class Page : public Gtk::Box
{ {
private: char buffer[0xfffff];
char buffer[0xfffff]; Glib::RefPtr<Gio::SimpleActionGroup> action_group;
Glib::RefPtr<Gio::SocketClient> socket_client;
Glib::RefPtr<Gio::SocketConnection> socket_connection;
Glib::RefPtr<Gio::SimpleActionGroup> action_group; page::Navbar * navbar;
Glib::RefPtr<Gio::SocketClient> socket_client; page::Content * content;
Glib::RefPtr<Gio::SocketConnection> socket_connection;
page::Navbar * navbar;
page::Content * content;
public: public:

28
src/app/browser/main/tab/page/navbar.hpp

@ -20,21 +20,19 @@ namespace app::browser::main::tab::page
class Navbar : public Gtk::Box class Navbar : public Gtk::Box
{ {
private: // Actions
Glib::RefPtr<Gio::SimpleActionGroup> action_group;
// Actions
Glib::RefPtr<Gio::SimpleActionGroup> action_group; // Components
navbar::Base * base;
// Components navbar::Bookmark * bookmark;
navbar::Base * base; navbar::History * history;
navbar::Bookmark * bookmark; navbar::Request * request;
navbar::History * history; navbar::Update * update;
navbar::Request * request;
navbar::Update * update; // Defaults
const int SPACING = 8;
// Defaults const int MARGIN = 8;
const int SPACING = 8;
const int MARGIN = 8;
public: public:

6
src/app/browser/main/tab/page/navbar/history.hpp

@ -14,10 +14,8 @@ namespace app::browser::main::tab::page::navbar
class History : public Gtk::Box class History : public Gtk::Box
{ {
private: history::Back * back;
history::Forward * forward;
history::Back * back;
history::Forward * forward;
public: public:

14
src/app/browser/main/tab/page/navbar/request.hpp

@ -11,15 +11,13 @@ namespace app::browser::main::tab::page::navbar
{ {
class Request : public Gtk::Entry class Request : public Gtk::Entry
{ {
private: std::string scheme,
host,
port,
path,
query;
std::string scheme, void parse();
host,
port,
path,
query;
void parse();
public: public:

8
src/lib/database.hpp

@ -12,13 +12,11 @@ namespace lib
class Database class Database
{ {
private: int status;
int status; char * error;
char * error; sqlite3 * connection;
sqlite3 * connection;
public: public:

8
src/lib/database/session.hpp

@ -7,13 +7,11 @@ namespace lib::database
{ {
class Session class Session
{ {
private: int status;
int status; char * error;
char * error; sqlite3 * connection;
sqlite3 * connection;
public: public:

Loading…
Cancel
Save