Adds immediate migration results in progress
This commit is contained in:
2102 files changed
+17482
-15071
No files matched your search
+5
-5
@@ -25,7 +25,7 @@ bool SettingsGroup::init()
|
||||
if (!m_subSetHandler || !m_opSettings)
|
||||
{
|
||||
|
||||
ERROR_LOG() << " SettingsGroup::init() failed. this=" << this
|
||||
ERROR_LOG(m_logger) << " SettingsGroup::init() failed. this=" << this
|
||||
<< ", typeid.name='" << typeid(*this).name()
|
||||
<< ", m_id='" << m_id
|
||||
<< ", m_group='" << m_group;
|
||||
@@ -71,7 +71,7 @@ void SettingsGroup::startLoad()
|
||||
#else
|
||||
if (!m_subSetHandler)
|
||||
{
|
||||
ERROR_LOG() << " SettingsGroup::startLoad() : no m_subSetHandler. this=" << this
|
||||
ERROR_LOG(m_logger) << " SettingsGroup::startLoad() : no m_subSetHandler. this=" << this
|
||||
<< ", typeid.name='" << typeid(*this).name()
|
||||
<< ", m_id='" << m_id
|
||||
<< ", m_group='" << m_group;
|
||||
@@ -93,19 +93,19 @@ void SettingsGroup::startSave()
|
||||
return;
|
||||
for (SubSet &subset : m_subsets)
|
||||
{
|
||||
DEBUG_LOG() << "saving11 subset for group: " << m_group
|
||||
DEBUG_LOG(m_logger) << "saving11 subset for group: " << m_group
|
||||
<< ", id:" << m_id
|
||||
<< ", subset.name=" << subset.name
|
||||
<< ", subset.data=" << subset.data.toString();
|
||||
|
||||
bool saveSubSetOk = m_subSetHandler->saveSubSet(subset);
|
||||
if (!saveSubSetOk)
|
||||
WARNING_LOG() << "saving22 subset failed for group: " << m_group
|
||||
WARNING_LOG(m_logger) << "saving22 subset failed for group: " << m_group
|
||||
<< ", id:" << m_id
|
||||
<< ", subset.name=" << subset.name
|
||||
<< ", subset.data=" << subset.data.toString();
|
||||
else
|
||||
DEBUG_LOG() << "saving22 subset for group: " << m_group
|
||||
DEBUG_LOG(m_logger) << "saving22 subset for group: " << m_group
|
||||
<< ", id:" << m_id
|
||||
<< ", subset.name=" << subset.name
|
||||
<< ", subset.data=" << subset.data.toString();
|
||||
|
||||
+2
@@ -87,6 +87,8 @@ public:
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
NGL::INGLLogger &m_logger;
|
||||
virtual bool aboutToLoad() { return true; }
|
||||
virtual bool aboutToSave() { return true; }
|
||||
virtual bool aboutToDelete() { return true; }
|
||||
|
||||
+12
-12
@@ -44,7 +44,7 @@ OperatorSettingsDialog::OperatorSettingsDialog(LtsSession::LtsSession *session,
|
||||
, m_workspaceMap(nullptr)
|
||||
, m_filterMap(nullptr)
|
||||
{
|
||||
TRACE_LOG() << Q_FUNC_INFO << " START";
|
||||
TRACE_LOG(m_logger) << Q_FUNC_INFO << " START";
|
||||
m_ui->setupUi(this);
|
||||
|
||||
|
||||
@@ -59,7 +59,7 @@ OperatorSettingsDialog::OperatorSettingsDialog(LtsSession::LtsSession *session,
|
||||
connect(m_ui->pbDEBUGNewWsID, &QPushButton::clicked, this, [this]()
|
||||
{
|
||||
const QString newId(QUuid::createUuid().toString());
|
||||
ERROR_LOG() << "new WsId" << newId;
|
||||
ERROR_LOG(m_logger) << "new WsId" << newId;
|
||||
m_session->setWorkspaceId(newId);
|
||||
});
|
||||
}
|
||||
@@ -146,17 +146,17 @@ OperatorSettingsDialog::OperatorSettingsDialog(LtsSession::LtsSession *session,
|
||||
connect(m_ui->cbScriptsHideOnDrag, &QCheckBox::toggled, m_timer, static_cast<void (QTimer::*)(void)>(&QTimer::start));
|
||||
m_ui->cbScriptsHideOnDrag->setChecked(m_opSettings->value(QStringLiteral("Scripts"), QStringLiteral("HideOnDrag"), true).toBool());
|
||||
|
||||
TRACE_LOG() << Q_FUNC_INFO << " END";
|
||||
TRACE_LOG(m_logger) << Q_FUNC_INFO << " END";
|
||||
}
|
||||
|
||||
|
||||
OperatorSettingsDialog::~OperatorSettingsDialog()
|
||||
{
|
||||
TRACE_LOG() << Q_FUNC_INFO << " START";
|
||||
TRACE_LOG(m_logger) << Q_FUNC_INFO << " START";
|
||||
if (m_timer->isActive())
|
||||
onTimerTimeout();
|
||||
delete m_ui;
|
||||
TRACE_LOG() << Q_FUNC_INFO << " END";
|
||||
TRACE_LOG(m_logger) << Q_FUNC_INFO << " END";
|
||||
}
|
||||
|
||||
|
||||
@@ -258,7 +258,7 @@ void OperatorSettingsDialog::onWorkspaceLoad()
|
||||
QString workspaceId = m_ui->cbWorkspaces->currentData().toString();
|
||||
if (workspaceId.compare(QUuid().toString()) == 0)
|
||||
{
|
||||
WARNING_LOG() << "Tried to load a Workspace with Null-Uuid! ... skipping";
|
||||
WARNING_LOG(m_logger) << "Tried to load a Workspace with Null-Uuid! ... skipping";
|
||||
m_ui->cbWorkspaces->setCurrentIndex(0);
|
||||
return;
|
||||
}
|
||||
@@ -297,7 +297,7 @@ void OperatorSettingsDialog::onWorkspaceOverwrite()
|
||||
|
||||
|
||||
|
||||
DEBUG_LOG() << Q_FUNC_INFO << " emit signalOverwriteWorkspace: "
|
||||
DEBUG_LOG(m_logger) << Q_FUNC_INFO << " emit signalOverwriteWorkspace: "
|
||||
<< " workspaceId= '" << workspaceId << "'"
|
||||
<< " workspaceName= '" << workspaceName << "'";
|
||||
emit signalOverwriteWorkspace(workspaceId, workspaceName, QString());
|
||||
@@ -324,7 +324,7 @@ void OperatorSettingsDialog::onWorkspacesComboboxIndexChanged(int index)
|
||||
{
|
||||
const QString &wspId = m_ui->cbWorkspaces->itemData(index).toString();
|
||||
|
||||
DEBUG_LOG() << Q_FUNC_INFO << " id: '" << wspId << "'"
|
||||
DEBUG_LOG(m_logger) << Q_FUNC_INFO << " id: '" << wspId << "'"
|
||||
<< " itemText: '" << m_ui->cbWorkspaces->itemText(index) << "'";
|
||||
|
||||
if (!m_workspaceMap->contains(wspId) || m_workspaceMap->value(wspId)->data().isEmpty())
|
||||
@@ -370,7 +370,7 @@ void OperatorSettingsDialog::onFilterPresetLoad()
|
||||
QString filterPresetId = m_ui->cbFilterPresets->currentData().toString();
|
||||
if (filterPresetId.compare(QUuid().toString()) == 0)
|
||||
{
|
||||
WARNING_LOG() << "Tried to load a FilterPreset with Null-Uuid! ... skipping";
|
||||
WARNING_LOG(m_logger) << "Tried to load a FilterPreset with Null-Uuid! ... skipping";
|
||||
m_ui->cbFilterPresets->setCurrentIndex(0);
|
||||
return;
|
||||
}
|
||||
@@ -451,7 +451,7 @@ void OperatorSettingsDialog::onFilterPresetDelete()
|
||||
void OperatorSettingsDialog::onFilterPresetsComboboxIndexChanged(int index)
|
||||
{
|
||||
const QString &id = m_ui->cbFilterPresets->itemData(index).toString();
|
||||
DEBUG_LOG() << Q_FUNC_INFO << " id: '" << id << "'"
|
||||
DEBUG_LOG(m_logger) << Q_FUNC_INFO << " id: '" << id << "'"
|
||||
<< " itemText: '" << m_ui->cbFilterPresets->itemText(index) << "'";
|
||||
|
||||
m_ui->pbLoadFilterPreset->setProperty(DISABLE_FAST_CLICKS_PROPERTY, QVariant());
|
||||
@@ -498,13 +498,13 @@ void OperatorSettingsDialog::updateCombobox(QComboBox *cbx, const QMap<QString,
|
||||
const QJsonObject &mapValue = it.value()->data();
|
||||
if (mapValue.isEmpty())
|
||||
{
|
||||
WARNING_LOG() << "Entry with Id: " << it.key() << " has empty data! ... skipping this entry";
|
||||
WARNING_LOG(m_logger) << "Entry with Id: " << it.key() << " has empty data! ... skipping this entry";
|
||||
continue;
|
||||
}
|
||||
QString name = mapValue.value(QStringLiteral("name")).toString();
|
||||
if (name.isEmpty())
|
||||
{
|
||||
WARNING_LOG() << "Entry with Id: " << it.key() << " has empty name! ... skipping this entry";
|
||||
WARNING_LOG(m_logger) << "Entry with Id: " << it.key() << " has empty name! ... skipping this entry";
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
+1
@@ -184,6 +184,7 @@ signals:
|
||||
void linesRemovedChanged(int numLines);
|
||||
|
||||
protected:
|
||||
NGL::INGLLogger &m_logger;
|
||||
void paintEvent(QPaintEvent *event) override;
|
||||
void keyPressEvent(QKeyEvent *event) override;
|
||||
void timerEvent(QTimerEvent *event) override;
|
||||
|
||||
Reference in new issue
Block a user