~centralelyon2010/inkscape/imagelinks2

« back to all changes in this revision

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

  • Committer: JazzyNico
  • Date: 2011-08-29 20:25:30 UTC
  • Revision ID: nicoduf@yahoo.fr-20110829202530-6deuoz11q90usldv
Code refactoring and merging with trunk (revision 10599).

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