X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=src%2Fedit%2Feditor-properties.h;fp=src%2Fedit%2Feditor-properties.h;h=e90013b3228d57252330c28a65aac377257c838a;hb=5d7060121bc8fb1f5ef9ee78937c342058459d7f;hp=0000000000000000000000000000000000000000;hpb=fea671e0abd75fbbd90946d759e45e1b1a4d3444;p=vlp.git diff --git a/src/edit/editor-properties.h b/src/edit/editor-properties.h new file mode 100644 index 0000000..e90013b --- /dev/null +++ b/src/edit/editor-properties.h @@ -0,0 +1,93 @@ +/************************************************************** + + Copyright (C) 2013 Rafał Długołęcki + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License + as published by the Free Software Foundation; either version 2 + of the License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + + + + NOTE: This software is using the free software license of + the QT library v.1.30 from Troll Tech AS. + See the file LICENSE.QT. + +************************************************************/ + +#ifndef VLP_SEND_MESSAGE_H +#define VLP_SEND_MESSAGE_H + +#include +#include +#include + +#include "ui/editor-properties-dialog.h" + +/** + * Class responsible for displaying dialog with editor properties + */ +class EditorProperties : public QDialog, private Ui::EditorProperties { +public: + /** + * Constructs an EditorProperties with parent 'parent'. + * The widget flags flags are passed on to the QDialog constructor. + * + * @param parent parent widget of this dialog + * @param flags QDialog flags of this dialog + */ + EditorProperties(QWidget * parent = 0, Qt::WindowFlags flags = 0 ) : + QDialog(parent, flags) + { + setupUi(this); + connect(buttonBox, SIGNAL(accepted()), this, SLOT(accept())); + connect(buttonBox, SIGNAL(rejected()), this, SLOT(reject())); + } + + /** + * Returns entered in dialog Compiler Path + * @return Compiler Path from this dialog textfield + */ + QString getCompilerPath() + { + return compilerPath->text(); + } + + /** + * Returns entered in dialog Files Path + * @return Files Path from this dialog textfield + */ + QString getFilesPath() + { + return filesPath->text(); + } + + /** + * Sets default value for Compiler Path textfield + */ + void setDefaultCompilerPath(QString path) + { + compilerPath->setText(path); + } + + /** + * Sets default value for Files Path textfield + */ + void setDefaultFilesPath(QString path) + { + filesPath->setText(path); + } +}; + + +#endif /* VLP_SEND_MESSAGE_H */