refs #452 editors

the editors allow to enter data for the different value objects
This commit is contained in:
Klaus Basan
2015-09-24 00:04:29 +02:00
committed by Mathew Sutcliffe
parent 93e6e1d38e
commit 513eb07a13
20 changed files with 2662 additions and 0 deletions

View File

@@ -0,0 +1,48 @@
/* 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_EDITORS_FORM_H
#define BLACKGUI_EDITORS_FORM_H
#include <QFrame>
namespace BlackGui
{
namespace Editors
{
/*!
* Form base class
*/
class CForm : public QFrame
{
Q_OBJECT
public:
//! Constructor
explicit CForm(QWidget *parent = nullptr);
//! Destructor
~CForm();
//! Set editable
virtual void setReadOnly(bool readOnly) = 0;
//! Is read only?
bool isReadOnly() const { return m_readOnly; }
protected:
bool m_readOnly = false; //!< read only
};
} // ns
} // ns
#endif // guard