mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 22:50:05 +00:00
Add dedicated Placefile Manager dialog separate from settings
This commit is contained in:
parent
4a92f11d00
commit
f2addd29e6
11 changed files with 215 additions and 41 deletions
45
scwx-qt/source/scwx/qt/ui/placefile_dialog.cpp
Normal file
45
scwx-qt/source/scwx/qt/ui/placefile_dialog.cpp
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
#include "placefile_dialog.hpp"
|
||||
#include "ui_placefile_dialog.h"
|
||||
|
||||
#include <scwx/qt/ui/placefile_settings_widget.hpp>
|
||||
#include <scwx/util/logger.hpp>
|
||||
|
||||
namespace scwx
|
||||
{
|
||||
namespace qt
|
||||
{
|
||||
namespace ui
|
||||
{
|
||||
|
||||
static const std::string logPrefix_ = "scwx::qt::ui::placefile_dialog";
|
||||
static const auto logger_ = scwx::util::Logger::Create(logPrefix_);
|
||||
|
||||
class PlacefileDialogImpl
|
||||
{
|
||||
public:
|
||||
explicit PlacefileDialogImpl() {}
|
||||
~PlacefileDialogImpl() = default;
|
||||
|
||||
PlacefileSettingsWidget* placefileSettingsWidget_ {nullptr};
|
||||
};
|
||||
|
||||
PlacefileDialog::PlacefileDialog(QWidget* parent) :
|
||||
QDialog(parent),
|
||||
p {std::make_unique<PlacefileDialogImpl>()},
|
||||
ui(new Ui::PlacefileDialog)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
||||
p->placefileSettingsWidget_ = new PlacefileSettingsWidget(this);
|
||||
p->placefileSettingsWidget_->layout()->setContentsMargins(0, 0, 0, 0);
|
||||
ui->contentsFrame->layout()->addWidget(p->placefileSettingsWidget_);
|
||||
}
|
||||
|
||||
PlacefileDialog::~PlacefileDialog()
|
||||
{
|
||||
delete ui;
|
||||
}
|
||||
|
||||
} // namespace ui
|
||||
} // namespace qt
|
||||
} // namespace scwx
|
||||
Loading…
Add table
Add a link
Reference in a new issue