refs #745, made modify form a CForm

* disable exclude mode when not admin
* set min. sizes for UI (better layout)
This commit is contained in:
Klaus Basan
2016-08-26 01:59:41 +02:00
committed by Mathew Sutcliffe
parent 0d70e87d11
commit 02e8d4a4cb
3 changed files with 66 additions and 32 deletions

View File

@@ -12,6 +12,7 @@
#ifndef BLACKGUI_EDITORS_MODELMAPPINGMODIFYFORM_H
#define BLACKGUI_EDITORS_MODELMAPPINGMODIFYFORM_H
#include "form.h"
#include "blackgui/blackguiexport.h"
#include "blackmisc/propertyindexvariantmap.h"
@@ -32,7 +33,7 @@ namespace BlackGui
/*!
* Allows to modify individual fields of the model form
*/
class BLACKGUI_EXPORT CModelMappingModifyForm : public QFrame
class BLACKGUI_EXPORT CModelMappingModifyForm : public CForm
{
Q_OBJECT
@@ -49,6 +50,13 @@ namespace BlackGui
//! Set value
void setValue(const BlackMisc::Simulation::CAircraftModel &model);
//! \copydoc CForm::setReadOnly
virtual void setReadOnly(bool readOnly) override;
protected slots:
//! \copydoc CForm::ps_userChanged
virtual void ps_userChanged() override;
private slots:
//! Return pressed
void ps_returnPressed();