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