~vaifrax/inkscape/bugfix170049

« back to all changes in this revision

Viewing changes to src/ui/dialog/whiteboard-connect.h

  • Committer: mental
  • Date: 2006-01-16 02:36:01 UTC
  • Revision ID: mental@users.sourceforge.net-20060116023601-wkr0h7edl5veyudq
moving trunk for module inkscape

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 * Whiteboard connection establishment dialog
 
3
 *
 
4
 * Authors:
 
5
 * David Yip <yipdw@rose-hulman.edu>
 
6
 * Jason Segal, Jonas Collaros, Stephen Montgomery, Brandi Soggs, Matthew Weinstock (original C/Gtk version)
 
7
 *
 
8
 * Copyright (c) 2004-2005 Authors
 
9
 *
 
10
 * Released under GNU GPL, read the file 'COPYING' for more information
 
11
 */
 
12
 
 
13
#ifndef __WHITEBOARD_CONNECT_DIALOG_H__
 
14
#define __WHITEBOARD_CONNECT_DIALOG_H__
 
15
 
 
16
#include "verbs.h"
 
17
#include "dialog.h"
 
18
 
 
19
struct SPDesktop;
 
20
 
 
21
namespace Inkscape {
 
22
 
 
23
namespace Whiteboard {
 
24
 
 
25
class SessionManager;
 
26
 
 
27
}
 
28
 
 
29
namespace UI {
 
30
 
 
31
namespace Dialog {
 
32
 
 
33
class WhiteboardConnectDialog : public Dialog {
 
34
public:
 
35
        WhiteboardConnectDialog() : Dialog("dialogs.whiteboard_connect", SP_VERB_DIALOG_WHITEBOARD_CONNECT)
 
36
        {
 
37
 
 
38
        }
 
39
 
 
40
        static WhiteboardConnectDialog* create();
 
41
 
 
42
        virtual ~WhiteboardConnectDialog()
 
43
        {
 
44
 
 
45
        }
 
46
};
 
47
 
 
48
class WhiteboardConnectDialogImpl : public WhiteboardConnectDialog {
 
49
public:
 
50
        WhiteboardConnectDialogImpl();
 
51
        ~WhiteboardConnectDialogImpl();
 
52
        void present();
 
53
        void setSessionManager();
 
54
 
 
55
private:
 
56
        // GTK+ widgets
 
57
        Gtk::Table _layout;
 
58
        Gtk::HBox _buttons;
 
59
 
 
60
        Gtk::Entry _server;
 
61
        Gtk::Entry _username;
 
62
        Gtk::Entry _password;
 
63
        Gtk::Entry _port;
 
64
 
 
65
        Gtk::Label _labels[4];  
 
66
 
 
67
        Gtk::CheckButton _usessl;
 
68
 
 
69
        Gtk::Button _ok, _cancel;
 
70
 
 
71
        // Construction and callbacks
 
72
        void _construct();
 
73
        void _respCallback(int resp);
 
74
        void _useSSLClickedCallback();
 
75
 
 
76
        // SessionManager and SPDesktop pointers
 
77
        ::SPDesktop* _desktop;
 
78
        Whiteboard::SessionManager* _sm;
 
79
};
 
80
 
 
81
 
 
82
}
 
83
 
 
84
}
 
85
 
 
86
}
 
87
 
 
88
#endif