OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
GraphicsItemDesignerNavigation Class Reference

#include "GraphicsItemDesignerNavigation.h"

Inheritance diagram for GraphicsItemDesignerNavigation:
ot::TreeWidget ot::QWidgetInterface

Public Member Functions

 GraphicsItemDesignerNavigation (GraphicsItemDesigner *_designer)
 
virtual ~GraphicsItemDesignerNavigation ()
 
void addRootItem (GraphicsItemDesignerItemBase *_item, bool _keepName)
 
bool isItemNameUnique (const QString &_itemName) const
 
bool updateItemName (const QString &_oldName, const QString &_newName)
 
GraphicsItemDesignerItemBasefindDesignerItem (const QString &_itemName) const
 
ot::GraphicsItemCfggenerateConfig (const GraphicsItemDesignerExportConfig &_exportConfig)
 
GraphicsItemDesignerNavigationRootgetDesignerRootItem (void) const
 
void setCurrentSelection (const std::list< std::string > &_itemNames)
 
std::list< GraphicsItemDesignerItemBase * > getCurrentDesignerSelection (void) const
 
bool hasDesignerItems (void) const
 
void updatePropertyGrid (void)
 
void clearDesignerItems (void)
 Removes and destroys all designer items. The items will be removed from the view aswell.
 
void removeSelectedDesignerItems (void)
 
void removeDesignerItems (const QStringList &_itemNames)
 
- Public Member Functions inherited from ot::TreeWidget
 TreeWidget (QWidget *_parentWidget=(QWidget *) nullptr)
 
virtual ~TreeWidget ()
 
virtual QWidget * getQWidget (void) override
 Returns a pointer to the root widget of this object.
 
virtual const QWidget * getQWidget (void) const override
 
QTreeWidgetItem * findItem (const QString &_itemPath, char _delimiter='/') const
 
bool itemExists (const QString &_itemPath, char _delimiter='/') const
 Checks if the item at the given path exists.
 
bool itemTextExists (const QString &_itemText) const
 Checks if an item with the given text exists. The item text is the text of the single item. The item to check may be nested.
 
QString getItemPath (QTreeWidgetItem *_item, char _delimiter='/') const
 
QTreeWidgetItem * addItem (const TreeWidgetItemInfo &_item)
 
void deselectAll (void)
 Deselects all items. Emits itemSelectionChanged when done.
 
virtual void mousePressEvent (QMouseEvent *_event) override
 
virtual void drawRow (QPainter *_painter, const QStyleOptionViewItem &_options, const QModelIndex &_index) const override
 
bool itemTextExists (QTreeWidgetItem *_parent, const QString &_itemText) const
 Checks if an item with the given text exists. The item text is the text of the single item. The item to check may be nested.
 
QTreeWidgetItem * findItem (QTreeWidgetItem *_item, const QStringList &_childPath) const
 
QTreeWidgetItem * findItemText (QTreeWidgetItem *_parent, const QString &_itemText) const
 
- Public Member Functions inherited from ot::QWidgetInterface
 QWidgetInterface ()
 
virtual ~QWidgetInterface ()
 
void setOTWidgetFlags (const WidgetFlags &_flags)
 
const WidgetFlagsotWidgetFlags (void) const
 

Protected Member Functions

virtual void keyPressEvent (QKeyEvent *_event) override
 
void forgetItem (GraphicsItemDesignerItemBase *_item)
 
- Protected Member Functions inherited from ot::QWidgetInterface
virtual void otWidgetFlagsChanged (const WidgetFlags &_flags)
 

Constructor & Destructor Documentation

◆ GraphicsItemDesignerNavigation()

GraphicsItemDesignerNavigation::GraphicsItemDesignerNavigation ( GraphicsItemDesigner * _designer)

◆ ~GraphicsItemDesignerNavigation()

GraphicsItemDesignerNavigation::~GraphicsItemDesignerNavigation ( )
virtual

Member Function Documentation

◆ addRootItem()

void GraphicsItemDesignerNavigation::addRootItem ( GraphicsItemDesignerItemBase * _item,
bool _keepName )

◆ clearDesignerItems()

void GraphicsItemDesignerNavigation::clearDesignerItems ( void )

Removes and destroys all designer items. The items will be removed from the view aswell.

◆ findDesignerItem()

GraphicsItemDesignerItemBase * GraphicsItemDesignerNavigation::findDesignerItem ( const QString & _itemName) const

◆ forgetItem()

void GraphicsItemDesignerNavigation::forgetItem ( GraphicsItemDesignerItemBase * _item)
protected

◆ generateConfig()

ot::GraphicsItemCfg * GraphicsItemDesignerNavigation::generateConfig ( const GraphicsItemDesignerExportConfig & _exportConfig)

◆ getCurrentDesignerSelection()

std::list< GraphicsItemDesignerItemBase * > GraphicsItemDesignerNavigation::getCurrentDesignerSelection ( void ) const

◆ getDesignerRootItem()

GraphicsItemDesignerNavigationRoot * GraphicsItemDesignerNavigation::getDesignerRootItem ( void ) const
inline

◆ hasDesignerItems()

bool GraphicsItemDesignerNavigation::hasDesignerItems ( void ) const
inline

◆ isItemNameUnique()

bool GraphicsItemDesignerNavigation::isItemNameUnique ( const QString & _itemName) const

◆ keyPressEvent()

void GraphicsItemDesignerNavigation::keyPressEvent ( QKeyEvent * _event)
overrideprotectedvirtual

◆ removeDesignerItems()

void GraphicsItemDesignerNavigation::removeDesignerItems ( const QStringList & _itemNames)

◆ removeSelectedDesignerItems()

void GraphicsItemDesignerNavigation::removeSelectedDesignerItems ( void )

◆ setCurrentSelection()

void GraphicsItemDesignerNavigation::setCurrentSelection ( const std::list< std::string > & _itemNames)

◆ updateItemName()

bool GraphicsItemDesignerNavigation::updateItemName ( const QString & _oldName,
const QString & _newName )

◆ updatePropertyGrid()

void GraphicsItemDesignerNavigation::updatePropertyGrid ( void )

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