Subversion Repositories Projects

Rev

Rev 167 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 167 Rev 199
Line 36... Line 36...
36
#include "ui_mktool.h"
36
#include "ui_mktool.h"
37
#include "wdg_Settings.h"
37
#include "wdg_Settings.h"
Line 38... Line 38...
38
 
38
 
39
#include "../SerialPort/ManageSerialPort.h"
39
#include "../SerialPort/ManageSerialPort.h"
-
 
40
#include "../cSettings.h"
Line 40... Line 41...
40
#include "../cSettings.h"
41
#include "../Classes/cServer.h"
Line 41... Line 42...
41
 
42
 
42
class QextSerialPort;
43
class QextSerialPort;
Line 49... Line 50...
49
      MKTool();
50
      MKTool();
50
      ~MKTool();
51
      ~MKTool();
Line 51... Line 52...
51
 
52
 
52
private:
53
private:
-
 
54
    bool AllowSend;
53
    bool AllowSend;
55
 
54
    // Object für Serielport
56
    // Object für Serielport
Line 55... Line 57...
55
    ManageSerialPort *serialPort;
57
    ManageSerialPort *serialPort;
56
 
58
 
Line 57... Line 59...
57
    // Settings-Object
59
    // Settings-Object (Programmeinstellungen)
58
    cSettings *Settings;
60
    cSettings *Settings;
Line -... Line 61...
-
 
61
 
-
 
62
    // Settings-Widget (FC-Settings)
-
 
63
    wdg_Settings *f_Settings;
59
 
64
 
60
    // Settings-Widget
65
    // HTTp-Server-Object für Google Earth
Line 61... Line 66...
61
    wdg_Settings *f_Settings;
66
    cServer *Server;
62
 
67
 
Line 63... Line 68...
63
    // Default-Ticker
68
    // Default-Ticker
64
    QTimer *Ticker;
69
    QTimer *Ticker;
Line 82... Line 87...
82
 
87
 
83
    // Ticker-Event-Array
88
    // Ticker-Event-Array
84
    bool TickerEvent[MaxTickerEvents];
89
    bool TickerEvent[MaxTickerEvents];
Line -... Line 90...
-
 
90
    bool TickerDiv;
85
    bool TickerDiv;
91
 
86
 
92
    // Aktuelle und Max-Anzahl der LCD-Seiten
Line 87... Line -...
87
    int LCD_Page;
-
 
88
    int LCD_MAX_Page;
-
 
89
 
-
 
90
    // Alle Icons
-
 
91
    QIcon Icons[30];
-
 
92
 
93
    int LCD_Page;
93
//    QByteArray allDataReceived;
94
    int LCD_MAX_Page;
Line 94... Line 95...
94
 
95
 
95
    // Object für das Datenfile;
96
    // Object für das Datenfile;
-
 
97
    QFile  *CSVFile;
Line 96... Line 98...
96
    QFile  *CSVFile;
98
 
97
 
99
    sMode Mode;
Line 98... Line 100...
98
    sMode Mode;
100
    sRxData RxData;
99
    sRxData RxData;
101
    sNaviData Navi;
Line -... Line 102...
-
 
102
 
100
 
103
    QString RXS;
Line -... Line 104...
-
 
104
    QString LastSend;
101
    QString RXS;
105
 
Line 102... Line 106...
102
    QString LastSend;
106
    // Softwareupdate
103
 
107
    QProcess *Update;
104
    // Softwareupdate
108
 
105
    QProcess *Update;
109
    // Sendedatenbuffer
106
 
110
    char TX_Data[150];
107
    char TX_Data[150];
-
 
108
 
111
 
Line 109... Line 112...
109
    int ParameterSet[11][MaxParameter];
112
    // FC-Settings
110
 
113
    int FCSettings[MaxParameter];
111
    // Programm Initialisieren
114
 
Line -... Line 115...
-
 
115
    // Programm Initialisieren
-
 
116
    void init_GUI();
112
    void init_GUI();
117
    void init_Objects();
113
    void init_Objects();
118
    void init_Connections();
114
    void init_Connections();
119
    void init_Arrays();
Line 115... Line 120...
115
    void init_Arrays();
120
    void init_Plot();
Line 130... Line 135...
130
 
135
 
131
    // Programmeinstellungen speichern
136
    // Programmeinstellungen speichern
Line 132... Line 137...
132
    void set_Preferences();
137
    void set_Preferences();
-
 
138
 
-
 
139
private slots:
-
 
140
    void slot_ac_Hardware();
-
 
141
    void slot_rb_Hardware();
-
 
142
 
-
 
143
    void slot_ac_StartServer();
-
 
144
 
133
 
145
    void slot_Test();
134
private slots:
146
 
135
    void slot_ac_Config();
147
    void slot_ac_Config();
136
    void slot_ac_Preferences();
148
    void slot_ac_Preferences();
137
    void slot_ac_StartPlotter();
149
    void slot_ac_StartPlotter();
-
 
150
    void slot_ac_View();
138
    void slot_ac_View();
151
    void slot_ac_FastDebug();
-
 
152
    void slot_ac_NoDebug();
139
    void slot_ac_MehrDaten();
153
    void slot_ac_FastNavi();
140
    void slot_ac_KeineDaten();
154
    void slot_ac_NoNavi();
141
    void slot_ac_About();
155
    void slot_ac_About();
142
    void slot_ac_GetLabels();
156
    void slot_ac_GetLabels();
Line 143... Line 157...
143
    void slot_ac_Motortest();
157
    void slot_ac_Motortest();
144
    void slot_pb_HexFile();
158
    void slot_pb_HexFile();
Line -... Line 159...
-
 
159
 
145
 
160
    // Default-Ticker
146
    // Default-Ticker
161
    void slot_Ticker();
Line 147... Line 162...
147
    void slot_Ticker();
162
 
Line -... Line 163...
-
 
163
    // LCD-Seite vor / zurück
148
 
164
    void slot_LCD_UP();
149
    void slot_LCD_UP();
-
 
150
    void slot_LCD_DOWN();
165
    void slot_LCD_DOWN();
Line 151... Line 166...
151
 
166
 
152
    void slot_Motortest(int Motor1, int Motor2, int Motor3, int Motor4);
167
    void slot_Motortest(int Motor1, int Motor2, int Motor3, int Motor4);
153
 
168
 
Line 163... Line 178...
163
 
178
 
Line 164... Line 179...
164
    void slot_RecordCSV();
179
    void slot_RecordCSV();
Line -... Line 180...
-
 
180
 
165
 
181
    void slot_ScrollPlot(int Pos);
166
    void slot_ScrollPlot(int Pos);
182
 
167
 
183
    // FC-Settings lesen / Schreiben
Line 168... Line 184...
168
    void slot_GetParameter();
184
    void slot_GetFCSettings();