Add dedicated Placefile Manager dialog separate from settings

This commit is contained in:
Dan Paulat 2023-10-10 22:33:23 -05:00
parent 4a92f11d00
commit f2addd29e6
11 changed files with 215 additions and 41 deletions

View 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