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 | } |
Line 44... | Line 44... | ||
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); |
|
- | 48 | #ifdef WIN32 |
|
- | 49 | QMK_Dir = tmp.left(tmp.lastIndexOf("\\")); |
|
47 | QString tmp = QString(Programm); |
50 | #else |
- | 51 | QMK_Dir = tmp.left(tmp.lastIndexOf("/")); |
|
- | 52 | #endif |
|
- | 53 | ||
48 | QMK_Dir = tmp.left(tmp.lastIndexOf("/")); |
54 | qDebug(QMK_Dir.toLatin1().data()); |
Line 49... | Line 55... | ||
49 | } |
55 | } |
50 | 56 | ||
51 | // Grafische Oberfläche initialisieren |
57 | // Grafische Oberfläche initialisieren |
Line 441... | Line 447... | ||
441 | // Slots // |
447 | // Slots // |
442 | /////////// |
448 | /////////// |
Line 443... | Line 449... | ||
443 | 449 | ||
444 | void dlg_Main::slot_btn_cScope() |
450 | void dlg_Main::slot_btn_cScope() |
- | 451 | { |
|
- | 452 | #ifdef WIN32 |
|
- | 453 | QString Programm = QMK_Dir + "\QMK-Scope.exe"; |
|
445 | { |
454 | #else |
- | 455 | QString Programm = QMK_Dir + "/QMK-Scope"; |
|
Line 446... | Line 456... | ||
446 | QString Programm = QMK_Dir + "/QMK-Scope"; |
456 | #endif |
Line 447... | Line 457... | ||
447 | 457 | ||
Line 454... | Line 464... | ||
454 | o_cScope->start(Programm, Argumente); // Programmaufruf |
464 | o_cScope->start(Programm, Argumente); // Programmaufruf |
455 | } |
465 | } |
Line 456... | Line 466... | ||
456 | 466 | ||
457 | void dlg_Main::slot_btn_cSettings() |
467 | void dlg_Main::slot_btn_cSettings() |
- | 468 | { |
|
- | 469 | #ifdef WIN32 |
|
- | 470 | QString Programm = QMK_Dir + "\QMK-Settings.exe"; |
|
458 | { |
471 | #else |
- | 472 | QString Programm = QMK_Dir + "/QMK-Settings"; |
|
Line 459... | Line 473... | ||
459 | QString Programm = QMK_Dir + "/QMK-Settings"; |
473 | #endif |
Line 460... | Line 474... | ||
460 | 474 | ||
Line 467... | Line 481... | ||
467 | o_cSettings->start(Programm, Argumente); // Programmaufruf |
481 | o_cSettings->start(Programm, Argumente); // Programmaufruf |
468 | } |
482 | } |
Line 469... | Line 483... | ||
469 | 483 | ||
470 | void dlg_Main::slot_btn_cMaps() |
484 | void dlg_Main::slot_btn_cMaps() |
- | 485 | { |
|
- | 486 | #ifdef WIN32 |
|
- | 487 | QString Programm = QMK_Dir + "\QMK-Maps.exe"; |
|
471 | { |
488 | #else |
- | 489 | QString Programm = QMK_Dir + "/QMK-Maps"; |
|
Line 472... | Line 490... | ||
472 | QString Programm = QMK_Dir + "/QMK-Maps"; |
490 | #endif |
Line 473... | Line 491... | ||
473 | 491 | ||
Line 480... | Line 498... | ||
480 | o_cMaps->start(Programm, Argumente); // Programmaufruf |
498 | o_cMaps->start(Programm, Argumente); // Programmaufruf |
481 | } |
499 | } |
Line 482... | Line 500... | ||
482 | 500 | ||
483 | void dlg_Main::slot_btn_cVoice() |
501 | void dlg_Main::slot_btn_cVoice() |
- | 502 | { |
|
- | 503 | #ifdef WIN32 |
|
- | 504 | QString Programm = QMK_Dir + "\QMK-Voice.exe"; |
|
484 | { |
505 | #else |
- | 506 | QString Programm = QMK_Dir + "/QMK-Voice"; |
|
Line 485... | Line 507... | ||
485 | QString Programm = QMK_Dir + "/QMK-Voice"; |
507 | #endif |
Line 486... | Line 508... | ||
486 | 508 | ||
Line 493... | Line 515... | ||
493 | o_cVoice->start(Programm, Argumente); // Programmaufruf |
515 | o_cVoice->start(Programm, Argumente); // Programmaufruf |
494 | } |
516 | } |
Line 495... | Line 517... | ||
495 | 517 | ||
496 | void dlg_Main::slot_btn_cLogger() |
518 | void dlg_Main::slot_btn_cLogger() |
- | 519 | { |
|
- | 520 | #ifdef WIN32 |
|
- | 521 | QString Programm = QMK_Dir + "\QMK-Logger.exe"; |
|
497 | { |
522 | #else |
- | 523 | QString Programm = QMK_Dir + "/QMK-Logger"; |
|
Line 498... | Line 524... | ||
498 | QString Programm = QMK_Dir + "/QMK-Logger"; |
524 | #endif |
Line 499... | Line 525... | ||
499 | 525 |