Code

Removed use of union in paint type/struct
[inkscape.git] / src / jabber_whiteboard / invitation-confirm-dialog.cpp
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 #include <gtkmm.h>
14 #include <glibmm.h>
15 #include <glibmm/i18n.h>
17 #include "invitation-confirm-dialog.h"
18 #include "session-file-selector.h"
20 namespace Inkscape {
22 namespace Whiteboard {
24 InvitationConfirmDialog::InvitationConfirmDialog(Glib::ustring const& msg) :
25         Gtk::MessageDialog(msg, true, Gtk::MESSAGE_QUESTION, Gtk::BUTTONS_NONE, false),
26         _usesessionfile(_("_Write session file:"), true)
27 {
28         this->_construct();
29         this->get_vbox()->show_all_children();
30 }
32 InvitationConfirmDialog::~InvitationConfirmDialog()
33 {
35 }
37 Glib::ustring const&
38 InvitationConfirmDialog::getSessionFilePath()
39 {
40         return this->_sfsbox.getFilename();
41 }
43 bool
44 InvitationConfirmDialog::useSessionFile()
45 {
46         return this->_sfsbox.isSelected();
47 }
49 void
50 InvitationConfirmDialog::_construct()
51 {
52         this->get_vbox()->pack_end(this->_sfsbox);
53 }
55 }
57 }
59 /*
60   Local Variables:
61   mode:c++
62   c-file-style:"stroustrup"
63   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
64   indent-tabs-mode:nil
65   fill-column:99
66   End:
67 */
68 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :