-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProjectSelectorForFile.hpp
More file actions
65 lines (47 loc) · 1.21 KB
/
ProjectSelectorForFile.hpp
File metadata and controls
65 lines (47 loc) · 1.21 KB
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
#ifndef WAYROUND_I2P_20241223_224139_474947
#define WAYROUND_I2P_20241223_224139_474947
/*
TODO:
this functionality is on halt. ccedit should first learn
to work as server and accept new calls to it's executable and work with
d-bus and other desktop integration tools.
*/
#include <deque>
#include <iostream>
#include <string>
#include <gtkmm.h>
#include "forward_declarations.hpp"
#include "utils.hpp"
namespace wayround_i2p::ccedit
{
class ProjectSelectorForFile
{
public:
static ProjectSelectorForFile_shared create(
std::deque<std::string> names,
std::filesystem::path pth
);
protected:
ProjectSelectorForFile(
std::deque<std::string> names,
std::filesystem::path pth
);
public:
~ProjectSelectorForFile();
void show();
void destroy();
private:
RunOnce destroyer;
ProjectSelectorForFile_shared own_ptr;
std::deque<std::string> names;
std::filesystem::path pth;
Gtk::ApplicationWindow win;
Gtk::Box box_for_radios;
Gtk::Box bb;
Gtk::Button open_btn;
Gtk::Button cancel_btn;
void on_destroy_sig();
bool on_signal_close_request();
};
} // namespace wayround_i2p::ccedit
#endif