View to display a device's nodemap.
More...
#include <cvb/ui/property_grid.hpp>
Inherits QTreeView.
View to display a device's nodemap.
This is the main class to display a nodemap as a QTreeView widget. It supports all the features provided by QTreeView.
grid->SetVisibility(Cvb::Visibility::Beginner);
View to display a device's nodemap.
Definition: property_grid.hpp:157
- Examples
- Cvb/QtPropertyGrid.
◆ PropertyGrid()
Create a property grid.
- Parameters
-
[in] | nodemap | The nodemap to display in QTreeView. |
[in] | parent | Parent object in Qt's object hierarchy. |
- Exceptions
-
◆ CollapseSearchResult()
void CollapseSearchResult |
( |
const QModelIndexList & |
indexList | ) |
|
|
inline |
Collapses all nodes of given QModelIndexList as well as its parents.
- Parameters
-
[in] | indexList | An index list to collapse. |
- Exceptions
-
Does | not throw any exception. |
◆ ExpandSearchResult()
void ExpandSearchResult |
( |
const QModelIndexList & |
indexList | ) |
|
|
inline |
Expands all nodes of given QModelIndexList as well as its parents.
- Parameters
-
[in] | indexList | An index list to expand. |
- Exceptions
-
Does | not throw any exception. |
◆ HtmlFormattedDescription()
Returns an HTML formatted description of given node by QModelIndex.
- Parameters
-
- Returns
- The HTML formatted description.
- Exceptions
-
Does | not throw any exception. |
◆ Node()
The node of the given QModelIndex.
- Parameters
-
[in] | index | The index to get the node from. |
- Returns
- The node pointer.
- Exceptions
-
Does | not throw any exception. |
◆ NodeMap()
Return the nodemap.
- Returns
- The nodemap.
- Exceptions
-
Does | not throw any exception. |
◆ ReleaseNodeMap()
Release the nodemap.
- Exceptions
-
Does | not throw any exception. |
◆ ResetSearch()
Reset the search text.
- Exceptions
-
Does | not throw any exception. |
◆ ResetUpdateLock()
Reset the update lock.
- Exceptions
-
Does | not throw any exception. |
If a timeout occurs while retrieving a node value, the update function will be locked to avoid blocking the UI, e.g. if the device is disconnected. If the device is connected again, the update lock has to be reset.
◆ Search()
QModelIndexList Search |
( |
const QString & |
text | ) |
|
|
inline |
Search for displayed property name.
- Parameters
-
[in] | text | The text to find. |
- Returns
- A list with all found QModelIndex which will be highlighted in the QTreeView with SearchResultBackgroundColor.
- Exceptions
-
Does | not throw any exception. |
◆ SearchResultBackgroundColor()
QColor SearchResultBackgroundColor |
( |
| ) |
|
|
inline |
Returns the search result background color.
- Returns
- The search result background color.
- Exceptions
-
Does | not throw any exception. |
◆ SearchText()
Returns the search text which is currently set.
- Returns
- The current search text.
- Exceptions
-
Does | not throw any exception. |
◆ SetNodeMap()
void SetNodeMap |
( |
const NodeMapPtr & |
nodemap | ) |
|
|
inline |
Set the nodemap and exchanges the model.
- Parameters
-
- Exceptions
-
◆ SetSearchResultBackgroundColor()
void SetSearchResultBackgroundColor |
( |
QColor |
color | ) |
|
|
inline |
Set the search result background color.
- Parameters
-
[in] | color | The color to highlight the search result. |
- Exceptions
-
Does | not throw any exception. |
◆ SetVisibility()
Set the visibility of the nodemap.
- Parameters
-
[in] | visibility | The maximum visibility of the nodemap. |
- Exceptions
-
◆ StartAutoUpdate()
void StartAutoUpdate |
( |
int |
ms | ) |
|
|
inline |
Starts the automatic update of the nodes.
- Parameters
-
[in] | ms | The time in milliseconds to update (e.g. for an update per second set 1000 ms). |
- Exceptions
-
Does | not throw any exception. |
◆ StopAutoUpdate()
Stops the automatic update of the nodes.
- Exceptions
-
Does | not throw any exception. |
◆ Update()
Updates all properties / nodes.
- Exceptions
-
Does | not throw any exception. |
◆ UpdateProperty()
Updates a given property / node.
- Parameters
-
[in] | index | The property to update. |
- Exceptions
-
Does | not throw any exception. |
◆ Visibility()
Returns the visibility of the nodemap.
- Returns
- The maximum visibility of the nodemap.
- Exceptions
-
Does | not throw any exception. |