Horizon
Loading...
Searching...
No Matches
move_window.hpp
1#pragma once
2#include <gtkmm.h>
3#include "util/window_state_store.hpp"
4#include "common/common.hpp"
5#include "util/uuid.hpp"
6
7namespace horizon {
8class MoveWindow : public Gtk::Window {
9public:
10 friend class MoveItemRow;
11 MoveWindow(BaseObjectType *cobject, const Glib::RefPtr<Gtk::Builder> &x, class Pool &pool, ObjectType type,
12 const UUID &uu);
13 static MoveWindow *create(class Pool &pool, ObjectType type, const UUID &uu);
14 bool get_moved() const
15 {
16 return moved;
17 }
18
19private:
20 void do_move();
21 class Pool &pool;
22 Gtk::ComboBoxText *pool_combo = nullptr;
23 Gtk::ListBox *listbox = nullptr;
24 bool moved = false;
25
26
27 Glib::RefPtr<Gtk::SizeGroup> sg_item;
28 Glib::RefPtr<Gtk::SizeGroup> sg_type;
29 Glib::RefPtr<Gtk::SizeGroup> sg_src;
30 Glib::RefPtr<Gtk::SizeGroup> sg_dest;
31
32 WindowStateStore window_state_store;
33};
34} // namespace horizon
Definition move_window.cpp:19
Definition move_window.hpp:8
Stores objects (Unit, Entity, Symbol, Part, etc.) from the pool.
Definition pool.hpp:22
This class encapsulates a UUID and allows it to be uses as a value type.
Definition uuid.hpp:16
Definition window_state_store.hpp:25