refs #887, stub for copy config (cache/settings) UI

This commit is contained in:
Klaus Basan
2017-02-21 00:16:32 +01:00
parent ca77310ac4
commit c3830d3efb
5 changed files with 179 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
<?xml version='1.0'?>
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>CConfigurationWizard</class>
<widget name="CConfigurationWizard" class="QWizard">
<widget class="QWizard" name="CConfigurationWizard">
<property name="geometry">
<rect>
<x>0</x>
@@ -11,9 +11,53 @@
</rect>
</property>
<property name="windowTitle">
<string>Wizard</string>
<string>swift configuration wizard</string>
</property>
<widget name="wizardPage1" class="QWizardPage"/>
<widget name="wizardPage2" class="QWizardPage"/>
<property name="wizardStyle">
<enum>QWizard::ClassicStyle</enum>
</property>
<widget class="QWizardPage" name="wp_CopyConfiguration">
<property name="title">
<string>Copy configuration</string>
</property>
<property name="subTitle">
<string>Copy cache and setting values</string>
</property>
<layout class="QVBoxLayout" name="vl_CopyConfiguration">
<property name="leftMargin">
<number>4</number>
</property>
<property name="topMargin">
<number>4</number>
</property>
<property name="rightMargin">
<number>4</number>
</property>
<property name="bottomMargin">
<number>4</number>
</property>
<item>
<widget class="BlackGui::Components::CCopyConfigurationComponent" name="comp_CopyConfiguration">
<property name="minimumSize">
<size>
<width>0</width>
<height>100</height>
</size>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QWizardPage" name="wizardPage2"/>
</widget>
<customwidgets>
<customwidget>
<class>BlackGui::Components::CCopyConfigurationComponent</class>
<extends>QFrame</extends>
<header>blackgui/components/copyconfigurationcomponent.h</header>
<container>1</container>
</customwidget>
</customwidgets>
<resources/>
<connections/>
</ui>

View File

@@ -0,0 +1,27 @@
/* Copyright (C) 2017
* 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 "copyconfigurationcomponent.h"
#include "ui_copyconfigurationcomponent.h"
namespace BlackGui
{
namespace Components
{
CCopyConfigurationComponent::CCopyConfigurationComponent(QWidget *parent) :
QFrame(parent),
ui(new Ui::CCopyConfigurationComponent)
{
ui->setupUi(this);
}
CCopyConfigurationComponent::~CCopyConfigurationComponent()
{ }
} // ns
} // ns

View File

@@ -0,0 +1,43 @@
/* Copyright (C) 2017
* 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_COPYCONFIGURATION_H
#define BLACKGUI_COMPONENTS_COPYCONFIGURATION_H
#include "blackgui/blackguiexport.h"
#include <QFrame>
namespace Ui { class CCopyConfigurationComponent; }
namespace BlackGui
{
namespace Components
{
/**
* Copy configuration (ie settings and cache files)
*/
class BLACKGUI_EXPORT CCopyConfigurationComponent : public QFrame
{
Q_OBJECT
public:
//! Constructor
explicit CCopyConfigurationComponent(QWidget *parent = nullptr);
//! Destructor
virtual ~CCopyConfigurationComponent();
private:
QScopedPointer<Ui::CCopyConfigurationComponent> ui;
};
} // ns
} // ns
#endif // guard

View File

@@ -0,0 +1,54 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>CCopyConfigurationComponent</class>
<widget class="QFrame" name="CCopyConfigurationComponent">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>640</width>
<height>480</height>
</rect>
</property>
<property name="windowTitle">
<string>Frame</string>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="1" column="1">
<widget class="QGroupBox" name="gb_Destination">
<property name="title">
<string>Destination</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QTreeView" name="tv_Destination"/>
</item>
</layout>
</widget>
</item>
<item row="1" column="0">
<widget class="QGroupBox" name="gb_Source">
<property name="title">
<string>Source</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QTreeView" name="tv_Source"/>
</item>
</layout>
</widget>
</item>
<item row="0" column="0">
<widget class="QComboBox" name="cb_Version"/>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>

View File

@@ -68,6 +68,12 @@ QDialog::separator:hover {
background: transparent;
}
/* selector QWizard not working, so using individual components */
BlackGui--Components--CCopyConfigurationComponent {
background: black; /* background is background color here */
background-image: url(:/textures/icons/textures/texture-inner.jpg);
}
QFileDialog #sidebar {
background: black;
}