UI for FSX settings adjustments

This commit is contained in:
Klaus Basan
2018-08-16 00:00:35 +02:00
parent 65dc4bec6b
commit 3a09749103
3 changed files with 39 additions and 9 deletions

View File

@@ -6,18 +6,28 @@
<rect>
<x>0</x>
<y>0</y>
<width>126</width>
<height>31</height>
<width>326</width>
<height>47</height>
</rect>
</property>
<property name="windowTitle">
<string>Frame</string>
<string>FSX settings</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<layout class="QHBoxLayout" name="hl_FsxSettingsComponent" stretch="0,1">
<item>
<widget class="QCheckBox" name="cb_TraceSimConnectCalls">
<property name="text">
<string>Trace simConnect calls</string>
<string/>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="lbl_TraceSimConnectCalls">
<property name="text">
<string>Trace simConnect calls (this will trace sendId calls and provide further information)</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>

View File

@@ -23,7 +23,7 @@ namespace BlackSimPlugin
{
ui->setupUi(this);
ui->tw_Settings->setCurrentIndex(0);
ui->comp_Settings->setSimulator(m_simulator);
ui->comp_FsxSettings->setSimulator(m_simulator);
connect(ui->bb_OkCancel, &QDialogButtonBox::rejected, this, &QWidget::close);
this->setWindowTitle(m_simulator.toQString(true) + " plugin configuration");
}

View File

@@ -53,7 +53,7 @@
</item>
</layout>
</widget>
<widget class="QWidget" name="tb_Settings">
<widget class="QWidget" name="tb_FsxSettings">
<attribute name="title">
<string>Settings</string>
</attribute>
@@ -71,7 +71,27 @@
<number>0</number>
</property>
<item>
<widget class="BlackSimPlugin::FsxCommon::CFsxSettingsComponent" name="comp_Settings"/>
<widget class="BlackSimPlugin::FsxCommon::CFsxSettingsComponent" name="comp_FsxSettings">
<property name="minimumSize">
<size>
<width>0</width>
<height>75</height>
</size>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>