MeVisLab Scripting Reference
MLABFreeFloatControl Class Reference

#include <mlabFreeFloatControl.h>

Inherits MLABWidgetControl.

Public Slots

Scripting access.
bool setControlFrame (MLABWidgetControl *control, QRect r)
bool setControlFrame (MLABWidgetControl *control, int x, int y, int w, int h)
bool setControlPos (MLABWidgetControl *control, QPoint p)
bool setControlPos (MLABWidgetControl *control, int x, int y)
bool setControlSize (MLABWidgetControl *control, QSize s)
bool setControlSize (MLABWidgetControl *control, int w, int h)
QRect getControlFrame (MLABWidgetControl *control)
QPoint getPos (MLABWidgetControl *control)
QSize getSize (MLABWidgetControl *control)
Public Slots inherited from MLABWidgetControl
void adjustSize ()
virtual void setEnabled (bool flag)
virtual void setVisible (bool flag)
virtual bool isVisible ()
virtual void setFocus ()
virtual bool hasFocus ()
virtual void setToolTip (const QString &string)
virtual void setWhatsThis (const QString &string)
void displayWhatsThis ()
void displayWhatsThis (const QString &text)
virtual void setTitle (const QString &)
QWidget * widget ()
QLayout * layout ()
virtual QString windowHandle ()
virtual bool createScreenshot (const QString &filename, bool grabFromScreen=true, bool scaleToLowRes=false)
bool isReloadable () const
void reload (MLABTree *tree)
QString createGlobalScreenshot ()
QString applicationName ()
QSize size ()
int width ()
int height ()
int minWidth ()
int minHeight ()
int maxWidth ()
int maxHeight ()
virtual void setMinWidth (int s)
virtual void setMinHeight (int s)
void setMaxWidth (int s)
void setMaxHeight (int s)
QSize sizeHint ()
QSize minSize ()
QSize maxSize ()
void setMinSize (QSize size)
void setMaxSize (QSize size)
void updateLayout ()
int windowID ()
MLABWidgetControlcontrol (const QString &name)
float scaleFactor ()
MLABModulemodule ()
QString getType ()
QString getName ()
bool acceptDrops ()
void setAcceptDrops (bool flag)
void raiseWidget ()
void setStyleSheetFromString (const QString &styleSheetText)
void setStyleSheetFromFile (const QString &styleSheetFileName)
MLABTreetree ()
void updateMaxSize ()
bool expandX ()
bool expandY ()
MLABTreePtr getDefaultTagValues () const
virtual bool hasUncommittedChanges () const
virtual void applyUncommittedChanges ()
virtual void revertUncommittedChanges ()
MLABFieldfield () const

Detailed Description

FreeFloat control.

This control is a layouter that can have children at arbitraty positions.

MDL reference: FreeFloat

Member Function Documentation

◆ getControlFrame

QRect MLABFreeFloatControl::getControlFrame ( MLABWidgetControl * control)
slot

Returns the control's frame rectangle.

References MLABWidgetControl::control().

◆ getPos

QPoint MLABFreeFloatControl::getPos ( MLABWidgetControl * control)
slot

Returns the control's position.

References MLABWidgetControl::control().

◆ getSize

QSize MLABFreeFloatControl::getSize ( MLABWidgetControl * control)
slot

Returns the control's size.

References MLABWidgetControl::control(), and MLABWidgetControl::tree().

◆ setControlFrame [1/2]

bool MLABFreeFloatControl::setControlFrame ( MLABWidgetControl * control,
int x,
int y,
int w,
int h )
slot

Sets the control's geometry (size and position). Returns false on error (e.g., widget is not managed by this layouter)

References MLABWidgetControl::control().

◆ setControlFrame [2/2]

bool MLABFreeFloatControl::setControlFrame ( MLABWidgetControl * control,
QRect r )
slot

Sets the control's geometry (size and position). Returns false on error (e.g., widget is not managed by this layouter).

References MLABWidgetControl::control().

◆ setControlPos [1/2]

bool MLABFreeFloatControl::setControlPos ( MLABWidgetControl * control,
int x,
int y )
slot

Sets the control's position. Returns false on error (e.g., widget is not managed by this layouter).

References MLABWidgetControl::control().

◆ setControlPos [2/2]

bool MLABFreeFloatControl::setControlPos ( MLABWidgetControl * control,
QPoint p )
slot

Sets the control's position. Returns false on error (e.g., widget is not managed by this layouter).

References MLABWidgetControl::control().

◆ setControlSize [1/2]

bool MLABFreeFloatControl::setControlSize ( MLABWidgetControl * control,
int w,
int h )
slot

Sets the control's size. Returns false on error (e.g., widget is not managed by this layouter).

References MLABWidgetControl::control().

◆ setControlSize [2/2]

bool MLABFreeFloatControl::setControlSize ( MLABWidgetControl * control,
QSize s )
slot

Sets the control's size. Returns false on error (e.g., widget is not managed by this layouter).

References MLABWidgetControl::control().