tuchulcha  0.10.1
Graphical Workflow Configuration Editor
OptionsDialog.h
Go to the documentation of this file.
1 /* Copyright (C) 2011 Jens-Malte Gottfried
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 */
25 #ifndef OPTIONSDIALOG_H
26 #define OPTIONSDIALOG_H
27 
28 #include <QDialog>
29 
30 namespace Ui {class OptionsDialog;}
31 class QAbstractButton;
32 class QTableWidgetItem;
33 
35 class OptionsDialog : public QDialog
36 {
37  Q_OBJECT
38 public:
40 
42  explicit OptionsDialog(QWidget* parent = 0, Qt::WindowFlags f = 0);
43  virtual ~OptionsDialog();
44 
46 
47  static bool check();
48 
49 signals:
51  void helpRequested(QString);
52 
53 public slots:
55  void refresh();
57  void apply();
59  void restore();
61 
64  void setTab(int tab=-1);
65 
66 private slots:
68  void on_bBox_clicked(QAbstractButton* button);
70  void on_bBox_helpRequested();
72  void on_tableExclude_itemChanged(QTableWidgetItem* item) const;
74  void _setExcludes(QStringList list) const;
75 
76 private:
78  Ui::OptionsDialog* _ui;
80  QStringList _getExcludes() const;
81 };
82 
83 #endif // OPTIONSDIALOG_H
Ui::OptionsDialog * _ui
designer gui
Definition: OptionsDialog.h:78
void on_bBox_clicked(QAbstractButton *button)
handle button click events
void _setExcludes(QStringList list) const
set exclude list
void apply()
apply new settings values
void on_bBox_helpRequested()
handle help request
void setTab(int tab=-1)
set shown tab
option dialog widget
Definition: OptionsDialog.h:35
OptionsDialog(QWidget *parent=0, Qt::WindowFlags f=0)
constructor
void on_tableExclude_itemChanged(QTableWidgetItem *item) const
handle exclude list changes
void helpRequested(QString)
request help on specified page
QStringList _getExcludes() const
get exclude list
void restore()
restore default values
void refresh()
refresh from saved settings
static bool check()
Configures plugin paths.