1 /**
2 * Whiteboard invitation confirmation dialog --
3 * quick subclass of Gtk::MessageDialog
4 *
5 * Authors:
6 * David Yip <yipdw@rose-hulman.edu>
7 *
8 * Copyright (c) 2005 Authors
9 *
10 * Released under GNU GPL, read the file 'COPYING' for more information
11 */
13 #ifndef __WHITEBOARD_INVITATION_CONFIRM_DIALOG_H__
14 #define __WHITEBOARD_INVITATION_CONFIRM_DIALOG_H__
16 #include <gtkmm.h>
17 #include <glibmm.h>
19 #include "session-file-selector.h"
21 namespace Inkscape {
23 namespace Whiteboard {
25 class InvitationConfirmDialog : public Gtk::MessageDialog {
26 public:
27 InvitationConfirmDialog(Glib::ustring const& msg);
28 virtual ~InvitationConfirmDialog();
30 Glib::ustring const& getSessionFilePath();
31 bool useSessionFile();
33 private:
34 static unsigned int const SELECT_FILE = 0;
36 void _respCallback(int resp);
38 Gtk::HBox _filesel;
40 SessionFileSelectorBox _sfsbox;
41 Gtk::CheckButton _usesessionfile;
42 Gtk::Entry _sessionfile;
43 Gtk::Button _getfilepath;
45 void _construct();
46 Glib::ustring _selectedpath;
48 // noncopyable, nonassignable
49 InvitationConfirmDialog(InvitationConfirmDialog const&);
50 InvitationConfirmDialog& operator=(InvitationConfirmDialog const&);
51 };
53 }
55 }
56 #endif
58 /*
59 Local Variables:
60 mode:c++
61 c-file-style:"stroustrup"
62 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
63 indent-tabs-mode:nil
64 fill-column:99
65 End:
66 */
67 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :