mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 06:45:37 +08:00
refactor(ui): Remove rendering setup button
This commit is contained in:
@@ -21,8 +21,6 @@ namespace swift::gui::components
|
||||
ui->setupUi(this);
|
||||
ui->tw_InterpolationSetup->setCurrentIndex(0);
|
||||
|
||||
connect(ui->comp_InterpolationSetup, &CInterpolationSetupComponent::requestRenderingRestrictionsWidget, this,
|
||||
&CInterpolationComponent::requestRenderingRestrictionsWidget);
|
||||
connect(ui->comp_CallsignCompleter, &CCallsignCompleter::validChangedCallsignEntered, this,
|
||||
&CInterpolationComponent::displayInterpolationMessages);
|
||||
connect(ui->pb_ReloadInterpolationMessages, &QPushButton::released, this,
|
||||
|
||||
@@ -29,10 +29,6 @@ namespace swift::gui::components
|
||||
//! Destructor
|
||||
virtual ~CInterpolationComponent() override;
|
||||
|
||||
signals:
|
||||
//! Request redering restrictions widget
|
||||
void requestRenderingRestrictionsWidget();
|
||||
|
||||
private:
|
||||
QScopedPointer<Ui::CInterpolationComponent> ui;
|
||||
|
||||
|
||||
@@ -28,8 +28,6 @@ namespace swift::gui::components
|
||||
ui->cb_IgnoreGlobal->setChecked(true);
|
||||
ui->tvp_InterpolationSetup->menuAddItems(CInterpolationSetupView::MenuRemoveSelectedRows);
|
||||
|
||||
connect(ui->pb_RenderingSetup, &QPushButton::clicked, this,
|
||||
&CInterpolationSetupComponent::requestRenderingRestrictionsWidget);
|
||||
connect(ui->pb_Save, &QPushButton::clicked, this, &CInterpolationSetupComponent::saveSetup);
|
||||
connect(ui->pb_DeleteOrReset, &QPushButton::clicked, this, &CInterpolationSetupComponent::removeOrResetSetup);
|
||||
connect(ui->pb_Reload, &QPushButton::clicked, this, &CInterpolationSetupComponent::reloadSetup,
|
||||
|
||||
@@ -41,10 +41,6 @@ namespace swift::gui::components
|
||||
//! Setup mode
|
||||
Mode getSetupMode() const;
|
||||
|
||||
signals:
|
||||
//! Request restrictions UI
|
||||
void requestRenderingRestrictionsWidget();
|
||||
|
||||
private:
|
||||
QScopedPointer<Ui::CInterpolationSetupComponent> ui;
|
||||
|
||||
|
||||
@@ -161,16 +161,6 @@
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="pb_RenderingSetup">
|
||||
<property name="toolTip">
|
||||
<string>goto rendering setup</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string> rendering</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="pb_DeleteOrReset">
|
||||
<property name="text">
|
||||
@@ -215,7 +205,6 @@
|
||||
<tabstop>rb_Global</tabstop>
|
||||
<tabstop>pb_Reload</tabstop>
|
||||
<tabstop>cb_IgnoreGlobal</tabstop>
|
||||
<tabstop>pb_RenderingSetup</tabstop>
|
||||
<tabstop>pb_DeleteOrReset</tabstop>
|
||||
<tabstop>pb_Save</tabstop>
|
||||
</tabstops>
|
||||
|
||||
@@ -317,9 +317,6 @@ void SwiftGuiStd::initGuiSignals()
|
||||
// interpolation and validation
|
||||
connect(ui->comp_MainInfoArea->getMappingComponent(), &CMappingComponent::requestValidationDialog, this,
|
||||
&SwiftGuiStd::displayValidationDialog);
|
||||
connect(ui->comp_MainInfoArea->getInterpolationComponent(),
|
||||
&CInterpolationComponent::requestRenderingRestrictionsWidget,
|
||||
[=] { this->setSettingsPage(CSettingsComponent::SettingTabSimulator); });
|
||||
|
||||
// on top
|
||||
connect(sGui, &CGuiApplication::alwaysOnTop, this, &SwiftGuiStd::onToggledWindowsOnTop, Qt::QueuedConnection);
|
||||
|
||||
Reference in New Issue
Block a user