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::TreeViewWidget Class Reference

#include <TreeViewWidget.hpp>

+ Inheritance diagram for modeleditor::TreeViewWidget:

Public Slots

virtual void on_nameChanged (QString) override
 
virtual void viewSelection ()
 
virtual void viewSelection (const QModelIndex &modelIndex) override
 
- Public Slots inherited from modeleditor::ViewWidget
void on_modelDirty ()
 
virtual void on_nameChanged (QString)
 
virtual void viewSelection (const QModelIndex &modelIndex)=0
 

Signals

void collapseAll ()
 
void expandAll ()
 
- Signals inherited from modeleditor::ViewWidget
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")) override
 
void collapseAllNodes ()
 
virtual void copyObjects () override
 
void expandAllNodes ()
 
std::vector
< openstudio::IddObjectType > 
getAllowableChildTypes ()
 
TreeModelgetTreeModel ()
 
TreeViewgetTreeView ()
 
virtual bool hasRowsToPaste () override
 
virtual bool hasSelectedRows () override
 
virtual void loadModel () override
 
virtual void pasteObjects () override
 
virtual void removeObjects () override
 
virtual void toggleGUIDs () override
 
 TreeViewWidget (openstudio::model::Model &model,*parent=nullptr)
 
virtual ~TreeViewWidget ()
 
- Public Member Functions inherited from modeleditor::ViewWidget
virtual void createAllFields ()
 
virtual void emitModelDirty ()
 
virtual const openstudio::IddFile & getIddFile ()
 
virtual openstudio::model::Model & getModel ()
 
virtual bool getModelDirty () const
 
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)
 
 ViewWidget (openstudio::model::Model model,*parent=nullptr)
 
virtual ~ViewWidget ()
 

Public Attributes

TreeViewWidgetparent
 
- Public Attributes inherited from modeleditor::ViewWidget
ViewWidgetparent
 

Protected Attributes

TreeModelmTreeModel
 
TreeViewmTreeView
 
- Protected Attributes inherited from modeleditor::ViewWidget
InspectorGadgetmIG
 
IGPrecisionDialogmIGPrecisionDlg
 
openstudio::model::Model mModel
 
bool mModelDirty
 
ModelExplorermModelExplorer
 
QSplitter * mSplitter
 
QString mSplitterSetting
 

Constructor & Destructor Documentation

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

Member Function Documentation

virtual void modeleditor::TreeViewWidget::addObjects ( openstudio::IddObjectType  type = openstudio::IddObjectType("UserCustom"))
overridevirtual
void modeleditor::TreeViewWidget::collapseAll ( )
signal
void modeleditor::TreeViewWidget::collapseAllNodes ( )
virtual void modeleditor::TreeViewWidget::copyObjects ( )
overridevirtual
void modeleditor::TreeViewWidget::expandAll ( )
signal
void modeleditor::TreeViewWidget::expandAllNodes ( )
std::vector<openstudio::IddObjectType> modeleditor::TreeViewWidget::getAllowableChildTypes ( )
TreeModel* modeleditor::TreeViewWidget::getTreeModel ( )
TreeView* modeleditor::TreeViewWidget::getTreeView ( )
virtual bool modeleditor::TreeViewWidget::hasRowsToPaste ( )
overridevirtual
virtual bool modeleditor::TreeViewWidget::hasSelectedRows ( )
overridevirtual
virtual void modeleditor::TreeViewWidget::loadModel ( )
overridevirtual
virtual void modeleditor::TreeViewWidget::on_nameChanged ( QString  )
overridevirtualslot
virtual void modeleditor::TreeViewWidget::pasteObjects ( )
overridevirtual
virtual void modeleditor::TreeViewWidget::removeObjects ( )
overridevirtual
virtual void modeleditor::TreeViewWidget::toggleGUIDs ( )
overridevirtual
virtual void modeleditor::TreeViewWidget::viewSelection ( )
virtualslot
virtual void modeleditor::TreeViewWidget::viewSelection ( const QModelIndex &  modelIndex)
overridevirtualslot

Member Data Documentation

TreeModel* modeleditor::TreeViewWidget::mTreeModel
protected
TreeView* modeleditor::TreeViewWidget::mTreeView
protected
TreeViewWidget * modeleditor::TreeViewWidget::parent