Details | 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; |
||
166 | KeyOz | 38 | bool Term_Send; |
162 | KeyOz | 39 | }; |
40 | |||
166 | KeyOz | 41 | struct set_Data |
42 | { |
||
43 | int Plotter_Count; |
||
44 | int Debug_Fast; |
||
45 | int Debug_Slow; |
||
46 | }; |
||
47 | |||
162 | KeyOz | 48 | struct set_DIR |
49 | { |
||
50 | QString Logging; |
||
51 | QString Parameter; |
||
52 | }; |
||
53 | |||
54 | struct set_Analog |
||
55 | { |
||
163 | KeyOz | 56 | QString Version; |
162 | KeyOz | 57 | QString Label[MaxAnalog]; |
58 | QBitArray PlotView; |
||
59 | QBitArray LogView; |
||
60 | }; |
||
61 | |||
158 | KeyOz | 62 | class cSettings |
63 | { |
||
64 | public: |
||
65 | cSettings(); |
||
66 | ~cSettings(); |
||
67 | |||
162 | KeyOz | 68 | int Settings_ID; |
69 | |||
158 | KeyOz | 70 | set_GUI GUI; |
71 | set_DIR DIR; |
||
72 | set_TTY TTY; |
||
162 | KeyOz | 73 | set_Analog Analog1; |
166 | KeyOz | 74 | set_Data Data; |
158 | KeyOz | 75 | |
76 | void read_Settings(); |
||
77 | void write_Settings(); |
||
162 | KeyOz | 78 | void write_Settings_Analog(int ID = 0); |
79 | void read_Settings_Analog(int ID = 0); |
||
80 | void write_Settings_AnalogLabels(int ID = 0); |
||
81 | void read_Settings_AnalogLabels(int ID = 0); |
||
158 | KeyOz | 82 | }; |
83 | |||
84 | #endif |