YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
EntitiesTreeWidget Class Reference

The Entities QtreeWidget. More...

#include </home/runner/work/yarp-documentation/yarp-documentation/yarp/src/guis/yarpmanager/src-manager/entitiestreewidget.h>

+ Inheritance diagram for EntitiesTreeWidget:

Public Slots

void onSelectItem (QString, bool open=false)
 
void onContext (QPoint)
 Called when a context menu has been requested.
 
void onLoadFile ()
 Called when a file has been loaded.
 
void onEditApplication ()
 
void onEdit ()
 Edit an item.
 
void onRemove ()
 Remove the selected entity node.
 
void onReopen ()
 Reload the selected entity node.
 
void onItemDoubleClicked (QTreeWidgetItem *item, int column)
 Called when an item has been double clicked.
 

Signals

void viewResource (yarp::manager::Computer *)
 
void viewModule (yarp::manager::Module *)
 
void viewApplication (yarp::manager::Application *, bool editing=false)
 
void importFiles ()
 
void openFiles ()
 
void removeApplication (QString, QString)
 
void removeModule (QString)
 
void removeResource (QString)
 
void reopenApplication (QString, QString)
 
void reopenResource (QString, QString)
 
void reopenModule (QString, QString)
 

Public Member Functions

 EntitiesTreeWidget (QWidget *parent=0)
 
void addApplication (yarp::manager::Application *app)
 Add an application to the tree.
 
void addComputer (yarp::manager::Computer *comp)
 Add a resource to the tree.
 
void addModule (yarp::manager::Module *mod)
 Add a module to the tree.
 
void addAppTemplate (yarp::manager::AppTemplate *tmp)
 Add an application template to the tree.
 
void addPort (QStringList portDetails)
 
void clearApplications ()
 Clear the application node.
 
void clearModules ()
 Clear the module node.
 
void clearResources ()
 Clear the resource node.
 
void clearTemplates ()
 Clear the application template node.
 
void clearPorts ()
 
QTreeWidgetItem * getWidgetItemByFilename (const QString xmlFile)
 
void setExtEditor (std::string editor)
 

Protected Member Functions

void mousePressEvent (QMouseEvent *event) override
 
void mouseMoveEvent (QMouseEvent *event) override
 

Detailed Description

The Entities QtreeWidget.

Definition at line 17 of file entitiestreewidget.h.

Constructor & Destructor Documentation

◆ EntitiesTreeWidget()

EntitiesTreeWidget::EntitiesTreeWidget ( QWidget *  parent = 0)
explicit

Definition at line 20 of file entitiestreewidget.cpp.

Member Function Documentation

◆ addApplication()

void EntitiesTreeWidget::addApplication ( yarp::manager::Application app)

Add an application to the tree.

Parameters
appthe application

Definition at line 98 of file entitiestreewidget.cpp.

◆ addAppTemplate()

void EntitiesTreeWidget::addAppTemplate ( yarp::manager::AppTemplate tmp)

Add an application template to the tree.

Parameters
tmpthe application template

Definition at line 176 of file entitiestreewidget.cpp.

◆ addComputer()

void EntitiesTreeWidget::addComputer ( yarp::manager::Computer comp)

Add a resource to the tree.

Parameters
compthe resource

Definition at line 126 of file entitiestreewidget.cpp.

◆ addModule()

void EntitiesTreeWidget::addModule ( yarp::manager::Module mod)

Add a module to the tree.

Parameters
modthe module

Definition at line 151 of file entitiestreewidget.cpp.

◆ addPort()

void EntitiesTreeWidget::addPort ( QStringList  portDetails)

Definition at line 187 of file entitiestreewidget.cpp.

◆ clearApplications()

void EntitiesTreeWidget::clearApplications ( )

Clear the application node.

Definition at line 402 of file entitiestreewidget.cpp.

◆ clearModules()

void EntitiesTreeWidget::clearModules ( )

Clear the module node.

Definition at line 414 of file entitiestreewidget.cpp.

◆ clearPorts()

void EntitiesTreeWidget::clearPorts ( )

