refs #325, using CDockWidgetInfoAreaComponent in components

This commit is contained in:
Klaus Basan
2014-09-14 00:02:54 +02:00
parent 1cba31541b
commit 6e2204beeb
4 changed files with 20 additions and 6 deletions

View File

@@ -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);

View File

@@ -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();

View File

@@ -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);

View File

@@ -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