Subversion Repositories Projects

Rev

Rev 199 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 199 Rev 227
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
#include "../Classes/cSettings.h"
29
 
30
 
30
class wdg_Settings : public QWidget, public Ui::wdg_Settings_UI
31
class wdg_Settings : public QWidget, public Ui::wdg_Settings_UI
31
{
32
{
32
    Q_OBJECT
33
    Q_OBJECT
33
 
34
 
34
public:
35
public:
35
    explicit wdg_Settings(QWidget *parent = 0);
36
    explicit wdg_Settings(QWidget *parent = 0);
36
    virtual ~wdg_Settings();
37
    virtual ~wdg_Settings();
37
 
38
 
38
    void show_FCSettings(int Set,  int FCSettings[MaxParameter]);
39
    void show_FCSettings(int Set,  int FCSettings[MaxParameter]);
39
    char *GetFCSettings();
40
    char *GetFCSettings();
-
 
41
    void set_Config(cSettings *pConfig);
40
 
42
 
41
private:
43
private:
42
    int Settings[MaxParameter];
44
    int Settings[MaxParameter];
43
    int ParameterSet[11][MaxParameter];
45
    int ParameterSet[11][MaxParameter];
-
 
46
    cSettings *Config;
44
 
47
 
45
    void set_LED(QToolButton *ToolButton, bool On = false);
48
    void set_LED(QToolButton *ToolButton, bool On = false);
46
 
49
 
47
    QComboBox *setCombo(QComboBox *Combo, int Set, int Wert);
50
    QComboBox *setCombo(QComboBox *Combo, int Set, int Wert);
48
    int get_Value(QComboBox *Combo);
51
    int get_Value(QComboBox *Combo);
49
    void store_ParameterSet(int Set);
52
    void store_ParameterSet(int Set);
50
 
53
 
51
private slots:
54
private slots:
52
    void slot_tbUp();
55
    void slot_tbUp();
53
    void slot_tbDown();
56
    void slot_tbDown();
54
    void slot_tbLeft();
57
    void slot_tbLeft();
55
    void slot_tbRight();
58
    void slot_tbRight();
56
 
59
 
57
    void slot_LEDtoValue();
60
    void slot_LEDtoValue();
58
    void slot_ValuetoLED16(int Wert);
61
    void slot_ValuetoLED16(int Wert);
59
    void slot_ValuetoLED17(int Wert);
62
    void slot_ValuetoLED17(int Wert);
60
 
63
 
61
    void slot_LoadParameter();
64
    void slot_LoadParameter();
62
    void slot_SaveParameter();
65
    void slot_SaveParameter();
63
};
66
};
64
 
67
 
65
#endif // WDG_SETTINGS_H
68
#endif // WDG_SETTINGS_H
66
 
69