![]() |
VR-Forces 4.7 Class Documentation
|
A widget class for managing attachment. More...

Public Member Functions | |
| virtual | ~DtAttachWidget () |
| DTOR. | |
| virtual QIcon | icon () |
| Get the icon of the page. | |
| virtual QString | title () |
| Get the title of the page. | |
| virtual const std::string & | pageClassName () const |
| Get the class name of the page. | |
| virtual void | setHideAttachedModelEnabled (bool trueFalse) |
| Set the Hide Attach Model checkbox state. | |
| virtual void | setAttachedObjects (const std::vector< DtUnicode > &attachedObject, bool visible) |
| Populate the attached objects list widget. | |
| virtual void | setAttachableParts (const std::vector< DtUnicode > &parts) |
| Populate the parts drop down. | |
| virtual void | setAttachedPart (const DtUnicode &partName) |
| Set the current attached part. | |
| virtual void | addAttachFilter (const DtUnicode &filterName, int filterType) |
| Add a filter type to the Attach Filter combo box. | |
| virtual void | setCurrentAttachFilter (int filterType) |
| set the current filter type | |
| virtual void | setAttachNextEnabled (bool enabled) |
| show the attach next button enabled or disabled | |
| virtual void | setAttachPreviousEnabled (bool enabled) |
| show the attach previous button enabled or disabled | |
| virtual void | addAttachModes (const std::list< DtUnicode > &modeNames, const std::list< int > &modeTypes) |
| add attach modes to the attach mode combo box | |
| virtual void | setCurrentAttachMode (int modeType) |
| set the current attach mode selected in the attach mode combo box | |
| virtual void | setAttachModeEnabled (int modeType, bool enabled) |
| show an attach mode enabled or disabled | |
| virtual void | setAttachSelectedEnabled (bool enabled) |
| show the attach selected and attach by mode buttons enabled or disabled | |
| virtual QSize | sizeHint () const |
| virtual void | setAttached (bool b) |
| If attach button is checkable, set attach state (depress attached) | |
| virtual void | setMoreInformationShown (bool) |
| Sets whether or not to show more information. | |
Public Member Functions inherited from makVrv::DtPage | |
| DtPage (DtDe &de, QWidget *parent=0, Qt::WindowFlags f=0) | |
| CTOR for page. | |
| virtual | ~DtPage () |
| DTOR for page. | |
| virtual PageAction | pageAction () |
| return the current action on the page | |
| virtual void | setPageAction (PageAction action) |
| set the curret action on the page | |
| virtual void | setActionFlag (int flag) |
| set the action flag of the page | |
| virtual int | actionFlag () |
| return the action flag of the page | |
| virtual void | setParentDialog (QWidget *paraentDialog) |
| set the parent dialog that owns this page | |
| virtual QWidget * | parentDialog () |
| return the parent dialog that own this page | |
| 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 | |
| virtual void | askBeforeAction () |
| Called when the action flag is set and before the action is beind executed, default do nothing. | |
| 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. | |
| virtual void | resumeLastAction () |
| resume the last action of the page | |
| virtual void | onCloseEvent () |
| will be called when user hit the close button of this page, default do nothing. | |
| virtual void | onSwitchEvent () |
| will be called when user try switch to another page, default do nothing. | |
Public Member Functions inherited from makVrv::DtAttachWidgetInterface | |
| DtAttachWidgetInterface () | |
| CTOR. | |
| virtual | ~DtAttachWidgetInterface () |
| Virtual DTOR. | |
Protected Slots | |
| virtual void | attachToPrevious () |
| handle the Attach Previous button clicked | |
| virtual void | attachToNext () |
| handle the Attach Next button clicked | |
| virtual void | attachToPart (int index) |
| Handle choosing a different part. | |
| virtual void | detach () |
| handle the Detach button clicked | |
| virtual void | changeHideAttachedModel (int state) |
| handle a change to the Hide Attached Model check box | |
| virtual void | changeAttachFilterType (int index) |
| handle a change to the Attach Filter combo box | |
| virtual void | attachModeChanged (int index) |
| Handle when the attach mode changes. | |
| virtual void | attachSelected () |
| handle the Attach Selected button clicked | |
| virtual void | updateShowMoreInformation () |
| Show/hide more information. | |
Protected Member Functions | |
| DtAttachWidget (DtDe &de, QWidget *parent=0, Qt::WindowFlags f=0) | |
| Constructor of the page. | |
| virtual void | activate () |
| Called when the page is displayed. | |
| virtual void | deactivate () |
| Called when the page is hidden. | |
| void | setupUi () |
| void | retranslateUi () |
Protected Attributes | |
| DtVirtualBaseClass * | myLogic |
| QSize | mySaveSize |
| QCheckBox * | myHideAttachedModelCheckBox |
| QComboBox * | myAttachFilterComboBox |
| QComboBox * | myAttachModeComboBox |
| QComboBox * | myAttachedObjectsComboBox |
| QComboBox * | myAttachablePartsComboBox |
| QFrame * | myFirstRowLineSeperator |
| QFrame * | myHorizontalLine2 |
| QFrame * | myMoreOptionsFrame |
| QHBoxLayout * | myFirstRowLayout |
| QHBoxLayout * | mySecondRowLayout |
| QHBoxLayout * | myThirdRowLayout |
| QHBoxLayout * | myFourthRowLayout |
| QLabel * | myAttachmentFilterLabel |
| QLabel * | myAttachedObjectsLabel |
| QLabel * | myAttachablePartsLabel |
| QPushButton * | myAttachNextButton |
| QPushButton * | myAttachPreviousButton |
| QPushButton * | myAttachSelectedButton |
| QPushButton * | myDetachButton |
| QPushButton * | myShowMoreInformationButton |
| QVBoxLayout * | myMoreOptionsLayout |
| QVBoxLayout * | myMainLayout |
| std::string | myClassName |
Protected Attributes inherited from makVrv::DtPage | |
| DtDe & | myDe |
| QWidget * | myParentDialog |
| PageAction | myCurrentPageAction |
| int | myActionFlag |
Friends | |
| class | DtAttachWidgetCreator |
| Let the creator create the page. | |
Additional Inherited Members | |
Public Types inherited from makVrv::DtPage | |
| enum | PageAction { None = 0x0000, Switching = 0x0001, Closing = 0x0010 } |
Public Attributes inherited from makVrv::DtAttachWidgetInterface | |
| boost::signal< void(int)> | signal_setAttachMode |
| boost::signal< void()> | signal_attachToNext |
| boost::signal< void()> | signal_attachToPrevious |
| boost::signal< void(const std::string &)> | signal_attachToPartName |
| boost::signal< void()> | signal_attachToSelected |
| boost::signal< void()> | signal_detach |
| boost::signal< void(bool)> | signal_setHideAttachedModel |
| boost::signal< void(int)> | signal_attachFilterTypeChanged |
A widget class for managing attachment.
|
virtual |
DTOR.
|
protected |
Constructor of the page.
|
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.
|
virtual |
Set the Hide Attach Model checkbox state.
Implements makVrv::DtAttachWidgetInterface.
|
virtual |
Populate the attached objects list widget.
Implements makVrv::DtAttachWidgetInterface.
|
virtual |
Populate the parts drop down.
Implements makVrv::DtAttachWidgetInterface.
|
virtual |
Set the current attached part.
Implements makVrv::DtAttachWidgetInterface.
|
virtual |
Add a filter type to the Attach Filter combo box.
Implements makVrv::DtAttachWidgetInterface.
|
virtual |
set the current filter type
Implements makVrv::DtAttachWidgetInterface.
|
virtual |
show the attach next button enabled or disabled
Implements makVrv::DtAttachWidgetInterface.
|
virtual |
show the attach previous button enabled or disabled
Implements makVrv::DtAttachWidgetInterface.
|
virtual |
add attach modes to the attach mode combo box
Implements makVrv::DtAttachWidgetInterface.
|
virtual |
set the current attach mode selected in the attach mode combo box
Implements makVrv::DtAttachWidgetInterface.
show an attach mode enabled or disabled
Implements makVrv::DtAttachWidgetInterface.
|
virtual |
show the attach selected and attach by mode buttons enabled or disabled
Implements makVrv::DtAttachWidgetInterface.
|
virtual |
|
virtual |
If attach button is checkable, set attach state (depress attached)
Implements makVrv::DtAttachWidgetInterface.
|
virtual |
Sets whether or not to show more information.
Implements makVrv::DtAttachWidgetInterface.
|
protectedvirtualslot |
handle the Attach Previous button clicked
|
protectedvirtualslot |
handle the Attach Next button clicked
|
protectedvirtualslot |
Handle choosing a different part.
|
protectedvirtualslot |
handle the Detach button clicked
|
protectedvirtualslot |
handle a change to the Hide Attached Model check box
|
protectedvirtualslot |
handle a change to the Attach Filter combo box
|
protectedvirtualslot |
Handle when the attach mode changes.
|
protectedvirtualslot |
handle the Attach Selected button clicked
|
protectedvirtualslot |
Show/hide more information.
|
protectedvirtual |
Called when the page is displayed.
Implements makVrv::DtPage.
|
protectedvirtual |
Called when the page is hidden.
Implements makVrv::DtPage.
|
protected |
|
protected |
|
friend |
Let the creator create the page.
|
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 |