Horizon
imp_frame.hpp
1 #pragma once
2 #include "imp.hpp"
3 #include "core/core_frame.hpp"
4 
5 namespace horizon {
6 class ImpFrame : public ImpBase {
7 public:
8  ImpFrame(const std::string &frame_filename, const std::string &pool_path);
9 
10 protected:
11  void construct() override;
12 
13  ActionCatalogItem::Availability get_editor_type_for_action() const override
14  {
15  return ActionCatalogItem::AVAILABLE_IN_FRAME;
16  };
17  ObjectType get_editor_type() const override
18  {
19  return ObjectType::FRAME;
20  }
21 
22 private:
23  void canvas_update() override;
24  CoreFrame core_frame;
25 
26  Gtk::Entry *name_entry = nullptr;
27 };
28 } // namespace horizon
horizon::CoreFrame
Definition: core_frame.hpp:9
horizon::ImpFrame
Definition: imp_frame.hpp:6
horizon::ImpBase
Definition: imp.hpp:36