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
|
/**
* Whiteboard connection establishment dialog
*
* Authors:
* David Yip <yipdw@rose-hulman.edu>
* Jason Segal, Jonas Collaros, Stephen Montgomery, Brandi Soggs, Matthew Weinstock (original C/Gtk version)
*
* Copyright (c) 2004-2005 Authors
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#ifndef __WHITEBOARD_CONNECT_DIALOG_H__
#define __WHITEBOARD_CONNECT_DIALOG_H__
#include "verbs.h"
#include "dialog.h"
struct SPDesktop;
namespace Inkscape {
namespace Whiteboard {
class SessionManager;
}
namespace UI {
namespace Dialog {
class WhiteboardConnectDialog : public Dialog {
public:
WhiteboardConnectDialog() : Dialog("dialogs.whiteboard_connect", SP_VERB_DIALOG_WHITEBOARD_CONNECT)
{
}
static WhiteboardConnectDialog* create();
virtual ~WhiteboardConnectDialog()
{
}
};
class WhiteboardConnectDialogImpl : public WhiteboardConnectDialog {
public:
WhiteboardConnectDialogImpl();
~WhiteboardConnectDialogImpl();
void present();
void setSessionManager();
private:
// GTK+ widgets
Gtk::Table _layout;
Gtk::HBox _buttons;
Gtk::Entry _server;
Gtk::Entry _username;
Gtk::Entry _password;
Gtk::Entry _port;
Gtk::Label _labels[4];
Gtk::CheckButton _usessl;
Gtk::Button _ok, _cancel;
// Construction and callbacks
void _construct();
void _respCallback(int resp);
void _useSSLClickedCallback();
// SessionManager and SPDesktop pointers
::SPDesktop* _desktop;
Whiteboard::SessionManager* _sm;
};
}
}
}
#endif
|