API Documentation
Loading...
Searching...
No Matches
CustomModelLogic Class Reference

An easy interface for adding common SoftwareInterfaces relating to a Model to the program logic. Can be used to easily change program behavior for a particular Model. More...

#include <CustomModelLogic.h>

Collaboration diagram for CustomModelLogic:
[legend]

Public Member Functions

virtual UUID id () const
 
virtual void registerAll (QTModelManager *manager)
 
const StringtypeName () const
 

Protected Member Functions

virtual void addMenuItems (Model &, QTModelManager *, QMenu &, const Buffer< UUID > &, const SelectionInfo &)
 
ContextMenuCallbackcontextMenuCallback ()
 
 CustomModelLogic (const String &type_name)
 
virtual void executeMenuItems (Model &, QTModelManager *, QAction *, const Buffer< UUID > &, const SelectionInfo &, PopupInfo)
 
std::function< void(Model &)> ndvFileReadLogic ()
 
virtual void setTreeWidgetsForSelection (const Model &, Buffer< QWidget * > &, SceneTree *)
 
virtual void setupModel (Model &)
 
virtual void setupPropertiesDialog (DesignObjectDialog *, const DynamicPointer< QTDesignObject > &)
 
CustomTreeWidgetstreeWidgetCallback ()
 

Protected Attributes

ContextMenuCallbackm_custom_context_menu = nullptr
 
CustomTreeWidgetsm_tree_button_menu = nullptr
 
String m_type_name
 

Friends

class CustomModelContextMenu
 
class CustomModelTreeWidgets
 

Detailed Description

An easy interface for adding common SoftwareInterfaces relating to a Model to the program logic. Can be used to easily change program behavior for a particular Model.


Constructor & Destructor Documentation

◆ CustomModelLogic()

CustomModelLogic ( const String & type_name)
protected

Member Function Documentation

◆ addMenuItems()

virtual void addMenuItems ( Model & ,
QTModelManager * ,
QMenu & ,
const Buffer< UUID > & ,
const SelectionInfo &  )
inlineprotectedvirtual

◆ contextMenuCallback()

ContextMenuCallback * contextMenuCallback ( )
protected

◆ executeMenuItems()

virtual void executeMenuItems ( Model & ,
QTModelManager * ,
QAction * ,
const Buffer< UUID > & ,
const SelectionInfo & ,
PopupInfo  )
inlineprotectedvirtual

◆ id()

virtual UUID id ( ) const
virtual

◆ ndvFileReadLogic()

std::function< void(Model &)> ndvFileReadLogic ( )
protected

◆ registerAll()

virtual void registerAll ( QTModelManager * manager)
virtual

◆ setTreeWidgetsForSelection()

virtual void setTreeWidgetsForSelection ( const Model & ,
Buffer< QWidget * > & ,
SceneTree *  )
inlineprotectedvirtual

◆ setupModel()

virtual void setupModel ( Model & )
inlineprotectedvirtual

◆ setupPropertiesDialog()

virtual void setupPropertiesDialog ( DesignObjectDialog * ,
const DynamicPointer< QTDesignObject > &  )
inlineprotectedvirtual

◆ treeWidgetCallback()

CustomTreeWidgets * treeWidgetCallback ( )
protected

◆ typeName()

const String & typeName ( ) const

Friends And Related Symbol Documentation

◆ CustomModelContextMenu

friend class CustomModelContextMenu
friend

◆ CustomModelTreeWidgets

friend class CustomModelTreeWidgets
friend

Member Data Documentation

◆ m_custom_context_menu

ContextMenuCallback* m_custom_context_menu = nullptr
protected

◆ m_tree_button_menu

CustomTreeWidgets* m_tree_button_menu = nullptr
protected

◆ m_type_name

String m_type_name
protected

The documentation for this class was generated from the following file: