delegate specific database operations to widgets, use SQLiteCpp wrapper

This commit is contained in:
yggverse 2024-09-08 22:13:52 +03:00
parent 35f4741a1c
commit f98b0e55e9
16 changed files with 72 additions and 147 deletions

View file

@ -4,6 +4,7 @@
using namespace app::browser;
Main::Main(
SQLite::Database & db,
const Glib::RefPtr<Gio::SimpleAction> & ACTION__REFRESH,
const Glib::RefPtr<Gio::SimpleAction> & ACTION__MAIN_TAB_CLOSE_ACTIVE,
const Glib::RefPtr<Gio::SimpleAction> & ACTION__MAIN_TAB_CLOSE_ALL,
@ -22,6 +23,7 @@ Main::Main(
// Init components
mainTab = Gtk::make_managed<main::Tab>(
db,
ACTION__REFRESH,
ACTION__MAIN_TAB_CLOSE_ACTIVE,
ACTION__MAIN_TAB_CLOSE_ALL,