mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-27 02:55:44 +08:00
refactor: Remove unused NetworkSetupForm
This commit is contained in:
@@ -217,11 +217,9 @@ add_library(gui SHARED
|
|||||||
qml/AtcRing.qml
|
qml/AtcRing.qml
|
||||||
textmessagetextedit.cpp
|
textmessagetextedit.cpp
|
||||||
labelandicon.ui
|
labelandicon.ui
|
||||||
editors/networksetupform.ui
|
|
||||||
editors/fsdsetupform.cpp
|
editors/fsdsetupform.cpp
|
||||||
editors/liveryform.ui
|
editors/liveryform.ui
|
||||||
editors/relativeaircraftposition.ui
|
editors/relativeaircraftposition.ui
|
||||||
editors/networksetupform.cpp
|
|
||||||
editors/fsdsetupform.h
|
editors/fsdsetupform.h
|
||||||
editors/cockpitcomform.cpp
|
editors/cockpitcomform.cpp
|
||||||
editors/situationform.ui
|
editors/situationform.ui
|
||||||
@@ -255,7 +253,6 @@ add_library(gui SHARED
|
|||||||
editors/modelmappingform.h
|
editors/modelmappingform.h
|
||||||
editors/modelmappingform.cpp
|
editors/modelmappingform.cpp
|
||||||
editors/distributorform.ui
|
editors/distributorform.ui
|
||||||
editors/networksetupform.h
|
|
||||||
editors/aircrafticaoform.h
|
editors/aircrafticaoform.h
|
||||||
editors/voicesetupform.ui
|
editors/voicesetupform.ui
|
||||||
editors/aircraftpartsform.ui
|
editors/aircraftpartsform.ui
|
||||||
|
|||||||
@@ -14,18 +14,6 @@
|
|||||||
<string>Frame</string>
|
<string>Frame</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="vl_SettingsNetworkComponent">
|
<layout class="QVBoxLayout" name="vl_SettingsNetworkComponent">
|
||||||
<item>
|
|
||||||
<widget class="QGroupBox" name="gb_Network">
|
|
||||||
<property name="title">
|
|
||||||
<string>Network</string>
|
|
||||||
</property>
|
|
||||||
<layout class="QVBoxLayout" name="vl_Network">
|
|
||||||
<item>
|
|
||||||
<widget class="BlackGui::Editors::CNetworkSetupForm" name="ediitor_NetworkSetup"/>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
<item>
|
||||||
<widget class="QGroupBox" name="gb_Services">
|
<widget class="QGroupBox" name="gb_Services">
|
||||||
<property name="title">
|
<property name="title">
|
||||||
@@ -73,12 +61,6 @@
|
|||||||
<header>blackgui/components/settingsvatsimreaderscomponent.h</header>
|
<header>blackgui/components/settingsvatsimreaderscomponent.h</header>
|
||||||
<container>1</container>
|
<container>1</container>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
<customwidget>
|
|
||||||
<class>BlackGui::Editors::CNetworkSetupForm</class>
|
|
||||||
<extends>QFrame</extends>
|
|
||||||
<header>blackgui/editors/networksetupform.h</header>
|
|
||||||
<container>1</container>
|
|
||||||
</customwidget>
|
|
||||||
</customwidgets>
|
</customwidgets>
|
||||||
<resources/>
|
<resources/>
|
||||||
<connections/>
|
<connections/>
|
||||||
|
|||||||
@@ -1,25 +0,0 @@
|
|||||||
// SPDX-FileCopyrightText: Copyright (C) 2018 swift Project Community / Contributors
|
|
||||||
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
|
|
||||||
|
|
||||||
#include "networksetupform.h"
|
|
||||||
#include "ui_networksetupform.h"
|
|
||||||
#include "blackgui/guiutility.h"
|
|
||||||
|
|
||||||
using namespace BlackMisc;
|
|
||||||
|
|
||||||
namespace BlackGui::Editors
|
|
||||||
{
|
|
||||||
CNetworkSetupForm::CNetworkSetupForm(QWidget *parent) : CForm(parent),
|
|
||||||
ui(new Ui::CNetworkSetupForm)
|
|
||||||
{
|
|
||||||
ui->setupUi(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
CNetworkSetupForm::~CNetworkSetupForm()
|
|
||||||
{}
|
|
||||||
|
|
||||||
void CNetworkSetupForm::setReadOnly(bool readonly)
|
|
||||||
{
|
|
||||||
CGuiUtility::checkBoxReadOnly(ui->cb_DynamicOffsetTimes, readonly);
|
|
||||||
}
|
|
||||||
} // ns
|
|
||||||
@@ -1,40 +0,0 @@
|
|||||||
// SPDX-FileCopyrightText: Copyright (C) 2018 swift Project Community / Contributors
|
|
||||||
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
|
|
||||||
|
|
||||||
//! \file
|
|
||||||
|
|
||||||
#ifndef BLACKGUI_EDITORS_NETWORKSETUPFORM_H
|
|
||||||
#define BLACKGUI_EDITORS_NETWORKSETUPFORM_H
|
|
||||||
|
|
||||||
#include "blackgui/editors/form.h"
|
|
||||||
#include <QScopedPointer>
|
|
||||||
|
|
||||||
namespace Ui
|
|
||||||
{
|
|
||||||
class CNetworkSetupForm;
|
|
||||||
}
|
|
||||||
namespace BlackGui::Editors
|
|
||||||
{
|
|
||||||
//! Setup form
|
|
||||||
class CNetworkSetupForm : public CForm
|
|
||||||
{
|
|
||||||
Q_OBJECT
|
|
||||||
|
|
||||||
public:
|
|
||||||
//! Constructor
|
|
||||||
explicit CNetworkSetupForm(QWidget *parent = nullptr);
|
|
||||||
|
|
||||||
//! Destructor
|
|
||||||
virtual ~CNetworkSetupForm() override;
|
|
||||||
|
|
||||||
//! \name Form class implementations
|
|
||||||
//! @{
|
|
||||||
virtual void setReadOnly(bool readonly) override;
|
|
||||||
//! @}
|
|
||||||
|
|
||||||
private:
|
|
||||||
QScopedPointer<Ui::CNetworkSetupForm> ui;
|
|
||||||
};
|
|
||||||
} // ns
|
|
||||||
|
|
||||||
#endif // guard
|
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<ui version="4.0">
|
|
||||||
<class>CNetworkSetupForm</class>
|
|
||||||
<widget class="QFrame" name="CNetworkSetupForm">
|
|
||||||
<property name="geometry">
|
|
||||||
<rect>
|
|
||||||
<x>0</x>
|
|
||||||
<y>0</y>
|
|
||||||
<width>99</width>
|
|
||||||
<height>31</height>
|
|
||||||
</rect>
|
|
||||||
</property>
|
|
||||||
<property name="windowTitle">
|
|
||||||
<string>Network offset times</string>
|
|
||||||
</property>
|
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
|
||||||
<item>
|
|
||||||
<widget class="QCheckBox" name="cb_DynamicOffsetTimes">
|
|
||||||
<property name="text">
|
|
||||||
<string>for future usage</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</widget>
|
|
||||||
<resources/>
|
|
||||||
<connections/>
|
|
||||||
</ui>
|
|
||||||
Reference in New Issue
Block a user