Ref T442, made ATC station component a QFrame

* details in group box
* count for tree view tab
* formatting of settings
This commit is contained in:
Klaus Basan
2018-12-09 03:17:15 +01:00
parent 8d3d5743d3
commit 6761a4c08a
4 changed files with 344 additions and 248 deletions

View File

@@ -34,6 +34,7 @@
#include <QStandardItemModel> #include <QStandardItemModel>
#include <QStringBuilder> #include <QStringBuilder>
#include <QTabBar> #include <QTabBar>
#include <QGroupBox>
#include <QTableView> #include <QTableView>
#include <QTextEdit> #include <QTextEdit>
#include <QTimer> #include <QTimer>
@@ -56,15 +57,15 @@ namespace BlackGui
namespace Components namespace Components
{ {
CAtcStationComponent::CAtcStationComponent(QWidget *parent) : CAtcStationComponent::CAtcStationComponent(QWidget *parent) :
COverlayMessagesTabWidget(parent), COverlayMessagesFrame(parent),
CIdentifiable(this), CIdentifiable(this),
ui(new Ui::CAtcStationComponent) ui(new Ui::CAtcStationComponent)
{ {
Q_ASSERT_X(sGui, Q_FUNC_INFO, "Need sGui"); Q_ASSERT_X(sGui, Q_FUNC_INFO, "Need sGui");
ui->setupUi(this); ui->setupUi(this);
this->setCurrentIndex(0); ui->tw_Atc->setCurrentIndex(0);
this->tabBar()->setExpanding(false); ui->tw_Atc->tabBar()->setExpanding(false);
this->tabBar()->setUsesScrollButtons(true); ui->tw_Atc->tabBar()->setUsesScrollButtons(true);
CUpperCaseValidator *ucv = new CUpperCaseValidator(ui->le_AtcStationsOnlineMetar); CUpperCaseValidator *ucv = new CUpperCaseValidator(ui->le_AtcStationsOnlineMetar);
ui->le_AtcStationsOnlineMetar->setValidator(ucv); ui->le_AtcStationsOnlineMetar->setValidator(ucv);
@@ -92,7 +93,7 @@ namespace BlackGui
connect(ui->tb_AtcStationsLoadMetar, &QPushButton::clicked, this, &CAtcStationComponent::getMetarAsEntered); connect(ui->tb_AtcStationsLoadMetar, &QPushButton::clicked, this, &CAtcStationComponent::getMetarAsEntered);
connect(ui->tb_Audio, &QPushButton::clicked, this, &CAtcStationComponent::requestAudioWidget); connect(ui->tb_Audio, &QPushButton::clicked, this, &CAtcStationComponent::requestAudioWidget);
connect(ui->tb_TextMessageOverlay, &QPushButton::clicked, this, &CAtcStationComponent::showOverlayInlineTextMessage); connect(ui->tb_TextMessageOverlay, &QPushButton::clicked, this, &CAtcStationComponent::showOverlayInlineTextMessage);
connect(this, &QTabWidget::currentChanged, this, &CAtcStationComponent::atcStationsTabChanged); // "local" tab changed (booked, online) connect(ui->tw_Atc, &QTabWidget::currentChanged, this, &CAtcStationComponent::atcStationsTabChanged); // "local" tab changed (booked, online)
connect(ui->tvp_AtcStationsOnline, &CAtcStationView::objectClicked, this, &CAtcStationComponent::onlineAtcStationSelected); connect(ui->tvp_AtcStationsOnline, &CAtcStationView::objectClicked, this, &CAtcStationComponent::onlineAtcStationSelected);
connect(ui->tvp_AtcStationsOnline, &CAtcStationView::objectSelected, this, &CAtcStationComponent::onlineAtcStationSelected); connect(ui->tvp_AtcStationsOnline, &CAtcStationView::objectSelected, this, &CAtcStationComponent::onlineAtcStationSelected);
connect(ui->tvp_AtcStationsOnline, &CAtcStationView::testRequestDummyAtcOnlineStations, this, &CAtcStationComponent::testCreateDummyOnlineAtcStations); connect(ui->tvp_AtcStationsOnline, &CAtcStationView::testRequestDummyAtcOnlineStations, this, &CAtcStationComponent::testCreateDummyOnlineAtcStations);
@@ -113,6 +114,9 @@ namespace BlackGui
connect(ui->tb_AtcStationsAtisReload, &QPushButton::clicked, this, &CAtcStationComponent::requestAtis); connect(ui->tb_AtcStationsAtisReload, &QPushButton::clicked, this, &CAtcStationComponent::requestAtis);
connect(&m_updateTimer, &QTimer::timeout, this, &CAtcStationComponent::update); connect(&m_updateTimer, &QTimer::timeout, this, &CAtcStationComponent::update);
// Group box
connect(ui->gb_Details, &QGroupBox::toggled, this, &CAtcStationComponent::onDetailsToggled);
// runtime based connects // runtime based connects
connect(sGui->getIContextNetwork(), &IContextNetwork::changedAtcStationsOnlineDigest, this, &CAtcStationComponent::changedAtcStationsOnline, Qt::QueuedConnection); connect(sGui->getIContextNetwork(), &IContextNetwork::changedAtcStationsOnlineDigest, this, &CAtcStationComponent::changedAtcStationsOnline, Qt::QueuedConnection);
connect(sGui->getIContextNetwork(), &IContextNetwork::changedAtcStationsBookedDigest, this, &CAtcStationComponent::changedAtcStationsBooked, Qt::QueuedConnection); connect(sGui->getIContextNetwork(), &IContextNetwork::changedAtcStationsBookedDigest, this, &CAtcStationComponent::changedAtcStationsBooked, Qt::QueuedConnection);
@@ -123,6 +127,10 @@ namespace BlackGui
ui->tvp_AtcStationsOnline->acceptClickSelection(true); ui->tvp_AtcStationsOnline->acceptClickSelection(true);
ui->tvp_AtcStationsOnline->acceptRowSelection(true); ui->tvp_AtcStationsOnline->acceptRowSelection(true);
QVBoxLayout *layout = this->vLayout();
m_stretch.push_back(layout->stretch(0));
m_stretch.push_back(layout->stretch(1));
// web readers // web readers
if (sGui->hasWebDataServices()) if (sGui->hasWebDataServices())
{ {
@@ -140,7 +148,7 @@ namespace BlackGui
void CAtcStationComponent::setTab(CAtcStationComponent::AtcTab tab) void CAtcStationComponent::setTab(CAtcStationComponent::AtcTab tab)
{ {
const int t = static_cast<int>(tab); const int t = static_cast<int>(tab);
this->setCurrentIndex(t); ui->tw_Atc->setCurrentIndex(t);
} }
int CAtcStationComponent::countBookedStations() const int CAtcStationComponent::countBookedStations() const
@@ -326,7 +334,7 @@ namespace BlackGui
const QPointer<CAtcStationComponent> myself(this); const QPointer<CAtcStationComponent> myself(this);
QTimer::singleShot(1000, this, [ = ] QTimer::singleShot(1000, this, [ = ]
{ {
if (!myself) { return; } if (!sApp || sApp->isShuttingDown() || !myself) { return; }
this->update(); this->update();
}); });
Q_UNUSED(index); Q_UNUSED(index);
@@ -336,14 +344,18 @@ namespace BlackGui
{ {
Q_UNUSED(count); Q_UNUSED(count);
Q_UNUSED(withFilter); Q_UNUSED(withFilter);
int io = this->indexOf(ui->tb_AtcStationsOnline); const int io = ui->tw_Atc->indexOf(ui->tb_AtcStationsOnline);
int ib = this->indexOf(ui->tb_AtcStationsBooked); const int it = ui->tw_Atc->indexOf(ui->tb_AtcStationsOnlineTree);
QString o = this->tabBar()->tabText(io); const int ib = ui->tw_Atc->indexOf(ui->tb_AtcStationsBooked);
QString b = this->tabBar()->tabText(ib); QString o = ui->tw_Atc->tabBar()->tabText(io);
QString t = ui->tw_Atc->tabBar()->tabText(it);
QString b = ui->tw_Atc->tabBar()->tabText(ib);
o = CGuiUtility::replaceTabCountValue(o, this->countOnlineStations()); o = CGuiUtility::replaceTabCountValue(o, this->countOnlineStations());
t = CGuiUtility::replaceTabCountValue(t, this->countOnlineStations());
b = CGuiUtility::replaceTabCountValue(b, this->countBookedStations()); b = CGuiUtility::replaceTabCountValue(b, this->countBookedStations());
this->tabBar()->setTabText(io, o); ui->tw_Atc->tabBar()->setTabText(io, o);
this->tabBar()->setTabText(ib, b); ui->tw_Atc->tabBar()->setTabText(it, t);
ui->tw_Atc->tabBar()->setTabText(ib, b);
} }
void CAtcStationComponent::setComFrequency(const PhysicalQuantities::CFrequency &frequency, CComSystem::ComUnit unit) void CAtcStationComponent::setComFrequency(const PhysicalQuantities::CFrequency &frequency, CComSystem::ComUnit unit)
@@ -416,13 +428,15 @@ namespace BlackGui
void CAtcStationComponent::atcStationsTabChanged() void CAtcStationComponent::atcStationsTabChanged()
{ {
if (this->currentWidget() == ui->tb_AtcStationsBooked) const bool booked = ui->tw_Atc->currentWidget() == ui->tb_AtcStationsBooked;
if (booked)
{ {
if (ui->tvp_AtcStationsBooked->isEmpty()) if (ui->tvp_AtcStationsBooked->isEmpty())
{ {
this->reloadAtcStationsBooked(); this->reloadAtcStationsBooked();
} }
} }
ui->gb_Details->setVisible(!booked);
} }
void CAtcStationComponent::requestAtis() void CAtcStationComponent::requestAtis()
@@ -445,7 +459,39 @@ namespace BlackGui
void CAtcStationComponent::showOverlayInlineTextMessage() void CAtcStationComponent::showOverlayInlineTextMessage()
{ {
COverlayMessagesTabWidget::showOverlayInlineTextMessage(TextMessagesCom1); COverlayMessagesFrame::showOverlayInlineTextMessage(TextMessagesCom1);
}
void CAtcStationComponent::onDetailsToggled(bool checked)
{
QVBoxLayout *layout = this->vLayout();
if (layout)
{
if (checked)
{
layout->setStretchFactor(ui->tw_Atc, m_stretch.at(0));
layout->setStretchFactor(ui->gb_Details, m_stretch.at(1));
}
else
{
layout->setStretchFactor(ui->tw_Atc, 0);
layout->setStretchFactor(ui->gb_Details, 0);
}
}
ui->te_AtcStationsOnlineInfo->setVisible(checked);
ui->comp_AtcStationsSettings->setVisible(checked);
ui->le_AtcStationsOnlineMetar->setVisible(checked);
ui->tb_AtcStationsAtisReload->setVisible(checked);
ui->tb_AtcStationsLoadMetar->setVisible(checked);
ui->tb_TextMessageOverlay->setVisible(checked);
ui->tb_Audio->setVisible(checked);
}
QVBoxLayout *CAtcStationComponent::vLayout() const
{
QVBoxLayout *layout = qobject_cast<QVBoxLayout *>(this->layout());
return layout;
} }
} // namespace } // namespace
} // namespace } // namespace

View File

@@ -30,7 +30,9 @@
#include <QString> #include <QString>
#include <QTabWidget> #include <QTabWidget>
#include <QtGlobal> #include <QtGlobal>
#include <QVBoxLayout>
#include <QTimer> #include <QTimer>
#include <QList>
namespace BlackMisc { namespace Aviation { class CCallsign; } } namespace BlackMisc { namespace Aviation { class CCallsign; } }
namespace Ui { class CAtcStationComponent; } namespace Ui { class CAtcStationComponent; }
@@ -41,7 +43,7 @@ namespace BlackGui
{ {
//! ATC stations component //! ATC stations component
class BLACKGUI_EXPORT CAtcStationComponent : class BLACKGUI_EXPORT CAtcStationComponent :
public COverlayMessagesTabWidget, public COverlayMessagesFrame,
public CEnableForDockWidgetInfoArea, public CEnableForDockWidgetInfoArea,
public BlackMisc::CIdentifiable public BlackMisc::CIdentifiable
{ {
@@ -155,13 +157,20 @@ namespace BlackGui
//! Inline message //! Inline message
void showOverlayInlineTextMessage(); void showOverlayInlineTextMessage();
//! Details toggled
void onDetailsToggled(bool checked);
//! Get the vertical layout
QVBoxLayout *vLayout() const;
QScopedPointer<Ui::CAtcStationComponent> ui; QScopedPointer<Ui::CAtcStationComponent> ui;
QTimer m_updateTimer; QTimer m_updateTimer;
QList<int> m_stretch;
QDateTime m_timestampLastReadOnlineStations; //!< stations read QDateTime m_timestampLastReadOnlineStations; //!< stations read
QDateTime m_timestampOnlineStationsChanged; //!< stations marked as changed QDateTime m_timestampOnlineStationsChanged; //!< stations marked as changed
QDateTime m_timestampLastReadBookedStations; //!< stations read QDateTime m_timestampLastReadBookedStations; //!< stations read
QDateTime m_timestampBookedStationsChanged; //!< stations marked as changed QDateTime m_timestampBookedStationsChanged; //!< stations marked as changed
BlackMisc::CSettingReadOnly<BlackGui::Settings::TViewUpdateSettings> m_settingsView { this, &CAtcStationComponent::settingsChanged }; BlackMisc::CSettingReadOnly<BlackGui::Settings::TViewUpdateSettings> m_settingsView { this, &CAtcStationComponent::settingsChanged };
}; };
} // namespace } // namespace
} // namespace } // namespace

View File

@@ -1,262 +1,277 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0"> <ui version="4.0">
<class>CAtcStationComponent</class> <class>CAtcStationComponent</class>
<widget class="QTabWidget" name="CAtcStationComponent"> <widget class="QFrame" name="CAtcStationComponent">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>400</width> <width>278</width>
<height>462</height> <height>507</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
<string>ATC stations</string> <string>ATC stations</string>
</property> </property>
<property name="currentIndex"> <layout class="QVBoxLayout" name="vl_ATCStations" stretch="3,1">
<number>0</number> <property name="leftMargin">
</property> <number>1</number>
<widget class="QWidget" name="tb_AtcStationsOnline"> </property>
<attribute name="title"> <property name="topMargin">
<string>Online</string> <number>1</number>
</attribute> </property>
<layout class="QVBoxLayout" name="vl_AtcStationsOnline" stretch="4,0,0,1"> <property name="rightMargin">
<property name="spacing"> <number>1</number>
<number>3</number> </property>
</property> <property name="bottomMargin">
<property name="leftMargin"> <number>1</number>
<number>0</number> </property>
</property> <item>
<property name="topMargin"> <widget class="QTabWidget" name="tw_Atc">
<number>0</number> <property name="currentIndex">
</property> <number>0</number>
<property name="rightMargin"> </property>
<number>0</number> <widget class="QWidget" name="tb_AtcStationsOnline">
</property> <attribute name="title">
<property name="bottomMargin"> <string>ATC stations</string>
<number>0</number>
</property>
<item>
<widget class="BlackGui::Views::CAtcStationView" name="tvp_AtcStationsOnline">
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="selectionMode">
<enum>QAbstractItemView::SingleSelection</enum>
</property>
<property name="selectionBehavior">
<enum>QAbstractItemView::SelectRows</enum>
</property>
<property name="sortingEnabled">
<bool>true</bool>
</property>
<attribute name="verticalHeaderVisible">
<bool>false</bool>
</attribute> </attribute>
</widget> <layout class="QVBoxLayout" name="vl_AtcStationsOnline">
</item> <property name="spacing">
<item alignment="Qt::AlignLeft"> <number>3</number>
<widget class="QFrame" name="fr_AtcStationsOnlineBottom"> </property>
<layout class="QGridLayout" name="gl_Buttons"> <property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin"> <property name="topMargin">
<number>2</number> <number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property> </property>
<property name="bottomMargin"> <property name="bottomMargin">
<number>0</number> <number>0</number>
</property> </property>
<item row="0" column="0"> <item>
<widget class="QLineEdit" name="le_AtcStationsOnlineMetar"> <widget class="BlackGui::Views::CAtcStationView" name="tvp_AtcStationsOnline">
<property name="toolTip"> <property name="maximumSize">
<string extracomment="METAR: Airport ICAO code">METAR: Airport ICAO code</string> <size>
<width>16777215</width>
<height>16777215</height>
</size>
</property> </property>
<property name="maxLength"> <property name="styleSheet">
<number>5</number> <string notr="true"/>
</property> </property>
<property name="placeholderText"> <property name="selectionMode">
<string>e.g. KLAX</string> <enum>QAbstractItemView::SingleSelection</enum>
</property> </property>
</widget> <property name="selectionBehavior">
</item> <enum>QAbstractItemView::SelectRows</enum>
<item row="0" column="3">
<widget class="QToolButton" name="tb_AtcStationsAtisReload">
<property name="toolTip">
<string>Reload ATIS</string>
</property> </property>
<property name="text"> <property name="sortingEnabled">
<string>ATIS</string> <bool>true</bool>
</property>
</widget>
</item>
<item row="0" column="4">
<widget class="QToolButton" name="tb_Audio">
<property name="toolTip">
<string>goto audio panel</string>
</property>
<property name="text">
<string>audio</string>
</property>
</widget>
</item>
<item row="0" column="5">
<widget class="QToolButton" name="tb_TextMessageOverlay">
<property name="toolTip">
<string>text message</string>
</property>
<property name="text">
<string>tm</string>
</property>
</widget>
</item>
<item row="0" column="2">
<widget class="QToolButton" name="tb_AtcStationsLoadMetar">
<property name="toolTip">
<string>Load METAR</string>
</property>
<property name="text">
<string>METAR</string>
</property> </property>
<attribute name="verticalHeaderVisible">
<bool>false</bool>
</attribute>
</widget> </widget>
</item> </item>
</layout> </layout>
</widget> </widget>
</item> <widget class="QWidget" name="tb_AtcStationsOnlineTree">
<item alignment="Qt::AlignLeft"> <attribute name="title">
<widget class="BlackGui::Components::CSettingsAtcStationsInlineComponent" name="comp_AtcStationsSettings"> <string>ATC tree</string>
<property name="minimumSize">
<size>
<width>100</width>
<height>0</height>
</size>
</property>
<property name="focusPolicy">
<enum>Qt::StrongFocus</enum>
</property>
</widget>
</item>
<item>
<widget class="QTextEdit" name="te_AtcStationsOnlineInfo">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="tb_AtcStationsOnlineTree">
<attribute name="title">
<string>Online (tree)</string>
</attribute>
<layout class="QVBoxLayout" name="vl_AtcStationsOnlineTree">
<property name="spacing">
<number>3</number>
</property>
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="BlackGui::Views::CAtcStationTreeView" name="tvp_AtcStationsOnlineTree">
<property name="selectionMode">
<enum>QAbstractItemView::SingleSelection</enum>
</property>
<property name="selectionBehavior">
<enum>QAbstractItemView::SelectRows</enum>
</property>
<property name="animated">
<bool>true</bool>
</property>
<attribute name="headerVisible">
<bool>false</bool>
</attribute> </attribute>
<layout class="QVBoxLayout" name="vl_AtcTree">
<property name="spacing">
<number>3</number>
</property>
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="BlackGui::Views::CAtcStationTreeView" name="tvp_AtcStationsOnlineTree">
<property name="selectionMode">
<enum>QAbstractItemView::SingleSelection</enum>
</property>
<property name="selectionBehavior">
<enum>QAbstractItemView::SelectRows</enum>
</property>
<property name="animated">
<bool>true</bool>
</property>
<attribute name="headerVisible">
<bool>false</bool>
</attribute>
</widget>
</item>
</layout>
</widget> </widget>
</item> <widget class="QWidget" name="tb_AtcStationsBooked">
</layout> <attribute name="title">
</widget> <string>ATC booked</string>
<widget class="QWidget" name="tb_AtcStationsBooked">
<attribute name="title">
<string>Booked</string>
</attribute>
<layout class="QVBoxLayout" name="vl_AtcStationsBooked">
<property name="spacing">
<number>3</number>
</property>
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="BlackGui::Views::CAtcStationView" name="tvp_AtcStationsBooked">
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Sunken</enum>
</property>
<property name="lineWidth">
<number>1</number>
</property>
<property name="alternatingRowColors">
<bool>true</bool>
</property>
<property name="selectionMode">
<enum>QAbstractItemView::SingleSelection</enum>
</property>
<property name="selectionBehavior">
<enum>QAbstractItemView::SelectRows</enum>
</property>
<property name="sortingEnabled">
<bool>true</bool>
</property>
<attribute name="horizontalHeaderShowSortIndicator" stdset="0">
<bool>true</bool>
</attribute>
<attribute name="verticalHeaderVisible">
<bool>false</bool>
</attribute> </attribute>
<layout class="QVBoxLayout" name="vl_AtcBooked">
<property name="spacing">
<number>3</number>
</property>
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="BlackGui::Views::CAtcStationView" name="tvp_AtcStationsBooked">
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Sunken</enum>
</property>
<property name="lineWidth">
<number>1</number>
</property>
<property name="alternatingRowColors">
<bool>true</bool>
</property>
<property name="selectionMode">
<enum>QAbstractItemView::SingleSelection</enum>
</property>
<property name="selectionBehavior">
<enum>QAbstractItemView::SelectRows</enum>
</property>
<property name="sortingEnabled">
<bool>true</bool>
</property>
<attribute name="horizontalHeaderShowSortIndicator" stdset="0">
<bool>true</bool>
</attribute>
<attribute name="verticalHeaderVisible">
<bool>false</bool>
</attribute>
</widget>
</item>
</layout>
</widget> </widget>
</item> </widget>
</layout> </item>
</widget> <item>
<widget class="QGroupBox" name="gb_Details">
<property name="title">
<string>Details (METAR, ATIS, range)</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<layout class="QGridLayout" name="gl_Details">
<item row="1" column="1">
<widget class="QToolButton" name="tb_AtcStationsLoadMetar">
<property name="toolTip">
<string>Load METAR</string>
</property>
<property name="text">
<string>METAR</string>
</property>
</widget>
</item>
<item row="1" column="2">
<widget class="QToolButton" name="tb_AtcStationsAtisReload">
<property name="toolTip">
<string>Reload ATIS</string>
</property>
<property name="text">
<string>ATIS</string>
</property>
</widget>
</item>
<item row="1" column="4">
<widget class="QToolButton" name="tb_TextMessageOverlay">
<property name="toolTip">
<string>text message</string>
</property>
<property name="text">
<string>tm</string>
</property>
</widget>
</item>
<item row="3" column="0" colspan="5">
<widget class="QTextEdit" name="te_AtcStationsOnlineInfo">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLineEdit" name="le_AtcStationsOnlineMetar">
<property name="toolTip">
<string extracomment="METAR: Airport ICAO code">METAR: Airport ICAO code</string>
</property>
<property name="maxLength">
<number>5</number>
</property>
<property name="placeholderText">
<string>e.g. KLAX</string>
</property>
</widget>
</item>
<item row="1" column="3">
<widget class="QToolButton" name="tb_Audio">
<property name="toolTip">
<string>goto audio panel</string>
</property>
<property name="text">
<string>audio</string>
</property>
</widget>
</item>
<item row="0" column="0" colspan="5">
<widget class="BlackGui::Components::CSettingsAtcStationsInlineComponent" name="comp_AtcStationsSettings">
<property name="minimumSize">
<size>
<width>0</width>
<height>25</height>
</size>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget> </widget>
<customwidgets> <customwidgets>
<customwidget> <customwidget>
@@ -277,13 +292,14 @@
</customwidget> </customwidget>
</customwidgets> </customwidgets>
<tabstops> <tabstops>
<tabstop>tw_Atc</tabstop>
<tabstop>tvp_AtcStationsOnline</tabstop> <tabstop>tvp_AtcStationsOnline</tabstop>
<tabstop>gb_Details</tabstop>
<tabstop>le_AtcStationsOnlineMetar</tabstop> <tabstop>le_AtcStationsOnlineMetar</tabstop>
<tabstop>tb_AtcStationsLoadMetar</tabstop> <tabstop>tb_AtcStationsLoadMetar</tabstop>
<tabstop>tb_AtcStationsAtisReload</tabstop> <tabstop>tb_AtcStationsAtisReload</tabstop>
<tabstop>tb_Audio</tabstop> <tabstop>tb_Audio</tabstop>
<tabstop>tb_TextMessageOverlay</tabstop> <tabstop>tb_TextMessageOverlay</tabstop>
<tabstop>comp_AtcStationsSettings</tabstop>
<tabstop>te_AtcStationsOnlineInfo</tabstop> <tabstop>te_AtcStationsOnlineInfo</tabstop>
<tabstop>tvp_AtcStationsOnlineTree</tabstop> <tabstop>tvp_AtcStationsOnlineTree</tabstop>
<tabstop>tvp_AtcStationsBooked</tabstop> <tabstop>tvp_AtcStationsBooked</tabstop>

View File

@@ -6,14 +6,26 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>256</width> <width>291</width>
<height>31</height> <height>24</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
<string>Frame</string> <string>Frame</string>
</property> </property>
<layout class="QHBoxLayout" name="hl_AtcStationsInlineComponent"> <layout class="QHBoxLayout" name="hl_AtcStationsInlineComponent">
<property name="leftMargin">
<number>2</number>
</property>
<property name="topMargin">
<number>2</number>
</property>
<property name="rightMargin">
<number>2</number>
</property>
<property name="bottomMargin">
<number>2</number>
</property>
<item> <item>
<widget class="QCheckBox" name="cb_Frequency"> <widget class="QCheckBox" name="cb_Frequency">
<property name="toolTip"> <property name="toolTip">
@@ -34,6 +46,19 @@
</property> </property>
</widget> </widget>
</item> </item>
<item>
<spacer name="hs_Settings">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item> <item>
<widget class="QRadioButton" name="rb_All"> <widget class="QRadioButton" name="rb_All">
<property name="text"> <property name="text">