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

@ -5,8 +5,8 @@
using namespace app;
Browser::Browser(
SQLite::Database & db,
const Glib::RefPtr<Gtk::Application> & APP
//const std::shared_ptr<lib::Database> & db
) {
// Init window actions
const auto ACTION__REFRESH = add_action(
@ -177,6 +177,7 @@ Browser::Browser(
);
browserMain = Gtk::make_managed<browser::Main>(
db,
ACTION__REFRESH,
ACTION__MAIN_TAB_CLOSE_ACTIVE,
ACTION__MAIN_TAB_CLOSE_ALL,