OpenStudio:model_editor
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Public Slots | Signals | Public Member Functions | Public Attributes | Protected Attributes | List of all members
modeleditor::ViewWidget Class Referenceabstract

#include <ViewWidget.hpp>

+ Inheritance diagram for modeleditor::ViewWidget:

Public Slots

void on_modelDirty ()
 
virtual void on_nameChanged (QString)
 
virtual void viewSelection (const QModelIndex &modelIndex)=0
 

Signals

void commentsShow (bool)
 
void eventEnter ()
 
void eventLeave ()
 
void modelDirty ()
 
void modelUpdated (QAbstractItemModel *model)
 
void precisionDlgFinished ()
 
void precisionDlgHide ()
 
void precisionDlgShow ()
 

Public Member Functions

virtual void addObjects (openstudio::IddObjectType type=openstudio::IddObjectType("UserCustom"))=0
 
virtual void copyObjects ()=0
 
virtual void createAllFields ()
 
virtual void emitModelDirty ()
 
virtual const openstudio::IddFile & getIddFile ()
 
virtual openstudio::model::Model & getModel ()
 
virtual bool getModelDirty () const
 
virtual bool hasRowsToPaste ()=0
 
virtual bool hasSelectedRows ()=0
 
virtual void loadModel ()=0
 
virtual void pasteObjects ()=0
 
virtual void removeObjects ()=0
 
virtual void restoreState ()
 
virtual void setModelDirty (const bool modelDirty)
 
virtual void setRecursive (bool state)
 
virtual void showAllFields (bool state)
 
virtual void showComments (const bool showComments)
 
virtual void showPrecisionDlg (const bool showPrecisionDlg=true)
 
virtual void toggleGUIDs ()=0
 
 ViewWidget (openstudio::model::Model model,*parent=nullptr)
 
virtual ~ViewWidget ()
 

Public Attributes

ViewWidgetparent
 

Protected Attributes

InspectorGadgetmIG
 
IGPrecisionDialogmIGPrecisionDlg
 
openstudio::model::Model mModel
 
bool mModelDirty
 
ModelExplorermModelExplorer
 
QSplitter * mSplitter
 
QString mSplitterSetting
 

Constructor & Destructor Documentation

modeleditor::ViewWidget::ViewWidget ( openstudio::model::Model  model,
parent = nullptr 
)
virtual modeleditor::ViewWidget::~ViewWidget ( )
virtual

Member Function Documentation

virtual void modeleditor::ViewWidget::addObjects ( openstudio::IddObjectType  type = openstudio::IddObjectType("UserCustom"))
pure virtual
void modeleditor::ViewWidget::commentsShow ( bool  )
signal
virtual void modeleditor::ViewWidget::copyObjects ( )
pure virtual
virtual void modeleditor::ViewWidget::createAllFields ( )
virtual
virtual void modeleditor::ViewWidget::emitModelDirty ( )
virtual
void modeleditor::ViewWidget::eventEnter ( )
signal
void modeleditor::ViewWidget::eventLeave ( )
signal
virtual const openstudio::IddFile& modeleditor::ViewWidget::getIddFile ( )
virtual
virtual openstudio::model::Model& modeleditor::ViewWidget::getModel ( )
virtual
virtual bool modeleditor::ViewWidget::getModelDirty ( ) const
virtual
virtual bool modeleditor::ViewWidget::hasRowsToPaste ( )
pure virtual
virtual bool modeleditor::ViewWidget::hasSelectedRows ( )
pure virtual
virtual void modeleditor::ViewWidget::loadModel ( )
pure virtual
void modeleditor::ViewWidget::modelDirty ( )
signal
void modeleditor::ViewWidget::modelUpdated ( QAbstractItemModel model)
signal
void modeleditor::ViewWidget::on_modelDirty ( )
slot
virtual void modeleditor::ViewWidget::on_nameChanged ( QString  )
virtualslot
virtual void modeleditor::ViewWidget::pasteObjects ( )
pure virtual
void modeleditor::ViewWidget::precisionDlgFinished ( )
signal
void modeleditor::ViewWidget::precisionDlgHide ( )
signal
void modeleditor::ViewWidget::precisionDlgShow ( )
signal
virtual void modeleditor::ViewWidget::removeObjects ( )
pure virtual
virtual void modeleditor::ViewWidget::restoreState ( )
virtual
virtual void modeleditor::ViewWidget::setModelDirty ( const bool  modelDirty)
virtual
virtual void modeleditor::ViewWidget::setRecursive ( bool  state)
virtual
virtual void modeleditor::ViewWidget::showAllFields ( bool  state)
virtual
virtual void modeleditor::ViewWidget::showComments ( const bool  showComments)
virtual
virtual void modeleditor::ViewWidget::showPrecisionDlg ( const bool  showPrecisionDlg = true)
virtual
virtual void modeleditor::ViewWidget::toggleGUIDs ( )
pure virtual
virtual void modeleditor::ViewWidget::viewSelection ( const QModelIndex &  modelIndex)
pure virtualslot

Member Data Documentation

InspectorGadget* modeleditor::ViewWidget::mIG
protected
IGPrecisionDialog* modeleditor::ViewWidget::mIGPrecisionDlg
protected
openstudio::model::Model modeleditor::ViewWidget::mModel
protected
bool modeleditor::ViewWidget::mModelDirty
protected
ModelExplorer* modeleditor::ViewWidget::mModelExplorer
protected
QSplitter* modeleditor::ViewWidget::mSplitter
protected
QString modeleditor::ViewWidget::mSplitterSetting
protected
ViewWidget * modeleditor::ViewWidget::parent