Disable/Enable Temperature UI with other elements
This commit is contained in:
parent
d33612959b
commit
0b6b327b0e
@ -18,6 +18,7 @@ MainWindow::MainWindow(QWidget *parent) :
|
|||||||
ui->actionPrint_from_SD->setDisabled(true);
|
ui->actionPrint_from_SD->setDisabled(true);
|
||||||
ui->actionSet_SD_printing_mode->setDisabled(true);
|
ui->actionSet_SD_printing_mode->setDisabled(true);
|
||||||
ui->actionEEPROM_editor->setDisabled(true);
|
ui->actionEEPROM_editor->setDisabled(true);
|
||||||
|
ui->statusGroup->setDisabled(true);
|
||||||
ui->extruderlcd->setPalette(Qt::red);
|
ui->extruderlcd->setPalette(Qt::red);
|
||||||
ui->bedlcd->setPalette(Qt::red);
|
ui->bedlcd->setPalette(Qt::red);
|
||||||
ui->sendtext->installEventFilter(this);
|
ui->sendtext->installEventFilter(this);
|
||||||
@ -267,6 +268,7 @@ void MainWindow::serialconnect()
|
|||||||
ui->progressBar->setValue(0);
|
ui->progressBar->setValue(0);
|
||||||
ui->controlBox->setDisabled(false);
|
ui->controlBox->setDisabled(false);
|
||||||
ui->consoleGroup->setDisabled(false);
|
ui->consoleGroup->setDisabled(false);
|
||||||
|
ui->statusGroup->setDisabled(false);
|
||||||
ui->actionPrint_from_SD->setEnabled(true);
|
ui->actionPrint_from_SD->setEnabled(true);
|
||||||
ui->actionSet_SD_printing_mode->setEnabled(true);
|
ui->actionSet_SD_printing_mode->setEnabled(true);
|
||||||
if(firmware == Repetier) ui->actionEEPROM_editor->setDisabled(false);
|
if(firmware == Repetier) ui->actionEEPROM_editor->setDisabled(false);
|
||||||
@ -285,6 +287,7 @@ void MainWindow::serialconnect()
|
|||||||
ui->consoleGroup->setDisabled(true);
|
ui->consoleGroup->setDisabled(true);
|
||||||
ui->actionPrint_from_SD->setDisabled(true);
|
ui->actionPrint_from_SD->setDisabled(true);
|
||||||
ui->actionSet_SD_printing_mode->setDisabled(true);
|
ui->actionSet_SD_printing_mode->setDisabled(true);
|
||||||
|
ui->statusGroup->setDisabled(true);
|
||||||
ui->actionEEPROM_editor->setDisabled(false);
|
ui->actionEEPROM_editor->setDisabled(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -416,7 +416,7 @@
|
|||||||
<item row="7" column="0" colspan="2">
|
<item row="7" column="0" colspan="2">
|
||||||
<widget class="QLabel" name="label_4">
|
<widget class="QLabel" name="label_4">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>B tmp</string>
|
<string>Bed tmp</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -903,6 +903,13 @@ STOP</string>
|
|||||||
<string>Console</string>
|
<string>Console</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout_3">
|
<layout class="QGridLayout" name="gridLayout_3">
|
||||||
|
<item row="3" column="0">
|
||||||
|
<widget class="QPushButton" name="sendbtn">
|
||||||
|
<property name="text">
|
||||||
|
<string>Send</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QTextBrowser" name="terminal">
|
<widget class="QTextBrowser" name="terminal">
|
||||||
<property name="acceptDrops">
|
<property name="acceptDrops">
|
||||||
@ -923,13 +930,6 @@ STOP</string>
|
|||||||
<item row="2" column="0">
|
<item row="2" column="0">
|
||||||
<widget class="QLineEdit" name="sendtext"/>
|
<widget class="QLineEdit" name="sendtext"/>
|
||||||
</item>
|
</item>
|
||||||
<item row="3" column="0">
|
|
||||||
<widget class="QPushButton" name="sendbtn">
|
|
||||||
<property name="text">
|
|
||||||
<string>Send</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user