Subversion Repositories Projects

Rev

Rev 750 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 750 Rev 801
Line 43... Line 43...
43
}
43
}
44
44
45
void dlg_Main::set_ARGV(char *Programm)
45
void dlg_Main::set_ARGV(char *Programm)
46
{
46
{
47
    QString tmp = QString(Programm);
47
    QString tmp = QString(Programm);
-
 
48
#ifdef WIN32
-
 
49
    QMK_Dir = tmp.left(tmp.lastIndexOf("\\"));
-
 
50
#else
48
    QMK_Dir = tmp.left(tmp.lastIndexOf("/"));
51
    QMK_Dir = tmp.left(tmp.lastIndexOf("/"));
-
 
52
#endif
-
 
53
-
 
54
    qDebug(QMK_Dir.toLatin1().data());
49
}
55
}
50
56
51
// Grafische Oberfläche initialisieren
57
// Grafische Oberfläche initialisieren
52
//////////////////////////////////////
58
//////////////////////////////////////
53
void dlg_Main::init_GUI()
59
void dlg_Main::init_GUI()
Line 441... Line 447...
441
// Slots //
447
// Slots //
442
///////////
448
///////////
443
449
444
void dlg_Main::slot_btn_cScope()
450
void dlg_Main::slot_btn_cScope()
445
{
451
{
-
 
452
#ifdef WIN32
-
 
453
    QString Programm = QMK_Dir + "\QMK-Scope.exe";
-
 
454
#else
446
    QString Programm = QMK_Dir + "/QMK-Scope";
455
    QString Programm = QMK_Dir + "/QMK-Scope";
-
 
456
#endif
447
457
448
    QStringList Argumente;
458
    QStringList Argumente;
449
459
450
    o_cScope = new QProcess();
460
    o_cScope = new QProcess();
451
461
Line 454... Line 464...
454
    o_cScope->start(Programm, Argumente); // Programmaufruf
464
    o_cScope->start(Programm, Argumente); // Programmaufruf
455
}
465
}
456
466
457
void dlg_Main::slot_btn_cSettings()
467
void dlg_Main::slot_btn_cSettings()
458
{
468
{
-
 
469
#ifdef WIN32
-
 
470
    QString Programm = QMK_Dir + "\QMK-Settings.exe";
-
 
471
#else
459
    QString Programm = QMK_Dir + "/QMK-Settings";
472
    QString Programm = QMK_Dir + "/QMK-Settings";
-
 
473
#endif
460
474
461
    QStringList Argumente;
475
    QStringList Argumente;
462
476
463
    o_cSettings = new QProcess();
477
    o_cSettings = new QProcess();
464
478
Line 467... Line 481...
467
    o_cSettings->start(Programm, Argumente); // Programmaufruf
481
    o_cSettings->start(Programm, Argumente); // Programmaufruf
468
}
482
}
469
483
470
void dlg_Main::slot_btn_cMaps()
484
void dlg_Main::slot_btn_cMaps()
471
{
485
{
-
 
486
#ifdef WIN32
-
 
487
    QString Programm = QMK_Dir + "\QMK-Maps.exe";
-
 
488
#else
472
    QString Programm = QMK_Dir + "/QMK-Maps";
489
    QString Programm = QMK_Dir + "/QMK-Maps";
-
 
490
#endif
473
491
474
    QStringList Argumente;
492
    QStringList Argumente;
475
493
476
    o_cMaps = new QProcess();
494
    o_cMaps = new QProcess();
477
495
Line 480... Line 498...
480
    o_cMaps->start(Programm, Argumente); // Programmaufruf
498
    o_cMaps->start(Programm, Argumente); // Programmaufruf
481
}
499
}
482
500
483
void dlg_Main::slot_btn_cVoice()
501
void dlg_Main::slot_btn_cVoice()
484
{
502
{
-
 
503
#ifdef WIN32
-
 
504
    QString Programm = QMK_Dir + "\QMK-Voice.exe";
-
 
505
#else
485
    QString Programm = QMK_Dir + "/QMK-Voice";
506
    QString Programm = QMK_Dir + "/QMK-Voice";
-
 
507
#endif
486
508
487
    QStringList Argumente;
509
    QStringList Argumente;
488
510
489
    o_cVoice = new QProcess();
511
    o_cVoice = new QProcess();
490
512
Line 493... Line 515...
493
    o_cVoice->start(Programm, Argumente); // Programmaufruf
515
    o_cVoice->start(Programm, Argumente); // Programmaufruf
494
}
516
}
495
517
496
void dlg_Main::slot_btn_cLogger()
518
void dlg_Main::slot_btn_cLogger()
497
{
519
{
-
 
520
#ifdef WIN32
-
 
521
    QString Programm = QMK_Dir + "\QMK-Logger.exe";
-
 
522
#else
498
    QString Programm = QMK_Dir + "/QMK-Logger";
523
    QString Programm = QMK_Dir + "/QMK-Logger";
-
 
524
#endif
499
525
500
    QStringList Argumente;
526
    QStringList Argumente;
501
527
502
    o_cLogger = new QProcess();
528
    o_cLogger = new QProcess();
503
529