Eneboo - Documentación para desarrolladores
|
Baseclass for layouting widgets in the Designer. Más...
#include <layout.h>
Métodos públicos | |
Layout (const QWidgetList &wl, QWidget *p, FormWindow *fw, QWidget *lb, bool doSetup=TRUE, bool splitter=FALSE) | |
virtual | ~Layout () |
virtual void | doLayout ()=0 |
virtual void | undoLayout () |
virtual void | breakLayout () |
virtual bool | prepareLayout (bool &needMove, bool &needReparent) |
virtual void | finishLayout (bool needMove, QLayout *layout) |
Slots protegidos | |
void | widgetDestroyed () |
Métodos protegidos | |
virtual void | setup () |
Atributos protegidos | |
QWidgetList | widgets |
QWidget * | parent |
QPoint | startPoint |
QMap< QGuardedPtr< QWidget > , QRect > | geometries |
QWidget * | layoutBase |
FormWindow * | formWindow |
QRect | oldGeometry |
bool | isBreak |
bool | useSplitter |
Baseclass for layouting widgets in the Designer.
Classes derived from this abstract base class are used for layouting operations in the Designer.
Layout::Layout | ( | const QWidgetList & | wl, |
QWidget * | p, | ||
FormWindow * | fw, | ||
QWidget * | lb, | ||
bool | doSetup = TRUE , |
||
bool | splitter = FALSE |
||
) |
p specifies the parent of the layoutBase lb. The parent might be changed in setup(). If the layoutBase is a container, the parent and the layoutBase are the same. Also they always have to be a widget known to the designer (e.g. in the case of the tabwidget parent and layoutBase are the tabwidget and not the page which actually gets laid out. For actual usage the correct widget is found later by Layout.)
virtual Layout::~Layout | ( | ) | [inline, virtual] |
void Layout::breakLayout | ( | ) | [virtual] |
virtual void Layout::doLayout | ( | ) | [pure virtual] |
Implementado en HorizontalLayout, VerticalLayout y GridLayout.
void Layout::setup | ( | void | ) | [protected, virtual] |
The widget list we got in the constructor might contain too much widgets (like widgets with different parents, already laid out widgets, etc.). Here we set up the list and so the only the "best" widgets get laid out.
Reimplementado en HorizontalLayout, VerticalLayout y GridLayout.
void Layout::undoLayout | ( | ) | [virtual] |
void Layout::widgetDestroyed | ( | ) | [protected, slot] |
FormWindow* Layout::formWindow [protected] |
QMap<QGuardedPtr<QWidget>, QRect> Layout::geometries [protected] |
bool Layout::isBreak [protected] |
QWidget* Layout::layoutBase [protected] |
QRect Layout::oldGeometry [protected] |
QWidget* Layout::parent [protected] |
QPoint Layout::startPoint [protected] |
bool Layout::useSplitter [protected] |
QWidgetList Layout::widgets [protected] |