Update Linux GUI to match changes to Windows one

This commit is contained in:
Adam Honse 2019-06-19 00:07:23 -05:00
parent af0bfde610
commit 18bf0ce013
3 changed files with 33 additions and 3 deletions

View file

@ -34,6 +34,21 @@ void Ui::OpenAuraSDKQtDialog::on_ButtonSetAll_clicked()
ui->EditLED0B->text().toInt()
);
for (int i = 0; i < controllers.size(); i++)
{
controllers[i]->SetCustomMode();
controllers[i]->SetAllLEDs(color);
}
}
void Ui::OpenAuraSDKQtDialog::on_ButtonSetDevice_clicked()
{
RGBColor color = ToRGBColor(
ui->EditLED0R->text().toInt(),
ui->EditLED0G->text().toInt(),
ui->EditLED0B->text().toInt()
);
controllers[ui->ComboDevices->currentIndex()]->SetAllLEDs(color);
}

View file

@ -35,6 +35,8 @@ protected:
private slots:
void on_ButtonSetAll_clicked();
void on_ButtonSetDevice_clicked();
void on_ButtonSetZone_clicked();
void on_ButtonSetLED_clicked();

View file

@ -30,8 +30,8 @@
<widget class="QPushButton" name="ButtonSetZone">
<property name="geometry">
<rect>
<x>100</x>
<y>60</y>
<x>10</x>
<y>90</y>
<width>80</width>
<height>20</height>
</rect>
@ -204,7 +204,7 @@
<widget class="QPushButton" name="ButtonSetLED">
<property name="geometry">
<rect>
<x>10</x>
<x>100</x>
<y>90</y>
<width>80</width>
<height>20</height>
@ -214,6 +214,19 @@
<string>Set LED</string>
</property>
</widget>
<widget class="QPushButton" name="ButtonSetDevice">
<property name="geometry">
<rect>
<x>100</x>
<y>60</y>
<width>80</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>Set Device</string>
</property>
</widget>
</widget>
</widget>
<resources/>