![]() |
VR-Forces Developer's Guide
|
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.

Public Slots | |
| void | onDisplayTreeSelectionChanged (const QModelIndex &index) |
| void | onDelete () |
| void | onNewDisplayEngine () |
| void | onNewWindow () |
| void | onNewChannel () |
| void | onConnectToSlave () |
| void | onDisconnectSlave () |
| void | onSaveDisplayConfig () |
| void | onLoadDisplayConfig () |
| void | on_myCommitChangesBtn_clicked () |
| void | onPropertyChanged (QTreeWidgetItem *item) |
Public Member Functions | |
| DtDisplayConfigEditorWidget (DtDe &de, QWidget *parent=0, Qt::WindowFlags f=Qt::Dialog|Qt::SubWindow) | |
| virtual | ~DtDisplayConfigEditorWidget () |
| virtual QIcon | icon () |
| virtual DtQIconConfigurations | qIconConfigurations () const |
| virtual QString | title () |
| virtual const std::string & | pageClassName () const |
| virtual DtDisplayConfigEditorLogic * | logic () |
| virtual void | displayTreePopupMenu (int itemFlags, const QPoint &pos) |
| virtual void | enableTheseButtons (int itemFlags) |
| virtual void | contextMenuEvent (QContextMenuEvent *e) |
| virtual QModelIndex | selectedModelIndex () |
| virtual void | expandSubTree (QModelIndex index) |
| virtual void | setItemModel (QAbstractItemModel *) |
| virtual void | observerCreateRequestComplete (const std::string &observerName) |
| virtual void | observerCreateRequestFailed (const std::string &observerName) |
| virtual void | populatePropertySheet (const DtDisplayConfiguration &dec) |
| virtual void | populatePropertySheet (const DtWindowConfiguration &wc) |
| virtual void | populatePropertySheet (const DtChannelConfiguration &cc) |
| virtual void | clearPropertySheet () |
| virtual void | onDisplayEnginePropertiesCommited () |
| virtual void | onWindowPropertiesCommited () |
| virtual void | onChannelPropertiesCommited () |
Public Member Functions inherited from makVrv::DtPage | |
| DtPage (DtDe &de, QWidget *parent=0, Qt::WindowFlags f=0) | |
| virtual | ~DtPage () |
| virtual PageAction | pageAction () |
| virtual void | setPageAction (PageAction action) |
| virtual void | setActionFlag (int flag) |
| virtual int | actionFlag () |
| virtual void | setParentDialog (QWidget *paraentDialog) |
| virtual QWidget * | parentDialog () |
| virtual bool | shouldAskBeforeAction (PageAction action) |
| virtual void | askBeforeAction () |
| virtual void | executeAfterAsk (bool revert) |
| virtual void | resumeLastAction () |
| virtual void | onCloseEvent () |
| virtual void | onSwitchEvent () |
Static Public Member Functions | |
| static const std::string & | thePageClassName () |
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 } |
| 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 icon configurations for the page. This is used to style the page's icon based on application settings.
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 |
Populate property sheet.
Implements makVrv::DtDisplayConfigEditorInterface.
|
virtual |
Populate property sheet.
Implements makVrv::DtDisplayConfigEditorInterface.
|
virtual |
Populate property sheet.
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 |
Called when properties change and notifies the logic.
|
virtual |
Called when properties change and notifies the logic.
|
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.
|
overrideprotectedvirtual |
override for the QWidget drawEnterEvent function, used to determine if the dropped item is a dcx file.
|
overrideprotectedvirtual |
override for the QWidget dropEvent function, used to load the dropped dcx file.
|
protectedvirtual |
helper function for loading a particular display config file
|
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 |
|
protected |
|
protected |