mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 19:10:06 +00:00
Extracting Level 2 Products Widget from MainWindow
This commit is contained in:
parent
1974fbbc93
commit
0fc573a962
6 changed files with 243 additions and 110 deletions
|
|
@ -96,8 +96,10 @@ set(SRC_SETTINGS source/scwx/qt/settings/general_settings.cpp
|
||||||
source/scwx/qt/settings/palette_settings.cpp)
|
source/scwx/qt/settings/palette_settings.cpp)
|
||||||
set(HDR_TYPES source/scwx/qt/types/radar_product_record.hpp)
|
set(HDR_TYPES source/scwx/qt/types/radar_product_record.hpp)
|
||||||
set(SRC_TYPES source/scwx/qt/types/radar_product_record.cpp)
|
set(SRC_TYPES source/scwx/qt/types/radar_product_record.cpp)
|
||||||
set(HDR_UI source/scwx/qt/ui/flow_layout.hpp)
|
set(HDR_UI source/scwx/qt/ui/flow_layout.hpp
|
||||||
set(SRC_UI source/scwx/qt/ui/flow_layout.cpp)
|
source/scwx/qt/ui/level2_products_widget.hpp)
|
||||||
|
set(SRC_UI source/scwx/qt/ui/flow_layout.cpp
|
||||||
|
source/scwx/qt/ui/level2_products_widget.cpp)
|
||||||
set(HDR_UTIL source/scwx/qt/util/font.hpp
|
set(HDR_UTIL source/scwx/qt/util/font.hpp
|
||||||
source/scwx/qt/util/font_buffer.hpp
|
source/scwx/qt/util/font_buffer.hpp
|
||||||
source/scwx/qt/util/json.hpp)
|
source/scwx/qt/util/json.hpp)
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@
|
||||||
#include <scwx/qt/manager/settings_manager.hpp>
|
#include <scwx/qt/manager/settings_manager.hpp>
|
||||||
#include <scwx/qt/map/map_widget.hpp>
|
#include <scwx/qt/map/map_widget.hpp>
|
||||||
#include <scwx/qt/ui/flow_layout.hpp>
|
#include <scwx/qt/ui/flow_layout.hpp>
|
||||||
|
#include <scwx/qt/ui/level2_products_widget.hpp>
|
||||||
#include <scwx/common/characters.hpp>
|
#include <scwx/common/characters.hpp>
|
||||||
#include <scwx/common/products.hpp>
|
#include <scwx/common/products.hpp>
|
||||||
#include <scwx/common/vcp.hpp>
|
#include <scwx/common/vcp.hpp>
|
||||||
|
|
@ -37,6 +38,7 @@ public:
|
||||||
mainWindow_ {mainWindow},
|
mainWindow_ {mainWindow},
|
||||||
settings_ {},
|
settings_ {},
|
||||||
activeMap_ {nullptr},
|
activeMap_ {nullptr},
|
||||||
|
level2ProductsWidget_ {nullptr},
|
||||||
maps_ {},
|
maps_ {},
|
||||||
elevationCuts_ {},
|
elevationCuts_ {},
|
||||||
elevationButtonsChanged_ {false},
|
elevationButtonsChanged_ {false},
|
||||||
|
|
@ -70,13 +72,13 @@ public:
|
||||||
void ConfigureMapLayout();
|
void ConfigureMapLayout();
|
||||||
void HandleFocusChange(QWidget* focused);
|
void HandleFocusChange(QWidget* focused);
|
||||||
void NormalizeElevationButtons();
|
void NormalizeElevationButtons();
|
||||||
void NormalizeLevel2ProductButtons();
|
|
||||||
void SelectElevation(map::MapWidget* mapWidget, float elevation);
|
void SelectElevation(map::MapWidget* mapWidget, float elevation);
|
||||||
void SelectRadarProduct(map::MapWidget* mapWidget,
|
void SelectRadarProduct(map::MapWidget* mapWidget,
|
||||||
common::Level2Product product);
|
common::RadarProductGroup group,
|
||||||
|
const std::string& productName,
|
||||||
|
int16_t productCode);
|
||||||
void SetActiveMap(map::MapWidget* mapWidget);
|
void SetActiveMap(map::MapWidget* mapWidget);
|
||||||
void UpdateElevationSelection(float elevation);
|
void UpdateElevationSelection(float elevation);
|
||||||
void UpdateLevel2ProductSelection(common::Level2Product product);
|
|
||||||
void UpdateRadarProductSelection(common::RadarProductGroup group,
|
void UpdateRadarProductSelection(common::RadarProductGroup group,
|
||||||
const std::string& product);
|
const std::string& product);
|
||||||
void UpdateRadarProductSettings();
|
void UpdateRadarProductSettings();
|
||||||
|
|
@ -87,6 +89,8 @@ public:
|
||||||
QMapboxGLSettings settings_;
|
QMapboxGLSettings settings_;
|
||||||
map::MapWidget* activeMap_;
|
map::MapWidget* activeMap_;
|
||||||
|
|
||||||
|
ui::Level2ProductsWidget* level2ProductsWidget_;
|
||||||
|
|
||||||
std::vector<map::MapWidget*> maps_;
|
std::vector<map::MapWidget*> maps_;
|
||||||
std::vector<float> elevationCuts_;
|
std::vector<float> elevationCuts_;
|
||||||
|
|
||||||
|
|
@ -115,24 +119,11 @@ MainWindow::MainWindow(QWidget* parent) :
|
||||||
p->ConfigureMapLayout();
|
p->ConfigureMapLayout();
|
||||||
|
|
||||||
// Add Level 2 Products
|
// Add Level 2 Products
|
||||||
QLayout* level2Layout = new ui::FlowLayout();
|
p->level2ProductsWidget_ = new ui::Level2ProductsWidget(this);
|
||||||
level2Layout->setContentsMargins(0, 0, 0, 0);
|
ui->radarProductGroupBox->layout()->replaceWidget(ui->level2ProductFrame,
|
||||||
ui->level2ProductFrame->setLayout(level2Layout);
|
p->level2ProductsWidget_);
|
||||||
|
delete ui->level2ProductFrame;
|
||||||
for (common::Level2Product product : common::Level2ProductIterator())
|
ui->level2ProductFrame = p->level2ProductsWidget_;
|
||||||
{
|
|
||||||
QToolButton* toolButton = new QToolButton();
|
|
||||||
toolButton->setText(
|
|
||||||
QString::fromStdString(common::GetLevel2Name(product)));
|
|
||||||
toolButton->setStatusTip(
|
|
||||||
tr(common::GetLevel2Description(product).c_str()));
|
|
||||||
level2Layout->addWidget(toolButton);
|
|
||||||
|
|
||||||
connect(toolButton,
|
|
||||||
&QToolButton::clicked,
|
|
||||||
this,
|
|
||||||
[=]() { p->SelectRadarProduct(p->activeMap_, product); });
|
|
||||||
}
|
|
||||||
|
|
||||||
QLayout* elevationLayout = new ui::FlowLayout();
|
QLayout* elevationLayout = new ui::FlowLayout();
|
||||||
ui->elevationGroupBox->setLayout(elevationLayout);
|
ui->elevationGroupBox->setLayout(elevationLayout);
|
||||||
|
|
@ -140,26 +131,43 @@ MainWindow::MainWindow(QWidget* parent) :
|
||||||
ui->settingsGroupBox->setVisible(false);
|
ui->settingsGroupBox->setVisible(false);
|
||||||
ui->declutterCheckbox->setVisible(false);
|
ui->declutterCheckbox->setVisible(false);
|
||||||
|
|
||||||
p->SelectRadarProduct(p->activeMap_, common::Level2Product::Reflectivity);
|
p->SelectRadarProduct(
|
||||||
|
p->maps_.at(0),
|
||||||
|
common::RadarProductGroup::Level2,
|
||||||
|
common::GetLevel2Name(common::Level2Product::Reflectivity),
|
||||||
|
0);
|
||||||
if (p->maps_.size() > 1 && p->maps_.at(1) != nullptr)
|
if (p->maps_.size() > 1 && p->maps_.at(1) != nullptr)
|
||||||
{
|
{
|
||||||
p->SelectRadarProduct(p->maps_.at(1), common::Level2Product::Velocity);
|
p->SelectRadarProduct(
|
||||||
|
p->maps_.at(1),
|
||||||
|
common::RadarProductGroup::Level2,
|
||||||
|
common::GetLevel2Name(common::Level2Product::Velocity),
|
||||||
|
0);
|
||||||
}
|
}
|
||||||
if (p->maps_.size() > 2 && p->maps_.at(2) != nullptr)
|
if (p->maps_.size() > 2 && p->maps_.at(2) != nullptr)
|
||||||
{
|
{
|
||||||
p->maps_.at(2)->SelectRadarProduct(
|
p->SelectRadarProduct(
|
||||||
common::RadarProductGroup::Level3, "N0B", 153);
|
p->maps_.at(2), common::RadarProductGroup::Level3, "N0B", 153);
|
||||||
}
|
}
|
||||||
if (p->maps_.size() > 3 && p->maps_.at(3) != nullptr)
|
if (p->maps_.size() > 3 && p->maps_.at(3) != nullptr)
|
||||||
{
|
{
|
||||||
p->maps_.at(3)->SelectRadarProduct(
|
p->SelectRadarProduct(
|
||||||
common::RadarProductGroup::Level3, "N0G", 154);
|
p->maps_.at(3), common::RadarProductGroup::Level3, "N0G", 154);
|
||||||
}
|
}
|
||||||
|
|
||||||
connect(qApp,
|
connect(qApp,
|
||||||
&QApplication::focusChanged,
|
&QApplication::focusChanged,
|
||||||
this,
|
this,
|
||||||
[=](QWidget* old, QWidget* now) { p->HandleFocusChange(now); });
|
[=](QWidget* old, QWidget* now) { p->HandleFocusChange(now); });
|
||||||
|
connect(p->level2ProductsWidget_,
|
||||||
|
&ui::Level2ProductsWidget::RadarProductSelected,
|
||||||
|
this,
|
||||||
|
[&](common::RadarProductGroup group,
|
||||||
|
const std::string& productName,
|
||||||
|
int16_t productCode) {
|
||||||
|
p->SelectRadarProduct(
|
||||||
|
p->activeMap_, group, productName, productCode);
|
||||||
|
});
|
||||||
|
|
||||||
p->HandleFocusChange(p->activeMap_);
|
p->HandleFocusChange(p->activeMap_);
|
||||||
}
|
}
|
||||||
|
|
@ -190,35 +198,11 @@ void MainWindow::showEvent(QShowEvent* event)
|
||||||
{
|
{
|
||||||
QMainWindow::showEvent(event);
|
QMainWindow::showEvent(event);
|
||||||
|
|
||||||
p->NormalizeLevel2ProductButtons();
|
|
||||||
p->NormalizeElevationButtons();
|
p->NormalizeElevationButtons();
|
||||||
|
|
||||||
resizeDocks({ui->radarToolboxDock}, {150}, Qt::Horizontal);
|
resizeDocks({ui->radarToolboxDock}, {150}, Qt::Horizontal);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindowImpl::NormalizeLevel2ProductButtons()
|
|
||||||
{
|
|
||||||
// Set each level 2 product's tool button to the same size
|
|
||||||
int level2MaxWidth = 0;
|
|
||||||
for (QToolButton* widget :
|
|
||||||
mainWindow_->ui->level2ProductFrame->findChildren<QToolButton*>())
|
|
||||||
{
|
|
||||||
if (widget->isVisible())
|
|
||||||
{
|
|
||||||
level2MaxWidth = std::max(level2MaxWidth, widget->width());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (level2MaxWidth > 0)
|
|
||||||
{
|
|
||||||
for (QToolButton* widget :
|
|
||||||
mainWindow_->ui->level2ProductFrame->findChildren<QToolButton*>())
|
|
||||||
{
|
|
||||||
widget->setMinimumWidth(level2MaxWidth);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void MainWindowImpl::NormalizeElevationButtons()
|
void MainWindowImpl::NormalizeElevationButtons()
|
||||||
{
|
{
|
||||||
// Set each elevation cut's tool button to the same size
|
// Set each elevation cut's tool button to the same size
|
||||||
|
|
@ -413,20 +397,22 @@ void MainWindowImpl::SelectElevation(map::MapWidget* mapWidget, float elevation)
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindowImpl::SelectRadarProduct(map::MapWidget* mapWidget,
|
void MainWindowImpl::SelectRadarProduct(map::MapWidget* mapWidget,
|
||||||
common::Level2Product product)
|
common::RadarProductGroup group,
|
||||||
|
const std::string& productName,
|
||||||
|
int16_t productCode)
|
||||||
{
|
{
|
||||||
const std::string& productName = common::GetLevel2Name(product);
|
|
||||||
|
|
||||||
logger_->debug("Selecting Level 2 radar product: {}", productName);
|
logger_->debug("Selecting radar product: {}, {}",
|
||||||
|
common::GetRadarProductGroupName(group),
|
||||||
|
productName);
|
||||||
|
|
||||||
if (mapWidget == activeMap_)
|
if (mapWidget == activeMap_)
|
||||||
{
|
{
|
||||||
UpdateLevel2ProductSelection(product);
|
UpdateRadarProductSelection(group, productName);
|
||||||
UpdateRadarProductSettings();
|
UpdateRadarProductSettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
mapWidget->SelectRadarProduct(
|
mapWidget->SelectRadarProduct(group, productName, productCode);
|
||||||
common::RadarProductGroup::Level2, productName, 0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindowImpl::SetActiveMap(map::MapWidget* mapWidget)
|
void MainWindowImpl::SetActiveMap(map::MapWidget* mapWidget)
|
||||||
|
|
@ -474,39 +460,10 @@ void MainWindowImpl::UpdateMapParameters(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindowImpl::UpdateLevel2ProductSelection(common::Level2Product product)
|
|
||||||
{
|
|
||||||
const std::string& productName = common::GetLevel2Name(product);
|
|
||||||
|
|
||||||
for (QToolButton* toolButton :
|
|
||||||
mainWindow_->ui->level2ProductFrame->findChildren<QToolButton*>())
|
|
||||||
{
|
|
||||||
if (toolButton->text().toStdString() == productName)
|
|
||||||
{
|
|
||||||
toolButton->setCheckable(true);
|
|
||||||
toolButton->setChecked(true);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
toolButton->setChecked(false);
|
|
||||||
toolButton->setCheckable(false);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void MainWindowImpl::UpdateRadarProductSelection(
|
void MainWindowImpl::UpdateRadarProductSelection(
|
||||||
common::RadarProductGroup group, const std::string& product)
|
common::RadarProductGroup group, const std::string& product)
|
||||||
{
|
{
|
||||||
switch (group)
|
level2ProductsWidget_->UpdateProductSelection(group, product);
|
||||||
{
|
|
||||||
case common::RadarProductGroup::Level2:
|
|
||||||
UpdateLevel2ProductSelection(common::GetLevel2Product(product));
|
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
|
||||||
UpdateLevel2ProductSelection(common::Level2Product::Unknown);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindowImpl::UpdateRadarProductSettings()
|
void MainWindowImpl::UpdateRadarProductSettings()
|
||||||
|
|
|
||||||
|
|
@ -163,16 +163,6 @@
|
||||||
<item>
|
<item>
|
||||||
<widget class="QWidget" name="level2ProductFrame" native="true"/>
|
<widget class="QWidget" name="level2ProductFrame" native="true"/>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
|
||||||
<widget class="QFrame" name="frame">
|
|
||||||
<property name="frameShape">
|
|
||||||
<enum>QFrame::StyledPanel</enum>
|
|
||||||
</property>
|
|
||||||
<property name="frameShadow">
|
|
||||||
<enum>QFrame::Raised</enum>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
<item>
|
||||||
<widget class="Line" name="level2Separator">
|
<widget class="Line" name="level2Separator">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
|
|
|
||||||
144
scwx-qt/source/scwx/qt/ui/level2_products_widget.cpp
Normal file
144
scwx-qt/source/scwx/qt/ui/level2_products_widget.cpp
Normal file
|
|
@ -0,0 +1,144 @@
|
||||||
|
#include <scwx/qt/ui/level2_products_widget.hpp>
|
||||||
|
#include <scwx/qt/ui/flow_layout.hpp>
|
||||||
|
#include <scwx/util/logger.hpp>
|
||||||
|
|
||||||
|
#include <execution>
|
||||||
|
|
||||||
|
#include <QToolButton>
|
||||||
|
|
||||||
|
namespace scwx
|
||||||
|
{
|
||||||
|
namespace qt
|
||||||
|
{
|
||||||
|
namespace ui
|
||||||
|
{
|
||||||
|
|
||||||
|
static const std::string logPrefix_ = "scwx::qt::ui::level2_products_widget";
|
||||||
|
static const auto logger_ = util::Logger::Create(logPrefix_);
|
||||||
|
|
||||||
|
class Level2ProductsWidgetImpl : public QObject
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
|
public:
|
||||||
|
explicit Level2ProductsWidgetImpl(Level2ProductsWidget* self) :
|
||||||
|
self_ {self}, layout_ {new ui::FlowLayout(self)}, productButtons_ {}
|
||||||
|
{
|
||||||
|
layout_->setContentsMargins(0, 0, 0, 0);
|
||||||
|
|
||||||
|
for (common::Level2Product product : common::Level2ProductIterator())
|
||||||
|
{
|
||||||
|
QToolButton* toolButton = new QToolButton();
|
||||||
|
toolButton->setText(
|
||||||
|
QString::fromStdString(common::GetLevel2Name(product)));
|
||||||
|
toolButton->setStatusTip(
|
||||||
|
tr(common::GetLevel2Description(product).c_str()));
|
||||||
|
layout_->addWidget(toolButton);
|
||||||
|
productButtons_.push_back(toolButton);
|
||||||
|
|
||||||
|
QObject::connect(toolButton,
|
||||||
|
&QToolButton::clicked,
|
||||||
|
this,
|
||||||
|
[=]() { SelectProduct(product); });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
~Level2ProductsWidgetImpl() = default;
|
||||||
|
|
||||||
|
void NormalizeProductButtons();
|
||||||
|
void SelectProduct(common::Level2Product product);
|
||||||
|
void UpdateProductSelection(common::Level2Product product);
|
||||||
|
|
||||||
|
Level2ProductsWidget* self_;
|
||||||
|
QLayout* layout_;
|
||||||
|
std::list<QToolButton*> productButtons_;
|
||||||
|
};
|
||||||
|
|
||||||
|
Level2ProductsWidget::Level2ProductsWidget(QWidget* parent) :
|
||||||
|
QWidget(parent), p {std::make_shared<Level2ProductsWidgetImpl>(this)}
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
Level2ProductsWidget::~Level2ProductsWidget() = default;
|
||||||
|
|
||||||
|
void Level2ProductsWidget::showEvent(QShowEvent* event)
|
||||||
|
{
|
||||||
|
QWidget::showEvent(event);
|
||||||
|
|
||||||
|
p->NormalizeProductButtons();
|
||||||
|
}
|
||||||
|
|
||||||
|
void Level2ProductsWidgetImpl::NormalizeProductButtons()
|
||||||
|
{
|
||||||
|
int level2MaxWidth = 0;
|
||||||
|
|
||||||
|
// Set each level 2 product's tool button to the same size
|
||||||
|
std::for_each(productButtons_.cbegin(),
|
||||||
|
productButtons_.cend(),
|
||||||
|
[&](auto& toolButton)
|
||||||
|
{
|
||||||
|
if (toolButton->isVisible())
|
||||||
|
{
|
||||||
|
level2MaxWidth =
|
||||||
|
std::max(level2MaxWidth, toolButton->width());
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
if (level2MaxWidth > 0)
|
||||||
|
{
|
||||||
|
std::for_each(productButtons_.cbegin(),
|
||||||
|
productButtons_.cend(),
|
||||||
|
[&](auto& toolButton)
|
||||||
|
{ toolButton->setMinimumWidth(level2MaxWidth); });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void Level2ProductsWidgetImpl::SelectProduct(common::Level2Product product)
|
||||||
|
{
|
||||||
|
UpdateProductSelection(product);
|
||||||
|
|
||||||
|
emit self_->RadarProductSelected(
|
||||||
|
common::RadarProductGroup::Level2, common::GetLevel2Name(product), 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
void Level2ProductsWidget::UpdateProductSelection(
|
||||||
|
common::RadarProductGroup group, const std::string& productName)
|
||||||
|
{
|
||||||
|
if (group == common::RadarProductGroup::Level2)
|
||||||
|
{
|
||||||
|
common::Level2Product product = common::GetLevel2Product(productName);
|
||||||
|
p->UpdateProductSelection(product);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
p->UpdateProductSelection(common::Level2Product::Unknown);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void Level2ProductsWidgetImpl::UpdateProductSelection(
|
||||||
|
common::Level2Product product)
|
||||||
|
{
|
||||||
|
const std::string& productName = common::GetLevel2Name(product);
|
||||||
|
|
||||||
|
std::for_each(std::execution::par_unseq,
|
||||||
|
productButtons_.cbegin(),
|
||||||
|
productButtons_.cend(),
|
||||||
|
[&](auto& toolButton)
|
||||||
|
{
|
||||||
|
if (toolButton->text().toStdString() == productName)
|
||||||
|
{
|
||||||
|
toolButton->setCheckable(true);
|
||||||
|
toolButton->setChecked(true);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
toolButton->setChecked(false);
|
||||||
|
toolButton->setCheckable(false);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
} // namespace ui
|
||||||
|
} // namespace qt
|
||||||
|
} // namespace scwx
|
||||||
|
|
||||||
|
#include "level2_products_widget.moc"
|
||||||
40
scwx-qt/source/scwx/qt/ui/level2_products_widget.hpp
Normal file
40
scwx-qt/source/scwx/qt/ui/level2_products_widget.hpp
Normal file
|
|
@ -0,0 +1,40 @@
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <scwx/common/products.hpp>
|
||||||
|
|
||||||
|
#include <QWidget>
|
||||||
|
|
||||||
|
namespace scwx
|
||||||
|
{
|
||||||
|
namespace qt
|
||||||
|
{
|
||||||
|
namespace ui
|
||||||
|
{
|
||||||
|
|
||||||
|
class Level2ProductsWidgetImpl;
|
||||||
|
|
||||||
|
class Level2ProductsWidget : public QWidget
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
|
public:
|
||||||
|
explicit Level2ProductsWidget(QWidget* parent = nullptr);
|
||||||
|
~Level2ProductsWidget();
|
||||||
|
|
||||||
|
void showEvent(QShowEvent* event) override;
|
||||||
|
|
||||||
|
void UpdateProductSelection(common::RadarProductGroup group,
|
||||||
|
const std::string& productName);
|
||||||
|
|
||||||
|
signals:
|
||||||
|
void RadarProductSelected(common::RadarProductGroup group,
|
||||||
|
const std::string& productName,
|
||||||
|
int16_t productCode);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::shared_ptr<Level2ProductsWidgetImpl> p;
|
||||||
|
};
|
||||||
|
|
||||||
|
} // namespace ui
|
||||||
|
} // namespace qt
|
||||||
|
} // namespace scwx
|
||||||
|
|
@ -14,17 +14,17 @@
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../source/scwx/qt/main/main_window.ui" line="186"/>
|
<location filename="../source/scwx/qt/main/main_window.ui" line="176"/>
|
||||||
<source>Level 3</source>
|
<source>Level 3</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../source/scwx/qt/main/main_window.ui" line="213"/>
|
<location filename="../source/scwx/qt/main/main_window.ui" line="203"/>
|
||||||
<source>Settings</source>
|
<source>Settings</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../source/scwx/qt/main/main_window.ui" line="219"/>
|
<location filename="../source/scwx/qt/main/main_window.ui" line="209"/>
|
||||||
<source>Declutter</source>
|
<source>Declutter</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
|
@ -74,27 +74,27 @@
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../source/scwx/qt/main/main_window.ui" line="206"/>
|
<location filename="../source/scwx/qt/main/main_window.ui" line="196"/>
|
||||||
<source>Elevation</source>
|
<source>Elevation</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../source/scwx/qt/main/main_window.ui" line="244"/>
|
<location filename="../source/scwx/qt/main/main_window.ui" line="234"/>
|
||||||
<source>E&xit</source>
|
<source>E&xit</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../source/scwx/qt/main/main_window.ui" line="249"/>
|
<location filename="../source/scwx/qt/main/main_window.ui" line="239"/>
|
||||||
<source>About &Supercell Wx...</source>
|
<source>About &Supercell Wx...</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../source/scwx/qt/main/main_window.ui" line="254"/>
|
<location filename="../source/scwx/qt/main/main_window.ui" line="244"/>
|
||||||
<source>&Open...</source>
|
<source>&Open...</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../source/scwx/qt/main/main_window.ui" line="257"/>
|
<location filename="../source/scwx/qt/main/main_window.ui" line="247"/>
|
||||||
<source>Ctrl+O</source>
|
<source>Ctrl+O</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
|
@ -102,7 +102,7 @@
|
||||||
<context>
|
<context>
|
||||||
<name>scwx::qt::main::MainWindow</name>
|
<name>scwx::qt::main::MainWindow</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../source/scwx/qt/main/main_window.cpp" line="297"/>
|
<location filename="../source/scwx/qt/main/main_window.cpp" line="281"/>
|
||||||
<source>Unrecognized NEXRAD Product:</source>
|
<source>Unrecognized NEXRAD Product:</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue