#include <anatomist/window/qwinblock.h>
|
| | QAWindowBlock (QWidget *parent=0, const char *name=0, Qt::WindowFlags f=Qt::Window, int colsrows=2, bool inrows=false, bool withmenu=true) |
| | colsrows is either the number of columns (if inrows is true), or the number of rows (if inrows is false).
|
| |
| virtual | ~QAWindowBlock () |
| |
| void | addWindowToBlock (QWidget *item, bool withBorders=true) |
| |
| void | setColsOrRows (bool inrows, int colsrows) |
| |
| void | arrangeInRect (float widthHeightRatio=1.) |
| |
| bool | inRows () const |
| |
| int | columnCount () const |
| |
| int | rowCount () const |
| |
| float | widthHeightRatio () const |
| |
| virtual void | update (const anatomist::Observable *, void *) |
| | This method is called whenever the observed object is changed.
|
| |
| virtual void | unregisterObservable (anatomist::Observable *) |
| | Called when an observable is destroyed, only called by Observable: don't use this function directly.
|
| |
| void | cleanupLayout () |
| |
| void | reorderViews (const std::list< QWidget * > &wins) |
| |
| void | dropRowCol (int x, int y, int &row, int &col, bool switching=false) const |
| |
| void | dropRowColDirection (int x, int y, int &row, int &col, int &dir, bool switching=false) const |
| |
| virtual QSize | sizeHint () const |
| |
| void | setDefaultBlockGui (bool) |
| |
| virtual | ~Observer () |
| |
Definition at line 52 of file qwinblock.h.
◆ QAWindowBlock()
| QAWindowBlock::QAWindowBlock |
( |
QWidget * | parent = 0, |
|
|
const char * | name = 0, |
|
|
Qt::WindowFlags | f = Qt::Window, |
|
|
int | colsrows = 2, |
|
|
bool | inrows = false, |
|
|
bool | withmenu = true ) |
colsrows is either the number of columns (if inrows is true), or the number of rows (if inrows is false).
◆ ~QAWindowBlock()
| virtual QAWindowBlock::~QAWindowBlock |
( |
| ) |
|
|
virtual |
◆ addWindowToBlock()
| void QAWindowBlock::addWindowToBlock |
( |
QWidget * | item, |
|
|
bool | withBorders = true ) |
◆ arrangeInRect()
| void QAWindowBlock::arrangeInRect |
( |
float | widthHeightRatio = 1. | ) |
|
◆ cleanupLayout()
| void QAWindowBlock::cleanupLayout |
( |
| ) |
|
◆ closeEvent()
| virtual void QAWindowBlock::closeEvent |
( |
QCloseEvent * | event | ) |
|
|
protectedvirtual |
◆ columnCount()
| int QAWindowBlock::columnCount |
( |
| ) |
const |
◆ dragEnterEvent()
| virtual void QAWindowBlock::dragEnterEvent |
( |
QDragEnterEvent * | event | ) |
|
|
protectedvirtual |
◆ dragLeaveEvent()
| virtual void QAWindowBlock::dragLeaveEvent |
( |
QDragLeaveEvent * | event | ) |
|
|
protectedvirtual |
◆ dragMoveEvent()
| virtual void QAWindowBlock::dragMoveEvent |
( |
QDragMoveEvent * | event | ) |
|
|
protectedvirtual |
◆ dropEvent()
| virtual void QAWindowBlock::dropEvent |
( |
QDropEvent * | | ) |
|
|
protectedvirtual |
◆ dropRowCol()
| void QAWindowBlock::dropRowCol |
( |
int | x, |
|
|
int | y, |
|
|
int & | row, |
|
|
int & | col, |
|
|
bool | switching = false ) const |
◆ dropRowColDirection()
| void QAWindowBlock::dropRowColDirection |
( |
int | x, |
|
|
int | y, |
|
|
int & | row, |
|
|
int & | col, |
|
|
int & | dir, |
|
|
bool | switching = false ) const |
◆ inRows()
| bool QAWindowBlock::inRows |
( |
| ) |
const |
◆ layInColumns
| void QAWindowBlock::layInColumns |
( |
| ) |
|
|
slot |
◆ layInRectangle
| void QAWindowBlock::layInRectangle |
( |
| ) |
|
|
slot |
◆ layInRows
| void QAWindowBlock::layInRows |
( |
| ) |
|
|
slot |
◆ reorderViews()
| void QAWindowBlock::reorderViews |
( |
const std::list< QWidget * > & | wins | ) |
|
◆ rowCount()
| int QAWindowBlock::rowCount |
( |
| ) |
const |
◆ setColsOrRows()
| void QAWindowBlock::setColsOrRows |
( |
bool | inrows, |
|
|
int | colsrows ) |
◆ setColumnsNumber
| void QAWindowBlock::setColumnsNumber |
( |
| ) |
|
|
slot |
◆ setDefaultBlock
| void QAWindowBlock::setDefaultBlock |
( |
bool | | ) |
|
|
slot |
◆ setDefaultBlockGui()
| void QAWindowBlock::setDefaultBlockGui |
( |
bool | | ) |
|
◆ setRectangularRatio
| void QAWindowBlock::setRectangularRatio |
( |
| ) |
|
|
slot |
◆ setRowsNumber
| void QAWindowBlock::setRowsNumber |
( |
| ) |
|
|
slot |
◆ sizeHint()
| virtual QSize QAWindowBlock::sizeHint |
( |
| ) |
const |
|
virtual |
◆ unregisterObservable()
Called when an observable is destroyed, only called by Observable: don't use this function directly.
Reimplemented from anatomist::Observer.
◆ update()
This method is called whenever the observed object is changed.
The programmer calls an observable object's notifyObservers method to have all the object's observers notified of the change.
- Parameters
-
| observable | the observable object |
Implements anatomist::Observer.
◆ widthHeightRatio()
| float QAWindowBlock::widthHeightRatio |
( |
| ) |
const |
◆ windowsDropped
| void QAWindowBlock::windowsDropped |
( |
| ) |
|
|
protectedslot |
The documentation for this class was generated from the following file: