Horizon
preview_base.hpp
1 #pragma once
2 #include <gtkmm.h>
3 #include <set>
4 #include "util/uuid.hpp"
5 #include "common/common.hpp"
6 
7 namespace horizon {
8 class PreviewBase {
9 public:
10  typedef sigc::signal<void, ObjectType, UUID> type_signal_goto;
11  type_signal_goto signal_goto()
12  {
13  return s_signal_goto;
14  }
15 
16 protected:
17  Gtk::Button *create_goto_button(ObjectType type, std::function<UUID(void)> fn);
18  std::set<Gtk::Button *> goto_buttons;
19  type_signal_goto s_signal_goto;
20 };
21 } // namespace horizon
This class encapsulates a UUID and allows it to be uses as a value type.
Definition: uuid.hpp:16
Definition: preview_base.hpp:8
Definition: block.cpp:7