forked from torriem/QtAgOpenGPS
-
Notifications
You must be signed in to change notification settings - Fork 1
/
formgps_classcallbacks.cpp
66 lines (49 loc) · 2.06 KB
/
formgps_classcallbacks.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#include "formgps.h"
#include "aogsettings.h"
extern AOGSettings *settings;
/***************************************
* callbacks for classes to connect to *
***************************************/
//TimedMessageBox defined in ??????, not here
void FormGPS::connect_classes()
{
simConnectSlots();
connect(&curve,SIGNAL(stopAutoSteer()),this,SLOT(onStopAutoSteer()));
connect(&curve,SIGNAL(TimedMessage(int,QString,QString)),this,SLOT(TimedMessageBox(int,QString,QString)));
connect(&ct,SIGNAL(TimedMessage(int,QString,QString)),this,SLOT(TimedMessageBox(int,QString,QString)));
connect(&mc, SIGNAL(stopAutoSteer()),this,SLOT(onStopAutoSteer()));
connect(&mc, SIGNAL(turnOffAutoSections()),this,SLOT(onSectionMasterAutoOff()));
connect(&mc, SIGNAL(turnOffManulSections()),this,SLOT(onSectionMasterManualOff()));
connect(&pn, SIGNAL(checkZoomWorldGrid(double,double)),&worldGrid,SLOT(checkZoomWorldGrid(double,double)));
connect(&recPath, SIGNAL(setSimStepDistance(double)),&sim,SLOT(setSimStepDistance(double)));
connect(&recPath,SIGNAL(turnOffSectionMasterAuto()),this,SLOT(onSectionMasterAutoOff()));
connect(&recPath, SIGNAL(stoppedDriving()),this,SLOT(onStoppedDriving()));
connect(&bnd,SIGNAL(TimedMessage(int,QString,QString)),this,SLOT(TimedMessageBox(int,QString,QString)));
//connect(&bnd, SIGNAL(soundHydLiftChange(bool)),sounds,SLOT(onHydLiftChange(bool)));
connect(&yt, SIGNAL(outOfBounds()),&mc,SLOT(setOutOfBounds()));
//TODO: connect(&yt,SIGNAL(turnOffBoundAlarm()),&sounds,SLOT(onTurnOffBoundAlarm()));
//connect(settings, &AOGSettings::updateFromSettings, this, &FormGPS::loadSettings);
}
void FormGPS::onStopAutoSteer()
{
//TODO
//turn off auto steer
//reset gui buttons
}
void FormGPS::onSectionMasterAutoOff()
{
//turn off sections
//reset GUI buttons
}
void FormGPS::onSectionMasterManualOff()
{
//turn off sections
//reset GUI buttons
}
void FormGPS::onStoppedDriving()
{
//reset btnPathGoStop
//reset btnPathRecordStop
//reset btnPickPath
//reset btnResumePath
}