class KTMLayout
|
Special layout manager for KTMainWindow.
More... |
|
|
Public Methods
Detailed Description
KTMLayout is layout manager for KTMainWindow. It is customized
specifically for KTMainWindow's layout. You can use it for your own
widgets but there is probably little use for it. So this class can
be regarded as a kdeui internal class.
It currently supports main widget with fixed size, fixed height and
widgets with no size requirements. heightForWidth() widgets and
fixed width widgets are not yet supported. It is currently unclear
whether the concept of widthForHeight() vertical bars can be used
in a widthForHeight() dominated world.
IMPORTANT: The layout functions and the corresponding size-calculation
functions must always be kept 100% in sync!
The constructor. It probably makes no use to call this version.
KTMLayout (QWidget *parent, int border = 0, int space = -1, const char *name = 0)
|
The constructor.
Register the top menu bar. There can only be one.
Register the bottom menu bar. There can only be one.
Call this function to register all bars that are
flattened. This can be tool bars as well as menu bars.
Register top tool bars. There is no limit in the number of tool
bars that you can register.
Register left hand side tool bars. There is no limit in the
number of tool bars that you can register.
Register right hand side tool bars. There is no limit in the
number of tool bars that you can register.
Register bottom tool bars. There is no limit in the number of
tool bars that you can register.
Use this function to register the main widget. There must be
exactly one main widget!
Use this function to register the status bar. There can only be
one.
void setMaximumWraps (unsigned int wraps)
|
This function can be used to limit the number of lines/columns that
are used by a single block of non-full-width toolbars. When the
specified limit is reached the remaining bars will extend outside
the window.
void setGeometry (const QRect& rect)
|
This function arranges the widgets. It determines the necessary
space for the toolbars and assignes the remainder to the main
widget.
[const]
Returns the preferred size of the layout.
[const]
Returns the minimum required size of the layout.
Never use this function. It is provided to be compliant with Qt.
QLayoutIterator iterator ()
|
Never use this function. It is provided to be compliant with Qt.
- Author: Chris Schlaeger (cs@kde.org)
- Generated: root@tantive.terraplex.com on Sun Feb 27 17:39:25 2000, using kdoc 2.0a33.