Horizon
map_net_tie.hpp
1 #pragma once
2 #include <gtkmm.h>
3 #include <set>
4 #include "common/common.hpp"
5 #include "util/uuid.hpp"
6 namespace horizon {
7 
8 
9 class MapNetTieDialog : public Gtk::Dialog {
10 public:
11  MapNetTieDialog(Gtk::Window *parent, const std::set<class NetTie *> &net_ties);
12  UUID selected_uuid;
13  bool selection_valid = false;
14  // virtual ~MainWindow();
15 private:
16  class ListColumns : public Gtk::TreeModelColumnRecord {
17  public:
18  ListColumns()
19  {
20  Gtk::TreeModelColumnRecord::add(net_primary);
21  Gtk::TreeModelColumnRecord::add(net_secondary);
22  Gtk::TreeModelColumnRecord::add(uuid);
23  }
24  Gtk::TreeModelColumn<Glib::ustring> net_primary;
25  Gtk::TreeModelColumn<Glib::ustring> net_secondary;
26  Gtk::TreeModelColumn<UUID> uuid;
27  };
28  ListColumns list_columns;
29 
30  Gtk::TreeView *view;
31  Glib::RefPtr<Gtk::ListStore> store;
32 
33  void ok_clicked();
34  void row_activated(const Gtk::TreeModel::Path &path, Gtk::TreeViewColumn *column);
35 };
36 } // namespace horizon
Definition: map_net_tie.hpp:9
This class encapsulates a UUID and allows it to be uses as a value type.
Definition: uuid.hpp:16