KDGanttSemiSizingControl Class Reference
#include <KDGanttSemiSizingControl.h>
Inheritance diagram for KDGanttSemiSizingControl:


Public Types | |
enum | ArrowPosition { Before, After } |
Public Slots | |
virtual void | minimize (bool minimize) |
virtual void | restore (bool restore) |
Public Member Functions | |
KDGanttSemiSizingControl (QWidget *parent=0, const char *name=0) | |
KDGanttSemiSizingControl (Orientation orientation, QWidget *parent=0, const char *name=0) | |
KDGanttSemiSizingControl (ArrowPosition arrowPosition, Orientation orientation, QWidget *parent=0, const char *name=0) | |
void | setMinimizedWidget (QWidget *widget) |
void | setMaximizedWidget (QWidget *widget) |
QWidget * | minimizedWidget () const |
QWidget * | maximizedWidget () const |
void | setOrientation (Qt::Orientation orientation) |
Qt::Orientation | orientation () const |
void | setArrowPosition (ArrowPosition arrowPosition) |
ArrowPosition | arrowPosition () const |
Protected Types | |
enum | Direction { Left, Right, Up, Down } |
Protected Member Functions | |
void | setup () |
void | init () |
QPixmap | pixmap (Direction) |
Properties | |
ArrowPosition | arrowPosition |
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
|
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 50 of file KDGanttSemiSizingControl.h. |
Constructor & Destructor Documentation
|
Constructs an empty semi sizing control with horizontal orientation and the control arrow button on top of the controlled widget.
Definition at line 66 of file KDGanttSemiSizingControl.cpp. |
|
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).
Definition at line 87 of file KDGanttSemiSizingControl.cpp. |
|
Constructs an empty semi sizing control with the specified orientation and position of the control arrow button.
Definition at line 110 of file KDGanttSemiSizingControl.cpp. |
Member Function Documentation
|
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.
Definition at line 130 of file KDGanttSemiSizingControl.cpp. |
|
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.
Definition at line 160 of file KDGanttSemiSizingControl.cpp. |
|
Returns the widget that is shown while the child widget is minimized.
Definition at line 146 of file KDGanttSemiSizingControl.cpp. |
|
Returns the widget that is shown while the child widget is maximized.
Definition at line 175 of file KDGanttSemiSizingControl.cpp. |
|
Sets the orientation of the simple sizing control.
Definition at line 189 of file KDGanttSemiSizingControl.cpp. |
|
Returns the orientation of the simple sizing control.
Definition at line 204 of file KDGanttSemiSizingControl.cpp. |
|
Returns the position of the control arrow button.
Definition at line 217 of file KDGanttSemiSizingControl.cpp. |
|
Restores or minimizes the child widget. restore() does exactly the opposite to this method.
Reimplemented from KDGanttSizingControl. Definition at line 370 of file KDGanttSemiSizingControl.cpp. References KDGanttSizingControl::minimize(), and restore(). Referenced by restore(). |
|
Restores or minimizes the child widget. minimize() does exactly the opposite to this method.
Reimplemented from KDGanttSizingControl. Definition at line 348 of file KDGanttSemiSizingControl.cpp. References minimize(), and KDGanttSizingControl::restore(). Referenced by minimize(). |
Property Documentation
|
Returns the position of the control arrow button.
Definition at line 45 of file KDGanttSemiSizingControl.h. |
The documentation for this class was generated from the following files: