Changeset View
Changeset View
Standalone View
Standalone View
testclient/mainwindow.cpp
Show First 20 Lines • Show All 468 Lines • ▼ Show 20 Line(s) | 436 | { | |||
---|---|---|---|---|---|
469 | } | 469 | } | ||
470 | } | 470 | } | ||
471 | 471 | | |||
472 | void MainWindow::pluginCBChanged(QString currentText) | 472 | void MainWindow::pluginCBChanged(QString currentText) | ||
473 | { | 473 | { | ||
474 | if (core->state() != AtCore::DISCONNECTED) { | 474 | if (core->state() != AtCore::DISCONNECTED) { | ||
475 | if (!currentText.contains(tr("Autodetect"))) { | 475 | if (!currentText.contains(tr("Autodetect"))) { | ||
476 | core->loadFirmwarePlugin(currentText); | 476 | core->loadFirmwarePlugin(currentText); | ||
477 | sdDock->setVisible(core->firmwarePlugin()->isSdSupported()); | ||||
477 | } | 478 | } | ||
478 | } | 479 | } | ||
479 | } | 480 | } | ||
480 | 481 | | |||
481 | void MainWindow::printerStateChanged(AtCore::STATES state) | 482 | void MainWindow::printerStateChanged(AtCore::STATES state) | ||
482 | { | 483 | { | ||
483 | QString stateString; | 484 | QString stateString; | ||
484 | switch (state) { | 485 | switch (state) { | ||
485 | case AtCore::IDLE: | 486 | case AtCore::IDLE: | ||
486 | printWidget->setPrintText(tr("Print File")); | 487 | printWidget->setPrintText(tr("Print File")); | ||
487 | stateString = tr("Connected to ") + core->connectedPort(); | 488 | stateString = tr("Connected to ") + core->connectedPort(); | ||
489 | sdDock->setVisible(core->firmwarePlugin()->isSdSupported()); | ||||
488 | break; | 490 | break; | ||
489 | 491 | | |||
490 | case AtCore::STARTPRINT: | 492 | case AtCore::STARTPRINT: | ||
491 | stateString = tr("START PRINT"); | 493 | stateString = tr("START PRINT"); | ||
492 | printWidget->setPrintText(tr("Pause Print")); | 494 | printWidget->setPrintText(tr("Pause Print")); | ||
493 | statusWidget->showPrintArea(true); | 495 | statusWidget->showPrintArea(true); | ||
494 | break; | 496 | break; | ||
495 | 497 | | |||
▲ Show 20 Lines • Show All 73 Lines • Show Last 20 Lines |