Subversion Repositories Projects

Rev

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

Rev 279 Rev 305
Line 67... Line 67...
67
 
67
 
68
    // Beta-Sachen einschalten.
68
    // Beta-Sachen einschalten.
69
#ifdef _BETA_
69
#ifdef _BETA_
70
    ac_QMKServer->setEnabled(true);
70
    ac_QMKServer->setEnabled(true);
71
#endif
-
 
72
 
71
#endif
73
    // Settings-Tab hinzufügen.
72
    // Settings-Tab hinzufügen.
74
    f_Settings = new wdg_Settings( this );
73
    f_Settings = new wdg_Settings( this );
75
    f_Settings->set_Config(Settings);
74
    f_Settings->set_Config(Settings);
76
    tab_Main->insertTab ( 2, f_Settings, ac_View2->icon(), "FC-Settings");
75
    tab_Main->insertTab ( 2, f_Settings, ac_View2->icon(), "FC-Settings");
Line 202... Line 201...
202
    logger = new Logger(Settings, &Mode);
201
    logger = new Logger(Settings, &Mode);
Line 203... Line 202...
203
 
202
 
204
    // LCD-Dialog
203
    // LCD-Dialog
Line -... Line 204...
-
 
204
    f_LCD = new dlg_LCD(this);
-
 
205
 
-
 
206
    // LCD-Dialog
205
    f_LCD = new dlg_LCD(this);
207
    f_Map = new dlg_Map(this);
Line 206... Line 208...
206
 
208
 
207
    GE_Server = new cServer();
209
    GE_Server = new cServer();
Line 237... Line 239...
237
    // Actions
239
    // Actions
238
    connect(ac_Config,       SIGNAL(triggered()), this, SLOT(slot_ac_Config()));
240
    connect(ac_Config,       SIGNAL(triggered()), this, SLOT(slot_ac_Config()));
239
    connect(ac_Preferences,  SIGNAL(triggered()), this, SLOT(slot_ac_Preferences()));
241
    connect(ac_Preferences,  SIGNAL(triggered()), this, SLOT(slot_ac_Preferences()));
240
    connect(ac_Motortest,    SIGNAL(triggered()), this, SLOT(slot_ac_Motortest()));
242
    connect(ac_Motortest,    SIGNAL(triggered()), this, SLOT(slot_ac_Motortest()));
241
    connect(ac_LCD,          SIGNAL(triggered()), this, SLOT(slot_ac_LCD()));
243
    connect(ac_LCD,          SIGNAL(triggered()), this, SLOT(slot_ac_LCD()));
-
 
244
    connect(ac_Map,          SIGNAL(triggered()), this, SLOT(slot_ac_Map()));
242
    connect(ac_FastDebug,    SIGNAL(triggered()), this, SLOT(slot_ac_FastDebug()));
245
    connect(ac_FastDebug,    SIGNAL(triggered()), this, SLOT(slot_ac_FastDebug()));
243
    connect(ac_NoDebug,      SIGNAL(triggered()), this, SLOT(slot_ac_NoDebug()));
246
    connect(ac_NoDebug,      SIGNAL(triggered()), this, SLOT(slot_ac_NoDebug()));
244
    connect(ac_FastNavi,     SIGNAL(triggered()), this, SLOT(slot_ac_FastNavi()));
247
    connect(ac_FastNavi,     SIGNAL(triggered()), this, SLOT(slot_ac_FastNavi()));
245
    connect(ac_NoNavi,       SIGNAL(triggered()), this, SLOT(slot_ac_NoNavi()));
248
    connect(ac_NoNavi,       SIGNAL(triggered()), this, SLOT(slot_ac_NoNavi()));
246
    connect(ac_GetLabels,    SIGNAL(triggered()), this, SLOT(slot_ac_GetLabels()));
249
    connect(ac_GetLabels,    SIGNAL(triggered()), this, SLOT(slot_ac_GetLabels()));
Line 683... Line 686...
683
        Ticker->setInterval(500);
686
        Ticker->setInterval(500);
684
        TickerEvent[2] = true;
687
        TickerEvent[2] = true;
685
    }
688
    }
686
}
689
}
Line -... Line 690...
-
 
690
 
-
 
691
void MKTool::slot_ac_Map()
-
 
692
{
-
 
693
    if (!f_Map->isVisible())
-
 
694
    {
-
 
695
        f_Map = new dlg_Map(this);
-
 
696
 
-
 
697
        f_Map->show();
-
 
698
    }
-
 
699
}
-
 
700
 
687
 
701
 
688
void MKTool::slot_Motortest(int Motor1, int Motor2, int Motor3, int Motor4)
702
void MKTool::slot_Motortest(int Motor1, int Motor2, int Motor3, int Motor4)
689
{
703
{
690
    TX_Data[0] = Motor1;
704
    TX_Data[0] = Motor1;
691
    TX_Data[1] = Motor2;
705
    TX_Data[1] = Motor2;
Line 1317... Line 1331...
1317
    NaviString.Latitude  = ToolBox::get_Float(Navi.Current.Latitude,10000000);
1331
    NaviString.Latitude  = ToolBox::get_Float(Navi.Current.Latitude,10000000);
1318
    NaviString.Altitude  = ToolBox::get_Float(Navi.Current.Altitude,1000);
1332
    NaviString.Altitude  = ToolBox::get_Float(Navi.Current.Altitude,1000);
Line 1319... Line 1333...
1319
 
1333
 
Line -... Line 1334...
-
 
1334
    GE_Server->store_NaviString(NaviString);
-
 
1335
 
1320
    GE_Server->store_NaviString(NaviString);
1336
    f_Map->add_Position(NaviString.Longitude.toDouble(), NaviString.Latitude.toDouble());
1321
 
1337
 
1322
    if ((QMK_Server->property("Connect")) == true)
1338
    if ((QMK_Server->property("Connect")) == true)
1323
    {
1339
    {
1324
//        qDebug("Send Data to Server..!!");
1340
//        qDebug("Send Data to Server..!!");