Debian Codegraph @

src/modeselector.h

raw symbols SCIP
1 /*
2 Copyright (C) 2014 Mario Stephan <[email protected]>
3
4 This library is free software; you can redistribute it and/or modify
5 it under the terms of the GNU Lesser General Public License as published
6 by the Free Software Foundation; either version 2.1 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18 #ifndef MODESELECTOR_H
19 #define MODESELECTOR_H
20
21 #include <QFrame>
22
23 namespace Ui {
24 class ModeSelector;
25 }
26
27 class ModeSelector : public QFrame
28 {
29 Q_OBJECT
30
31 public:
32 explicit ModeSelector(QWidget *parent = 0);
33 ~ModeSelector();
34 enum modeType { MODENONE, MODEYEAR, MODEGENRE };
35
36 void setMode(ModeSelector::modeType value);
37 ModeSelector::modeType mode();
38
39 Q_SIGNALS:
40 void modeChanged(ModeSelector::modeType value);
41
42 private slots:
43 void on_push1_clicked();
44 void on_push2_clicked();
45 void on_push3_clicked();
46
47 private:
48 Ui::ModeSelector *ui;
49 modeType selMode;
50 };
51
52 #endif // MODESELECTOR_H