Added "wait" supression
This commit is contained in:
parent
c90153a750
commit
7eabc94adf
@ -87,6 +87,7 @@ MainWindow::MainWindow(QWidget *parent) :
|
|||||||
feedrate = settings.value("feedrate", 1500).toInt();
|
feedrate = settings.value("feedrate", 1500).toInt();
|
||||||
extruderFeedrate = settings.value("extruderfeedrate", 200).toInt();
|
extruderFeedrate = settings.value("extruderfeedrate", 200).toInt();
|
||||||
trayIconEnabled = settings.value("core/trayiconenabled", 1).toBool();
|
trayIconEnabled = settings.value("core/trayiconenabled", 1).toBool();
|
||||||
|
supressWait = settings.value("user/supresswait", 0).toBool();
|
||||||
int size = settings.beginReadArray("user/recentfiles");
|
int size = settings.beginReadArray("user/recentfiles");
|
||||||
for(int i = 0; i < size; ++i)
|
for(int i = 0; i < size; ++i)
|
||||||
{
|
{
|
||||||
@ -603,6 +604,7 @@ void MainWindow::readSerial(QByteArray data)
|
|||||||
|
|
||||||
void MainWindow::printMsg(QString text)
|
void MainWindow::printMsg(QString text)
|
||||||
{
|
{
|
||||||
|
if(supressWait && text.startsWith("wait")) return;
|
||||||
//Get the cursor and set it to the end
|
//Get the cursor and set it to the end
|
||||||
QTextCursor cursor = ui->terminal->textCursor();
|
QTextCursor cursor = ui->terminal->textCursor();
|
||||||
cursor.movePosition(QTextCursor::End);
|
cursor.movePosition(QTextCursor::End);
|
||||||
|
|||||||
@ -77,6 +77,7 @@ private:
|
|||||||
bool echo;
|
bool echo;
|
||||||
bool chekingSDStatus;
|
bool chekingSDStatus;
|
||||||
bool trayIconEnabled;
|
bool trayIconEnabled;
|
||||||
|
bool supressWait;
|
||||||
int firmware;
|
int firmware;
|
||||||
int feedrate;
|
int feedrate;
|
||||||
int extruderFeedrate;
|
int extruderFeedrate;
|
||||||
|
|||||||
@ -25,6 +25,7 @@ SettingsWindow::SettingsWindow(QWidget *parent) :
|
|||||||
ui->checksumbox->setChecked(settings.value("core/checksums", 0).toBool());
|
ui->checksumbox->setChecked(settings.value("core/checksums", 0).toBool());
|
||||||
ui->sdbox->setChecked(settings.value("core/checksdstatus", 1).toBool());
|
ui->sdbox->setChecked(settings.value("core/checksdstatus", 1).toBool());
|
||||||
ui->dtrbox->setChecked(settings.value("core/dtr", 1).toBool());
|
ui->dtrbox->setChecked(settings.value("core/dtr", 1).toBool());
|
||||||
|
ui->supresswaitbox->setChecked(settings.value("user/supresswait").toBool());
|
||||||
|
|
||||||
ui->firmwarecombo->addItem("Marlin"); //0
|
ui->firmwarecombo->addItem("Marlin"); //0
|
||||||
ui->firmwarecombo->addItem("Repetier"); //1
|
ui->firmwarecombo->addItem("Repetier"); //1
|
||||||
@ -60,6 +61,7 @@ void SettingsWindow::on_buttonBox_accepted()
|
|||||||
settings.setValue("core/checksdstatus", ui->sdbox->isChecked());
|
settings.setValue("core/checksdstatus", ui->sdbox->isChecked());
|
||||||
settings.setValue("core/dtr", ui->dtrbox->isChecked());
|
settings.setValue("core/dtr", ui->dtrbox->isChecked());
|
||||||
settings.setValue("printer/firmware", ui->firmwarecombo->currentIndex());
|
settings.setValue("printer/firmware", ui->firmwarecombo->currentIndex());
|
||||||
|
settings.setValue("user/supresswait", ui->supresswaitbox->isChecked());
|
||||||
|
|
||||||
emit updatesettings();
|
emit updatesettings();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -6,8 +6,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>483</width>
|
<width>484</width>
|
||||||
<height>341</height>
|
<height>357</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
@ -59,6 +59,13 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="1" column="2">
|
||||||
|
<widget class="QLabel" name="label_3">
|
||||||
|
<property name="text">
|
||||||
|
<string>ms</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item row="1" column="1">
|
<item row="1" column="1">
|
||||||
<widget class="QDoubleSpinBox" name="senderbox">
|
<widget class="QDoubleSpinBox" name="senderbox">
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
@ -100,10 +107,10 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="2">
|
<item row="2" column="0">
|
||||||
<widget class="QLabel" name="label_3">
|
<widget class="QLabel" name="label_2">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>ms</string>
|
<string>Status</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -117,6 +124,13 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="8" column="0" colspan="3">
|
||||||
|
<widget class="QCheckBox" name="sdbox">
|
||||||
|
<property name="text">
|
||||||
|
<string>Check SD printing status</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item row="0" column="0" colspan="3">
|
<item row="0" column="0" colspan="3">
|
||||||
<widget class="QLabel" name="label_7">
|
<widget class="QLabel" name="label_7">
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
@ -139,20 +153,6 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="0">
|
|
||||||
<widget class="QLabel" name="label_2">
|
|
||||||
<property name="text">
|
|
||||||
<string>Status</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="8" column="0" colspan="3">
|
|
||||||
<widget class="QCheckBox" name="sdbox">
|
|
||||||
<property name="text">
|
|
||||||
<string>Check SD printing status</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="7" column="0" colspan="3">
|
<item row="7" column="0" colspan="3">
|
||||||
<widget class="QCheckBox" name="lockbox">
|
<widget class="QCheckBox" name="lockbox">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
@ -173,6 +173,13 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="10" column="0" colspan="2">
|
||||||
|
<widget class="QCheckBox" name="supresswaitbox">
|
||||||
|
<property name="text">
|
||||||
|
<string>Supress "wait" responce</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user