aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/qt_sdl/PowerManagement
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/qt_sdl/PowerManagement')
-rw-r--r--src/frontend/qt_sdl/PowerManagement/PowerManagementDialog.cpp7
-rw-r--r--src/frontend/qt_sdl/PowerManagement/PowerManagementDialog.ui79
2 files changed, 53 insertions, 33 deletions
diff --git a/src/frontend/qt_sdl/PowerManagement/PowerManagementDialog.cpp b/src/frontend/qt_sdl/PowerManagement/PowerManagementDialog.cpp
index 499c176..89f74e5 100644
--- a/src/frontend/qt_sdl/PowerManagement/PowerManagementDialog.cpp
+++ b/src/frontend/qt_sdl/PowerManagement/PowerManagementDialog.cpp
@@ -23,6 +23,7 @@
#include "DSi_I2C.h"
#include "NDS.h"
#include "Config.h"
+#include "Platform.h"
#include "types.h"
@@ -65,6 +66,12 @@ PowerManagementDialog::PowerManagementDialog(QWidget* parent) : QDialog(parent),
}
ui->sliderDSiBatteryLevel->setValue(dsiBatterySliderPos);
+ int inst = Platform::InstanceID();
+ if (inst > 0)
+ ui->lblInstanceNum->setText(QString("Setting battery levels for instance %1").arg(inst+1));
+ else
+ ui->lblInstanceNum->hide();
+
inited = true;
}
diff --git a/src/frontend/qt_sdl/PowerManagement/PowerManagementDialog.ui b/src/frontend/qt_sdl/PowerManagement/PowerManagementDialog.ui
index e0e7c6e..77af225 100644
--- a/src/frontend/qt_sdl/PowerManagement/PowerManagementDialog.ui
+++ b/src/frontend/qt_sdl/PowerManagement/PowerManagementDialog.ui
@@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>562</width>
- <height>279</height>
+ <height>288</height>
</rect>
</property>
<property name="sizePolicy">
@@ -23,37 +23,7 @@
<property name="sizeConstraint">
<enum>QLayout::SetFixedSize</enum>
</property>
- <item row="0" column="0">
- <widget class="QGroupBox" name="grpDSBattery">
- <property name="title">
- <string>DS Battery</string>
- </property>
- <layout class="QGridLayout" name="gridLayout_2">
- <item row="1" column="1">
- <widget class="QRadioButton" name="rbDSBatteryLow">
- <property name="text">
- <string>Low</string>
- </property>
- </widget>
- </item>
- <item row="0" column="0" rowspan="2">
- <widget class="QLabel" name="label">
- <property name="text">
- <string>Battery Level</string>
- </property>
- </widget>
- </item>
- <item row="0" column="1">
- <widget class="QRadioButton" name="rbDSBatteryOkay">
- <property name="text">
- <string>Okay</string>
- </property>
- </widget>
- </item>
- </layout>
- </widget>
- </item>
- <item row="3" column="0">
+ <item row="4" column="0">
<widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation">
<enum>Qt::Horizontal</enum>
@@ -63,7 +33,7 @@
</property>
</widget>
</item>
- <item row="2" column="0">
+ <item row="3" column="0">
<widget class="QGroupBox" name="grpDSiBattery">
<property name="title">
<string>DSi Battery</string>
@@ -219,6 +189,49 @@
</layout>
</widget>
</item>
+ <item row="1" column="0">
+ <widget class="QGroupBox" name="grpDSBattery">
+ <property name="title">
+ <string>DS Battery</string>
+ </property>
+ <layout class="QGridLayout" name="gridLayout_2">
+ <item row="1" column="1">
+ <widget class="QRadioButton" name="rbDSBatteryLow">
+ <property name="text">
+ <string>Low</string>
+ </property>
+ </widget>
+ </item>
+ <item row="0" column="0" rowspan="2">
+ <widget class="QLabel" name="label">
+ <property name="text">
+ <string>Battery Level</string>
+ </property>
+ </widget>
+ </item>
+ <item row="0" column="1">
+ <widget class="QRadioButton" name="rbDSBatteryOkay">
+ <property name="text">
+ <string>Okay</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </widget>
+ </item>
+ <item row="0" column="0">
+ <widget class="QLabel" name="lblInstanceNum">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="text">
+ <string>Configuring settings for instance X</string>
+ </property>
+ </widget>
+ </item>
</layout>
</widget>
<resources>