~mc.../inkscape/inkscape

« back to all changes in this revision

Viewing changes to src/jabber_whiteboard/invitation-confirm-dialog.cpp

  • 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 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
 */
 
12
 
 
13
#include <glibmm/i18n.h>
 
14
 
 
15
#include "invitation-confirm-dialog.h"
 
16
#include "session-file-selector.h"
 
17
 
 
18
namespace Inkscape {
 
19
 
 
20
namespace Whiteboard {
 
21
 
 
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
}
 
29
 
 
30
InvitationConfirmDialog::~InvitationConfirmDialog()
 
31
{
 
32
 
 
33
}
 
34
 
 
35
Glib::ustring const&
 
36
InvitationConfirmDialog::getSessionFilePath()
 
37
{
 
38
        return this->_sfsbox.getFilename();
 
39
}
 
40
 
 
41
bool
 
42
InvitationConfirmDialog::useSessionFile()
 
43
{
 
44
        return this->_sfsbox.isSelected();
 
45
}
 
46
 
 
47
void
 
48
InvitationConfirmDialog::_construct()
 
49
{
 
50
        this->get_vbox()->pack_end(this->_sfsbox);
 
51
}
 
52
 
 
53
}
 
54
 
 
55
}
 
56
 
 
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 :