1 /**************************************************************
3 Copyright (C) 2013 Rafał Długołęcki
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public License
7 as published by the Free Software Foundation; either version 2
8 of the License, or (at your option) any later version.
10 This program 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.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 NOTE: This software is using the free software license of
23 the QT library v.1.30 from Troll Tech AS.
24 See the file LICENSE.QT.
26 ************************************************************/
28 #ifndef VLP_SEND_MESSAGE_H
29 #define VLP_SEND_MESSAGE_H
31 #include <QtGui/QDialog>
32 #include <QtCore/QString>
33 #include <QtGui/QLineEdit>
35 #include "ui/editor-properties-dialog.h"
38 * Class responsible for displaying dialog with editor properties
40 class EditorProperties : public QDialog, private Ui::EditorProperties {
43 * Constructs an EditorProperties with parent 'parent'.
44 * The widget flags flags are passed on to the QDialog constructor.
46 * @param parent parent widget of this dialog
47 * @param flags QDialog flags of this dialog
49 EditorProperties(QWidget * parent = 0, Qt::WindowFlags flags = 0 ) :
50 QDialog(parent, flags)
53 connect(buttonBox, SIGNAL(accepted()), this, SLOT(accept()));
54 connect(buttonBox, SIGNAL(rejected()), this, SLOT(reject()));
58 * Returns entered in dialog Compiler Path
59 * @return Compiler Path from this dialog textfield
61 QString getCompilerPath()
63 return compilerPath->text();
67 * Returns entered in dialog Files Path
68 * @return Files Path from this dialog textfield
70 QString getFilesPath()
72 return filesPath->text();
76 * Sets default value for Compiler Path textfield
78 void setDefaultCompilerPath(QString path)
80 compilerPath->setText(path);
84 * Sets default value for Files Path textfield
86 void setDefaultFilesPath(QString path)
88 filesPath->setText(path);
93 #endif /* VLP_SEND_MESSAGE_H */