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