kdgantt

#include <KDGanttSizingControl.h>

Inheritance diagram for KDGanttSizingControl:
KDGanttSemiSizingControl

Public Slots

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

Signals

void minimized (KDGanttSizingControl *)
 
void restored (KDGanttSizingControl *)
 

Public Member Functions

bool isMinimized () const
 

Protected Member Functions

 KDGanttSizingControl (TQWidget *parent=0, const char *name=0, WFlags f=0)
 

Detailed Description

This class is a common-base class for all sizing controls in this library.

It provides common signals and slots for minimizing and restoring child widgets.

This class cannot be instantiated by itself, use one of the subclasses instead.

Definition at line 38 of file KDGanttSizingControl.h.

Constructor & Destructor Documentation

◆ KDGanttSizingControl()

KDGanttSizingControl::KDGanttSizingControl ( TQWidget *  parent = 0,
const char *  name = 0,
WFlags  f = 0 
)
protected

Constructs an empty KDGanttSizing Control.

Parameters
parentthe parent widget. This parameter is passed to the base class.
namethe internal widget name. This parameter is passed to the base class.
fwindow flags. This parameter is passed to the base class.

Definition at line 59 of file KDGanttSizingControl.cpp.

Member Function Documentation

◆ changeState

void KDGanttSizingControl::changeState ( )
slot

Change state from either minimized to restored or visa versa.

Definition at line 117 of file KDGanttSizingControl.cpp.

◆ isMinimized()

bool KDGanttSizingControl::isMinimized ( ) const

Returns whether the widget is minimized.

Definition at line 108 of file KDGanttSizingControl.cpp.

◆ minimize

void KDGanttSizingControl::minimize ( bool  minimize)
virtualslot

Restores or minimizes the child widget. restore() does exactly the opposite to this method.

Parameters
minimizetrue to minimize, false to restore
See also
restore()

Definition at line 94 of file KDGanttSizingControl.cpp.

◆ minimized

void KDGanttSizingControl::minimized ( KDGanttSizingControl )
signal

This signal is emitted when the user hides a controlled widget. The KDGanttSizingControl pointer given as parameter is a pointer to the widget itself. Normally the sender should not know the receiver, but in this case the receiver is likely the widget containing the KDGanttSizingControl, and when the KDGanttSizingControl widget is minimized/restored it might want to change stretching for the widget. See the example test/semisizingcontrol

◆ restore

void KDGanttSizingControl::restore ( bool  restore)
virtualslot

Restores or minimizes the child widget. minimize() does exactly the opposite to this method.

Parameters
restoretrue to restore, false to minimize
See also
minimize()

Definition at line 73 of file KDGanttSizingControl.cpp.

◆ restored

void KDGanttSizingControl::restored ( KDGanttSizingControl )
signal

This signal is emitted when the user unhides a controlled widget. The KDGanttSizingControl pointer given as parameter is a pointer to the widget itself. Normally the sender should not know the receiver, but in this case the receiver is likely the widget containing the KDGanttSizingControl, and when the KDGanttSizingControl widget is minimized/restored it might want to change stretching for the widget. See the example test/semisizingcontrol


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