Add Dump Aura button to Linux Qt dialog

This commit is contained in:
Adam Honse committed 2019-03-13 22:08:23 -05:00
1 parent 484e4e9770
commit a2cdfc5aec
4 files changed
+28 -1

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@ QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = OpenAuraSDK
TARGET = OpenAuraSDK.bin
TEMPLATE = app
SOURCES += \
+12
View File
@@ -342,3 +342,15 @@ void Ui::OpenAuraSDKQtDialog::on_RadioChaseFade_clicked()
{
setMode(AURA_MODE_CHASE_FADE);
}
void Ui::OpenAuraSDKQtDialog::on_ButtonDumpAura_clicked()
{
unsigned int aura_device = ui->ComboAuraDevices->currentIndex();
if (aura_device > 0)
{
ui->ButtonDumpAura->setEnabled(false);
DumpAuraRegisters(controllers[aura_device - 1]);
ui->ButtonDumpAura->setEnabled(true);
}
}
+2
View File
@@ -59,6 +59,8 @@ private slots:
void on_RadioChaseFade_clicked();
void on_ButtonDumpAura_clicked();
private:
Ui::OpenAuraSDKQtDialogUi *ui;
};
+13
View File
@@ -408,6 +408,19 @@
</property>
</widget>
</widget>
<widget class="QPushButton" name="ButtonDumpAura">
<property name="geometry">
<rect>
<x>190</x>
<y>260</y>
<width>89</width>
<height>25</height>
</rect>
</property>
<property name="text">
<string>Dump Aura</string>
</property>
</widget>
</widget>
</widget>
<resources/>