Rev 750 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 750 | Rev 801 | ||
---|---|---|---|
1 | /*************************************************************************** |
1 | /*************************************************************************** |
2 | * Copyright (C) 2008 by Manuel Schrape * |
2 | * Copyright (C) 2008 by Manuel Schrape * |
3 | * manuel.schrape@gmx.de * |
3 | * manuel.schrape@gmx.de * |
4 | * * |
4 | * * |
5 | * This program is free software; you can redistribute it and/or modify * |
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 * |
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. * |
7 | * the Free Software Foundation; either version 2 of the License. * |
8 | * * |
8 | * * |
9 | * This program is distributed in the hope that it will be useful, * |
9 | * This program is distributed in the hope that it will be useful, * |
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * |
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * |
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
12 | * GNU General Public License for more details. * |
12 | * GNU General Public License for more details. * |
13 | * * |
13 | * * |
14 | * You should have received a copy of the GNU General Public License * |
14 | * You should have received a copy of the GNU General Public License * |
15 | * along with this program; if not, write to the * |
15 | * along with this program; if not, write to the * |
16 | * Free Software Foundation, Inc., * |
16 | * Free Software Foundation, Inc., * |
17 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * |
17 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * |
18 | ***************************************************************************/ |
18 | ***************************************************************************/ |
19 | #ifndef CSETTINGS_H |
19 | #ifndef CSETTINGS_H |
20 | #define CSETTINGS_H |
20 | #define CSETTINGS_H |
21 | 21 | ||
22 | #include <QBitArray> |
22 | #include <QBitArray> |
23 | #include <QSize> |
23 | #include <QSize> |
24 | #include <QPoint> |
24 | #include <QPoint> |
25 | 25 | ||
26 | #include "../../Global/Kopter.h" |
26 | #include "../../Global/Kopter.h" |
27 | #include "../Defines.h" |
27 | #include "../Defines.h" |
28 | 28 | ||
29 | struct set_DebugData |
29 | struct set_DebugData |
30 | { |
30 | { |
31 | QString Version; |
31 | QString Version; |
32 | QString Label[MAX_DebugData]; |
32 | QString Label[MAX_DebugData]; |
33 | QBitArray Show_Plotter; |
33 | QBitArray Show_Plotter; |
34 | // QBitArray LogView; |
- | |
35 | }; |
34 | }; |
36 | 35 | ||
37 | struct set_GUI |
36 | struct set_GUI |
38 | { |
37 | { |
39 | bool isMax; |
38 | bool isMax; |
40 | QSize Size; |
39 | QSize Size; |
41 | QPoint Point; |
40 | QPoint Point; |
42 | }; |
41 | }; |
43 | 42 | ||
44 | struct set_DATA |
43 | struct set_DATA |
45 | { |
44 | { |
46 | int Plotter_Count; |
45 | int Plotter_Count; |
47 | // int Debug_Intervall; |
- | |
48 | }; |
46 | }; |
49 | /* |
- | |
50 | struct set_SERVER |
- | |
51 | { |
47 | |
52 | int IP_MAX; |
- | |
53 | int IP_ID; |
- | |
54 | QString IP[10]; |
- | |
55 | QString Password; |
- | |
56 | }; |
- | |
57 | */ |
- | |
58 | class cSettings |
48 | class cSettings |
59 | { |
49 | { |
60 | public: |
50 | public: |
61 | cSettings(); |
51 | cSettings(); |
62 | 52 | ||
63 | int Settings_ID; |
53 | int Settings_ID; |
64 | 54 | ||
65 | set_GUI GUI; |
55 | set_GUI GUI; |
66 | set_DebugData DebugData; |
56 | set_DebugData DebugData; |
67 | set_DATA DATA; |
57 | set_DATA DATA; |
68 | // set_SERVER SERVER; |
- | |
69 | 58 | ||
70 | void read_DebugLabels(int ID); |
59 | void read_DebugLabels(int ID); |
71 | void write_DebugLabels(int ID); |
60 | void write_DebugLabels(int ID); |
72 | 61 | ||
73 | void read_Settings(); |
62 | void read_Settings(); |
74 | void write_Settings(); |
63 | void write_Settings(); |
75 | 64 | ||
76 | 65 | ||
77 | }; |
66 | }; |
78 | 67 | ||
79 | #endif // CSETTINGS_H |
68 | #endif // CSETTINGS_H |
80 | 69 |