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; |
||
199 | KeyOz | 46 | int Debug_Off; |
47 | int Navi_Fast; |
||
48 | int Navi_Slow; |
||
49 | int Navi_Off; |
||
166 | KeyOz | 50 | }; |
51 | |||
162 | KeyOz | 52 | struct set_DIR |
53 | { |
||
54 | QString Logging; |
||
55 | QString Parameter; |
||
56 | }; |
||
57 | |||
199 | KeyOz | 58 | struct set_Server |
59 | { |
||
60 | QString Port; |
||
61 | bool StartServer; |
||
62 | bool ToGround; |
||
63 | }; |
||
64 | |||
65 | |||
162 | KeyOz | 66 | struct set_Analog |
67 | { |
||
163 | KeyOz | 68 | QString Version; |
162 | KeyOz | 69 | QString Label[MaxAnalog]; |
70 | QBitArray PlotView; |
||
71 | QBitArray LogView; |
||
72 | }; |
||
73 | |||
158 | KeyOz | 74 | class cSettings |
75 | { |
||
76 | public: |
||
77 | cSettings(); |
||
78 | ~cSettings(); |
||
79 | |||
162 | KeyOz | 80 | int Settings_ID; |
81 | |||
158 | KeyOz | 82 | set_GUI GUI; |
83 | set_DIR DIR; |
||
84 | set_TTY TTY; |
||
162 | KeyOz | 85 | set_Analog Analog1; |
166 | KeyOz | 86 | set_Data Data; |
199 | KeyOz | 87 | set_Server Server; |
158 | KeyOz | 88 | |
89 | void read_Settings(); |
||
90 | void write_Settings(); |
||
162 | KeyOz | 91 | void write_Settings_Analog(int ID = 0); |
92 | void read_Settings_Analog(int ID = 0); |
||
93 | void write_Settings_AnalogLabels(int ID = 0); |
||
94 | void read_Settings_AnalogLabels(int ID = 0); |
||
158 | KeyOz | 95 | }; |
96 | |||
97 | #endif |