Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berry::GuiWidgetsTweaklet Struct Referenceabstract

#include <berryGuiWidgetsTweaklet.h>

Public Member Functions

virtual void AddSelectionListener (QWidget *widget, GuiTk::ISelectionListener::Pointer listener)=0
 
virtual void RemoveSelectionListener (QWidget *widget, GuiTk::ISelectionListener::Pointer listener)=0
 
virtual void AddControlListener (QWidget *widget, GuiTk::IControlListener::Pointer listener)=0
 
virtual void RemoveControlListener (QWidget *widget, GuiTk::IControlListener::Pointer listener)=0
 
virtual bool GetEnabled (QWidget *widget)=0
 
virtual void SetEnabled (QWidget *widget, bool enabled)=0
 
virtual void SetBounds (QWidget *widget, const QRect &bounds)=0
 
virtual QRect GetBounds (QWidget *widget)=0
 
virtual void SetVisible (QWidget *widget, bool visible)=0
 
virtual bool GetVisible (QWidget *widget)=0
 
virtual bool IsVisible (QWidget *widget)=0
 
virtual QRect GetClientArea (QWidget *widget)=0
 
virtual QWidget * GetParent (QWidget *widget)=0
 
virtual bool SetParent (QWidget *widget, QWidget *parent)=0
 
virtual void SetData (QWidget *widget, const QString &id, Object::Pointer data)=0
 
virtual Object::Pointer GetData (QWidget *widget, const QString &id)=0
 
virtual QPoint GetCursorLocation ()=0
 
virtual QWidget * GetCursorControl ()=0
 
virtual QWidget * FindControl (const QList< Shell::Pointer > &shells, const QPoint &location)=0
 
virtual bool IsChild (QWidget *potentialParent, QWidget *childToTest)=0
 
virtual QWidget * GetFocusControl ()=0
 
virtual bool IsReparentable (QWidget *widget)=0
 
virtual void MoveAbove (QWidget *widgetToMove, QWidget *widget)=0
 
virtual void MoveBelow (QWidget *widgetToMove, QWidget *widget)=0
 
virtual void Dispose (QWidget *widget)=0
 
virtual Shell::Pointer CreateShell (Shell::Pointer parent, int style)=0
 
virtual void DisposeShell (Shell::Pointer shell)=0
 
virtual QWidget * CreateComposite (QWidget *parent)=0
 
virtual QList< Shell::PointerGetShells ()=0
 
virtual Shell::Pointer GetShell (QWidget *widget)=0
 
virtual Shell::Pointer GetActiveShell ()=0
 
virtual QRect GetScreenSize (int i=-1)=0
 returns the coordinates of the center point of the primary screen (where the application starts) of the current desktop. More...
 
virtual QRect GetAvailableScreenSize (int i=-1)=0
 
virtual int GetClosestScreenNumber (const QRect &)=0
 
virtual unsigned int GetScreenNumber ()=0
 Gets the number of available screens in a multi-screen environment. More...
 
virtual int GetPrimaryScreenNumber ()=0
 Gets the number of the primary screen. More...
 
virtual QRect ToControl (QWidget *coordinateSystem, const QRect &toConvert)=0
 
virtual QPoint ToControl (QWidget *coordinateSystem, const QPoint &toConvert)=0
 
virtual QRect ToDisplay (QWidget *coordinateSystem, const QRect &toConvert)=0
 
virtual QPoint ToDisplay (QWidget *coordinateSystem, const QPoint &toConvert)=0
 

Static Public Attributes

static Tweaklets::TweakKey< GuiWidgetsTweakletKEY
 

Detailed Description

Definition at line 32 of file berryGuiWidgetsTweaklet.h.

Member Function Documentation

virtual void berry::GuiWidgetsTweaklet::AddControlListener ( QWidget *  widget,
GuiTk::IControlListener::Pointer  listener 
)
pure virtual

Adds the listener to the collection of listeners who will be notified when the widget is moved or resized, by sending it one of the messages defined in the IControlListener interface.

Parameters
listenerthe listener which should be notified
See also
IControlListener
RemoveControlListener
virtual void berry::GuiWidgetsTweaklet::AddSelectionListener ( QWidget *  widget,
GuiTk::ISelectionListener::Pointer  listener 
)
pure virtual
virtual QWidget* berry::GuiWidgetsTweaklet::CreateComposite ( QWidget *  parent)
pure virtual
virtual Shell::Pointer berry::GuiWidgetsTweaklet::CreateShell ( Shell::Pointer  parent,
int  style 
)
pure virtual
virtual void berry::GuiWidgetsTweaklet::Dispose ( QWidget *  widget)
pure virtual
virtual void berry::GuiWidgetsTweaklet::DisposeShell ( Shell::Pointer  shell)
pure virtual
virtual QWidget* berry::GuiWidgetsTweaklet::FindControl ( const QList< Shell::Pointer > &  shells,
const QPoint &  location 
)
pure virtual
virtual Shell::Pointer berry::GuiWidgetsTweaklet::GetActiveShell ( )
pure virtual
virtual QRect berry::GuiWidgetsTweaklet::GetAvailableScreenSize ( int  i = -1)
pure virtual
virtual QRect berry::GuiWidgetsTweaklet::GetBounds ( QWidget *  widget)
pure virtual
virtual QRect berry::GuiWidgetsTweaklet::GetClientArea ( QWidget *  widget)
pure virtual
virtual int berry::GuiWidgetsTweaklet::GetClosestScreenNumber ( const QRect &  )
pure virtual
virtual QWidget* berry::GuiWidgetsTweaklet::GetCursorControl ( )
pure virtual
virtual QPoint berry::GuiWidgetsTweaklet::GetCursorLocation ( )
pure virtual
virtual Object::Pointer berry::GuiWidgetsTweaklet::GetData ( QWidget *  widget,
const QString &  id 
)
pure virtual
virtual bool berry::GuiWidgetsTweaklet::GetEnabled ( QWidget *  widget)
pure virtual
virtual QWidget* berry::GuiWidgetsTweaklet::GetFocusControl ( )
pure virtual

