forked from LDLDL/FileUploader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sender_dialog.h
43 lines (36 loc) · 1.01 KB
/
sender_dialog.h
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
#include <gtkmm.h>
class SenderDialog : public Gtk::Window
{
public:
SenderDialog();
~SenderDialog() override;
void prompt_result(const Glib::ustring& title,
const Glib::ustring& content,
Gtk::MessageType msg_type = Gtk::MessageType::INFO);
private:
void activate();
void upload();
// Signal handlers:
void select_file();
void on_file_dialog_finish(const Glib::RefPtr<Gio::AsyncResult>& result,
const Glib::RefPtr<Gtk::FileDialog>& sf_dialog);
// Child widgets:
Gtk::Grid m_grid;
Gtk::Label m_hostLabel;
Gtk::Label m_portLabel;
Gtk::Label m_keyLabel;
Gtk::Label m_fileLabel;
Gtk::Label m_threadsLabel;
Gtk::Label m_sizeLabel;
Gtk::Button m_fileButton;
Gtk::Button m_uploadButton;
Gtk::Entry m_fileEntry;
Gtk::Entry m_hostEntry;
Gtk::Entry m_portEntry;
Gtk::Entry m_keyEntry;
Gtk::Entry m_threadsEntry;
Gtk::Entry m_sizeEntry;
Gtk::Separator m_separator;
Glib::RefPtr<Gtk::AlertDialog> m_pMsgDlg;
Glib::RefPtr<Gtk::FileDialog> m_pFileDlg;
};