34#ifndef ANATOMIST_WINDOW_QWINBLOCK_H
35#define ANATOMIST_WINDOW_QWINBLOCK_H
38#include <qmainwindow.h>
61 Qt::WindowFlags f = Qt::Window,
62 int colsrows = 2,
bool inrows =
false,
bool withmenu =
true );
76 bool switching =
false )
const;
78 int & dir,
bool switching =
false )
const;
115 void getRowCol(
int & row,
int & col,
int & dirx,
int & diry )
const;
149 bool _enableDragGrip;
void setDefaultBlockGui(bool)
void arrangeInRect(float widthHeightRatio=1.)
void addWindowToBlock(QWidget *item, bool withBorders=true)
virtual void update(const anatomist::Observable *, void *)
This method is called whenever the observed object is changed.
void setColsOrRows(bool inrows, int colsrows)
void setDefaultBlock(bool)
void setRectangularRatio()
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 fal...
float widthHeightRatio() const
virtual void dropEvent(QDropEvent *)
virtual void dragMoveEvent(QDragMoveEvent *event)
void reorderViews(const std::list< QWidget * > &wins)
virtual void closeEvent(QCloseEvent *event)
void dropRowCol(int x, int y, int &row, int &col, bool switching=false) const
virtual void dragEnterEvent(QDragEnterEvent *event)
void dropRowColDirection(int x, int y, int &row, int &col, int &dir, bool switching=false) const
virtual void unregisterObservable(anatomist::Observable *)
Called when an observable is destroyed, only called by Observable: don't use this function directly.
virtual QSize sizeHint() const
virtual void dragLeaveEvent(QDragLeaveEvent *event)
Abstract base class Anatomist window.
DraggableWrapper(QWidget *widget, bool withDragGrip=true)
virtual void mouseMoveEvent(QMouseEvent *event)
virtual ~DraggableWrapper()
This class can be subclassed to represent an object that the programmer wants to have observed.
A class can implement the Observer interface when it wants to be informed of changes in observable ob...