Update Linux GUI to match changes to Windows one
This commit is contained in:
parent
af0bfde610
commit
18bf0ce013
3 changed files with 33 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -35,6 +35,8 @@ protected:
|
|||
private slots:
|
||||
void on_ButtonSetAll_clicked();
|
||||
|
||||
void on_ButtonSetDevice_clicked();
|
||||
|
||||
void on_ButtonSetZone_clicked();
|
||||
|
||||
void on_ButtonSetLED_clicked();
|
||||
|
|
|
|||
|
|
@ -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/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue