mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 19:50:05 +00:00
Added a basic location marker manager.
This commit is contained in:
parent
84233868d6
commit
19415cd0a1
16 changed files with 806 additions and 44 deletions
45
scwx-qt/source/scwx/qt/ui/marker_dialog.cpp
Normal file
45
scwx-qt/source/scwx/qt/ui/marker_dialog.cpp
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
#include "marker_dialog.hpp"
|
||||
#include "ui_marker_dialog.h"
|
||||
|
||||
#include <scwx/qt/ui/marker_settings_widget.hpp>
|
||||
#include <scwx/util/logger.hpp>
|
||||
|
||||
namespace scwx
|
||||
{
|
||||
namespace qt
|
||||
{
|
||||
namespace ui
|
||||
{
|
||||
|
||||
static const std::string logPrefix_ = "scwx::qt::ui::marker_dialog";
|
||||
static const auto logger_ = scwx::util::Logger::Create(logPrefix_);
|
||||
|
||||
class MarkerDialogImpl
|
||||
{
|
||||
public:
|
||||
explicit MarkerDialogImpl() {}
|
||||
~MarkerDialogImpl() = default;
|
||||
|
||||
MarkerSettingsWidget* markerSettingsWidget_ {nullptr};
|
||||
};
|
||||
|
||||
MarkerDialog::MarkerDialog(QWidget* parent) :
|
||||
QDialog(parent),
|
||||
p {std::make_unique<MarkerDialogImpl>()},
|
||||
ui(new Ui::MarkerDialog)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
||||
p->markerSettingsWidget_ = new MarkerSettingsWidget(this);
|
||||
p->markerSettingsWidget_->layout()->setContentsMargins(0, 0, 0, 0);
|
||||
ui->contentsFrame->layout()->addWidget(p->markerSettingsWidget_);
|
||||
}
|
||||
|
||||
MarkerDialog::~MarkerDialog()
|
||||
{
|
||||
delete ui;
|
||||
}
|
||||
|
||||
} // namespace ui
|
||||
} // namespace qt
|
||||
} // namespace scwx
|
||||
Loading…
Add table
Add a link
Reference in a new issue