Rev 394 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 394 | Rev 440 | ||
---|---|---|---|
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 "../global.h" |
22 | #include "../global.h" |
23 | #include "../com/Kopter.h" |
23 | #include "../libMK/Kopter.h" |
24 | 24 | ||
25 | struct set_TTY |
25 | struct set_TTY |
26 | { |
26 | { |
27 | QString Port; |
27 | QString Port; |
28 | }; |
28 | }; |
29 | 29 | ||
30 | struct set_GUI |
30 | struct set_GUI |
31 | { |
31 | { |
32 | bool isMax; |
32 | bool isMax; |
33 | QSize Size; |
33 | QSize Size; |
34 | QPoint Point; |
34 | QPoint Point; |
35 | QBitArray TabViews; |
35 | QBitArray TabViews; |
36 | QBitArray ToolViews; |
36 | QBitArray ToolViews; |
37 | bool Term_Info; |
37 | bool Term_Info; |
38 | bool Term_Data; |
38 | bool Term_Data; |
39 | bool Term_Always; |
39 | bool Term_Always; |
40 | bool Term_Send; |
40 | bool Term_Send; |
41 | }; |
41 | }; |
42 | 42 | ||
43 | struct set_Map |
43 | struct set_Map |
44 | { |
44 | { |
45 | bool GotoPosition; |
45 | bool GotoPosition; |
46 | bool ShowTrack; |
46 | bool ShowTrack; |
47 | }; |
47 | }; |
48 | 48 | ||
49 | struct set_Data |
49 | struct set_Data |
50 | { |
50 | { |
51 | int Plotter_Count; |
51 | int Plotter_Count; |
52 | int Debug_Fast; |
52 | int Debug_Fast; |
53 | int Debug_Slow; |
53 | int Debug_Slow; |
54 | int Debug_Off; |
54 | int Debug_Off; |
55 | int Navi_Fast; |
55 | int Navi_Fast; |
56 | int Navi_Slow; |
56 | int Navi_Slow; |
57 | int Navi_Off; |
57 | int Navi_Off; |
58 | }; |
58 | }; |
59 | 59 | ||
60 | struct set_DIR |
60 | struct set_DIR |
61 | { |
61 | { |
62 | QString Logging; |
62 | QString Logging; |
63 | QString Parameter; |
63 | QString Parameter; |
64 | QString Cache; |
64 | QString Cache; |
65 | QString AVRDUDE; |
65 | QString AVRDUDE; |
66 | }; |
66 | }; |
67 | 67 | ||
68 | struct set_Server |
68 | struct set_Server |
69 | { |
69 | { |
70 | QString Port; |
70 | QString Port; |
71 | bool StartServer; |
71 | bool StartServer; |
72 | bool ToGround; |
72 | bool ToGround; |
73 | QString QMKS_Login; |
73 | QString QMKS_Login; |
74 | QString QMKS_Password; |
74 | QString QMKS_Password; |
75 | QString QMKS_Host; |
75 | QString QMKS_Host; |
76 | QString QMKS_Port; |
76 | QString QMKS_Port; |
77 | }; |
77 | }; |
78 | 78 | ||
79 | 79 | ||
80 | struct set_Analog |
80 | struct set_Analog |
81 | { |
81 | { |
82 | QString Version; |
82 | QString Version; |
83 | QString Label[MaxAnalog]; |
83 | QString Label[MaxAnalog]; |
84 | QBitArray PlotView; |
84 | QBitArray PlotView; |
85 | QBitArray LogView; |
85 | QBitArray LogView; |
86 | }; |
86 | }; |
87 | 87 | ||
88 | class cSettings |
88 | class cSettings |
89 | { |
89 | { |
90 | public: |
90 | public: |
91 | cSettings(); |
91 | cSettings(); |
92 | ~cSettings(); |
92 | ~cSettings(); |
93 | 93 | ||
94 | int Settings_ID; |
94 | int Settings_ID; |
95 | 95 | ||
96 | set_GUI GUI; |
96 | set_GUI GUI; |
97 | set_DIR DIR; |
97 | set_DIR DIR; |
98 | set_TTY TTY; |
98 | set_TTY TTY; |
99 | set_Analog Analog1; |
99 | set_Analog Analog1; |
100 | set_Data Data; |
100 | set_Data Data; |
101 | set_Server Server; |
101 | set_Server Server; |
102 | set_Map Map; |
102 | set_Map Map; |
103 | 103 | ||
104 | void read_Settings(); |
104 | void read_Settings(); |
105 | void read_SettingsID(); |
105 | void read_SettingsID(); |
106 | void write_Settings(); |
106 | void write_Settings(); |
107 | void write_Settings_Analog(int ID = 0); |
107 | void write_Settings_Analog(int ID = 0); |
108 | void read_Settings_Analog(int ID = 0); |
108 | void read_Settings_Analog(int ID = 0); |
109 | void write_Settings_AnalogLabels(int ID = 0); |
109 | void write_Settings_AnalogLabels(int ID = 0); |
110 | void read_Settings_AnalogLabels(int ID = 0); |
110 | void read_Settings_AnalogLabels(int ID = 0); |
111 | }; |
111 | }; |
112 | 112 | ||
113 | #endif |
113 | #endif |
114 | 114 |