VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | Friends
makVrv::DtAttachWidget Class Reference

A widget class for managing attachment. More...

Inheritance diagram for makVrv::DtAttachWidget:
Inheritance graph
[legend]

Public Member Functions

virtual ~DtAttachWidget ()
 DTOR. 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 void setHideAttachedModelEnabled (bool trueFalse)
 Set the Hide Attach Model checkbox state. More...
 
virtual void setAttachedObjects (const std::vector< DtUnicode > &attachedObject, bool visible)
 Populate the attached objects list widget. More...
 
virtual void setAttachableParts (const std::vector< DtUnicode > &parts)
 Populate the parts drop down. More...
 
virtual void setAttachedPart (const DtUnicode &partName)
 Set the current attached part. More...
 
virtual void addAttachFilter (const DtUnicode &filterName, int filterType)
 Add a filter type to the Attach Filter combo box. More...
 
virtual void setCurrentAttachFilter (int filterType)
 set the current filter type More...
 
virtual void setAttachNextEnabled (bool enabled)
 show the attach next button enabled or disabled More...
 
virtual void setAttachPreviousEnabled (bool enabled)
 show the attach previous button enabled or disabled More...
 
virtual void addAttachModes (const std::list< DtUnicode > &modeNames, const std::list< int > &modeTypes)
 add attach modes to the attach mode combo box More...
 
virtual void setCurrentAttachMode (int modeType)
 set the current attach mode selected in the attach mode combo box More...
 
virtual void setAttachModeEnabled (int modeType, bool enabled)
 show an attach mode enabled or disabled More...
 
virtual void setAttachSelectedEnabled (bool enabled)
 show the attach selected and attach by mode buttons enabled or disabled More...
 
virtual QSize sizeHint () const
 
virtual void setAttached (bool b)
 If attach button is checkable, set attach state (depress attached) More...
 
virtual void setMoreInformationShown (bool)
 Sets whether or not to show more information. More...
 
- 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...
 
- Public Member Functions inherited from makVrv::DtAttachWidgetInterface
 DtAttachWidgetInterface ()
 CTOR. More...
 
virtual ~DtAttachWidgetInterface ()
 Virtual DTOR. More...
 

Protected Slots

virtual void attachToPrevious ()
 handle the Attach Previous button clicked More...
 
virtual void attachToNext ()
 handle the Attach Next button clicked More...
 
virtual void attachToPart (int index)
 Handle choosing a different part. More...
 
virtual void detach ()
 handle the Detach button clicked More...
 
virtual void changeHideAttachedModel (int state)
 handle a change to the Hide Attached Model check box More...
 
virtual void changeAttachFilterType (int index)
 handle a change to the Attach Filter combo box More...
 
virtual void attachModeChanged (int index)
 Handle when the attach mode changes. More...
 
virtual void attachSelected ()
 handle the Attach Selected button clicked More...
 
virtual void updateShowMoreInformation ()
 Show/hide more information. More...
 

Protected Member Functions

 DtAttachWidget (DtDe &de, QWidget *parent=0, Qt::WindowFlags f=0)
 Constructor of the page. More...
 
virtual void activate ()
 Called when the page is displayed. More...
 
virtual void deactivate ()
 Called when the page is hidden. More...
 
void setupUi ()
 
void retranslateUi ()
 

Protected Attributes

DtVirtualBaseClassmyLogic
 
QSize mySaveSize
 
QCheckBoxmyHideAttachedModelCheckBox
 
QComboBoxmyAttachFilterComboBox
 
QComboBoxmyAttachModeComboBox
 
QComboBoxmyAttachedObjectsComboBox
 
QComboBoxmyAttachablePartsComboBox
 
QFrame * myFirstRowLineSeperator
 
QFrame * myHorizontalLine2
 
QFrame * myMoreOptionsFrame
 
QHBoxLayout * myFirstRowLayout
 
QHBoxLayout * mySecondRowLayout
 
QHBoxLayout * myThirdRowLayout
 
QHBoxLayout * myFourthRowLayout
 
QLabelmyAttachmentFilterLabel
 
QLabelmyAttachedObjectsLabel
 
QLabelmyAttachablePartsLabel
 
QPushButtonmyAttachNextButton
 
QPushButtonmyAttachPreviousButton
 
QPushButtonmyAttachSelectedButton
 
QPushButtonmyDetachButton
 
QPushButtonmyShowMoreInformationButton
 
QVBoxLayout * myMoreOptionsLayout
 
