]> git.sven.stormbind.net Git - sven/vym.git/blob - extrainfodialog.cpp
Import Upstream version 2.6.11
[sven/vym.git] / extrainfodialog.cpp
1 #include "extrainfodialog.h"
2
3
4 ExtraInfoDialog::ExtraInfoDialog(QWidget *parent):QDialog (parent)
5 {
6     ui.setupUi (this);
7 }
8
9
10 void ExtraInfoDialog::setMapName(const QString &s)
11 {
12     ui.mapNameLE->setText (s);
13 }
14
15 void ExtraInfoDialog::setMapTitle(const QString &s)
16 {
17     ui.mapTitleLE->setText (s);
18 }
19
20 QString ExtraInfoDialog::getMapTitle()
21 {
22     return ui.mapTitleLE->text();
23 }
24
25 void ExtraInfoDialog::setComment (const QString &s)
26 {
27     ui.commentTE->setText (s);
28 }
29
30 QString ExtraInfoDialog::getComment()
31 {
32     return ui.commentTE->toHtml();
33 }   
34
35
36 void ExtraInfoDialog::setAuthor(const QString &s)
37 {
38     ui.authorLE->setText (s);
39 }
40
41 QString ExtraInfoDialog::getAuthor()
42 {
43     return ui.authorLE->text();
44 }
45
46 void ExtraInfoDialog::setStats(const QString &s)
47 {
48     ui.statsTE->setText (s);
49 }
50
51 void ExtraInfoDialog::setReadOnly(bool b)
52 {
53     readOnly = b;
54     ui.authorLE->setReadOnly( readOnly );
55     ui.commentTE->setReadOnly( readOnly );
56     ui.mapTitleLE->setReadOnly( readOnly );
57 }
58
59 bool ExtraInfoDialog::isReadOnly()
60 {
61     return readOnly;
62 }