Rev 674 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 674 | Rev 750 | ||
---|---|---|---|
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; |
34 | // QBitArray LogView; |
35 | }; |
35 | }; |
36 | 36 | ||
37 | struct set_GUI |
37 | struct set_GUI |
38 | { |
38 | { |
39 | bool isMax; |
39 | bool isMax; |
40 | QSize Size; |
40 | QSize Size; |
41 | QPoint Point; |
41 | QPoint Point; |
42 | }; |
42 | }; |
43 | 43 | ||
44 | struct set_DATA |
44 | struct set_DATA |
45 | { |
45 | { |
46 | int Plotter_Count; |
46 | int Plotter_Count; |
47 | int Debug_Intervall; |
47 | // int Debug_Intervall; |
48 | }; |
48 | }; |
49 | 49 | /* |
|
50 | struct set_SERVER |
50 | struct set_SERVER |
51 | { |
51 | { |
52 | int IP_MAX; |
52 | int IP_MAX; |
53 | int IP_ID; |
53 | int IP_ID; |
54 | QString IP[10]; |
54 | QString IP[10]; |
55 | QString Password; |
55 | QString Password; |
56 | }; |
56 | }; |
57 | 57 | */ |
|
58 | class cSettings |
58 | class cSettings |
59 | { |
59 | { |
60 | public: |
60 | public: |
61 | cSettings(); |
61 | cSettings(); |
62 | 62 | ||
63 | int Settings_ID; |
63 | int Settings_ID; |
64 | 64 | ||
65 | set_GUI GUI; |
65 | set_GUI GUI; |
66 | set_DebugData DebugData; |
66 | set_DebugData DebugData; |
67 | set_DATA DATA; |
67 | set_DATA DATA; |
68 | set_SERVER SERVER; |
68 | // set_SERVER SERVER; |
69 | 69 | ||
70 | void read_DebugLabels(int ID); |
70 | void read_DebugLabels(int ID); |
71 | void write_DebugLabels(int ID); |
71 | void write_DebugLabels(int ID); |
72 | 72 | ||
73 | void read_Settings(); |
73 | void read_Settings(); |
74 | void write_Settings(); |
74 | void write_Settings(); |
75 | 75 | ||
76 | 76 | ||
77 | }; |
77 | }; |
78 | 78 | ||
79 | #endif // CSETTINGS_H |
79 | #endif // CSETTINGS_H |
80 | 80 |