-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFileExplorerMakeFileDir.hpp
More file actions
72 lines (50 loc) · 1.31 KB
/
FileExplorerMakeFileDir.hpp
File metadata and controls
72 lines (50 loc) · 1.31 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
66
67
68
69
70
71
72
#ifndef WAYROUND_I2P_20241223_224139_473954
#define WAYROUND_I2P_20241223_224139_473954
#include <filesystem>
#include <iostream>
#include <gtkmm.h>
#include "forward_declarations.hpp"
#include <wayround_i2p/ccutils/signal/signal_sigc_compat.hpp>
#include "utils.hpp"
namespace wayround_i2p::ccedit
{
class FileExplorerMakeFileDir
{
public:
static FileExplorerMakeFileDir_shared create(
FileExplorer_shared expl,
std::filesystem::path subdir
);
~FileExplorerMakeFileDir();
void show();
void destroy();
protected:
FileExplorerMakeFileDir(
FileExplorer_shared expl,
std::filesystem::path subdir
);
private:
FileExplorerMakeFileDir_shared own_ptr;
RunOnce destroyer;
FileExplorer_weak expl;
std::filesystem::path subdir;
Gtk::Window win;
Gtk::Box main_box;
Gtk::Grid main_grid;
Gtk::Label placement_lbl;
Gtk::Entry placement_ent;
Gtk::Label type_name_lbl;
Gtk::Entry name_ent;
Gtk::Box btn_box;
Gtk::Button mk_dir_btn;
Gtk::Button mk_file_btn;
Gtk::Button cancel_btn;
void on_mk_dir_btn();
void on_mk_file_btn();
void on_cancel_btn();
void on_destroy_sig();
bool on_signal_close_request();
int common_func(bool file);
};
} // namespace wayround_i2p::ccedit
#endif