|
#include <ArmarXGui/gui-plugins/SystemStateMonitorPlugin/ArmarXManagerModel.h>
Public Types | |
enum | ApplicationRowType { Endpoint, ApplicationProperties, Components } |
enum | UserDataRoles : int { ComponentStarted = Qt::UserRole + 1, ResolvedDependency, RowType, End } |
Public Slots | |
void | deleteSelection (QItemSelectionModel *selectionModel) |
Deletes the selected set of rows from this model. More... | |
void | moveSelectionTo (QItemSelectionModel *selectionModel, ArmarXManagerModel *destinationModel) |
Takes the specified selected rows via the selection model from this and appends the rows to the given destination model. More... | |
void | takeSelectionFrom (QItemSelectionModel *selectionModel, ArmarXManagerModel *sourceModel) |
Takes the specified selected rows via the selection model from the source model and appends the rows to this one. More... | |
void | updateItem (QStandardItem *item) |
void | updateManagerDetails (const ArmarXManagerItem::ManagerDataMap &managerDataMap, bool deactivateIfMissing=true) |
void | upsertManagerDetails (const ArmarXManagerItem::ManagerData &data) |
Public Member Functions | |
ArmarXManagerModel () | |
Constructs an ArmarXManagerModel. More... | |
ArmarXManagerModel * | clone () |
Returns a clone of this ArmarXManagerModel. More... | |
void | copyFrom (ArmarXManagerModel *source) |
Copies the source model content to this one. More... | |
bool | empty () const |
QBrush | getBrush (armarx::ManagedIceObjectState state) const |
Returns an instance of state dependent brush. More... | |
IceManagerPtr | getIceManager () const |
ArmarXManagerItem * | getItem (int row, int column=0) const |
Returns a requested Model item. More... | |
ArmarXManagerItem * | getManagerItemByName (const QString &name) |
Returns the requested manager item by its name. More... | |
ManagerPrxMap | getManagerProxyMap () const |
ManagerPrxMap | getManagerProxyMap (const QStringList &managerNames) const |
std::mutex & | getMutex () |
Returns the access mutex. More... | |
QVariant | headerData (int section, Qt::Orientation orientation, int role) const override |
Returns the data header. More... | |
void | populate (const QStringList &managerList) |
Populates this model with the given manager name list. More... | |
void | setIceManager (IceManagerPtr iceManager) |
QStringList | toStringList () const |
Returns the model as a string list containing the manager names. More... | |
~ArmarXManagerModel () override | |
Model destructor. More... | |
Definition at line 47 of file ArmarXManagerModel.h.
|
strong |
Enumerator | |
---|---|
Endpoint | |
ApplicationProperties | |
Components |
Definition at line 168 of file ArmarXManagerModel.h.
|
strong |
Enumerator | |
---|---|
ComponentStarted | |
ResolvedDependency | |
RowType | |
End |
Definition at line 161 of file ArmarXManagerModel.h.
Constructs an ArmarXManagerModel.
Definition at line 46 of file ArmarXManagerModel.cpp.
|
override |
Model destructor.
Definition at line 53 of file ArmarXManagerModel.cpp.
ArmarXManagerModel * clone | ( | ) |
Returns a clone of this ArmarXManagerModel.
Definition at line 677 of file ArmarXManagerModel.cpp.
void copyFrom | ( | ArmarXManagerModel * | source | ) |
Copies the source model content to this one.
After the copy, this model is basically a clone of the source model
source | Source model to copy all content from |
Definition at line 695 of file ArmarXManagerModel.cpp.
|
slot |
Deletes the selected set of rows from this model.
selectionModel | The selected rows |
Definition at line 563 of file ArmarXManagerModel.cpp.
bool empty | ( | ) | const |
Definition at line 657 of file ArmarXManagerModel.cpp.
QBrush getBrush | ( | armarx::ManagedIceObjectState | state | ) | const |
Returns an instance of state dependent brush.
Definition at line 724 of file ArmarXManagerModel.cpp.
IceManagerPtr getIceManager | ( | ) | const |
ArmarXManagerItem * getItem | ( | int | row, |
int | column = 0 |
||
) | const |
Returns a requested Model item.
row | The row index of the item |
column | The column index of the item |
Pointer | to the ArmarXManagerItem |
Definition at line 59 of file ArmarXManagerModel.cpp.
ArmarXManagerItem * getManagerItemByName | ( | const QString & | name | ) |
Returns the requested manager item by its name.
name | Requested manager item name |
Definition at line 65 of file ArmarXManagerModel.cpp.
ManagerPrxMap getManagerProxyMap | ( | ) | const |
ManagerPrxMap getManagerProxyMap | ( | const QStringList & | managerNames | ) | const |
std::mutex & getMutex | ( | ) |
Returns the access mutex.
Definition at line 624 of file ArmarXManagerModel.cpp.
|
override |
Returns the data header.
Definition at line 603 of file ArmarXManagerModel.cpp.
|
slot |
Takes the specified selected rows via the selection model from this and appends the rows to the given destination model.
selectionModel | The selected rows |
destinationModel | Manager destination model |
Definition at line 524 of file ArmarXManagerModel.cpp.
void populate | ( | const QStringList & | managerList | ) |
Populates this model with the given manager name list.
managerList | The manager names to populate this model with. |
Definition at line 663 of file ArmarXManagerModel.cpp.
void setIceManager | ( | IceManagerPtr | iceManager | ) |
Definition at line 712 of file ArmarXManagerModel.cpp.
|
slot |
Takes the specified selected rows via the selection model from the source model and appends the rows to this one.
selectionModel | The selected rows |
sourceModel | Manager source model |
Definition at line 532 of file ArmarXManagerModel.cpp.
QStringList toStringList | ( | ) | const |
Returns the model as a string list containing the manager names.
Definition at line 644 of file ArmarXManagerModel.cpp.
|
slot |
Definition at line 630 of file ArmarXManagerModel.cpp.
|
slot |
Definition at line 138 of file ArmarXManagerModel.cpp.
|
slot |