18 #ifndef BERRYGUIWIDGETSTWEAKLET_H_
19 #define BERRYGUIWIDGETSTWEAKLET_H_
21 #include "internal/berryTweaklets.h"
35 static Tweaklets::TweakKey<GuiWidgetsTweaklet>
KEY;
64 virtual bool GetEnabled(QWidget* widget) = 0;
65 virtual void SetEnabled(QWidget* widget,
bool enabled) = 0;
67 virtual void SetBounds(QWidget* widget,
const QRect& bounds) = 0;
68 virtual QRect GetBounds(QWidget* widget) = 0;
70 virtual void SetVisible(QWidget* widget,
bool visible) = 0;
71 virtual bool GetVisible(QWidget* widget) = 0;
72 virtual bool IsVisible(QWidget* widget) = 0;
74 virtual QRect GetClientArea(QWidget* widget) = 0;
76 virtual QWidget* GetParent(QWidget* widget) = 0;
77 virtual bool SetParent(QWidget* widget, QWidget* parent) = 0;
79 virtual void SetData(QWidget* widget,
const QString&
id,
Object::Pointer data) = 0;
82 virtual QPoint GetCursorLocation() = 0;
83 virtual QWidget* GetCursorControl() = 0;
84 virtual QWidget* FindControl(
const QList<Shell::Pointer>& shells,
const QPoint& location) = 0;
94 virtual bool IsChild(QWidget* potentialParent, QWidget* childToTest) = 0;
104 virtual QWidget* GetFocusControl() = 0;
106 virtual bool IsReparentable(QWidget* widget) = 0;
108 virtual void MoveAbove(QWidget* widgetToMove, QWidget* widget) = 0;
109 virtual void MoveBelow(QWidget* widgetToMove, QWidget* widget) = 0;
111 virtual void Dispose(QWidget* widget) = 0;
116 virtual QWidget* CreateComposite(QWidget* parent) = 0;
118 virtual QList<Shell::Pointer> GetShells() = 0;
137 virtual QRect GetScreenSize(
int i = -1) = 0;
139 virtual QRect GetAvailableScreenSize(
int i = -1) = 0;
141 virtual int GetClosestScreenNumber(
const QRect&) = 0;
148 virtual unsigned int GetScreenNumber() = 0;
155 virtual int GetPrimaryScreenNumber() = 0;
166 virtual QRect ToControl(QWidget* coordinateSystem,
167 const QRect& toConvert) = 0;
178 virtual QPoint ToControl(QWidget* coordinateSystem,
179 const QPoint& toConvert) = 0;
190 virtual QRect ToDisplay(QWidget* coordinateSystem,
191 const QRect& toConvert) = 0;
202 virtual QPoint ToDisplay(QWidget* coordinateSystem,
203 const QPoint& toConvert) = 0;
T::Pointer GetData(const std::string &name)