Mod: [skip ci] implementation classes don't inherit from UI classes any more

This commit is contained in:
wmayer
2020-01-10 16:19:35 +01:00
parent 6020ffee84
commit 8fdb29c842
41 changed files with 710 additions and 668 deletions

View File

@@ -26,6 +26,7 @@
#endif
#include "DlgSettingsPathColor.h"
#include "ui_DlgSettingsPathColor.h"
#include <Gui/PrefWidgets.h>
#include <Base/Console.h>
@@ -39,8 +40,9 @@ using namespace PathGui;
*/
DlgSettingsPathColor::DlgSettingsPathColor(QWidget* parent)
: PreferencePage(parent)
, ui(new Ui_DlgSettingsPathColor)
{
this->setupUi(this);
ui->setupUi(this);
}
/**
@@ -54,33 +56,33 @@ DlgSettingsPathColor::~DlgSettingsPathColor()
void DlgSettingsPathColor::saveSettings()
{
// Part
DefaultNormalPathColor->onSave();
DefaultRapidPathColor->onSave();
DefaultPathLineWidth->onSave();
DefaultPathMarkerColor->onSave();
DefaultExtentsColor->onSave();
DefaultProbePathColor->onSave();
DefaultHighlightPathColor->onSave();
DefaultBBoxSelectionColor->onSave();
DefaultBBoxNormalColor->onSave();
DefaultSelectionStyle->onSave();
DefaultTaskPanelLayout->onSave();
ui->DefaultNormalPathColor->onSave();
ui->DefaultRapidPathColor->onSave();
ui->DefaultPathLineWidth->onSave();
ui->DefaultPathMarkerColor->onSave();
ui->DefaultExtentsColor->onSave();
ui->DefaultProbePathColor->onSave();
ui->DefaultHighlightPathColor->onSave();
ui->DefaultBBoxSelectionColor->onSave();
ui->DefaultBBoxNormalColor->onSave();
ui->DefaultSelectionStyle->onSave();
ui->DefaultTaskPanelLayout->onSave();
}
void DlgSettingsPathColor::loadSettings()
{
// Part
DefaultNormalPathColor->onRestore();
DefaultRapidPathColor->onRestore();
DefaultPathLineWidth->onRestore();
DefaultPathMarkerColor->onRestore();
DefaultExtentsColor->onRestore();
DefaultProbePathColor->onRestore();
DefaultHighlightPathColor->onRestore();
DefaultBBoxSelectionColor->onRestore();
DefaultBBoxNormalColor->onRestore();
DefaultSelectionStyle->onRestore();
DefaultTaskPanelLayout->onRestore();
ui->DefaultNormalPathColor->onRestore();
ui->DefaultRapidPathColor->onRestore();
ui->DefaultPathLineWidth->onRestore();
ui->DefaultPathMarkerColor->onRestore();
ui->DefaultExtentsColor->onRestore();
ui->DefaultProbePathColor->onRestore();
ui->DefaultHighlightPathColor->onRestore();
ui->DefaultBBoxSelectionColor->onRestore();
ui->DefaultBBoxNormalColor->onRestore();
ui->DefaultSelectionStyle->onRestore();
ui->DefaultTaskPanelLayout->onRestore();
}
/**
@@ -89,7 +91,7 @@ void DlgSettingsPathColor::loadSettings()
void DlgSettingsPathColor::changeEvent(QEvent *e)
{
if (e->type() == QEvent::LanguageChange) {
retranslateUi(this);
ui->retranslateUi(this);
}
else {
QWidget::changeEvent(e);

View File

@@ -24,12 +24,13 @@
#ifndef PATHGUI_DIALOG_DLGSETTINGSPATHCOLOR_H
#define PATHGUI_DIALOG_DLGSETTINGSPATHCOLOR_H
#include "ui_DlgSettingsPathColor.h"
#include <Gui/PropertyPage.h>
#include <memory>
namespace PathGui {
class Ui_DlgSettingsPathColor;
class DlgSettingsPathColor : public Gui::Dialog::PreferencePage, public Ui_DlgSettingsPathColor
class DlgSettingsPathColor : public Gui::Dialog::PreferencePage
{
Q_OBJECT
@@ -42,6 +43,9 @@ public:
protected:
void changeEvent(QEvent *e);
private:
std::unique_ptr<Ui_DlgSettingsPathColor> ui;
};
} // namespace PathGui