mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-14 08:45:36 +08:00
refs #445, data entry GUI
* component for main info area * component for data mapping * new subproject
This commit is contained in:
committed by
Mathew Sutcliffe
parent
a2527e69e3
commit
d7bd20dd26
73
src/blackgui/components/datamaininfoareacomponent.h
Normal file
73
src/blackgui/components/datamaininfoareacomponent.h
Normal file
@@ -0,0 +1,73 @@
|
||||
/* 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 <QMainWindow>
|
||||
#include <QScopedPointer>
|
||||
|
||||
namespace Ui { class CDataMainInfoAreaComponent; }
|
||||
|
||||
namespace BlackGui
|
||||
{
|
||||
namespace Components
|
||||
{
|
||||
class CLogComponent;
|
||||
class CDataMappingComponent;
|
||||
|
||||
/**
|
||||
* Main info area for data entry tool
|
||||
*/
|
||||
class BLACKGUI_EXPORT CDataMainInfoAreaComponent : public BlackGui::CInfoArea
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
//! Info areas
|
||||
enum InfoArea
|
||||
{
|
||||
// index must match tab index!
|
||||
InfoAreaMapping = 0,
|
||||
InfoAreaLog = 1,
|
||||
InfoAreaSettings = 2,
|
||||
InfoAreaNone = -1
|
||||
};
|
||||
|
||||
//! Constructor
|
||||
explicit CDataMainInfoAreaComponent(QWidget *parent = nullptr);
|
||||
|
||||
//! Destructor
|
||||
~CDataMainInfoAreaComponent();
|
||||
|
||||
//! Log component
|
||||
BlackGui::Components::CLogComponent *getLogComponent() const;
|
||||
|
||||
//! Model component
|
||||
BlackGui::Components::CDataMappingComponent *getMappingComponent() const;
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user