Returns the control which currently has keyboard focus, or null if keyboard events are not currently going to any of the controls built by the currently running application.

Returns
the control under the cursor
virtual QWidget* berry::GuiWidgetsTweaklet::GetParent ( QWidget *  widget)
pure virtual
virtual int berry::GuiWidgetsTweaklet::GetPrimaryScreenNumber ( )
pure virtual

Gets the number of the primary screen.

Returns
the number of the primary screen.
virtual unsigned int berry::GuiWidgetsTweaklet::GetScreenNumber ( )
pure virtual

Gets the number of available screens in a multi-screen environment.

Returns
the number of available screens in a multi-screen environment.
virtual QRect berry::GuiWidgetsTweaklet::GetScreenSize ( int  i = -1)
pure virtual

returns the coordinates of the center point of the primary screen (where the application starts) of the current desktop.

Parameters
ithe number of the screen (if there are multiple). If i = -1 a rectangle representing the size of the virtual desktop is returned.
Returns
the screen Geometry.
See also
GetScreenNumber()
GetPrimaryScreenNumber()
virtual Shell::Pointer berry::GuiWidgetsTweaklet::GetShell ( QWidget *  widget)
pure virtual
virtual QList<Shell::Pointer> berry::GuiWidgetsTweaklet::GetShells ( )
pure virtual
virtual bool berry::GuiWidgetsTweaklet::GetVisible ( QWidget *  widget)
pure virtual
virtual bool berry::GuiWidgetsTweaklet::IsChild ( QWidget *  potentialParent,
QWidget *  childToTest 
)
pure virtual

Determines if one control is a child of another. Returns true iff the second argument is a child of the first (or the same object).

Parameters
potentialParent
childToTest
Returns
virtual bool berry::GuiWidgetsTweaklet::IsReparentable ( QWidget *  widget)
pure virtual
virtual bool berry::GuiWidgetsTweaklet::IsVisible ( QWidget *  widget)
pure virtual
virtual void berry::GuiWidgetsTweaklet::MoveAbove ( QWidget *  widgetToMove,
QWidget *  widget 
)
pure virtual
virtual void berry::GuiWidgetsTweaklet::MoveBelow ( QWidget *  widgetToMove,
QWidget *  widget 
)
pure virtual
virtual void berry::GuiWidgetsTweaklet::RemoveControlListener ( QWidget *  widget,
GuiTk::IControlListener::Pointer  listener 
)
pure virtual

Removes the listener from the collection of listeners who will be notified when the widget is moved or resized.

Parameters
listenerthe listener which should no longer be notified
See also
IControlListener
AddControlListener
virtual void berry::GuiWidgetsTweaklet::RemoveSelectionListener ( QWidget *  widget,
GuiTk::ISelectionListener::Pointer  listener 
)
pure virtual
virtual void berry::GuiWidgetsTweaklet::SetBounds ( QWidget *  widget,
const QRect &  bounds 
)
pure virtual
virtual void berry::GuiWidgetsTweaklet::SetData ( QWidget *  widget,
const QString &  id,
Object::Pointer  data 
)
pure virtual
virtual void berry::GuiWidgetsTweaklet::SetEnabled ( QWidget *  widget,
bool  enabled 
)
pure virtual
virtual bool berry::GuiWidgetsTweaklet::SetParent ( QWidget *  widget,
QWidget *  parent 
)
pure virtual
virtual void berry::GuiWidgetsTweaklet::SetVisible ( QWidget *  widget,
bool  visible 
)
pure virtual
virtual QRect berry::GuiWidgetsTweaklet::ToControl ( QWidget *  coordinateSystem,
const QRect &  toConvert 
)
pure virtual

Converts the given rectangle from display coordinates to the local coordinate system of the given object

Parameters
coordinateSystemlocal coordinate system (widget) being converted to
toConvertrectangle to convert
Returns
a rectangle in control coordinates
Since
3.0
virtual QPoint berry::GuiWidgetsTweaklet::ToControl ( QWidget *  coordinateSystem,
const QPoint &  toConvert 
)
pure virtual

Converts the given point from display coordinates to the local coordinate system of the given object

Parameters
coordinateSystemlocal coordinate system (widget) being converted to
toConvertpoint to convert
Returns
a point in control coordinates
Since
3.0
virtual QRect berry::GuiWidgetsTweaklet::ToDisplay ( QWidget *  coordinateSystem,
const QRect &  toConvert 
)
pure virtual

Converts the given rectangle from the local coordinate system of the given object into display coordinates.

Parameters
coordinateSystemlocal coordinate system (widget) being converted from
toConvertrectangle to convert
Returns
a rectangle in display coordinates
Since
3.0
virtual QPoint berry::GuiWidgetsTweaklet::ToDisplay ( QWidget *  coordinateSystem,
const QPoint &  toConvert 
)
pure virtual

Converts the given point from the local coordinate system of the given object into display coordinates.

Parameters
coordinateSystemlocal coordinate system (widget) being converted from
toConvertpoint to convert
Returns
a point in display coordinates
Since
3.0

Member Data Documentation


The documentation for this struct was generated from the following files: