Rev 674 | 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 <QSize> |
22 | #include <QSize> |
23 | #include <QPoint> |
23 | #include <QPoint> |
24 | #include <QString> |
24 | #include <QString> |
25 | 25 | ||
26 | #include "../Defines.h" |
26 | #include "../Defines.h" |
27 | 27 | ||
28 | struct set_GUI |
28 | struct set_GUI |
29 | { |
29 | { |
30 | bool isMax; |
30 | bool isMax; |
31 | QSize Size; |
31 | QSize Size; |
32 | QPoint Point; |
32 | QPoint Point; |
33 | bool Toolbar; |
33 | bool Toolbar; |
34 | }; |
34 | }; |
35 | - | ||
36 | struct set_DATA |
- | |
37 | { |
- | |
38 | int Intervall; |
- | |
39 | }; |
- | |
40 | - | ||
41 | struct set_SERVER |
- | |
42 | { |
- | |
43 | int IP_MAX; |
- | |
44 | int IP_ID; |
- | |
45 | QString IP[10]; |
- | |
46 | QString Password; |
- | |
47 | }; |
- | |
48 | 35 | ||
49 | struct set_CONFIG |
36 | struct set_CONFIG |
50 | { |
37 | { |
51 | bool cb_Goto; |
38 | bool cb_Goto; |
52 | bool cb_ShowRoute; |
39 | bool cb_ShowRoute; |
53 | bool cb_ShowWPs; |
40 | bool cb_ShowWPs; |
54 | bool cb_CenterPos; |
41 | bool cb_CenterPos; |
55 | }; |
42 | }; |
56 | 43 | ||
57 | struct set_NAVI |
44 | struct set_NAVI |
58 | { |
45 | { |
59 | int StayTime; |
46 | int StayTime; |
60 | double Latitude; |
47 | double Latitude; |
61 | double Longitude; |
48 | double Longitude; |
62 | }; |
49 | }; |
63 | 50 | ||
64 | class cSettings |
51 | class cSettings |
65 | { |
52 | { |
66 | public: |
53 | public: |
67 | cSettings(); |
54 | cSettings(); |
68 | void read_Settings(); |
55 | void read_Settings(); |
69 | void write_Settings(); |
56 | void write_Settings(); |
70 | 57 | ||
71 | int Settings_ID; |
58 | int Settings_ID; |
72 | 59 | ||
73 | set_GUI GUI; |
60 | set_GUI GUI; |
74 | set_DATA DATA; |
- | |
75 | set_SERVER SERVER; |
- | |
76 | set_CONFIG CONFIG; |
61 | set_CONFIG CONFIG; |
77 | set_NAVI NAVI; |
62 | set_NAVI NAVI; |
78 | }; |
63 | }; |
79 | 64 | ||
80 | #endif // CSETTINGS_H |
65 | #endif // CSETTINGS_H |
81 | 66 |