Top-level only abstract tree-based dialog box for reordering operation inputs and outputs.
More...
#include <Workspace/Presentation/portreorderdialog.h>
|
class | DataState |
| Class to carry DataObjects along with whether they were up-to-date. More...
|
|
|
bool | findConnectedDestinations (DataExecution::Output *output, QVariantList &destInputList) |
|
void | findDObjects (DataExecution::Operation &op, DataStateList &inputDataObjects, DataStateList &outputDataObjects) |
|
void | findIoBaseProperties (DataExecution::IOBase *ioBase, QStringList &globalNames, QStringList &descriptions, QStringList &names, QStringList &preferredWidgets, QVariantList &dependencySources) |
|
void | findScalarProperties (DataExecution::IOBase *ioBase, QString &globalName, QString &description, QString &preferredWidget) |
|
void | findScalarProperties (DataExecution::IOBase *ioBase, QStringList &globalNames, QStringList &descriptions, QStringList &preferredWidgets) |
|
void | keyPressEvent (QKeyEvent *evt) override |
| Stops the dialog box from closing when Enter is pressed **.
|
|
bool | registerItem (QTreeWidgetItem *item, DataExecution::IOBase *ioBase, DisplayWidgetTree::PortType portType, bool readOnly=false) |
|
bool | removeConnectedDestinations (DataExecution::Output *output) |
|
bool | removeConnectedSources (DataExecution::InputArray *inputArray) |
|
bool | restoreConnectedDestinations (DataExecution::Output *output, const QVariantList &destInputList) |
|
bool | restoreConnectedSources (DataExecution::InputArray *inputArray, const QVariantList &srcOutputList) |
|
void | restoreDObjects (DataExecution::Operation &op, DataStateList &inputDataObjects, DataStateList &outputDataObjects) |
|
void | restoreIoBaseProperties (DataExecution::IOBase *ioBase, QStringList &globalNames, QStringList &descriptions, QStringList &names, QStringList &preferredWidgets, const QVariantList &dependencySources) |
|
void | restoreScalarProperties (DataExecution::IOBase *ioBase, const QString &globalName, const QString &description, const QString &preferredWidget) |
|
void | restoreScalarProperties (DataExecution::IOBase *ioBase, QStringList &globalNames, QStringList &descriptions, QStringList &preferredWidgets) |
|
DataExecution::Workspace * | rootWorkspace () |
|
◆ DataStateList
◆ PortReorderDialog()
You are responsible for populating the tree header and rows. Each row should represent one IOBase item. Create a column for the DisplayWidgets. If you also want to display a QComboBox so that the user can choose from a selection of appropriate DisplayWidgets you should create a column for that too. If you just want to use the Preferred Display Widget for the IOBase, then set the SelectWidgetCol to -1.
- Parameters
-
displayWidgetCol | index of the column where you want the display widget |
selectWidgetCol | index of the column where you want the selection widget (-1 for no selection widget) |
workspace | whose ports are to be reordered |
readOnly | Set this to true if you want all the DisplayWidgets in the tree to be read-only |
parent | parent widget |
**
◆ findConnectedDestinations()
◆ findDObjects()
◆ findIoBaseProperties()
Adds properties of an input or output to the property lists
**
◆ findScalarProperties() [1/2]
void findScalarProperties |
( |
DataExecution::IOBase * |
ioBase, |
|
|
QString & |
globalName, |
|
|
QString & |
description, |
|
|
QString & |
preferredWidget |
|
) |
| |
|
protected |
◆ findScalarProperties() [2/2]
◆ isModified()
◆ keyPressEvent()
void keyPressEvent |
( |
QKeyEvent * |
evt | ) |
|
|
overrideprotected |
◆ okButtonClicked
virtual void okButtonClicked |
( |
| ) |
|
|
protectedpure virtualslot |
◆ registerItem()
◆ removeConnectedDestinations()
◆ removeConnectedSources()
◆ restoreConnectedDestinations()
◆ restoreConnectedSources()
◆ restoreDObjects()
◆ restoreIoBaseProperties()
Adds properties of an input or output to the property lists
**
◆ restoreScalarProperties() [1/2]
void restoreScalarProperties |
( |
DataExecution::IOBase * |
ioBase, |
|
|
const QString & |
globalName, |
|
|
const QString & |
description, |
|
|
const QString & |
preferredWidget |
|
) |
| |
|
protected |
◆ restoreScalarProperties() [2/2]
◆ rootWorkspace()
◆ treeWidget_
◆ workspace_