Horizon
close_utils.hpp
1 #pragma once
2 #include <gtkmm.h>
3 #include "util/uuid.hpp"
4 #include <set>
5 
6 namespace horizon {
7 class ConfirmCloseDialog : public Gtk::MessageDialog {
8 public:
9  ConfirmCloseDialog(Gtk::Window *parent);
10  void set_files(std::map<std::string, std::map<UUID, std::string>> &files);
11  std::map<std::string, std::set<UUID>> get_files() const;
12 
13  enum {
14  RESPONSE_SAVE = 1,
15  RESPONSE_NO_SAVE = 2,
16  };
17 
18 private:
19  class TreeColumns : public Gtk::TreeModelColumnRecord {
20  public:
21  TreeColumns()
22  {
23  Gtk::TreeModelColumnRecord::add(name);
24  Gtk::TreeModelColumnRecord::add(display_name);
25  Gtk::TreeModelColumnRecord::add(uuid);
26  Gtk::TreeModelColumnRecord::add(save);
27  Gtk::TreeModelColumnRecord::add(inconsistent);
28  }
29  Gtk::TreeModelColumn<Glib::ustring> name;
30  Gtk::TreeModelColumn<Glib::ustring> display_name;
31  Gtk::TreeModelColumn<UUID> uuid;
32  Gtk::TreeModelColumn<bool> save;
33  Gtk::TreeModelColumn<bool> inconsistent;
34  };
35  TreeColumns tree_columns;
36 
37  Glib::RefPtr<Gtk::TreeStore> store;
38 
39  Gtk::TreeView *tv = nullptr;
40 };
41 
42 class ProcWaitDialog : public Gtk::Dialog {
43 public:
45 };
46 } // namespace horizon
horizon::ProcWaitDialog
Definition: close_utils.hpp:42
horizon::PoolProjectManagerAppWindow
Definition: pool-prj-mgr-app_win.hpp:24
horizon::ConfirmCloseDialog
Definition: close_utils.hpp:7