mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-14 16:55:36 +08:00
Scale UI component, used in launcher
This commit is contained in:
@@ -357,6 +357,9 @@ QString CSwiftLauncher::toCmdLine(const QString &exe, const QStringList &exeArgs
|
||||
void CSwiftLauncher::startButtonPressed()
|
||||
{
|
||||
const QObject *sender = QObject::sender();
|
||||
const qreal scaleFactor = ui->comp_Scale->getScaleFactor();
|
||||
CGuiApplication::highDpiScreenSupport(scaleFactor);
|
||||
|
||||
if (sender == ui->tb_SwiftGui)
|
||||
{
|
||||
if (this->setSwiftGuiExecutable())
|
||||
|
||||
@@ -99,7 +99,7 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>392</width>
|
||||
<height>319</height>
|
||||
<height>299</height>
|
||||
</rect>
|
||||
</property>
|
||||
<attribute name="label">
|
||||
@@ -130,7 +130,7 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>392</width>
|
||||
<height>319</height>
|
||||
<height>299</height>
|
||||
</rect>
|
||||
</property>
|
||||
<attribute name="label">
|
||||
@@ -195,7 +195,7 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>392</width>
|
||||
<height>319</height>
|
||||
<height>299</height>
|
||||
</rect>
|
||||
</property>
|
||||
<attribute name="label">
|
||||
@@ -361,7 +361,7 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>392</width>
|
||||
<height>319</height>
|
||||
<height>299</height>
|
||||
</rect>
|
||||
</property>
|
||||
<attribute name="label">
|
||||
@@ -443,7 +443,7 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>376</width>
|
||||
<height>156</height>
|
||||
<height>136</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="vl_DataUpdatesScrollArea">
|
||||
@@ -494,7 +494,7 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>392</width>
|
||||
<height>319</height>
|
||||
<height>299</height>
|
||||
</rect>
|
||||
</property>
|
||||
<attribute name="label">
|
||||
@@ -531,7 +531,7 @@
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>0</width>
|
||||
<height>140</height>
|
||||
<height>160</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="currentIndex">
|
||||
@@ -543,68 +543,36 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>392</width>
|
||||
<height>116</height>
|
||||
<height>136</height>
|
||||
</rect>
|
||||
</property>
|
||||
<attribute name="label">
|
||||
<string>Start application</string>
|
||||
</attribute>
|
||||
<layout class="QGridLayout" name="gl_Start">
|
||||
<item row="0" column="2">
|
||||
<widget class="QToolButton" name="tb_SwiftMappingTool">
|
||||
<property name="toolTip">
|
||||
<string>start swift data (the mapping tool)</string>
|
||||
<property name="leftMargin">
|
||||
<number>3</number>
|
||||
</property>
|
||||
<property name="topMargin">
|
||||
<number>3</number>
|
||||
</property>
|
||||
<property name="rightMargin">
|
||||
<number>3</number>
|
||||
</property>
|
||||
<property name="bottomMargin">
|
||||
<number>3</number>
|
||||
</property>
|
||||
<item row="0" column="0" colspan="5">
|
||||
<widget class="BlackGui::Components::CScaleScreenFactor" name="comp_Scale">
|
||||
<property name="frameShape">
|
||||
<enum>QFrame::StyledPanel</enum>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>mapping tool</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../blackmisc/blackmisc.qrc">
|
||||
<normaloff>:/own/icons/own/swift3D/sw3DGreen-256.png</normaloff>:/own/icons/own/swift3D/sw3DGreen-256.png</iconset>
|
||||
</property>
|
||||
<property name="iconSize">
|
||||
<size>
|
||||
<width>64</width>
|
||||
<height>64</height>
|
||||
</size>
|
||||
<property name="frameShadow">
|
||||
<enum>QFrame::Raised</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="4">
|
||||
<widget class="QToolButton" name="tb_Database">
|
||||
<property name="toolTip">
|
||||
<string>open browser for swift database</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>goto swift database</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../blackmisc/blackmisc.qrc">
|
||||
<normaloff>:/own/icons/own/swift3D/sw3DGreen-256.png</normaloff>:/own/icons/own/swift3D/sw3DGreen-256.png</iconset>
|
||||
</property>
|
||||
<property name="iconSize">
|
||||
<size>
|
||||
<width>48</width>
|
||||
<height>48</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="2" alignment="Qt::AlignHCenter">
|
||||
<widget class="QLabel" name="lbl_SwiftData">
|
||||
<property name="text">
|
||||
<string>mapping tool</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1" alignment="Qt::AlignHCenter">
|
||||
<widget class="QLabel" name="lbl_SwiftCore">
|
||||
<property name="text">
|
||||
<string>core</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="0">
|
||||
<item row="1" column="0">
|
||||
<widget class="QToolButton" name="tb_SwiftGui">
|
||||
<property name="toolTip">
|
||||
<string>start swift GUI</string>
|
||||
@@ -624,14 +592,7 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0" alignment="Qt::AlignHCenter">
|
||||
<widget class="QLabel" name="lbl_SwiftGui">
|
||||
<property name="text">
|
||||
<string>GUI</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<item row="1" column="1">
|
||||
<widget class="QToolButton" name="tb_SwiftCore">
|
||||
<property name="toolTip">
|
||||
<string>start swift core</string>
|
||||
@@ -651,7 +612,27 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="3">
|
||||
<item row="1" column="2">
|
||||
<widget class="QToolButton" name="tb_SwiftMappingTool">
|
||||
<property name="toolTip">
|
||||
<string>start swift data (the mapping tool)</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>mapping tool</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../blackmisc/blackmisc.qrc">
|
||||
<normaloff>:/own/icons/own/swift3D/sw3DGreen-256.png</normaloff>:/own/icons/own/swift3D/sw3DGreen-256.png</iconset>
|
||||
</property>
|
||||
<property name="iconSize">
|
||||
<size>
|
||||
<width>64</width>
|
||||
<height>64</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="3">
|
||||
<widget class="QToolButton" name="tb_ConfigurationWizard">
|
||||
<property name="text">
|
||||
<string>...</string>
|
||||
@@ -668,14 +649,55 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="3" alignment="Qt::AlignHCenter">
|
||||
<item row="1" column="4">
|
||||
<widget class="QToolButton" name="tb_Database">
|
||||
<property name="toolTip">
|
||||
<string>open browser for swift database</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>goto swift database</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../blackmisc/blackmisc.qrc">
|
||||
<normaloff>:/own/icons/own/swift3D/sw3DGreen-256.png</normaloff>:/own/icons/own/swift3D/sw3DGreen-256.png</iconset>
|
||||
</property>
|
||||
<property name="iconSize">
|
||||
<size>
|
||||
<width>48</width>
|
||||
<height>48</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="lbl_SwiftGui">
|
||||
<property name="text">
|
||||
<string>GUI</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="1">
|
||||
<widget class="QLabel" name="lbl_SwiftCore">
|
||||
<property name="text">
|
||||
<string>core</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="2">
|
||||
<widget class="QLabel" name="lbl_SwiftData">
|
||||
<property name="text">
|
||||
<string>mapping tool</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="3">
|
||||
<widget class="QLabel" name="lbl_Wizard">
|
||||
<property name="text">
|
||||
<string>config</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="4" alignment="Qt::AlignHCenter">
|
||||
<item row="2" column="4">
|
||||
<widget class="QLabel" name="lbl_Database">
|
||||
<property name="text">
|
||||
<string>goto DB</string>
|
||||
@@ -778,6 +800,12 @@
|
||||
<header>blackgui/components/abouthtmlcomponent.h</header>
|
||||
<container>1</container>
|
||||
</customwidget>
|
||||
<customwidget>
|
||||
<class>BlackGui::Components::CScaleScreenFactor</class>
|
||||
<extends>QFrame</extends>
|
||||
<header>blackgui/components/scalescreenfactor.h</header>
|
||||
<container>1</container>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<tabstops>
|
||||
<tabstop>tbr_LatestNews</tabstop>
|
||||
|
||||
Reference in New Issue
Block a user