Debian Codegraph @

src/dialogue.cpp

raw symbols SCIP
1 /* dialogue.cpp
2 *
3 * This file is part of PRAELECTOR
4 *
5 * PRAELECTOR is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * PRAELECTOR is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with PRAELECTOR; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 *
19 */
20
21 #include <QFont>
22 #include <dialogue.h>cxx . . $ `<file>/src/dialogue.h`/
23 #include <QDebug>
24
25
26 Dialoguecxx . . $ Dialogue#::Dialoguecxx . . $ Dialogue#Dialogue(49f6e7a06ebc5aa8). ()
27 {
28 resizecxx . . $ QWidget#resize(3e454b8ccf442868).(400, 300);
29 QFontcxx . . $ QFont# fontcxx . . $ QFont#QFont(49f6e7a06ebc5aa8).;
30 font.setPointSizecxx . . $ QFont#setPointSize(d4f767463ce0a6b3).(14);
31 setFontcxx . . $ QWidget#setFont(d0a4bd0c8524b912).(font);
32 verticalLayoutcxx . . $ Dialogue#verticalLayout. = new QVBoxLayoutcxx . . $ QVBoxLayout#(this);
33 verticalLayoutcxx . . $ Dialogue#verticalLayout.->setSpacingcxx . . $ QBoxLayout#setSpacing(d4f767463ce0a6b3).(6);
34 verticalLayoutcxx . . $ Dialogue#verticalLayout.->setContentsMarginscxx . . $ QLayout#setContentsMargins(748afa4755bc9595).(11, 11, 11, 11);
35
36 labelcxx . . $ Dialogue#label. = new QLabelcxx . . $ QLabel#(this);
37 verticalLayoutcxx . . $ Dialogue#verticalLayout.->addWidgetcxx . . $ QBoxLayout#addWidget(d39963fa34d6acb).(labelcxx . . $ Dialogue#label.);
38
39 plainTextEditcxx . . $ Dialogue#plainTextEdit. = new QPlainTextEditcxx . . $ QPlainTextEdit#(this);
40 plainTextEditcxx . . $ Dialogue#plainTextEdit.->setTabChangesFocuscxx . . $ QPlainTextEdit#setTabChangesFocus(b45ddcbc8423892c).(true);
41 plainTextEditcxx . . $ Dialogue#plainTextEdit.->installEventFiltercxx . . $ QObject#installEventFilter(749de1b6ae65bddd). (this);
42 verticalLayoutcxx . . $ Dialogue#verticalLayout.->addWidgetcxx . . $ QBoxLayout#addWidget(d39963fa34d6acb).(plainTextEditcxx . . $ Dialogue#plainTextEdit.);
43
44 buttonBoxcxx . . $ Dialogue#buttonBox. = new QDialogButtonBoxcxx . . $ QDialogButtonBox#(this);
45 buttonBoxcxx . . $ Dialogue#buttonBox.->setStandardButtonscxx . . $ QDialogButtonBox#setStandardButtons(6c0316ba1e8a2a88).(QDialogButtonBoxcxx . . $ QDialogButtonBox#::Cancelcxx . . $ QDialogButtonBox#Cancel.|cxx . . $ `operator|`(f583fb2bde9bc9ea).QDialogButtonBoxcxx . . $ QDialogButtonBox#::Okcxx . . $ QDialogButtonBox#Ok.);
46 verticalLayoutcxx . . $ Dialogue#verticalLayout.->addWidgetcxx . . $ QBoxLayout#addWidget(d39963fa34d6acb).(buttonBoxcxx . . $ Dialogue#buttonBox.);
47
48 setModalcxx . . $ QDialog#setModal(b45ddcbc8423892c). (true);
49
50 connectcxx . . $ QObject#connect(158df1d9a01a3410). (buttonBoxcxx . . $ Dialogue#buttonBox.,SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(accepted()),this,SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(accept()));
51 connectcxx . . $ QObject#connect(158df1d9a01a3410). (buttonBoxcxx . . $ Dialogue#buttonBox.,SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(rejected()),this,SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(reject()));
52 }
53
54 bool Dialoguecxx . . $ Dialogue#::eventFiltercxx . . $ Dialogue#eventFilter(978aa4af1d030efa).(QObjectcxx . . $ QObject# *obj, QEventcxx . . $ QEvent# *event)
55 {
56 if (obj == plainTextEditcxx . . $ Dialogue#plainTextEdit.)
57 {
58 if (event->typecxx . . $ QEvent#type(916a8de57f4d422b).() == QEventcxx . . $ QEvent#::KeyPresscxx . . $ QEvent#KeyPress.) {
59 QKeyEventcxx . . $ QKeyEvent# *keyEvent = static_cast<QKeyEventcxx . . $ QKeyEvent#*>(event);
60 if (keyEvent->keycxx . . $ QKeyEvent#key(455f465bc33b4cdf).() == Qtcxx . . $ Qt/::Key_Entercxx . . $ Qt/Key_Enter. || keyEvent->keycxx . . $ QKeyEvent#key(455f465bc33b4cdf).() == Qtcxx . . $ Qt/::Key_Returncxx . . $ Qt/Key_Return.)
61 {
62 acceptcxx . . $ QDialog#accept(49f6e7a06ebc5aa8).();
63 return true;
64 }
65 } else {
66 return false;
67 }
68 }
69 return QDialogcxx . . $ QDialog#::eventFiltercxx . . $ QDialog#eventFilter(978aa4af1d030efa).(obj, event);
70 }
71
72 QStringcxx . . $ QString# Dialoguecxx . . $ Dialogue#::getTextcxx . . $ Dialogue#getText(4365c3963150523e). ()
73 {
74 return plainTextEditcxx . . $ Dialogue#plainTextEdit.->toPlainTextcxx . . $ QPlainTextEdit#toPlainText(6ef7b6c27b00b43d). ();
75 }
76
77 void Dialoguecxx . . $ Dialogue#::setLabelcxx . . $ Dialogue#setLabel(7df51288a9ebd664). (QStringcxx . . $ QString# l)
78 {
79 labelcxx . . $ Dialogue#label.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6). (l);
80 }
81
82 void Dialoguecxx . . $ Dialogue#::setTextcxx . . $ Dialogue#setText(7df51288a9ebd664). (QStringcxx . . $ QString# t)
83 {
84 plainTextEditcxx . . $ Dialogue#plainTextEdit.->setPlainTextcxx . . $ QPlainTextEdit#setPlainText(3520e46b33348bf6). (t);
85 plainTextEditcxx . . $ Dialogue#plainTextEdit.->selectAllcxx . . $ QPlainTextEdit#selectAll(49f6e7a06ebc5aa8). ();
86 }
87