diff --git a/src/blackgui/components/dbstashcomponent.cpp b/src/blackgui/components/dbstashcomponent.cpp new file mode 100644 index 000000000..bae0a10ac --- /dev/null +++ b/src/blackgui/components/dbstashcomponent.cpp @@ -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 diff --git a/src/blackgui/components/dbstashcomponent.h b/src/blackgui/components/dbstashcomponent.h new file mode 100644 index 000000000..25ed9544a --- /dev/null +++ b/src/blackgui/components/dbstashcomponent.h @@ -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 +#include + +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; + }; + + } // ns +} // ns + +#endif // guard diff --git a/src/blackgui/components/dbstashcomponent.ui b/src/blackgui/components/dbstashcomponent.ui new file mode 100644 index 000000000..6b351159b --- /dev/null +++ b/src/blackgui/components/dbstashcomponent.ui @@ -0,0 +1,23 @@ + + + CDbStashComponent + + + QFrame::Raised + + + + 0 + 0 + 400 + 300 + + + + QFrame::StyledPanel + + + Frame + + +