![]() |
VR-Forces 4.8 Class Documentation
|
The DtDisplayConfigEditorWidget helps the DtDisplayConfigEditorLogic create and modify display configurations. More...

Public Slots | |
| void | onDisplayTreeSelectionChanged (const QModelIndex &index) |
| void | onDelete () |
| Popup slots;. More... | |
| void | onNewDisplayEngine () |
| void | onNewWindow () |
| void | onNewChannel () |
| void | onConnectToSlave () |
| void | onDisconnectSlave () |
| void | onSaveDisplayConfig () |
| void | onLoadDisplayConfig () |
| void | on_myCommitChangesBtn_clicked () |
| void | onPropertyChanged (QTreeWidgetItem *item) |
| Property sheet slots. More... | |
Public Member Functions | |
| DtDisplayConfigEditorWidget (DtDe &de, QWidget *parent=0, Qt::WindowFlags f=Qt::Dialog|Qt::SubWindow) | |
| Constructor. More... | |
| virtual | ~DtDisplayConfigEditorWidget () |
| Destructor. More... | |
| virtual QIcon | icon () |
| Get the icon of the page. More... | |
| virtual QString | title () |
| Get the title of the page. More... | |
| virtual const std::string & | pageClassName () const |
| Get the class name of the page. More... | |
| virtual DtDisplayConfigEditorLogic * | logic () |
| Return logic. More... | |
| virtual void | displayTreePopupMenu (int itemFlags, const QPoint &pos) |
| virtual void | enableTheseButtons (int itemFlags) |
| This is called with the DisplayItemFlags that should be enabled right now. More... | |
| virtual void | contextMenuEvent (QContextMenuEvent *e) |
| Kick off popup menu. More... | |
| virtual QModelIndex | selectedModelIndex () |
| Get the selected model index. More... | |
| virtual void | expandSubTree (QModelIndex index) |
| Expand all nodes in the sub tree starting at index. More... | |
| virtual void | setItemModel (QAbstractItemModel *) |
| Set the item model the widget can use. More... | |
| virtual void | observerCreateRequestComplete (const std::string &observerName) |
| Called by the logic after a successful observer creation request. More... | |
| virtual void | observerCreateRequestFailed (const std::string &observerName) |
| Called by the logic after a failed observer creation request. More... | |
| virtual void | populatePropertySheet (const DtDisplayConfiguration &dec) |
| Populate property sheet. More... | |
| virtual void | populatePropertySheet (const DtWindowConfiguration &wc) |
| virtual void | populatePropertySheet (const DtChannelConfiguration &cc) |
| virtual void | clearPropertySheet () |
| virtual void | onDisplayEnginePropertiesCommited () |
| Called when properties change and notifies the logic. More... | |
| virtual void | onWindowPropertiesCommited () |
| virtual void | onChannelPropertiesCommited () |
Public Member Functions inherited from makVrv::DtPage | |
| DtPage (DtDe &de, QWidget *parent=0, Qt::WindowFlags f=0) | |
| CTOR for page. More... | |
| virtual | ~DtPage () |
| DTOR for page. More... | |
| virtual PageAction | pageAction () |
| return the current action on the page More... | |
| virtual void | setPageAction (PageAction action) |
| set the curret action on the page More... | |
| virtual void | setActionFlag (int flag) |
| set the action flag of the page More... | |
| virtual int | actionFlag () |
| return the action flag of the page More... | |
| virtual void | setParentDialog (QWidget *paraentDialog) |
| set the parent dialog that owns this page More... | |
| virtual QWidget * | parentDialog () |
| return the parent dialog that own this page More... | |
| virtual bool | shouldAskBeforeAction (PageAction action) |
| test the action flag with the action, return true if we should ask before executing the action /param action the current page action More... | |
| virtual void | askBeforeAction () |
| Called when the action flag is set and before the action is beind executed, default do nothing. More... | |
| virtual void | executeAfterAsk (bool revert) |
| Called after askBeforeAction(), whether user wants to revert the action or resume the action /param revert if true, the user wants to revert the action, otherwise resume it. More... | |
| virtual void | resumeLastAction () |
| resume the last action of the page More... | |
| virtual void | onCloseEvent () |
| will be called when user hit the close button of this page, default do nothing. More... | |
| virtual void | onSwitchEvent () |
| will be called when user try switch to another page, default do nothing. More... | |
Static Public Member Functions | |
| static const std::string & | thePageClassName () |
| Get the class name of the class. More... | |
Protected Member Functions | |
| virtual void | activate () |
| Called when the page is displayed. More... | |
| virtual void | deactivate () |
| Called when the page is hidden. More... | |
| void | updateActionByFlag (int itemFlags, unsigned int flag, QAction *action) |
| Helper function for setting the parameters of an action via its flags. More... | |
| void | updateButtonByFlag (int itemFlags, unsigned int flag, QPushButton *button) |
| virtual bool | property (QString name, int &value) const |
| virtual bool | property (QString name, QString &value) const |
| virtual bool | property (QString name, double &value) const |
| virtual bool | property (QString name, bool &value) const |
| virtual bool | property (QString name, QStringList &value) const |
| DtWindowConfiguration::WindowType | mapStringToWindowType (const QString &windowTypeString) |
| QString | mapWindowTypeToString (const DtWindowConfiguration::WindowType windowType) |
| DtChannelConfiguration::ProjectionUnits | mapStringToProjectionUnits (const QString &projectionUnitsString) |
| QString | mapProjectionUnitsToString (const DtChannelConfiguration::ProjectionUnits units) |
| DtChannelConfiguration::ProjectionResizePolicy | mapStringToProjectionResizePolicy (const QString &projectionResizePolicyString) |
| QString | mapProjectionResizePolicyToString (const DtChannelConfiguration::ProjectionResizePolicy projectionResizePolicy) |
| DtChannelConfiguration::NearFarClipPolicy | mapStringToNearFarClipPolicy (const QString &nearFarClipPolicyString) |
| QString | mapNearFarClipPolicyToString (const DtChannelConfiguration::NearFarClipPolicy nearFarClipPolicy) |
| DtChannelConfiguration::DynamicNearClipAttachedObjectPolicy | mapStringToDynamicNearClipAttachedObjectPolicy (const QString &dynamicNearClipAttachedObjectPolicyString) |
| QString | mapDynamicNearClipAttachedObjectToString (const DtChannelConfiguration::DynamicNearClipAttachedObjectPolicy dynamicNearClipAttachedObjectPolicy) |
| void | requestNewObserverName () |
| bring up a request dialog for new observer name More... | |
Additional Inherited Members | |
Public Types inherited from makVrv::DtPage | |
| enum | PageAction { None = 0x0000, Switching = 0x0001, Closing = 0x0010 } |
Public Types inherited from makVrv::DtDisplayConfigEditorInterface | |
| enum | DisplayItemFlags { NoFlags = 0x00, ConnectDisplayEngine = 0x01, DisconnectDisplayEngine = 0x02, AddWindow = 0x04, RemoveWindow = 0x08, AddChannel = 0x10, RemoveChannel = 0x20, LoadDisplayConfig = 0x40, SaveDisplayConfig = 0x80 } |
The DtDisplayConfigEditorWidget helps the DtDisplayConfigEditorLogic create and modify display configurations.
This class should be as dump as possible, pushing all the hard work into the testable logic. It connects signals and calls the functionality in the logic.
| makVrv::DtDisplayConfigEditorWidget::DtDisplayConfigEditorWidget | ( | DtDe & | de, |
| QWidget * | parent = 0, |
||
| Qt::WindowFlags | f = Qt::Dialog|Qt::SubWindow |
||
| ) |
Constructor.
|
virtual |
Destructor.
|
virtual |
Get the icon of the page.
Implements makVrv::DtPage.
|
virtual |
Get the title of the page.
Implements makVrv::DtPage.
|
virtual |
Get the class name of the page.
Implements makVrv::DtPage.
|
static |
Get the class name of the class.
|
virtual |
Return logic.
|
virtual |
Populate property sheet.
Implements makVrv::DtDisplayConfigEditorInterface.
|
virtual |
Implements makVrv::DtDisplayConfigEditorInterface.
|
virtual |
Implements makVrv::DtDisplayConfigEditorInterface.
|
virtual |
Implements makVrv::DtDisplayConfigEditorInterface.
|
virtual |
Implements makVrv::DtDisplayConfigEditorInterface.
|
virtual |
This is called with the DisplayItemFlags that should be enabled right now.
Implements makVrv::DtDisplayConfigEditorInterface.
|
virtual |
Called when properties change and notifies the logic.
|
virtual |
|
virtual |
|
virtual |
Kick off popup menu.
|
virtual |
Get the selected model index.
Implements makVrv::DtDisplayConfigEditorInterface.
|
virtual |
Expand all nodes in the sub tree starting at index.
Implements makVrv::DtDisplayConfigEditorInterface.
|
virtual |
Set the item model the widget can use.
Implements makVrv::DtDisplayConfigEditorInterface.
|
virtual |
Called by the logic after a successful observer creation request.
Implements makVrv::DtDisplayConfigEditorInterface.
|
virtual |
Called by the logic after a failed observer creation request.
Implements makVrv::DtDisplayConfigEditorInterface.
|
slot |
|
slot |
Popup slots;.
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
Property sheet slots.
|
protectedvirtual |
Called when the page is displayed.
Implements makVrv::DtPage.
|
protectedvirtual |
Called when the page is hidden.
Implements makVrv::DtPage.
|
protected |
Helper function for setting the parameters of an action via its flags.
|
protected |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
bring up a request dialog for new observer name
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |