Subversion Repositories Projects

Rev

Rev 158 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
158 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
 
162 KeyOz 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
};
39
 
40
struct set_DIR
41
{
42
    QString Logging;
43
    QString Parameter;
44
};
45
 
46
struct set_Analog
47
{
48
    QString   Label[MaxAnalog];
49
    QBitArray PlotView;
50
    QBitArray LogView;
51
};
52
 
158 KeyOz 53
class cSettings
54
{
55
public:
56
    cSettings();
57
    ~cSettings();
58
 
162 KeyOz 59
    int Settings_ID;
60
 
158 KeyOz 61
    set_GUI GUI;
62
    set_DIR DIR;
63
    set_TTY TTY;
162 KeyOz 64
    set_Analog Analog1;
158 KeyOz 65
 
66
    void read_Settings();
67
    void write_Settings();
162 KeyOz 68
    void write_Settings_Analog(int ID = 0);
69
    void read_Settings_Analog(int ID = 0);
70
    void write_Settings_AnalogLabels(int ID = 0);
71
    void read_Settings_AnalogLabels(int ID = 0);
158 KeyOz 72
};
73
 
74
#endif