Subversion Repositories Projects

Rev

Rev 227 | Go to most recent revision | Details | Compare with Previous | 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);
537 KeyOz 42
    QString Version;
167 KeyOz 43
 
44
private:
45
    int Settings[MaxParameter];
46
    int ParameterSet[11][MaxParameter];
227 KeyOz 47
    cSettings *Config;
167 KeyOz 48
 
49
    void set_LED(QToolButton *ToolButton, bool On = false);
50
 
51
    QComboBox *setCombo(QComboBox *Combo, int Set, int Wert);
52
    int get_Value(QComboBox *Combo);
53
    void store_ParameterSet(int Set);
54
 
55
private slots:
56
    void slot_tbUp();
57
    void slot_tbDown();
58
    void slot_tbLeft();
59
    void slot_tbRight();
60
 
61
    void slot_LEDtoValue();
62
    void slot_ValuetoLED16(int Wert);
63
    void slot_ValuetoLED17(int Wert);
64
 
65
    void slot_LoadParameter();
66
    void slot_SaveParameter();
67
};
68
 
69
#endif // WDG_SETTINGS_H