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