mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 20:15:35 +08:00
refs #452 stash component (preparation, not yet implemented)
stashed mappings will be written in one step to DB
This commit is contained in:
committed by
Mathew Sutcliffe
parent
0a51c0a7b7
commit
89ed13276e
38
src/blackgui/components/dbstashcomponent.cpp
Normal file
38
src/blackgui/components/dbstashcomponent.cpp
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
/* Copyright (C) 2013
|
||||||
|
* 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 "dbstashcomponent.h"
|
||||||
|
#include "ui_dbstashcomponent.h"
|
||||||
|
|
||||||
|
namespace BlackGui
|
||||||
|
{
|
||||||
|
namespace Components
|
||||||
|
{
|
||||||
|
CDbStashComponent::CDbStashComponent(QWidget *parent) :
|
||||||
|
QFrame(parent),
|
||||||
|
ui(new Ui::CDbStashComponent)
|
||||||
|
{
|
||||||
|
ui->setupUi(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
CDbStashComponent::~CDbStashComponent()
|
||||||
|
{ }
|
||||||
|
|
||||||
|
void CDbStashComponent::setProvider(BlackMisc::Network::IWebDataServicesProvider *provider)
|
||||||
|
{
|
||||||
|
CWebDataServicesAware::setProvider(provider);
|
||||||
|
}
|
||||||
|
|
||||||
|
void CDbStashComponent::gracefulShutdown()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
} // ns
|
||||||
|
} // ns
|
||||||
56
src/blackgui/components/dbstashcomponent.h
Normal file
56
src/blackgui/components/dbstashcomponent.h
Normal file
@@ -0,0 +1,56 @@
|
|||||||
|
/* 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_DBSTASHCOMPONENT_H
|
||||||
|
#define BLACKGUI_COMPONENTS_DBSTASHCOMPONENT_H
|
||||||
|
|
||||||
|
#include "blackgui/components/enablefordockwidgetinfoarea.h"
|
||||||
|
#include "blackmisc/network/webdataservicesprovider.h"
|
||||||
|
#include <QFrame>
|
||||||
|
#include <QScopedPointer>
|
||||||
|
|
||||||
|
namespace Ui { class CDbStashComponent; }
|
||||||
|
|
||||||
|
namespace BlackGui
|
||||||
|
{
|
||||||
|
namespace Components
|
||||||
|
{
|
||||||
|
/*!
|
||||||
|
* Stashed objects
|
||||||
|
*/
|
||||||
|
class BLACKGUI_EXPORT CDbStashComponent :
|
||||||
|
public QFrame,
|
||||||
|
public CEnableForDockWidgetInfoArea,
|
||||||
|
public BlackMisc::Network::CWebDataServicesAware
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
|
public:
|
||||||
|
//! Constructor
|
||||||
|
explicit CDbStashComponent(QWidget *parent = nullptr);
|
||||||
|
|
||||||
|
//! Destructor
|
||||||
|
~CDbStashComponent();
|
||||||
|
|
||||||
|
//! \copydoc CWebDataReaderAware::setProvider
|
||||||
|
virtual void setProvider(BlackMisc::Network::IWebDataServicesProvider *provider) override;
|
||||||
|
|
||||||
|
//! Graceful shutdown
|
||||||
|
void gracefulShutdown();
|
||||||
|
|
||||||
|
private:
|
||||||
|
QScopedPointer<Ui::CDbStashComponent> ui;
|
||||||
|
};
|
||||||
|
|
||||||
|
} // ns
|
||||||
|
} // ns
|
||||||
|
|
||||||
|
#endif // guard
|
||||||
23
src/blackgui/components/dbstashcomponent.ui
Normal file
23
src/blackgui/components/dbstashcomponent.ui
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
<?xml version='1.0'?>
|
||||||
|
<ui version="4.0">
|
||||||
|
<class>CDbStashComponent</class>
|
||||||
|
<widget class="QFrame" name="CDbStashComponent">
|
||||||
|
<property name="frameShadow">
|
||||||
|
<enum>QFrame::Raised</enum>
|
||||||
|
</property>
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>0</x>
|
||||||
|
<y>0</y>
|
||||||
|
<width>400</width>
|
||||||
|
<height>300</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="frameShape">
|
||||||
|
<enum>QFrame::StyledPanel</enum>
|
||||||
|
</property>
|
||||||
|
<property name="windowTitle">
|
||||||
|
<string>Frame</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</ui>
|
||||||
Reference in New Issue
Block a user