Subversion Repositories Projects

Rev

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

Rev 166 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 CSETTINGS_H
19
#ifndef CSETTINGS_H
20
#define CSETTINGS_H
20
#define CSETTINGS_H
21
 
21
 
22
#include "global.h"
22
#include "global.h"
23
 
23
 
24
struct set_TTY
24
struct set_TTY
25
{
25
{
26
    QString Port;
26
    QString Port;
27
};
27
};
28
 
28
 
29
struct set_GUI
29
struct set_GUI
30
{
30
{
31
    bool   isMax;
31
    bool   isMax;
32
    QSize  Size;
32
    QSize  Size;
33
    QPoint Point;
33
    QPoint Point;
34
    QBitArray TabViews;
34
    QBitArray TabViews;
35
    bool Term_Info;
35
    bool Term_Info;
36
    bool Term_Data;
36
    bool Term_Data;
37
    bool Term_Always;
37
    bool Term_Always;
38
    bool Term_Send;
38
    bool Term_Send;
39
};
39
};
40
 
40
 
41
struct set_Data
41
struct set_Data
42
{
42
{
43
    int Plotter_Count;
43
    int Plotter_Count;
44
    int Debug_Fast;
44
    int Debug_Fast;
45
    int Debug_Slow;
45
    int Debug_Slow;
-
 
46
    int Debug_Off;
-
 
47
    int Navi_Fast;
-
 
48
    int Navi_Slow;
-
 
49
    int Navi_Off;
46
};
50
};
47
 
51
 
48
struct set_DIR
52
struct set_DIR
49
{
53
{
50
    QString Logging;
54
    QString Logging;
51
    QString Parameter;
55
    QString Parameter;
52
};
56
};
-
 
57
 
-
 
58
struct set_Server
-
 
59
{
-
 
60
    QString Port;
-
 
61
    bool StartServer;
-
 
62
    bool ToGround;
-
 
63
};
-
 
64
 
53
 
65
 
54
struct set_Analog
66
struct set_Analog
55
{
67
{
56
    QString   Version;
68
    QString   Version;
57
    QString   Label[MaxAnalog];
69
    QString   Label[MaxAnalog];
58
    QBitArray PlotView;
70
    QBitArray PlotView;
59
    QBitArray LogView;
71
    QBitArray LogView;
60
};
72
};
61
 
73
 
62
class cSettings
74
class cSettings
63
{
75
{
64
public:
76
public:
65
    cSettings();
77
    cSettings();
66
    ~cSettings();
78
    ~cSettings();
67
 
79
 
68
    int Settings_ID;
80
    int Settings_ID;
69
 
81
 
70
    set_GUI GUI;
82
    set_GUI GUI;
71
    set_DIR DIR;
83
    set_DIR DIR;
72
    set_TTY TTY;
84
    set_TTY TTY;
73
    set_Analog Analog1;
85
    set_Analog Analog1;
74
    set_Data Data;
86
    set_Data Data;
-
 
87
    set_Server Server;
75
 
88
 
76
    void read_Settings();
89
    void read_Settings();
77
    void write_Settings();
90
    void write_Settings();
78
    void write_Settings_Analog(int ID = 0);
91
    void write_Settings_Analog(int ID = 0);
79
    void read_Settings_Analog(int ID = 0);
92
    void read_Settings_Analog(int ID = 0);
80
    void write_Settings_AnalogLabels(int ID = 0);
93
    void write_Settings_AnalogLabels(int ID = 0);
81
    void read_Settings_AnalogLabels(int ID = 0);
94
    void read_Settings_AnalogLabels(int ID = 0);
82
};
95
};
83
 
96
 
84
#endif
97
#endif
85
 
98