Rev 167 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 167 | Rev 199 | ||
---|---|---|---|
1 | /*************************************************************************** |
1 | /*************************************************************************** |
2 | * Copyright (C) 2008 by Manuel Schrape * |
2 | * Copyright (C) 2008 by Manuel Schrape * |
3 | * manuel.schrape@gmx.de * |
3 | * manuel.schrape@gmx.de * |
4 | * * |
4 | * * |
5 | * This program is free software; you can redistribute it and/or modify * |
5 | * This program is free software; you can redistribute it and/or modify * |
6 | * it under the terms of the GNU General Public License as published by * |
6 | * it under the terms of the GNU General Public License as published by * |
7 | * the Free Software Foundation; either version 2 of the License. * |
7 | * the Free Software Foundation; either version 2 of the License. * |
8 | * * |
8 | * * |
9 | * This program is distributed in the hope that it will be useful, * |
9 | * This program is distributed in the hope that it will be useful, * |
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * |
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * |
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
12 | * GNU General Public License for more details. * |
12 | * GNU General Public License for more details. * |
13 | * * |
13 | * * |
14 | * You should have received a copy of the GNU General Public License * |
14 | * You should have received a copy of the GNU General Public License * |
15 | * along with this program; if not, write to the * |
15 | * along with this program; if not, write to the * |
16 | * Free Software Foundation, Inc., * |
16 | * Free Software Foundation, Inc., * |
17 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * |
17 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * |
18 | ***************************************************************************/ |
18 | ***************************************************************************/ |
19 | #ifndef WDG_SETTINGS_H |
19 | #ifndef WDG_SETTINGS_H |
20 | #define WDG_SETTINGS_H |
20 | #define WDG_SETTINGS_H |
21 | 21 | ||
22 | #include <QtGui/QWidget> |
22 | #include <QtGui/QWidget> |
23 | #include <QIcon> |
23 | #include <QIcon> |
24 | #include <QToolButton> |
24 | #include <QToolButton> |
25 | #include <QComboBox> |
25 | #include <QComboBox> |
26 | 26 | ||
27 | #include "ui_wdg_Settings.h" |
27 | #include "ui_wdg_Settings.h" |
28 | #include "../global.h" |
28 | #include "../global.h" |
29 | 29 | ||
30 | class wdg_Settings : public QWidget, public Ui::wdg_Settings_UI |
30 | class wdg_Settings : public QWidget, public Ui::wdg_Settings_UI |
31 | { |
31 | { |
32 | Q_OBJECT |
32 | Q_OBJECT |
33 | 33 | ||
34 | public: |
34 | public: |
35 | explicit wdg_Settings(QWidget *parent = 0); |
35 | explicit wdg_Settings(QWidget *parent = 0); |
36 | virtual ~wdg_Settings(); |
36 | virtual ~wdg_Settings(); |
37 | 37 | ||
38 | void show_ParameterSet(int Set, int Settings[11][MaxParameter]); |
38 | void show_FCSettings(int Set, int FCSettings[MaxParameter]); |
39 | char *SetParameter(); |
39 | char *GetFCSettings(); |
40 | - | ||
41 | private: |
- | |
42 | // Alle Icons |
- | |
43 | QIcon Icons[30]; |
40 | |
44 | 41 | private: |
|
45 | int Settings[MaxParameter]; |
42 | int Settings[MaxParameter]; |
46 | int ParameterSet[11][MaxParameter]; |
43 | int ParameterSet[11][MaxParameter]; |
47 | - | ||
48 | void init_Icons(); |
44 | |
49 | void set_LED(QToolButton *ToolButton, bool On = false); |
45 | void set_LED(QToolButton *ToolButton, bool On = false); |
50 | 46 | ||
51 | QComboBox *setCombo(QComboBox *Combo, int Set, int Wert); |
47 | QComboBox *setCombo(QComboBox *Combo, int Set, int Wert); |
52 | int get_Value(QComboBox *Combo); |
48 | int get_Value(QComboBox *Combo); |
53 | void store_ParameterSet(int Set); |
49 | void store_ParameterSet(int Set); |
54 | 50 | ||
55 | private slots: |
51 | private slots: |
56 | void slot_tbUp(); |
52 | void slot_tbUp(); |
57 | void slot_tbDown(); |
53 | void slot_tbDown(); |
58 | void slot_tbLeft(); |
54 | void slot_tbLeft(); |
59 | void slot_tbRight(); |
55 | void slot_tbRight(); |
60 | 56 | ||
61 | void slot_LEDtoValue(); |
57 | void slot_LEDtoValue(); |
62 | void slot_ValuetoLED16(int Wert); |
58 | void slot_ValuetoLED16(int Wert); |
63 | void slot_ValuetoLED17(int Wert); |
59 | void slot_ValuetoLED17(int Wert); |
64 | 60 | ||
65 | void slot_LoadParameter(); |
61 | void slot_LoadParameter(); |
66 | void slot_SaveParameter(); |
62 | void slot_SaveParameter(); |
67 | }; |
63 | }; |
68 | 64 | ||
69 | #endif // WDG_SETTINGS_H |
65 | #endif // WDG_SETTINGS_H |
70 | 66 |