mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 15:15:50 +08:00
* allow to stash and unstash models from vPilot and own models * removed stash main area and moved it into mapping component * own stash component * use the new functions for modles/views from the prevuous steps
91 lines
2.6 KiB
C++
91 lines
2.6 KiB
C++
/* Copyright (C) 2014
|
|
* 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_DATAMAININFOAREACOMPONENT_H
|
|
#define BLACKGUI_DATAMAININFOAREACOMPONENT_H
|
|
|
|
#include "blackgui/blackguiexport.h"
|
|
#include "blackgui/infoarea.h"
|
|
#include "blackmisc/network/webdataservicesprovider.h"
|
|
#include <QMainWindow>
|
|
#include <QScopedPointer>
|
|
|
|
namespace Ui { class CDataMainInfoAreaComponent; }
|
|
|
|
namespace BlackGui
|
|
{
|
|
namespace Components
|
|
{
|
|
class CLogComponent;
|
|
class CDbMappingComponent;
|
|
class CDataInfoAreaComponent;
|
|
|
|
/**
|
|
* Main info area for data entry tool
|
|
*/
|
|
class BLACKGUI_EXPORT CDataMainInfoAreaComponent :
|
|
public BlackGui::CInfoArea,
|
|
public BlackMisc::Network::CWebDataServicesAware
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
//! Info areas
|
|
enum InfoArea
|
|
{
|
|
// index must match tab index!
|
|
InfoAreaData = 0,
|
|
InfoAreaMapping = 1,
|
|
InfoAreaSettings = 2,
|
|
InfoAreaLog = 3,
|
|
InfoAreaNone = -1
|
|
};
|
|
|
|
//! Constructor
|
|
explicit CDataMainInfoAreaComponent(QWidget *parent = nullptr);
|
|
|
|
//! Destructor
|
|
~CDataMainInfoAreaComponent();
|
|
|
|
//! Log component
|
|
CLogComponent *getLogComponent() const;
|
|
|
|
//! Mapping component
|
|
CDbMappingComponent *getMappingComponent() const;
|
|
|
|
//! Mapping component
|
|
CDataInfoAreaComponent *getDataInfoAreaComponent() const;
|
|
|
|
//! Set data reader
|
|
virtual void setProvider(BlackMisc::Network::IWebDataServicesProvider *provider) override;
|
|
|
|
//! Display the log
|
|
void displayLog();
|
|
|
|
//! Display console
|
|
void displayConsole();
|
|
|
|
protected:
|
|
//! \copydoc CInfoArea::getPreferredSizeWhenFloating
|
|
virtual QSize getPreferredSizeWhenFloating(int areaIndex) const override;
|
|
|
|
//! \copydoc CInfoArea::indexToPixmap
|
|
virtual const QPixmap &indexToPixmap(int areaIndex) const override;
|
|
|
|
private:
|
|
QScopedPointer <Ui::CDataMainInfoAreaComponent> ui;
|
|
};
|
|
|
|
} // ns
|
|
} // ns
|
|
|
|
#endif // guard
|