Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
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=0)=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=0)=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 28 of file berryGuiWidgetsTweaklet.h.

Member Function Documentation

◆ AddControlListener()

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
widget
listenerthe listener which should be notified
See also
IControlListener
RemoveControlListener

◆ AddSelectionListener()

virtual void berry::GuiWidgetsTweaklet::AddSelectionListener ( QWidget *  widget,
GuiTk::ISelectionListener::Pointer  listener 
)
pure virtual

◆ CreateComposite()

virtual QWidget* berry::GuiWidgetsTweaklet::CreateComposite ( QWidget *  parent)
pure virtual

◆ CreateShell()

virtual Shell::Pointer berry::GuiWidgetsTweaklet::CreateShell ( Shell::Pointer  parent,
int  style 
)
pure virtual

◆ Dispose()

virtual void berry::GuiWidgetsTweaklet::Dispose ( QWidget *  widget)
pure virtual

◆ DisposeShell()

virtual void berry::GuiWidgetsTweaklet::DisposeShell ( Shell::Pointer  shell)
pure virtual

◆ FindControl()

virtual QWidget* berry::GuiWidgetsTweaklet::FindControl ( const QList< Shell::Pointer > &  shells,
const QPoint &  location 
)
pure virtual

◆ GetActiveShell()

virtual Shell::Pointer berry::GuiWidgetsTweaklet::GetActiveShell ( )
pure virtual

◆ GetAvailableScreenSize()

virtual QRect berry::GuiWidgetsTweaklet::GetAvailableScreenSize ( int  i = 0)
pure virtual

◆ GetBounds()

virtual QRect berry::GuiWidgetsTweaklet::GetBounds ( QWidget *  widget)
pure virtual

◆ GetClientArea()

virtual QRect berry::GuiWidgetsTweaklet::GetClientArea ( QWidget *  widget)
pure virtual

◆ GetClosestScreenNumber()

virtual int berry::GuiWidgetsTweaklet::GetClosestScreenNumber ( const QRect &  )
pure virtual

◆ GetCursorControl()

virtual QWidget* berry::GuiWidgetsTweaklet::GetCursorControl ( )
pure virtual

◆ GetCursorLocation()

virtual QPoint berry::GuiWidgetsTweaklet::GetCursorLocation ( )
pure virtual

◆ GetData()

virtual Object::Pointer berry::GuiWidgetsTweaklet::GetData ( QWidget *  widget,
const QString &  id 
)
pure virtual

◆ GetEnabled()

virtual bool berry::GuiWidgetsTweaklet::GetEnabled ( QWidget *  widget)
pure virtual

◆ GetFocusControl()

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

◆ GetParent()

virtual QWidget* berry::GuiWidgetsTweaklet::GetParent ( QWidget *  widget)
pure virtual

◆ GetPrimaryScreenNumber()

virtual int berry::GuiWidgetsTweaklet::GetPrimaryScreenNumber ( )
pure virtual

Gets the number of the primary screen.

Returns
the number of the primary screen.

◆ GetScreenNumber()

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.

◆ GetScreenSize()

virtual QRect berry::GuiWidgetsTweaklet::GetScreenSize ( int  i = 0)
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()

◆ GetShell()

virtual Shell::Pointer berry::GuiWidgetsTweaklet::GetShell ( QWidget *  widget)
pure virtual

◆ GetShells()

virtual QList<Shell::Pointer> berry::GuiWidgetsTweaklet::GetShells ( )
pure virtual

◆ GetVisible()

virtual bool berry::GuiWidgetsTweaklet::GetVisible ( QWidget *  widget)
pure virtual

◆ IsChild()

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

◆ IsReparentable()

virtual bool berry::GuiWidgetsTweaklet::IsReparentable ( QWidget *  widget)
pure virtual

◆ IsVisible()

virtual bool berry::GuiWidgetsTweaklet::IsVisible ( QWidget *  widget)
pure virtual

◆ MoveAbove()

virtual void berry::GuiWidgetsTweaklet::MoveAbove ( QWidget *  widgetToMove,
QWidget *  widget 
)
pure virtual

◆ MoveBelow()

virtual void berry::GuiWidgetsTweaklet::MoveBelow ( QWidget *  widgetToMove,
QWidget *  widget 
)
pure virtual

◆ RemoveControlListener()

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
widget
listenerthe listener which should no longer be notified
See also
IControlListener
AddControlListener

◆ RemoveSelectionListener()

virtual void berry::GuiWidgetsTweaklet::RemoveSelectionListener ( QWidget *  widget,
GuiTk::ISelectionListener::Pointer  listener 
)
pure virtual

◆ SetBounds()

virtual void berry::GuiWidgetsTweaklet::SetBounds ( QWidget *  widget,
const QRect &  bounds 
)
pure virtual

◆ SetData()

virtual void berry::GuiWidgetsTweaklet::SetData ( QWidget *  widget,
const QString &  id,
Object::Pointer  data 
)
pure virtual

◆ SetEnabled()

virtual void berry::GuiWidgetsTweaklet::SetEnabled ( QWidget *  widget,
bool  enabled 
)
pure virtual

◆ SetParent()

virtual bool berry::GuiWidgetsTweaklet::SetParent ( QWidget *  widget,
QWidget *  parent 
)
pure virtual

◆ SetVisible()

virtual void berry::GuiWidgetsTweaklet::SetVisible ( QWidget *  widget,
bool  visible 
)
pure virtual

◆ ToControl() [1/2]

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

◆ ToControl() [2/2]

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

◆ ToDisplay() [1/2]

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

◆ ToDisplay() [2/2]

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

Member Data Documentation

◆ KEY

Tweaklets::TweakKey<GuiWidgetsTweaklet> berry::GuiWidgetsTweaklet::KEY
static

Definition at line 31 of file berryGuiWidgetsTweaklet.h.


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