From fcb8df92b17be74c134022ca9ce4a3eebf3aaeaf Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Sat, 10 Dec 2016 01:28:51 +0100 Subject: [PATCH] refs #829, ui for model settings --- .../components/datasettingscomponent.ui | 125 +++++++++++++----- .../components/settingsmodelcomponent.cpp | 27 ++++ .../components/settingsmodelcomponent.h | 42 ++++++ .../components/settingsmodelcomponent.ui | 37 ++++++ 4 files changed, 199 insertions(+), 32 deletions(-) create mode 100644 src/blackgui/components/settingsmodelcomponent.cpp create mode 100644 src/blackgui/components/settingsmodelcomponent.h create mode 100644 src/blackgui/components/settingsmodelcomponent.ui diff --git a/src/blackgui/components/datasettingscomponent.ui b/src/blackgui/components/datasettingscomponent.ui index 50edf2667..0d6064c7a 100644 --- a/src/blackgui/components/datasettingscomponent.ui +++ b/src/blackgui/components/datasettingscomponent.ui @@ -7,7 +7,7 @@ 0 0 400 - 407 + 443 @@ -32,7 +32,7 @@ 4 - + @@ -75,19 +75,44 @@ - - + + - Simulator + swift DB - - - - - QFrame::StyledPanel + + + 4 + + + 4 + + + 4 + + + 4 + + + + + Qt::Vertical - - QFrame::Raised + + + 20 + 40 + + + + + + + + + 0 + 175 + @@ -145,31 +170,61 @@ - + - swift DB + Models - - - - - Qt::Vertical + + + 4 + + + 4 + + + 4 + + + 4 + + + + + QFrame::StyledPanel - - - 20 - 40 - + + QFrame::Raised - + - - - - - 0 - 175 - + + + + + + + Simulator + + + + 4 + + + 4 + + + 4 + + + 4 + + + + + QFrame::StyledPanel + + + QFrame::Raised @@ -203,6 +258,12 @@
blackgui/components/settingsguicomponent.h
1 + + BlackGui::Components::CSettingsModelComponent + QFrame +
blackgui/components/settingsmodelcomponent.h
+ 1 +
diff --git a/src/blackgui/components/settingsmodelcomponent.cpp b/src/blackgui/components/settingsmodelcomponent.cpp new file mode 100644 index 000000000..ed9a6164f --- /dev/null +++ b/src/blackgui/components/settingsmodelcomponent.cpp @@ -0,0 +1,27 @@ +/* Copyright (C) 2016 + * 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 "settingsmodelcomponent.h" +#include "ui_settingsmodelcomponent.h" + +namespace BlackGui +{ + namespace Components + { + CSettingsModelComponent::CSettingsModelComponent(QWidget *parent) : + QFrame(parent), + ui(new Ui::CSettingsModelComponent) + { + ui->setupUi(this); + } + + CSettingsModelComponent::~CSettingsModelComponent() + { } + } // ns +} // ns diff --git a/src/blackgui/components/settingsmodelcomponent.h b/src/blackgui/components/settingsmodelcomponent.h new file mode 100644 index 000000000..cd1c76621 --- /dev/null +++ b/src/blackgui/components/settingsmodelcomponent.h @@ -0,0 +1,42 @@ +/* Copyright (C) 2016 + * 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_SETTINGSMODELCOMPONENT_H +#define BLACKGUI_COMPONENTS_SETTINGSMODELCOMPONENT_H + +#include + +namespace Ui { class CSettingsModelComponent; } +namespace BlackGui +{ + namespace Components + { + /*! + * Settings UI for model matching/mapping + */ + class CSettingsModelComponent : public QFrame + { + Q_OBJECT + + public: + //! Constructor + explicit CSettingsModelComponent(QWidget *parent = nullptr); + + //! Destructor + virtual ~CSettingsModelComponent(); + + private: + QScopedPointer ui; + }; + } // ns +} // ns + +#endif // guard diff --git a/src/blackgui/components/settingsmodelcomponent.ui b/src/blackgui/components/settingsmodelcomponent.ui new file mode 100644 index 000000000..c1ef86c9d --- /dev/null +++ b/src/blackgui/components/settingsmodelcomponent.ui @@ -0,0 +1,37 @@ + + + CSettingsModelComponent + + + + 0 + 0 + 187 + 40 + + + + Frame + + + QFrame::StyledPanel + + + QFrame::Raised + + + + + + Hint: This can cause wrong behaviour or violate 3rd parties copyright. You need to know what you are doing enabling the feature. + + + allow "exclude" models in set + + + + + + + +