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