mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-20 20:40:29 +08:00
refs #325, using CDockWidgetInfoAreaComponent in components
This commit is contained in:
@@ -25,7 +25,10 @@ namespace BlackGui
|
|||||||
namespace Components
|
namespace Components
|
||||||
{
|
{
|
||||||
CAtcStationComponent::CAtcStationComponent(QWidget *parent) :
|
CAtcStationComponent::CAtcStationComponent(QWidget *parent) :
|
||||||
QTabWidget(parent), CRuntimeBasedComponent(nullptr, false), ui(new Ui::CAtcStationComponent), m_timerComponent(nullptr)
|
QTabWidget(parent),
|
||||||
|
CDockWidgetInfoAreaComponent(this),
|
||||||
|
CRuntimeBasedComponent(nullptr, false),
|
||||||
|
ui(new Ui::CAtcStationComponent), m_timerComponent(nullptr)
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
this->m_timerComponent = new CTimerBasedComponent(SLOT(update()), this);
|
this->m_timerComponent = new CTimerBasedComponent(SLOT(update()), this);
|
||||||
|
|||||||
@@ -14,6 +14,8 @@
|
|||||||
|
|
||||||
#include "blackgui/components/runtimebasedcomponent.h"
|
#include "blackgui/components/runtimebasedcomponent.h"
|
||||||
#include "blackgui/components/timerbasedcomponent.h"
|
#include "blackgui/components/timerbasedcomponent.h"
|
||||||
|
#include "blackgui/components/dockwidgetinfoareacomponent.h"
|
||||||
|
|
||||||
#include "blackmisc/avatcstation.h"
|
#include "blackmisc/avatcstation.h"
|
||||||
|
|
||||||
#include <QTabWidget>
|
#include <QTabWidget>
|
||||||
@@ -28,7 +30,10 @@ namespace BlackGui
|
|||||||
/*!
|
/*!
|
||||||
* ATC stations component
|
* ATC stations component
|
||||||
*/
|
*/
|
||||||
class CAtcStationComponent : public QTabWidget, public CRuntimeBasedComponent
|
class CAtcStationComponent :
|
||||||
|
public QTabWidget,
|
||||||
|
public CDockWidgetInfoAreaComponent,
|
||||||
|
public CRuntimeBasedComponent
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
@@ -66,7 +71,6 @@ namespace BlackGui
|
|||||||
void runtimeHasBeenSet() override;
|
void runtimeHasBeenSet() override;
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
|
|
||||||
//! Request new ATIS
|
//! Request new ATIS
|
||||||
void ps_requestAtis();
|
void ps_requestAtis();
|
||||||
|
|
||||||
|
|||||||
@@ -9,13 +9,17 @@
|
|||||||
|
|
||||||
#include "usercomponent.h"
|
#include "usercomponent.h"
|
||||||
#include "ui_usercomponent.h"
|
#include "ui_usercomponent.h"
|
||||||
|
#include "blackmisc/nwuserlist.h"
|
||||||
|
|
||||||
namespace BlackGui
|
namespace BlackGui
|
||||||
{
|
{
|
||||||
namespace Components
|
namespace Components
|
||||||
{
|
{
|
||||||
CUserComponent::CUserComponent(QWidget *parent) :
|
CUserComponent::CUserComponent(QWidget *parent) :
|
||||||
QTabWidget(parent), CRuntimeBasedComponent(nullptr, false), ui(new Ui::CUserComponent), m_timerComponent(nullptr)
|
QTabWidget(parent),
|
||||||
|
CDockWidgetInfoAreaComponent(this),
|
||||||
|
CRuntimeBasedComponent(nullptr, false),
|
||||||
|
ui(new Ui::CUserComponent), m_timerComponent(nullptr)
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
this->m_timerComponent = new CTimerBasedComponent(SLOT(update()), this);
|
this->m_timerComponent = new CTimerBasedComponent(SLOT(update()), this);
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
#include "blackgui/components/runtimebasedcomponent.h"
|
#include "blackgui/components/runtimebasedcomponent.h"
|
||||||
#include "blackgui/components/timerbasedcomponent.h"
|
#include "blackgui/components/timerbasedcomponent.h"
|
||||||
#include "blackmisc/nwuserlist.h"
|
#include "blackgui/components/dockwidgetinfoareacomponent.h"
|
||||||
|
|
||||||
#include <QTabWidget>
|
#include <QTabWidget>
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
@@ -26,7 +26,10 @@ namespace BlackGui
|
|||||||
namespace Components
|
namespace Components
|
||||||
{
|
{
|
||||||
//! User componenet (users, clients)
|
//! User componenet (users, clients)
|
||||||
class CUserComponent : public QTabWidget, public CRuntimeBasedComponent
|
class CUserComponent :
|
||||||
|
public QTabWidget,
|
||||||
|
public CDockWidgetInfoAreaComponent,
|
||||||
|
public CRuntimeBasedComponent
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user