QVBoxLayout * myMainLayout
 
std::string myClassName
 
- Protected Attributes inherited from makVrv::DtPage
DtDemyDe
 
QWidget * myParentDialog
 
PageAction myCurrentPageAction
 
int myActionFlag
 

Friends

class DtAttachWidgetCreator
 Let the creator create the page. More...
 

Additional Inherited Members

- Public Types inherited from makVrv::DtPage
enum  PageAction { None = 0x0000, Switching = 0x0001, Closing = 0x0010 }
 
- Public Attributes inherited from makVrv::DtAttachWidgetInterface
boost::signalslib::signal
< void(int)> 
signal_setAttachMode
 
boost::signalslib::signal< void()> signal_attachToNext
 
boost::signalslib::signal< void()> signal_attachToPrevious
 
boost::signalslib::signal
< void(const std::string &)> 
signal_attachToPartName
 
boost::signalslib::signal< void()> signal_attachToSelected
 
boost::signalslib::signal< void()> signal_detach
 
boost::signalslib::signal
< void(bool)> 
signal_setHideAttachedModel
 
boost::signalslib::signal
< void(int)> 
signal_attachFilterTypeChanged
 

Detailed Description

A widget class for managing attachment.

Constructor & Destructor Documentation

virtual makVrv::DtAttachWidget::~DtAttachWidget ( )
virtual

DTOR.

makVrv::DtAttachWidget::DtAttachWidget ( DtDe de,
QWidget *  parent = 0,
Qt::WindowFlags  f = 0 
)
protected

Constructor of the page.

Member Function Documentation

virtual QIcon makVrv::DtAttachWidget::icon ( )
virtual

Get the icon of the page.

Implements makVrv::DtPage.

virtual QString makVrv::DtAttachWidget::title ( )
virtual

Get the title of the page.

Implements makVrv::DtPage.

virtual const std::string& makVrv::DtAttachWidget::pageClassName ( ) const
virtual

Get the class name of the page.

Implements makVrv::DtPage.

virtual void makVrv::DtAttachWidget::setHideAttachedModelEnabled ( bool  trueFalse)
virtual

Set the Hide Attach Model checkbox state.

Implements makVrv::DtAttachWidgetInterface.

virtual void makVrv::DtAttachWidget::setAttachedObjects ( const std::vector< DtUnicode > &  attachedObject,
bool  visible 
)
virtual

Populate the attached objects list widget.

Implements makVrv::DtAttachWidgetInterface.

virtual void makVrv::DtAttachWidget::setAttachableParts ( const std::vector< DtUnicode > &  parts)
virtual

Populate the parts drop down.

Implements makVrv::DtAttachWidgetInterface.

virtual void makVrv::DtAttachWidget::setAttachedPart ( const DtUnicode partName)
virtual

Set the current attached part.

Implements makVrv::DtAttachWidgetInterface.

virtual void makVrv::DtAttachWidget::addAttachFilter ( const DtUnicode filterName,
int  filterType 
)
virtual

Add a filter type to the Attach Filter combo box.

Implements makVrv::DtAttachWidgetInterface.

virtual void makVrv::DtAttachWidget::setCurrentAttachFilter ( int  filterType)
virtual

set the current filter type

Implements makVrv::DtAttachWidgetInterface.

virtual void makVrv::DtAttachWidget::setAttachNextEnabled ( bool  enabled)
virtual

show the attach next button enabled or disabled

Implements makVrv::DtAttachWidgetInterface.

virtual void makVrv::DtAttachWidget::setAttachPreviousEnabled ( bool  enabled)
virtual

show the attach previous button enabled or disabled

Implements makVrv::DtAttachWidgetInterface.

virtual void makVrv::DtAttachWidget::addAttachModes ( const std::list< DtUnicode > &  modeNames,
const std::list< int > &  modeTypes 
)
virtual

add attach modes to the attach mode combo box

Implements makVrv::DtAttachWidgetInterface.

virtual void makVrv::DtAttachWidget::setCurrentAttachMode ( int  modeType)
virtual

set the current attach mode selected in the attach mode combo box

Implements makVrv::DtAttachWidgetInterface.

virtual void makVrv::DtAttachWidget::setAttachModeEnabled ( int  modeType,
bool  enabled 
)
virtual

show an attach mode enabled or disabled

Implements makVrv::DtAttachWidgetInterface.

virtual void makVrv::DtAttachWidget::setAttachSelectedEnabled ( bool  enabled)
virtual

