Subversion Repositories Projects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
167 KeyOz 1
/***************************************************************************
2
 *   Copyright (C) 2008 by Manuel Schrape                                  *
3
 *   manuel.schrape@gmx.de                                                 *
4
 *                                                                         *
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  *
7
 *   the Free Software Foundation; either version 2 of the License.        *
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 General Public License     *
15
 *   along with this program; if not, write to the                         *
16
 *   Free Software Foundation, Inc.,                                       *
17
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
18
 ***************************************************************************/
19
#ifndef WDG_SETTINGS_H
20
#define WDG_SETTINGS_H
21
 
22
#include <QtGui/QWidget>
23
#include <QIcon>
24
#include <QToolButton>
25
#include <QComboBox>
26
 
27
#include "ui_wdg_Settings.h"
28
#include "../global.h"
227 KeyOz 29
#include "../Classes/cSettings.h"
167 KeyOz 30
 
31
class wdg_Settings : public QWidget, public Ui::wdg_Settings_UI
32
{
33
    Q_OBJECT
34
 
35
public:
36
    explicit wdg_Settings(QWidget *parent = 0);
37
    virtual ~wdg_Settings();
38
 
199 KeyOz 39
    void show_FCSettings(int Set,  int FCSettings[MaxParameter]);
40
    char *GetFCSettings();
227 KeyOz 41
    void set_Config(cSettings *pConfig);
167 KeyOz 42
 
43
private:
44
    int Settings[MaxParameter];
45
    int ParameterSet[11][MaxParameter];
227 KeyOz 46
    cSettings *Config;
167 KeyOz 47
 
48
    void set_LED(QToolButton *ToolButton, bool On = false);
49
 
50
    QComboBox *setCombo(QComboBox *Combo, int Set, int Wert);
51
    int get_Value(QComboBox *Combo);
52
    void store_ParameterSet(int Set);
53
 
54
private slots:
55
    void slot_tbUp();
56
    void slot_tbDown();
57
    void slot_tbLeft();
58
    void slot_tbRight();
59
 
60
    void slot_LEDtoValue();
61
    void slot_ValuetoLED16(int Wert);
62
    void slot_ValuetoLED17(int Wert);
63
 
64
    void slot_LoadParameter();
65
    void slot_SaveParameter();
66
};
67
 
68
#endif // WDG_SETTINGS_H