#include <KDGanttSemiSizingControl.h>
Public Types | |
enum | ArrowPosition { Before , After } |
Public Slots | |
virtual void | minimize (bool minimize) |
virtual void | restore (bool restore) |
Public Slots inherited from KDGanttSizingControl | |
virtual void | minimize (bool minimize) |
virtual void | restore (bool restore) |
void | changeState () |
Public Member Functions | |
KDGanttSemiSizingControl (TQWidget *parent=0, const char *name=0) | |
KDGanttSemiSizingControl (TQt::Orientation orientation, TQWidget *parent=0, const char *name=0) | |
KDGanttSemiSizingControl (ArrowPosition arrowPosition, TQt::Orientation orientation, TQWidget *parent=0, const char *name=0) | |
void | setMinimizedWidget (TQWidget *widget) |
void | setMaximizedWidget (TQWidget *widget) |
TQWidget * | minimizedWidget () const |
TQWidget * | maximizedWidget () const |
void | setOrientation (TQt::Orientation orientation) |
TQt::Orientation | orientation () const |
void | setArrowPosition (ArrowPosition arrowPosition) |
ArrowPosition | arrowPosition () const |
Public Member Functions inherited from KDGanttSizingControl | |
bool | isMinimized () const |
Protected Types | |
enum | Direction { Left , Right , Up , Down } |
Protected Member Functions | |
void | setup () |
void | init () |
TQPixmap | pixmap (Direction) |
Protected Member Functions inherited from KDGanttSizingControl | |
KDGanttSizingControl (TQWidget *parent=0, const char *name=0, WFlags f=0) | |
Additional Inherited Members | |
Signals inherited from KDGanttSizingControl | |
void | minimized (KDGanttSizingControl *) |
void | restored (KDGanttSizingControl *) |
Detailed Description
This class provides exactly one child widget with a button for minimizing and restoring. You can also specify a so-called minimize widget that will be shown in place of the child widget while the latter one is minimized. While the child widget is not minimized, the minimize widget will not be visible.
If you add more than one child widget (besides the minimize widget), only the last one added will be visible.
Definition at line 43 of file KDGanttSemiSizingControl.h.
Member Enumeration Documentation
◆ ArrowPosition
This enum is used for specifying whether the control arrow button should appear before (on top of, left of) or after (below, right of) the controlled widget.
Definition at line 51 of file KDGanttSemiSizingControl.h.
Constructor & Destructor Documentation
◆ KDGanttSemiSizingControl() [1/3]
KDGanttSemiSizingControl::KDGanttSemiSizingControl | ( | TQWidget * | parent = 0 , |
const char * | name = 0 |
||
) |
Constructs an empty semi sizing control with horizontal orientation and the control arrow button on top of the controlled widget.
- Parameters
-
parent the parent widget. This parameter is passed to the base class. name the internal widget name. This parameter is passed to the base class.
Definition at line 66 of file KDGanttSemiSizingControl.cpp.
◆ KDGanttSemiSizingControl() [2/3]
KDGanttSemiSizingControl::KDGanttSemiSizingControl | ( | TQt::Orientation | orientation, |
TQWidget * | parent = 0 , |
||
const char * | name = 0 |
||
) |
Constructs an empty semi sizing control with the specified orientation and the control arrow button either on top or left of the controlled widget (depending on the orientation).
- Parameters
-
orientation the orientation of the splitter parent the parent widget. This parameter is passed to the base class. name the internal widget name. This parameter is passed to the base class.
Definition at line 87 of file KDGanttSemiSizingControl.cpp.
◆ KDGanttSemiSizingControl() [3/3]
KDGanttSemiSizingControl::KDGanttSemiSizingControl | ( | ArrowPosition | arrowPosition, |
TQt::Orientation | orientation, | ||
TQWidget * | parent = 0 , |
||
const char * | name = 0 |
||
) |
Constructs an empty semi sizing control with the specified orientation and position of the control arrow button.
- Parameters
-
arrowPosition specifies whether the control arrow button should appear before or after the controlled widget orientation the orientation of the splitter parent the parent widget. This parameter is passed to the base class. name the internal widget name. This parameter is passed to the base class.
Definition at line 110 of file KDGanttSemiSizingControl.cpp.
Member Function Documentation
◆ arrowPosition()
KDGanttSemiSizingControl::ArrowPosition KDGanttSemiSizingControl::arrowPosition | ( | ) | const |
Returns the position of the control arrow button.
- Returns
- the position of the control arrow button
- See also
- setArrowPosition()
Definition at line 233 of file KDGanttSemiSizingControl.cpp.
◆ maximizedWidget()
TQWidget * KDGanttSemiSizingControl::maximizedWidget | ( | ) | const |
Returns the widget that is shown while the child widget is maximized.
- Returns
- the maximize widget
- See also
- setMaximizedWidget()
Definition at line 175 of file KDGanttSemiSizingControl.cpp.
◆ minimize
|
virtualslot |
Restores or minimizes the child widget. restore() does exactly the opposite to this method.
- Parameters
-
minimize true to minimize, false to restore
- See also
- restore()
Definition at line 370 of file KDGanttSemiSizingControl.cpp.
◆ minimizedWidget()
TQWidget * KDGanttSemiSizingControl::minimizedWidget | ( | ) | const |
Returns the widget that is shown while the child widget is minimized.
- Returns
- the minimize widget
- See also
- setMinimizedWidget()
Definition at line 146 of file KDGanttSemiSizingControl.cpp.
◆ orientation()
TQt::Orientation KDGanttSemiSizingControl::orientation | ( | ) | const |
Returns the orientation of the simple sizing control.
- Returns
- the orientation
- See also
- setOrientation()
Definition at line 204 of file KDGanttSemiSizingControl.cpp.
◆ restore
|
virtualslot |
Restores or minimizes the child widget. minimize() does exactly the opposite to this method.
- Parameters
-
restore true to restore, false to minimize
- See also
- minimize()
Definition at line 348 of file KDGanttSemiSizingControl.cpp.
◆ setArrowPosition()
void KDGanttSemiSizingControl::setArrowPosition | ( | ArrowPosition | arrowPosition | ) |
Returns the position of the control arrow button.
- Parameters
-
arrowPosition the position of the control arrow button
- See also
- arrowPosition()
Definition at line 217 of file KDGanttSemiSizingControl.cpp.
◆ setMaximizedWidget()
void KDGanttSemiSizingControl::setMaximizedWidget | ( | TQWidget * | widget | ) |
Specifies the widget that should be shown while the child widget is maximized. This so-called maximize widget should be a child widget of the KDGanttSemiSizingControl.
- Parameters
-
widget the minimize widget
- See also
- maximizedWidget()
Definition at line 160 of file KDGanttSemiSizingControl.cpp.
◆ setMinimizedWidget()
void KDGanttSemiSizingControl::setMinimizedWidget | ( | TQWidget * | widget | ) |
Specifies the widget that should be shown while the child widget is minimized. This so-called minimize widget should be a child widget of the KDGanttSemiSizingControl.
- Parameters
-
widget the minimize widget
- See also
- minimizedWidget()
Definition at line 130 of file KDGanttSemiSizingControl.cpp.
◆ setOrientation()
void KDGanttSemiSizingControl::setOrientation | ( | TQt::Orientation | orientation | ) |
Sets the orientation of the simple sizing control.
- Parameters
-
orientation the new orientation
- See also
- orientation()
Definition at line 189 of file KDGanttSemiSizingControl.cpp.
The documentation for this class was generated from the following files: