• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

kdgantt1

KDGanttSemiSizingControl Class Reference

#include <KDGanttSemiSizingControl.h>

Inheritance diagram for KDGanttSemiSizingControl:

Inheritance graph
[legend]

List of all members.


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 44 of file KDGanttSemiSizingControl.h.


Public Types

enum  ArrowPosition { Before, After }

Public Slots

virtual void minimize (bool minimize)
virtual void restore (bool restore)

Public Member Functions

ArrowPosition arrowPosition () const
 KDGanttSemiSizingControl (ArrowPosition arrowPosition, Qt::Orientation orientation, QWidget *parent=0)
 KDGanttSemiSizingControl (Qt::Orientation orientation, QWidget *parent=0)
 KDGanttSemiSizingControl (QWidget *parent=0)
QWidget * maximizedWidget () const
QWidget * minimizedWidget () const
Qt::Orientation orientation () const
void setArrowPosition (ArrowPosition arrowPosition)
void setMaximizedWidget (QWidget *widget)
void setMinimizedWidget (QWidget *widget)
void setOrientation (Qt::Orientation orientation)

Protected Types

enum  Direction { Left, Right, Up, Down }

Protected Member Functions

void init ()
QPixmap pixmap (Direction)
void setup ()

Properties

ArrowPosition arrowPosition

Member Enumeration Documentation

enum KDGanttSemiSizingControl::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.

Enumerator:
Before 
After 

Definition at line 51 of file KDGanttSemiSizingControl.h.

enum KDGanttSemiSizingControl::Direction [protected]

Enumerator:
Left 
Right 
Up 
Down 

Definition at line 76 of file KDGanttSemiSizingControl.h.


Constructor & Destructor Documentation

KDGanttSemiSizingControl::KDGanttSemiSizingControl ( QWidget *  parent = 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 63 of file KDGanttSemiSizingControl.cpp.

KDGanttSemiSizingControl::KDGanttSemiSizingControl ( Qt::Orientation  orientation,
QWidget *  parent = 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 83 of file KDGanttSemiSizingControl.cpp.

KDGanttSemiSizingControl::KDGanttSemiSizingControl ( ArrowPosition  arrowPosition,
Qt::Orientation  orientation,
QWidget *  parent = 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 105 of file KDGanttSemiSizingControl.cpp.


Member Function Documentation

ArrowPosition KDGanttSemiSizingControl::arrowPosition (  )  const

void KDGanttSemiSizingControl::init (  )  [protected]

Definition at line 241 of file KDGanttSemiSizingControl.cpp.

QWidget * 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 169 of file KDGanttSemiSizingControl.cpp.

void KDGanttSemiSizingControl::minimize ( bool  minimize  )  [virtual, slot]

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()

Reimplemented from KDGanttSizingControl.

Definition at line 366 of file KDGanttSemiSizingControl.cpp.

QWidget * 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 140 of file KDGanttSemiSizingControl.cpp.

Qt::Orientation KDGanttSemiSizingControl::orientation (  )  const

Returns the orientation of the simple sizing control.

Returns:
the orientation
See also:
setOrientation()

Definition at line 198 of file KDGanttSemiSizingControl.cpp.

QPixmap KDGanttSemiSizingControl::pixmap ( Direction  direction  )  [protected]

Definition at line 379 of file KDGanttSemiSizingControl.cpp.

void KDGanttSemiSizingControl::restore ( bool  restore  )  [virtual, slot]

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()

Reimplemented from KDGanttSizingControl.

Definition at line 344 of file KDGanttSemiSizingControl.cpp.

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 211 of file KDGanttSemiSizingControl.cpp.

void KDGanttSemiSizingControl::setMaximizedWidget ( QWidget *  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 154 of file KDGanttSemiSizingControl.cpp.

void KDGanttSemiSizingControl::setMinimizedWidget ( QWidget *  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 124 of file KDGanttSemiSizingControl.cpp.

void KDGanttSemiSizingControl::setOrientation ( Qt::Orientation  orientation  ) 

Sets the orientation of the simple sizing control.

Parameters:
orientation the new orientation
See also:
orientation()

Definition at line 183 of file KDGanttSemiSizingControl.cpp.

void KDGanttSemiSizingControl::setup (  )  [protected]

Definition at line 253 of file KDGanttSemiSizingControl.cpp.


Property Documentation

KDGanttSemiSizingControl::ArrowPosition KDGanttSemiSizingControl::arrowPosition [read, write]

Returns the position of the control arrow button.

Returns:
the position of the control arrow button
See also:
setArrowPosition()

Definition at line 46 of file KDGanttSemiSizingControl.h.


The documentation for this class was generated from the following files:
  • KDGanttSemiSizingControl.h
  • KDGanttSemiSizingControl.cpp

kdgantt1

Skip menu "kdgantt1"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  •   doc
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal