-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProjectCtlWin.hpp
109 lines (72 loc) · 2.21 KB
/
ProjectCtlWin.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
#ifndef WAYROUND_I2P_20241223_224139_491957
#define WAYROUND_I2P_20241223_224139_491957
#include <filesystem>
#include <iostream>
#include <memory>
#include <tuple>
#include <gtkmm.h>
#include "ProjectMenu.hpp"
#include "forward_declarations.hpp"
#include <wayround_i2p/ccutils/signal/signal_sigc_compat.hpp>
namespace wayround_i2p::ccedit
{
class ProjectCtlWin
{
public:
static ProjectCtlWin_shared create(ProjectCtl_shared project_ctl);
~ProjectCtlWin();
protected:
ProjectCtlWin(ProjectCtl_shared project_ctl);
public:
void updateTitle();
void show();
void destroy();
private:
RunOnce destroyer;
ProjectCtlWin_shared own_ptr;
ProjectCtl_shared project_ctl;
Controller_shared controller;
ProjectMenuGenerator wmg;
Gtk::Window win;
Gtk::Box main_box;
Gtk::Box b_box;
Gtk::MenuButton show_windows_btn;
Gtk::Button rotate_paned_btn;
Gtk::Paned ws_ed_paned;
// ------- work subjects -------
Gtk::Box ws_main_box;
Gtk::Box ws_tools_box;
Gtk::ScrolledWindow ws_view_sw;
Gtk::ColumnView ws_view;
Glib::RefPtr<Gtk::MultiSelection> ws_view_sel;
void ws_add_columns();
void ws_table_cell_setup(
const Glib::RefPtr<Gtk::ListItem> &list_item,
Gtk::Align halign
);
void ws_table_subject_cell_bind(
const Glib::RefPtr<Gtk::ListItem> &list_item
);
// ------- editors -------
Gtk::Box eds_main_box;
Gtk::Box eds_tools_box;
Gtk::ScrolledWindow eds_view_sw;
Gtk::ColumnView eds_view;
Glib::RefPtr<Gtk::MultiSelection> eds_view_sel;
void eds_add_columns();
void eds_table_cell_setup(
const Glib::RefPtr<Gtk::ListItem> &list_item,
Gtk::Align halign
);
void eds_table_subject_cell_bind(
const Glib::RefPtr<Gtk::ListItem> &list_item
);
// -------------------------
void on_rotate_paned_btn();
void on_hide_sig();
void on_destroy_sig();
bool on_signal_close_request();
wayround_i2p::ccutils::signal::SlotSigCCompat<void()> on_project_renamed_slot;
};
} // namespace wayround_i2p::ccedit
#endif