Ref T659, deleted details dialog (not used)

This commit is contained in:
Klaus Basan
2019-07-19 03:11:36 +02:00
committed by Mat Sutcliffe
parent 83e8597b14
commit 298b040e26
3 changed files with 0 additions and 186 deletions

View File

@@ -1,45 +0,0 @@
/* Copyright (C) 2019
* swift project Community / Contributors
*
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
* directory of this distribution. No part of swift project, including this file, may be copied, modified, propagated,
* or distributed except according to the terms contained in the LICENSE file.
*/
#include "networkdetailsdialog.h"
#include "ui_networkdetailsdialog.h"
using namespace BlackMisc::Network;
using namespace BlackMisc::Audio;
using namespace BlackCore;
namespace BlackGui
{
namespace Components
{
CNetworkDetailsDialog::CNetworkDetailsDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::CNetworkDetailsDialog)
{
ui->setupUi(this);
}
CNetworkDetailsDialog::~CNetworkDetailsDialog()
{ }
CFsdSetup CNetworkDetailsDialog::getFsdSetup() const
{
return ui->comp_NetworkDetails->getFsdSetup();
}
CVoiceSetup CNetworkDetailsDialog::getVoiceSetup() const
{
return ui->comp_NetworkDetails->getVoiceSetup();
}
INetwork::LoginMode CNetworkDetailsDialog::getLoginMode() const
{
return ui->comp_NetworkDetails->getLoginMode();
}
} // ns
} // ns

View File

@@ -1,53 +0,0 @@
/* Copyright (C) 2019
* swift project Community / Contributors
*
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
* directory of this distribution. No part of swift project, including this file, may be copied, modified, propagated,
* or distributed except according to the terms contained in the LICENSE file.
*/
//! \file
#ifndef BLACKGUI_COMPONENTS_NETWORKDETAILSDIALOG_H
#define BLACKGUI_COMPONENTS_NETWORKDETAILSDIALOG_H
#include <QDialog>
#include <QScopedPointer>
#include "blackmisc/network/fsdsetup.h"
#include "blackmisc/audio/voicesetup.h"
#include "blackcore/network.h"
namespace Ui { class CNetworkDetailsDialog; }
namespace BlackGui
{
namespace Components
{
//! Network details as dialog
class CNetworkDetailsDialog : public QDialog
{
Q_OBJECT
public:
//! Ctor
explicit CNetworkDetailsDialog(QWidget *parent = nullptr);
//! Dtor
virtual ~CNetworkDetailsDialog() override;
//! FSD setup
BlackMisc::Network::CFsdSetup getFsdSetup() const;
//! Voice setup
BlackMisc::Audio::CVoiceSetup getVoiceSetup() const;
//! Login mode
BlackCore::INetwork::LoginMode getLoginMode() const;
private:
QScopedPointer<Ui::CNetworkDetailsDialog> ui;
};
} // ns
} // ns
#endif // guard

View File

@@ -1,88 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>CNetworkDetailsDialog</class>
<widget class="QDialog" name="CNetworkDetailsDialog">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>300</width>
<height>200</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>300</width>
<height>200</height>
</size>
</property>
<property name="windowTitle">
<string>Network details</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="BlackGui::Components::CNetworkDetailsComponent" name="comp_NetworkDetails">
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
</widget>
</item>
<item>
<widget class="QDialogButtonBox" name="bb_NetworkDetailsDialog">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>BlackGui::Components::CNetworkDetailsComponent</class>
<extends>QFrame</extends>
<header>blackgui/components/networkdetailscomponent.h</header>
<container>1</container>
</customwidget>
</customwidgets>
<resources/>
<connections>
<connection>
<sender>bb_NetworkDetailsDialog</sender>
<signal>accepted()</signal>
<receiver>CNetworkDetailsDialog</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel">
<x>248</x>
<y>254</y>
</hint>
<hint type="destinationlabel">
<x>157</x>
<y>274</y>
</hint>
</hints>
</connection>
<connection>
<sender>bb_NetworkDetailsDialog</sender>
<signal>rejected()</signal>
<receiver>CNetworkDetailsDialog</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel">
<x>316</x>
<y>260</y>
</hint>
<hint type="destinationlabel">
<x>286</x>
<y>274</y>
</hint>
</hints>
</connection>
</connections>
</ui>