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