Horizon
sqlite_shell.hpp
1 #pragma once
2 #include <gtkmm.h>
3 #include "util/sqlite.hpp"
4 
5 namespace horizon {
6 class SQLiteShellWindow : public Gtk::Window {
7 public:
8  SQLiteShellWindow(const std::string &db_path);
9 
10 private:
11  class ListColumns : public Gtk::TreeModelColumnRecord {
12  public:
13  ListColumns()
14  {
15  Gtk::TreeModelColumnRecord::add(columns);
16  }
17  Gtk::TreeModelColumn<std::vector<std::string>> columns;
18  };
19  ListColumns list_columns;
20 
21  Glib::RefPtr<Gtk::ListStore> store;
22  Gtk::Entry *entry = nullptr;
23  Gtk::TreeView *tree_view = nullptr;
24  Gtk::Label *status_label = nullptr;
25 
26  void run();
27 
29 };
30 } // namespace horizon
Definition: sqlite_shell.hpp:6
Definition: sqlite.hpp:72