Browse Source

make default const static

CPP-GTK4
yggverse 2 months ago
parent
commit
0a7c3a6055
  1. 6
      src/app/browser.hpp
  2. 2
      src/app/browser/header.hpp
  3. 2
      src/app/browser/main.hpp
  4. 4
      src/app/browser/main/tab.hpp
  5. 2
      src/app/browser/main/tab/label.hpp
  6. 4
      src/app/browser/main/tab/page/content/text/gemini/reader.hpp
  7. 4
      src/app/browser/main/tab/page/navigation.hpp
  8. 6
      src/app/browser/main/tab/page/navigation/request.hpp

6
src/app/browser.hpp

@ -71,9 +71,9 @@ namespace app
app::browser::Main * browserMain; app::browser::Main * browserMain;
// Defaults // Defaults
const int WIDTH = 640; static const int WIDTH = 640;
const int HEIGHT = 480; static const int HEIGHT = 480;
const bool IS_FULLSCREEN = false; static const bool IS_FULLSCREEN = false;
/* /*
* Browser class API * Browser class API

2
src/app/browser/header.hpp

@ -24,7 +24,7 @@ namespace app::browser
header::Tab * headerTab; header::Tab * headerTab;
// Defaults // Defaults
const bool SHOW_TITLE_BUTTONS = true; static const bool SHOW_TITLE_BUTTONS = true;
public: public:

2
src/app/browser/main.hpp

@ -66,7 +66,7 @@ namespace app::browser
main::Tab * mainTab; main::Tab * mainTab;
// Defaults // Defaults
const bool HOMOGENEOUS = true; static const bool HOMOGENEOUS = true;
/* /*
* Main class API * Main class API

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

@ -75,8 +75,8 @@ namespace app::browser::main
action__update; action__update;
// Defaults // Defaults
const bool REORDERABLE = true; static const bool REORDERABLE = true;
const bool SCROLLABLE = true; static const bool SCROLLABLE = true;
/* /*
* Tab class API * Tab class API

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

@ -64,7 +64,7 @@ namespace app::browser::main::tab
Glib::RefPtr<Gio::SimpleAction> action__tab_close; Glib::RefPtr<Gio::SimpleAction> action__tab_close;
// Defaults // Defaults
int WIDTH_CHARS = 16; static const int WIDTH_CHARS = 16;
/* /*
* Class API * Class API

4
src/app/browser/main/tab/page/content/text/gemini/reader.hpp

@ -72,8 +72,8 @@ namespace app::browser::main::tab::page::content::text::gemini
Glib::RefPtr<Gio::SimpleAction> action__open_link_variant; Glib::RefPtr<Gio::SimpleAction> action__open_link_variant;
// Defaults // Defaults
const int MARGIN_START = 8; static const int MARGIN_START = 8;
const int MARGIN_END = 8; static const int MARGIN_END = 8;
/* /*
* Reader class API * Reader class API

4
src/app/browser/main/tab/page/navigation.hpp

@ -72,8 +72,8 @@ namespace app::browser::main::tab::page
navigation::Request * navigationRequest; navigation::Request * navigationRequest;
// Defaults // Defaults
const int SPACING = 8; static const int SPACING = 8;
const int MARGIN = 8; static const int MARGIN = 8;
/* /*
* Class API * Class API

6
src/app/browser/main/tab/page/navigation/request.hpp

@ -69,9 +69,9 @@ namespace app::browser::main::tab::page::navigation
sigc::connection progress_connection; sigc::connection progress_connection;
// Defaults // Defaults
const bool HEXPAND = true; static const bool HEXPAND = true;
const double PROGRESS_PULSE_STEP = .1; static const int PROGRESS_ANIMATION_TIME = 10;
const int PROGRESS_ANIMATION_TIME = 10; const double PROGRESS_PULSE_STEP = .1; // @TODO static?
/* /*
* Class API * Class API

Loading…
Cancel
Save