14 #ifndef BERRYGUIWIDGETSTWEAKLET_H_
15 #define BERRYGUIWIDGETSTWEAKLET_H_
17 #include "internal/berryTweaklets.h"
31 static Tweaklets::TweakKey<GuiWidgetsTweaklet>
KEY;
62 virtual bool GetEnabled(QWidget* widget) = 0;
63 virtual void SetEnabled(QWidget* widget,
bool enabled) = 0;
65 virtual void SetBounds(QWidget* widget,
const QRect& bounds) = 0;
66 virtual QRect GetBounds(QWidget* widget) = 0;
68 virtual void SetVisible(QWidget* widget,
bool visible) = 0;
69 virtual bool GetVisible(QWidget* widget) = 0;
70 virtual bool IsVisible(QWidget* widget) = 0;
72 virtual QRect GetClientArea(QWidget* widget) = 0;
74 virtual QWidget* GetParent(QWidget* widget) = 0;
75 virtual bool SetParent(QWidget* widget, QWidget* parent) = 0;
77 virtual void SetData(QWidget* widget,
const QString&
id,
Object::Pointer data) = 0;
78 virtual Object::Pointer GetData(QWidget* widget,
const QString&
id) = 0;
80 virtual QPoint GetCursorLocation() = 0;
81 virtual QWidget* GetCursorControl() = 0;
82 virtual QWidget* FindControl(
const QList<Shell::Pointer>& shells,
const QPoint& location) = 0;
92 virtual bool IsChild(QWidget* potentialParent, QWidget* childToTest) = 0;
102 virtual QWidget* GetFocusControl() = 0;
104 virtual bool IsReparentable(QWidget* widget) = 0;
106 virtual void MoveAbove(QWidget* widgetToMove, QWidget* widget) = 0;
107 virtual void MoveBelow(QWidget* widgetToMove, QWidget* widget) = 0;
109 virtual void Dispose(QWidget* widget) = 0;
114 virtual QWidget* CreateComposite(QWidget* parent) = 0;
116 virtual QList<Shell::Pointer> GetShells() = 0;
135 virtual QRect GetScreenSize(
int i = -1) = 0;
137 virtual QRect GetAvailableScreenSize(
int i = -1) = 0;
139 virtual int GetClosestScreenNumber(
const QRect&) = 0;
146 virtual unsigned int GetScreenNumber() = 0;
153 virtual int GetPrimaryScreenNumber() = 0;
164 virtual QRect ToControl(QWidget* coordinateSystem,
165 const QRect& toConvert) = 0;
176 virtual QPoint ToControl(QWidget* coordinateSystem,
177 const QPoint& toConvert) = 0;
188 virtual QRect ToDisplay(QWidget* coordinateSystem,
189 const QRect& toConvert) = 0;
200 virtual QPoint ToDisplay(QWidget* coordinateSystem,
201 const QPoint& toConvert) = 0;