Eneboo - Documentación para desarrolladores
Métodos públicos | Métodos protegidos | Amigas
Referencia de la Clase QDockAreaLayout

#include <qdockarea.h>

Diagrama de herencias de QDockAreaLayout
QLayout QLayout QLayoutItem QObject QLayoutItem QObject QLayoutItem QObject QLayoutItem QObject

Lista de todos los miembros.

Métodos públicos

 QDockAreaLayout (QWidget *parent, Qt::Orientation o, QPtrList< QDockWindow > *wl, int space=-1, int margin=-1, const char *name=0)
 ~QDockAreaLayout ()
void addItem (QLayoutItem *)
bool hasHeightForWidth () const
int heightForWidth (int) const
int widthForHeight (int) const
QSize sizeHint () const
QSize minimumSize () const
QLayoutIterator iterator ()
QSizePolicy::ExpandData expanding () const
void invalidate ()
Qt::Orientation orientation () const
QValueList< QRectlineList () const
QPtrList< QDockWindowlineStarts () const
 QDockAreaLayout (QWidget *parent, Qt::Orientation o, QPtrList< QDockWindow > *wl, int space=-1, int margin=-1, const char *name=0)
 ~QDockAreaLayout ()
void addItem (QLayoutItem *)
bool hasHeightForWidth () const
int heightForWidth (int) const
int widthForHeight (int) const
QSize sizeHint () const
QSize minimumSize () const
QLayoutIterator iterator ()
QSizePolicy::ExpandData expanding () const
void invalidate ()
Qt::Orientation orientation () const
QValueList< QRectlineList () const
QPtrList< QDockWindowlineStarts () const

Métodos protegidos

void setGeometry (const QRect &)
void setGeometry (const QRect &)

Amigas

class QDockArea

Documentación del constructor y destructor

QDockAreaLayout::QDockAreaLayout ( QWidget parent,
Qt::Orientation  o,
QPtrList< QDockWindow > *  wl,
int  space = -1,
int  margin = -1,
const char *  name = 0 
) [inline]
QDockAreaLayout::~QDockAreaLayout ( ) [inline]
QDockAreaLayout::QDockAreaLayout ( QWidget parent,
Qt::Orientation  o,
QPtrList< QDockWindow > *  wl,
int  space = -1,
int  margin = -1,
const char *  name = 0 
) [inline]
QDockAreaLayout::~QDockAreaLayout ( ) [inline]

Documentación de las funciones miembro

void QDockAreaLayout::addItem ( QLayoutItem item) [inline, virtual]

Implemented in subclasses to add an item. How it is added is specific to each subclass.

The ownership of item is transferred to the layout, and it's the layout's responsibility to delete it.

Implementa QLayout.

void QDockAreaLayout::addItem ( QLayoutItem item) [inline, virtual]

Implemented in subclasses to add an item. How it is added is specific to each subclass.

The ownership of item is transferred to the layout, and it's the layout's responsibility to delete it.

Implementa QLayout.

QSizePolicy::ExpandData QDockAreaLayout::expanding ( ) const [inline, virtual]

Returns whether this layout can make use of more space than sizeHint(). A value of Vertical or Horizontal means that it wants to grow in only one dimension, whereas BothDirections means that it wants to grow in both dimensions.

The default implementation returns BothDirections.

Reimplementado de QLayout.

QSizePolicy::ExpandData QDockAreaLayout::expanding ( ) const [inline, virtual]

Returns whether this layout can make use of more space than sizeHint(). A value of Vertical or Horizontal means that it wants to grow in only one dimension, whereas BothDirections means that it wants to grow in both dimensions.

The default implementation returns BothDirections.

Reimplementado de QLayout.

bool QDockAreaLayout::hasHeightForWidth ( ) const [virtual]

Returns TRUE if this layout's preferred height depends on its width; otherwise returns FALSE. The default implementation returns FALSE.

Reimplement this function in layout managers that support height for width.

Ver también:
heightForWidth(), QWidget::heightForWidth()

Reimplementado de QLayoutItem.

bool QDockAreaLayout::hasHeightForWidth ( ) const [virtual]

Returns TRUE if this layout's preferred height depends on its width; otherwise returns FALSE. The default implementation returns FALSE.

Reimplement this function in layout managers that support height for width.

Ver también:
heightForWidth(), QWidget::heightForWidth()

Reimplementado de QLayoutItem.

int QDockAreaLayout::heightForWidth ( int  ) const [virtual]

Returns the preferred height for this layout item, given the width w.

The default implementation returns -1, indicating that the preferred height is independent of the width of the item. Using the function hasHeightForWidth() will typically be much faster than calling this function and testing for -1.

