Subversion Repositories Projects

Rev

Rev 227 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
227 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
    QBitArray ToolViews;
36
    bool Term_Info;
37
    bool Term_Data;
38
    bool Term_Always;
39
    bool Term_Send;
40
};
41
 
42
struct set_Data
43
{
44
    int Plotter_Count;
45
    int Debug_Fast;
46
    int Debug_Slow;
47
    int Debug_Off;
48
    int Navi_Fast;
49
    int Navi_Slow;
50
    int Navi_Off;
51
};
52
 
53
struct set_DIR
54
{
55
    QString Logging;
56
    QString Parameter;
57
};
58
 
59
struct set_Server
60
{
61
    QString Port;
62
    bool StartServer;
63
    bool ToGround;
64
    QString QMKS_Login;
65
    QString QMKS_Password;
66
};
67
 
68
 
69
struct set_Analog
70
{
71
    QString   Version;
72
    QString   Label[MaxAnalog];
73
    QBitArray PlotView;
74
    QBitArray LogView;
75
};
76
 
77
class cSettings
78
{
79
public:
80
    cSettings();
81
    ~cSettings();
82
 
83
    int Settings_ID;
84
 
85
    set_GUI GUI;
86
    set_DIR DIR;
87
    set_TTY TTY;
88
    set_Analog Analog1;
89
    set_Data Data;
90
    set_Server Server;
91
 
92
    void read_Settings();
93
    void read_SettingsID();
94
    void write_Settings();
95
    void write_Settings_Analog(int ID = 0);
96
    void read_Settings_Analog(int ID = 0);
97
    void write_Settings_AnalogLabels(int ID = 0);
98
    void read_Settings_AnalogLabels(int ID = 0);
99
};
100
 
101
#endif