From: Rafał Długołęcki Date: Tue, 29 Oct 2013 23:46:04 +0000 (+0100) Subject: vlp-27 hotfix: added missing file. X-Git-Tag: 3.1.2-a3~1 X-Git-Url: https://git.dlugolecki.net.pl/?p=vlp.git;a=commitdiff_plain;h=9396ff581a4bd05580af0f97624d24d9cdfed832 vlp-27 hotfix: added missing file. --- diff --git a/src/kernel/kill-interpreter.h b/src/kernel/kill-interpreter.h new file mode 100644 index 0000000..764d8ab --- /dev/null +++ b/src/kernel/kill-interpreter.h @@ -0,0 +1,68 @@ +/************************************************************** + + 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_KILL_INTERPRETER_H +#define VLP_KILL_INTERPRETER_H + +#include +#include +#include + +#include "ui/dialogs/kill-interpreter.h" + +/** + * Class responsible for displaying dialog for interpreters shutdown + */ +class KillInterpreterDialog : public QDialog, private Ui::killInterpreterDialog { +public: + /** + * Constructs a KillInterpreterDialog with parent 'parent'. + * The widget flags f are passed on to the QWidget constructor. + * + * @param parent parent widget of this dialog + * @param flags QDialog flags of this dialog + */ + KillInterpreterDialog(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 node number + * @return node number from this dialog textfield + */ + int getNodeNumber() + { + return atoi(nodeNumber->text().toAscii().data()); + } +}; + + +#endif /* VLP_KILL_INTERPRETER_H */