Reimplement this function in layout managers that support height for width. A typical implementation will look like this:

        int MyLayout::heightForWidth( int w ) const
        {
            if ( cache_dirty || cached_width != w ) {
                // not all C++ compilers support "mutable"
                MyLayout *that = (MyLayout*)this;
                int h = calculateHeightForWidth( w );
                that->cached_hfw = h;
                return h;
            }
            return cached_hfw;
        }

Caching is strongly recommended; without it layout will take exponential time.

Ver también:
hasHeightForWidth()

Reimplementado de QLayoutItem.

int QDockAreaLayout::heightForWidth ( int  ) const [virtual]

Returns the preferred height for this layout item, given the width w.

The default implementation returns -1, indicating that the preferred height is independent of the width of the item. Using the function hasHeightForWidth() will typically be much faster than calling this function and testing for -1.

Reimplement this function in layout managers that support height for width. A typical implementation will look like this:

        int MyLayout::heightForWidth( int w ) const
        {
            if ( cache_dirty || cached_width != w ) {
                // not all C++ compilers support "mutable"
                MyLayout *that = (MyLayout*)this;
                int h = calculateHeightForWidth( w );
                that->cached_hfw = h;
                return h;
            }
            return cached_hfw;
        }

Caching is strongly recommended; without it layout will take exponential time.

Ver también:
hasHeightForWidth()

Reimplementado de QLayoutItem.

void QDockAreaLayout::invalidate ( ) [virtual]

Invalidates cached information. Reimplementations must call this.

Reimplementado de QLayout.

void QDockAreaLayout::invalidate ( ) [virtual]

Invalidates cached information. Reimplementations must call this.

Reimplementado de QLayout.

QLayoutIterator QDockAreaLayout::iterator ( ) [virtual]

Implemented in subclasses to return an iterator that iterates over this layout's children.

A typical implementation will be:

        QLayoutIterator MyLayout::iterator()
        {
            QGLayoutIterator *i = new MyLayoutIterator( internal_data );
            return QLayoutIterator( i );
        }

where MyLayoutIterator is a subclass of QGLayoutIterator.

Implementa QLayout.

QLayoutIterator QDockAreaLayout::iterator ( ) [virtual]

Implemented in subclasses to return an iterator that iterates over this layout's children.

A typical implementation will be:

        QLayoutIterator MyLayout::iterator()
        {
            QGLayoutIterator *i = new MyLayoutIterator( internal_data );
            return QLayoutIterator( i );
        }

where MyLayoutIterator is a subclass of QGLayoutIterator.

Implementa QLayout.

QValueList<QRect> QDockAreaLayout::lineList ( ) const [inline]
QValueList<QRect> QDockAreaLayout::lineList ( ) const [inline]
QPtrList<QDockWindow> QDockAreaLayout::lineStarts ( ) const [inline]
QPtrList<QDockWindow> QDockAreaLayout::lineStarts ( ) const [inline]
QSize QDockAreaLayout::minimumSize ( ) const [virtual]

Returns the minimum size of this layout. This is the smallest size that the layout can have while still respecting the specifications. Does not include what's needed by margin() or menuBar().

The default implementation allows unlimited resizing.

Reimplementado de QLayout.

QSize QDockAreaLayout::minimumSize ( ) const [virtual]

Returns the minimum size of this layout. This is the smallest size that the layout can have while still respecting the specifications. Does not include what's needed by margin() or menuBar().

The default implementation allows unlimited resizing.

Reimplementado de QLayout.

Qt::Orientation QDockAreaLayout::orientation ( ) const [inline]
Qt::Orientation QDockAreaLayout::orientation ( ) const [inline]
void QDockAreaLayout::setGeometry ( const QRect r) [protected, virtual]

This function is reimplemented in subclasses to perform layout.

The default implementation maintains the geometry() information given by rect r. Reimplementors must call this function.

Implementa QLayout.

void QDockAreaLayout::setGeometry ( const QRect r) [protected, virtual]

This function is reimplemented in subclasses to perform layout.

The default implementation maintains the geometry() information given by rect r. Reimplementors must call this function.

Implementa QLayout.

QSize QDockAreaLayout::sizeHint ( ) const [virtual]

Implemented in subclasses to return the preferred size of this item.

Implementa QLayoutItem.

QSize QDockAreaLayout::sizeHint ( ) const [virtual]

Implemented in subclasses to return the preferred size of this item.

Implementa QLayoutItem.

int QDockAreaLayout::widthForHeight ( int  ) const
int QDockAreaLayout::widthForHeight ( int  h) const

Documentación de las funciones relacionadas y clases amigas

QDockArea [friend]

La documentación para esta clase fue generada a partir de los siguientes ficheros:
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'