diff --git a/src/blackgui/components/datasettingscomponent.ui b/src/blackgui/components/datasettingscomponent.ui
index bf38a21e3..216e2b69c 100644
--- a/src/blackgui/components/datasettingscomponent.ui
+++ b/src/blackgui/components/datasettingscomponent.ui
@@ -19,22 +19,76 @@
QFrame::Raised
-
-
-
- 59
- 29
- 151
- 101
-
-
-
- QFrame::StyledPanel
-
-
- QFrame::Raised
-
-
+
+ -
+
+
+ QFrame::StyledPanel
+
+
+ QFrame::Raised
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+
+ 40
+ 20
+
+
+
+
+ -
+
+
+
+ 150
+ 0
+
+
+
+ QFrame::StyledPanel
+
+
+ QFrame::Raised
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 40
+
+
+
+
+ -
+
+
+
+ 200
+ 100
+
+
+
+ QFrame::StyledPanel
+
+
+ QFrame::Raised
+
+
+
+
@@ -43,6 +97,12 @@
blackgui/components/dblogincomponent.h
1
+
+ BlackGui::Components::CDbDebugDatabaseSetup
+ QFrame
+ blackgui/components/dbdebugdatabasesetup.h
+ 1
+
diff --git a/src/blackgui/components/dbdebugdatabasesetup.cpp b/src/blackgui/components/dbdebugdatabasesetup.cpp
new file mode 100644
index 000000000..b8efe682c
--- /dev/null
+++ b/src/blackgui/components/dbdebugdatabasesetup.cpp
@@ -0,0 +1,41 @@
+/* Copyright (C) 2015
+ * swift project Community / Contributors
+ *
+ * This file is part of swift Project. It is subject to the license terms in the LICENSE file found in the top-level
+ * directory of this distribution and at http://www.swift-project.org/license.html. No part of swift project,
+ * including this file, may be copied, modified, propagated, or distributed except according to the terms
+ * contained in the LICENSE file.
+ */
+
+#include "blackmisc/project.h"
+#include "dbdebugdatabasesetup.h"
+#include "ui_dbdebugdatabasesetup.h"
+
+using namespace BlackCore::Data;
+using namespace BlackMisc;
+
+namespace BlackGui
+{
+ namespace Components
+ {
+ CDbDebugDatabaseSetup::CDbDebugDatabaseSetup(QWidget *parent) :
+ QFrame(parent),
+ ui(new Ui::CDbDebugDatabaseSetup)
+ {
+ ui->setupUi(this);
+ this->setEnabled(CProject::isRunningInDeveloperEnvironment());
+ connect(ui->cb_EnableServerDebugging, &QCheckBox::toggled, this, &CDbDebugDatabaseSetup::ps_debugChanged);
+ }
+
+ CDbDebugDatabaseSetup::~CDbDebugDatabaseSetup()
+ { }
+
+ void CDbDebugDatabaseSetup::ps_debugChanged(bool set)
+ {
+ CGlobalSetup gs(m_setup.get());
+ gs.setServerDebugFlag(set);
+ m_setup.set(gs);
+ }
+
+ } // ns
+} // ns
diff --git a/src/blackgui/components/dbdebugdatabasesetup.h b/src/blackgui/components/dbdebugdatabasesetup.h
new file mode 100644
index 000000000..9d4a0d750
--- /dev/null
+++ b/src/blackgui/components/dbdebugdatabasesetup.h
@@ -0,0 +1,51 @@
+/* Copyright (C) 2015
+ * swift project Community / Contributors
+ *
+ * This file is part of swift Project. It is subject to the license terms in the LICENSE file found in the top-level
+ * directory of this distribution and at http://www.swift-project.org/license.html. No part of swift project,
+ * including this file, may be copied, modified, propagated, or distributed except according to the terms
+ * contained in the LICENSE file.
+ */
+
+//! \file
+
+#ifndef BLACKGUI_COMPONENTS_DBDEBUGDATABASESETUP_H
+#define BLACKGUI_COMPONENTS_DBDEBUGDATABASESETUP_H
+
+#include "blackcore/data/globalsetup.h"
+#include
+#include
+
+namespace Ui { class CDbDebugDatabaseSetup; }
+
+namespace BlackGui
+{
+ namespace Components
+ {
+ /*!
+ * Debug settings for DB (only to be used as developer)
+ * \remarks Disabled when not runnig in dev.environment
+ */
+ class CDbDebugDatabaseSetup : public QFrame
+ {
+ Q_OBJECT
+
+ public:
+ //! Constructor
+ explicit CDbDebugDatabaseSetup(QWidget *parent = nullptr);
+
+ //! Dstructor
+ ~CDbDebugDatabaseSetup();
+
+ private slots:
+ //! Changed the debug checkbox
+ void ps_debugChanged(bool set);
+
+ private:
+ QScopedPointer ui;
+ BlackCore::CData m_setup {this}; //!< data cache
+ };
+ } // ns
+} // ns
+
+#endif // guard
diff --git a/src/blackgui/components/dbdebugdatabasesetup.ui b/src/blackgui/components/dbdebugdatabasesetup.ui
new file mode 100644
index 000000000..e04262d97
--- /dev/null
+++ b/src/blackgui/components/dbdebugdatabasesetup.ui
@@ -0,0 +1,41 @@
+
+
+ CDbDebugDatabaseSetup
+
+
+
+ 0
+ 0
+ 129
+ 33
+
+
+
+ Frame
+
+
+ QFrame::StyledPanel
+
+
+ QFrame::Raised
+
+
+ -
+
+
+ Server debug flag:
+
+
+
+ -
+
+
+
+
+
+
+
+
+
+
+