tuchulcha  0.10.1
Graphical Workflow Configuration Editor
PriorityDialog.h
Go to the documentation of this file.
1 /* Copyright (C) 2012 David Stronczek
2 
3  This file is part of Tuchulcha.
4 
5  Tuchulcha is free software: you can redistribute it and/or modify
6  it under the terms of the GNU Lesser General Public License as published by
7  the Free Software Foundation, either version 3 of the License, or
8  (at your option) any later version.
9 
10  Tuchulcha 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 Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public License
16  along with Tuchulcha. If not, see <http://www.gnu.org/licenses/>.
17 */
24 #ifndef PRIORITYDIALOG_H_
25 #define PRIORITYDIALOG_H_
26 
27 #include <QDialog>
28 
29 namespace Ui {
30  class PriorityDialog;
31 }
32 class QAbstractButton;
33 
35 
38 class PriorityDialog : public QDialog {
39  Q_OBJECT
40 
41 public:
43 
46  PriorityDialog(QWidget* parent = 0, int selection = 0);
47 
49  virtual ~PriorityDialog();
50 
52  int selection() const;
53 
54 public slots:
56  virtual void accept();
57 
59  void on_buttonBox_clicked(QAbstractButton* button) const;
60 
61 protected:
63  Ui::PriorityDialog* _ui;
64 
65 private:
68 };
69 
70 #endif /* PRIORITYDIALOG_H_ */
Priority Dialog.
PriorityDialog(QWidget *parent=0, int selection=0)
Default constructor, setting parent widget.
int selection() const
Get selected index.
int _selection
var to store selection
virtual void accept()
set selection value
Ui::PriorityDialog * _ui
designer gui
virtual ~PriorityDialog()
default destructor
void on_buttonBox_clicked(QAbstractButton *button) const
handle buttonBox clicks