Definition at line 448 of file entitiestreewidget.cpp.

◆ clearResources()

void EntitiesTreeWidget::clearResources ( )

Clear the resource node.

Definition at line 426 of file entitiestreewidget.cpp.

◆ clearTemplates()

void EntitiesTreeWidget::clearTemplates ( )

Clear the application template node.

Definition at line 438 of file entitiestreewidget.cpp.

◆ getWidgetItemByFilename()

QTreeWidgetItem * EntitiesTreeWidget::getWidgetItemByFilename ( const QString  xmlFile)

Definition at line 460 of file entitiestreewidget.cpp.

◆ importFiles

void EntitiesTreeWidget::importFiles ( )
signal

◆ mouseMoveEvent()

void EntitiesTreeWidget::mouseMoveEvent ( QMouseEvent *  event)
overrideprotected

Definition at line 300 of file entitiestreewidget.cpp.

◆ mousePressEvent()

void EntitiesTreeWidget::mousePressEvent ( QMouseEvent *  event)
overrideprotected

Definition at line 351 of file entitiestreewidget.cpp.

◆ onContext

void EntitiesTreeWidget::onContext ( QPoint  p)
slot

Called when a context menu has been requested.

Parameters
pthe point where the context menu should appear

Definition at line 471 of file entitiestreewidget.cpp.

◆ onEdit

void EntitiesTreeWidget::onEdit ( )
slot

Edit an item.

Edit only leafs element of the tree that are xml representing applications, modules, or templates

Definition at line 569 of file entitiestreewidget.cpp.

◆ onEditApplication

void EntitiesTreeWidget::onEditApplication ( )
slot

Definition at line 508 of file entitiestreewidget.cpp.

◆ onItemDoubleClicked

void EntitiesTreeWidget::onItemDoubleClicked ( QTreeWidgetItem *  item,
int  column 
)
slot

Called when an item has been double clicked.

when an elemtn of the entities tree has been double clicked it will open its relative view in the main window

Parameters
itemthe item has been double clicked
columnthe column has been double clicked

Definition at line 220 of file entitiestreewidget.cpp.

◆ onLoadFile

void EntitiesTreeWidget::onLoadFile ( )
slot

Called when a file has been loaded.

It's the same as double click an item

Definition at line 538 of file entitiestreewidget.cpp.

◆ onRemove

void EntitiesTreeWidget::onRemove ( )
slot

Remove the selected entity node.

Definition at line 663 of file entitiestreewidget.cpp.

◆ onReopen

void EntitiesTreeWidget::onReopen ( )
slot

Reload the selected entity node.

Definition at line 597 of file entitiestreewidget.cpp.

◆ onSelectItem

void EntitiesTreeWidget::onSelectItem ( QString  name,
bool  open = false 
)
slot

Definition at line 201 of file entitiestreewidget.cpp.

◆ openFiles

void EntitiesTreeWidget::openFiles ( )
signal

◆ removeApplication

void EntitiesTreeWidget::removeApplication ( QString  ,
QString   
)
signal

◆ removeModule

void EntitiesTreeWidget::removeModule ( QString  )
signal

◆ removeResource

void EntitiesTreeWidget::removeResource ( QString  )
signal

◆ reopenApplication

void EntitiesTreeWidget::reopenApplication ( QString  ,
QString   
)
signal

◆ reopenModule

void EntitiesTreeWidget::reopenModule ( QString  ,
QString   
)
signal

◆ reopenResource

void EntitiesTreeWidget::reopenResource ( QString  ,
QString   
)
signal

◆ setExtEditor()

void EntitiesTreeWidget::setExtEditor ( std::string  editor)

Definition at line 90 of file entitiestreewidget.cpp.

◆ viewApplication

void EntitiesTreeWidget::viewApplication ( yarp::manager::Application ,
bool  editing = false 
)
signal

◆ viewModule

void EntitiesTreeWidget::viewModule ( yarp::manager::Module )
signal

◆ viewResource

void EntitiesTreeWidget::viewResource ( yarp::manager::Computer )
signal

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