VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions
DtRightClickRemoveToolButtonWrapperWidget Class Reference

This subclass will specifically allow an item to be removed via right click. More...

Inheritance diagram for DtRightClickRemoveToolButtonWrapperWidget:
Inheritance graph
[legend]

Public Member Functions

 DtRightClickRemoveToolButtonWrapperWidget (QWidget *parent)
virtual ~DtRightClickRemoveToolButtonWrapperWidget ()
- Public Member Functions inherited from makVrf::DtToolButtonWrapperWidget
 DtToolButtonWrapperWidget (QWidget *parent, const Qt::WindowFlags &flags=0)
virtual ~DtToolButtonWrapperWidget ()
template<typename T >
T * createPrototype ()
template<typename T >
T * createButton ()
template<typename T >
T * addAction (const QString &action, bool resetLayout=true)
 Adds a new button with text. Up to caller to determine what to do with the returned tool button.
template<typename T >
T * addAction (const QIcon &icon, bool resetLayout=true)
 Adds a new button with an icon.
template<typename T >
T * addAction (QAction *act, bool resetLayout=true)
 Adds a new action into the dialog for sizing.
virtual int rightMarginForLine (int) const
 If set, right margin for layout line.
virtual void setRightMarginForLine (int margin, int line=-1)
 Sets the right margin for the given line.
virtual void removeRightMarginForLine (int line=-1)
 Removes the margin for the line.
virtual void removeButton (QAbstractButton *, bool resetLayout=true)
 Removes the button specified. Removing the button will also delete it.
virtual void layoutButtons (bool force=false)
 Reworks given the the new sizes.
virtual void setButtons (const std::vector< QAbstractButton * > &buttons, bool deleteCurrentButtons=false)
 Sets the buttons of this wrapper widget.
virtual void setLeftToRightLayout (bool)
 If this is false (default is true) the layout will start on the right and go to the left.
bool leftToRightLayout () const
bool needsLayout () const
virtual void setSizeToFit (bool)
 If false (default is true) will lay out buttons in the exact order they are set in instead of trying to lay them out in the most efficient use of available space.
bool sizeToFit () const
int buttonsShown () const
const std::vector
< QAbstractButton * > & 
buttons () const
std::vector< QAbstractButton * > & buttons ()
virtual bool hasButton (QAbstractButton *) const
virtual void setIconSize (const QSize &)
 Sets the size of the icons (default is 20x20)
const QSize & iconSize () const
virtual void setIconSpacing (int)
 Sets the spacing between icons. Default is 2.
int iconSpacing () const
virtual void clear ()
 Clears all items.
virtual void setFixedButtonWidth (int)
 Regardless of size, the fixed button width. -1 will size to text or icon.
int fixedButtonWidth () const
virtual void setFixedButtonHeight (int)
 Fixed button height.
int fixedButtonHeight () const
virtual void setShowMaximum (int)
 Regardless of the number of buttons that could be shown, do not show more than this many. -1 means show all (default)
int showMaximum () const
virtual void setMaximumLines (int)
 Regardless of the number of buttons the maximum number of lines. -1 means show all (default)
int maximumLines () const
bool reachedMaximum () const
int numRows () const
const std::vector< Layout > & layouts () const
std::vector< Layout > & layouts ()
virtual void setBlockResizeLayout (bool)
 If set to true do not trigger a layout if resized. Default is false.
bool blockResizeLayout () const
virtual void setSignalResizeLayout (bool)
 If set to true signal that the layout wants to be resized rather than laying it out. Default is false.
bool signalResizeLayout () const

Additional Inherited Members

- Public Attributes inherited from makVrf::DtToolButtonWrapperWidget
boost::signal< void()> signal_resizeLayout
boost::signal< void()> signal_buttonsLayedOut
boost::signal< void(Layout
&, QAbstractButton *)> 
signal_buttonLayedOut
- Protected Slots inherited from makVrf::DtToolButtonWrapperWidget
virtual void layoutFromTimer ()
- Protected Member Functions inherited from makVrf::DtToolButtonWrapperWidget
virtual void resizeEvent (QResizeEvent *)
virtual void showEvent (QShowEvent *)
virtual void addToLayout (QAbstractButton *)
- Protected Attributes inherited from makVrf::DtToolButtonWrapperWidget
std::vector< LayoutmyLayouts
std::vector< QAbstractButton * > myButtons
std::map< int, intmyRightMarginForLine
QSize myIconSize
int myIconSpacing
int myMaximumLines
bool myNeedsLayout
bool myReachedMaximum
int myFixedButtonWidth
int myFixedButtonHeight
bool mySizeToFit
bool myLeftToRightLayout
int myShowMaximum
int myButtonsShown
bool myInResize
bool mySetTimer
bool myBlockResizeLayout
bool mySignalResizeLayout

Detailed Description

This subclass will specifically allow an item to be removed via right click.

Constructor & Destructor Documentation

DtRightClickRemoveToolButtonWrapperWidget::DtRightClickRemoveToolButtonWrapperWidget ( QWidget *  parent)
virtual DtRightClickRemoveToolButtonWrapperWidget::~DtRightClickRemoveToolButtonWrapperWidget ( )
virtual

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

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)