Horizon
pool_cache_cleanup_dialog.hpp
1 #pragma once
2 #include <gtkmm.h>
3 #include "common/common.hpp"
4 #include <set>
5 
6 namespace horizon {
7 
8 class PoolCacheCleanupDialog : public Gtk::Dialog {
9 public:
10  PoolCacheCleanupDialog(Gtk::Window *parent, const std::set<std::string> &filenames_delete,
11  const std::set<std::string> &models_delete, class IPool &pool);
12 
13 private:
14  void do_cleanup();
15  void action_toggled(const Glib::ustring &path);
16 
17  class TreeColumns : public Gtk::TreeModelColumnRecord {
18  public:
19  TreeColumns()
20  {
21  Gtk::TreeModelColumnRecord::add(name);
22  Gtk::TreeModelColumnRecord::add(filename);
23  Gtk::TreeModelColumnRecord::add(type);
24  Gtk::TreeModelColumnRecord::add(remove);
25  }
26  Gtk::TreeModelColumn<Glib::ustring> name;
27  Gtk::TreeModelColumn<ObjectType> type;
28  Gtk::TreeModelColumn<std::string> filename;
29  Gtk::TreeModelColumn<bool> remove;
30  };
31  TreeColumns list_columns;
32 
33  Glib::RefPtr<Gtk::ListStore> item_store;
34 };
35 } // namespace horizon
horizon::PoolCacheCleanupDialog
Definition: pool_cache_cleanup_dialog.hpp:8
horizon::IPool
Definition: ipool.hpp:12