show the attach selected and attach by mode buttons enabled or disabled

Implements makVrv::DtAttachWidgetInterface.

virtual QSize makVrv::DtAttachWidget::sizeHint ( ) const
virtual
virtual void makVrv::DtAttachWidget::setAttached ( bool  b)
virtual

If attach button is checkable, set attach state (depress attached)

Implements makVrv::DtAttachWidgetInterface.

virtual void makVrv::DtAttachWidget::setMoreInformationShown ( bool  )
virtual

Sets whether or not to show more information.

Implements makVrv::DtAttachWidgetInterface.

virtual void makVrv::DtAttachWidget::attachToPrevious ( )
protectedvirtualslot

handle the Attach Previous button clicked

virtual void makVrv::DtAttachWidget::attachToNext ( )
protectedvirtualslot

handle the Attach Next button clicked

virtual void makVrv::DtAttachWidget::attachToPart ( int  index)
protectedvirtualslot

Handle choosing a different part.

virtual void makVrv::DtAttachWidget::detach ( )
protectedvirtualslot

handle the Detach button clicked

virtual void makVrv::DtAttachWidget::changeHideAttachedModel ( int  state)
protectedvirtualslot

handle a change to the Hide Attached Model check box

virtual void makVrv::DtAttachWidget::changeAttachFilterType ( int  index)
protectedvirtualslot

handle a change to the Attach Filter combo box

virtual void makVrv::DtAttachWidget::attachModeChanged ( int  index)
protectedvirtualslot

Handle when the attach mode changes.

virtual void makVrv::DtAttachWidget::attachSelected ( )
protectedvirtualslot

handle the Attach Selected button clicked

virtual void makVrv::DtAttachWidget::updateShowMoreInformation ( )
protectedvirtualslot

Show/hide more information.

virtual void makVrv::DtAttachWidget::activate ( )
protectedvirtual

Called when the page is displayed.

Implements makVrv::DtPage.

virtual void makVrv::DtAttachWidget::deactivate ( )
protectedvirtual

Called when the page is hidden.

Implements makVrv::DtPage.

void makVrv::DtAttachWidget::setupUi ( )
protected
void makVrv::DtAttachWidget::retranslateUi ( )
protected

Friends And Related Function Documentation

friend class DtAttachWidgetCreator
friend

Let the creator create the page.

Member Data Documentation

DtVirtualBaseClass* makVrv::DtAttachWidget::myLogic
protected
QSize makVrv::DtAttachWidget::mySaveSize
protected
QCheckBox* makVrv::DtAttachWidget::myHideAttachedModelCheckBox
protected
QComboBox* makVrv::DtAttachWidget::myAttachFilterComboBox
protected
QComboBox* makVrv::DtAttachWidget::myAttachModeComboBox
protected
QComboBox* makVrv::DtAttachWidget::myAttachedObjectsComboBox
protected
QComboBox* makVrv::DtAttachWidget::myAttachablePartsComboBox
protected
QFrame* makVrv::DtAttachWidget::myFirstRowLineSeperator
protected
QFrame* makVrv::DtAttachWidget::myHorizontalLine2
protected
QFrame* makVrv::DtAttachWidget::myMoreOptionsFrame
protected
QHBoxLayout* makVrv::DtAttachWidget::myFirstRowLayout
protected
QHBoxLayout* makVrv::DtAttachWidget::mySecondRowLayout
protected
QHBoxLayout* makVrv::DtAttachWidget::myThirdRowLayout
protected
QHBoxLayout* makVrv::DtAttachWidget::myFourthRowLayout
protected
QLabel* makVrv::DtAttachWidget::myAttachmentFilterLabel
protected
QLabel* makVrv::DtAttachWidget::myAttachedObjectsLabel
protected
QLabel* makVrv::DtAttachWidget::myAttachablePartsLabel
protected
QPushButton* makVrv::DtAttachWidget::myAttachNextButton
protected
QPushButton* makVrv::DtAttachWidget::myAttachPreviousButton
protected
QPushButton* makVrv::DtAttachWidget::myAttachSelectedButton
protected
QPushButton* makVrv::DtAttachWidget::myDetachButton
protected
QPushButton* makVrv::DtAttachWidget::myShowMoreInformationButton
protected
QVBoxLayout* makVrv::DtAttachWidget::myMoreOptionsLayout
protected
QVBoxLayout* makVrv::DtAttachWidget::myMainLayout
protected
std::string makVrv::DtAttachWidget::myClassName
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)