Subversion Repositories Projects

Rev

Details | Last modification | View Log | RSS feed

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