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