| 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 <QFile> |
| 22 | #include <QFont> |
| 23 | #include <QtCore/QCoreApplication> |
| 24 | |
| 25 | #include <aide.h>cxx . . $ `<file>/src/aide.h`/ |
| 26 | |
| 27 | #include <QDebug> |
| 28 | |
| 29 | Aidecxx . . $ Aide#::Aidecxx . . $ Aide#Aide(7df51288a9ebd664). (QStringcxx . . $ QString# nf) |
| 30 | { |
| 31 | resizecxx . . $ QWidget#resize(3e454b8ccf442868).(800, 600); |
| 32 | QFontcxx . . $ QFont# fontcxx . . $ QFont#QFont(49f6e7a06ebc5aa8).; |
| 33 | font.setPointSizecxx . . $ QFont#setPointSize(d4f767463ce0a6b3).(14); |
| 34 | setFontcxx . . $ QWidget#setFont(d0a4bd0c8524b912).(font); |
| 35 | verticalLayoutcxx . . $ Aide#verticalLayout. = new QVBoxLayoutcxx . . $ QVBoxLayout#(this); |
| 36 | verticalLayoutcxx . . $ Aide#verticalLayout.->setSpacingcxx . . $ QBoxLayout#setSpacing(d4f767463ce0a6b3).(6); |
| 37 | verticalLayoutcxx . . $ Aide#verticalLayout.->setContentsMarginscxx . . $ QLayout#setContentsMargins(748afa4755bc9595).(11, 11, 11, 11); |
| 38 | |
| 39 | textBrowsercxx . . $ Aide#textBrowser. = new QTextBrowsercxx . . $ QTextBrowser#(this); |
| 40 | textBrowsercxx . . $ Aide#textBrowser.->setTabChangesFocuscxx . . $ QTextEdit#setTabChangesFocus(b45ddcbc8423892c).(true); |
| 41 | textBrowsercxx . . $ Aide#textBrowser.->installEventFiltercxx . . $ QObject#installEventFilter(749de1b6ae65bddd). (this); |
| 42 | verticalLayoutcxx . . $ Aide#verticalLayout.->addWidgetcxx . . $ QBoxLayout#addWidget(d39963fa34d6acb).(textBrowsercxx . . $ Aide#textBrowser.); |
| 43 | |
| 44 | buttonBoxcxx . . $ Aide#buttonBox. = new QDialogButtonBoxcxx . . $ QDialogButtonBox#(this); |
| 45 | buttonBoxcxx . . $ Aide#buttonBox.->setStandardButtonscxx . . $ QDialogButtonBox#setStandardButtons(6c0316ba1e8a2a88).(QDialogButtonBoxcxx . . $ QFlags#QFlags(93d577a3e9528307).::Okcxx . . $ QDialogButtonBox#Ok.); |
| 46 | verticalLayoutcxx . . $ Aide#verticalLayout.->addWidgetcxx . . $ QBoxLayout#addWidget(d39963fa34d6acb).(buttonBoxcxx . . $ Aide#buttonBox.); |
| 47 | |
| 48 | QFilecxx . . $ QFile# fcxx . . $ QFile#QFile(3520e46b33348bf6).(nf); |
| 49 | f.opencxx . . $ QFile#open(dca164408be960c8).(QFilecxx . . $ QFlags#QFlags(93d577a3e9528307).::ReadOnlycxx . . $ QIODevice#ReadOnly.); |
| 50 | QTextStreamcxx . . $ QTextStream# fluxcxx . . $ QTextStream#QTextStream(bebe8f2dee7f9e86).(&f); |
| 51 | flux.setCodeccxx . . $ QTextStream#setCodec(85c52e162fed56f9).("UTF-8"); |
| 52 | textBrowsercxx . . $ Aide#textBrowser.->setHtmlcxx . . $ QTextEdit#setHtml(3520e46b33348bf6).(flux.readAllcxx . . $ QTextStream#readAll(4365c3963150523e).()); |
| 53 | f.closecxx . . $ QFileDevice#close(49f6e7a06ebc5aa8).(); |
| 54 | |
| 55 | setModalcxx . . $ QDialog#setModal(b45ddcbc8423892c). (false); |
| 56 | connectcxx . . $ QObject#connect(158df1d9a01a3410). (buttonBoxcxx . . $ Aide#buttonBox.,SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(accepted()),this,SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(accept())); |
| 57 | } |