23 #ifndef PLASMA_DIALOG_H 24 #define PLASMA_DIALOG_H 26 #include <QtGui/QWidget> 27 #include <QtGui/QGraphicsSceneEvent> 28 #include <QtGui/QGraphicsView> 64 All = NorthEast | SouthEast | NorthWest | SouthWest
72 explicit Dialog(
QWidget * parent = 0, Qt::WindowFlags f = Qt::Window);
92 void setResizeHandleCorners(ResizeCorners corners);
98 ResizeCorners resizeCorners()
const;
103 bool isUserResizing()
const;
113 void setMinimumResizeLimits(
int left,
int top,
int right,
int bottom);
123 void getMinimumResizeLimits(
int *left,
int *top,
int *right,
int *bottom);
155 void dialogResized();
160 void dialogVisible(
bool status);
171 void syncToGraphicsWidget();
177 void paintEvent(QPaintEvent *e);
178 bool event(QEvent *event);
179 void resizeEvent(QResizeEvent *e);
180 bool eventFilter(
QObject *watched, QEvent *event);
181 void hideEvent(QHideEvent *event);
182 void showEvent(QShowEvent *event);
183 void focusInEvent(QFocusEvent *event);
184 void mouseMoveEvent(QMouseEvent *event);
185 void mousePressEvent(QMouseEvent *event);
186 void mouseReleaseEvent(QMouseEvent *event);
187 void keyPressEvent(QKeyEvent *event);
188 void moveEvent(QMoveEvent *event);
195 bool inControlArea(
const QPoint &point);
198 DialogPrivate *
const d;
200 friend class DialogPrivate;
204 Q_PRIVATE_SLOT(d,
void themeChanged())
205 Q_PRIVATE_SLOT(d,
void checkBorders())
206 Q_PRIVATE_SLOT(d,
void delayedAdjustSize())
208 friend class PopupAppletPrivate;
213 Q_DECLARE_OPERATORS_FOR_FLAGS(
Plasma::
Dialog::ResizeCorners)
Namespace for everything in libplasma.
ResizeCorner
Use these flags to choose the active resize corners.
A dialog that uses the Plasma style.
Direction
The Direction enumeration describes in which direction, relative to the Applet (and its managing cont...
AspectRatioMode
Defines the aspect ratio used when scaling an applet.