anatomist 6.0.4
3D neuroimaging data viewer
QAWindowBlock Class Reference

#include <anatomist/window/qwinblock.h>

Inheritance diagram for QAWindowBlock:
Collaboration diagram for QAWindowBlock:

Public Slots

void layInColumns ()
 
void layInRows ()
 
void layInRectangle ()
 
void setColumnsNumber ()
 
void setRowsNumber ()
 
void setRectangularRatio ()
 
void setDefaultBlock (bool)
 

Public Member Functions

 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)
 
- Public Member Functions inherited from anatomist::Observer
virtual ~Observer ()
 

Protected Slots

void windowsDropped ()
 

Protected Member Functions

virtual void dragEnterEvent (QDragEnterEvent *event)
 
virtual void dragMoveEvent (QDragMoveEvent *event)
 
virtual void dragLeaveEvent (QDragLeaveEvent *event)
 
virtual void dropEvent (QDropEvent *)
 
virtual void closeEvent (QCloseEvent *event)
 
- Protected Member Functions inherited from anatomist::Observer
virtual void cleanupObserver ()
 call this function from inherited classes destructors.
 
virtual void registerObservable (Observable *)
 only called by Observable: don't use this function directly
 
const std::set< Observable * > & observed () const
 

Detailed Description

Definition at line 52 of file qwinblock.h.

Constructor & Destructor Documentation

◆ 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

Member Function Documentation

◆ addWindowToBlock()

void QAWindowBlock::addWindowToBlock ( QWidget * item,
bool withBorders = true )

◆ arrangeInRect()

void QAWindowBlock::arrangeInRect ( float widthHeightRatio = 1.)

References widthHeightRatio().

◆ 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()

virtual void QAWindowBlock::unregisterObservable ( anatomist::Observable * )
virtual

Called when an observable is destroyed, only called by Observable: don't use this function directly.

Reimplemented from anatomist::Observer.

◆ update()

virtual void QAWindowBlock::update ( const anatomist::Observable * observable,
void * arg )
virtual

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
observablethe observable object

Implements anatomist::Observer.

◆ widthHeightRatio()

float QAWindowBlock::widthHeightRatio ( ) const

Referenced by arrangeInRect().

◆ windowsDropped

void QAWindowBlock::windowsDropped ( )
protectedslot

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