Plasma
Plasma::Dialog Class Reference
A dialog that uses the Plasma style. More...
#include <Plasma/Dialog>

Public Types | |
enum | ResizeCorner { NoCorner = 0, NorthEast = 1, SouthEast = 2, NorthWest = 4, SouthWest = 8, All = NorthEast | SouthEast | NorthWest | SouthWest } |
Signals | |
void | dialogResized () |
void | dialogVisible (bool status) |
Public Member Functions | |
void | animatedHide (Plasma::Direction direction) |
void | animatedShow (Plasma::Direction direction) |
Dialog (QWidget *parent=0, Qt::WindowFlags f=Qt::Window) | |
QGraphicsWidget * | graphicsWidget () |
ResizeCorners | resizeCorners () const |
void | setGraphicsWidget (QGraphicsWidget *widget) |
void | setResizeHandleCorners (ResizeCorners corners) |
virtual | ~Dialog () |
Protected Member Functions | |
bool | event (QEvent *event) |
bool | eventFilter (QObject *watched, QEvent *event) |
void | hideEvent (QHideEvent *event) |
bool | inControlArea (const QPoint &point) |
void | keyPressEvent (QKeyEvent *event) |
void | mouseMoveEvent (QMouseEvent *event) |
void | mousePressEvent (QMouseEvent *event) |
void | mouseReleaseEvent (QMouseEvent *event) |
void | moveEvent (QMoveEvent *event) |
void | paintEvent (QPaintEvent *e) |
void | resizeEvent (QResizeEvent *e) |
void | showEvent (QShowEvent *event) |
Detailed Description
A dialog that uses the Plasma style.
Dialog provides a dialog-like widget that can be used to display additional information.
Dialog uses the plasma theme, and usually has no window decoration. It's meant as an interim solution to display widgets as extension to plasma applets, for example when you click on an applet like the devicenotifier or the clock, the widget that is then displayed, is a Dialog.
Definition at line 51 of file dialog.h.
Member Enumeration Documentation
Constructor & Destructor Documentation
Plasma::Dialog::Dialog | ( | QWidget * | parent = 0 , |
|
Qt::WindowFlags | f = Qt::Window | |||
) | [explicit] |
- parent the parent widget, for plasmoids, this is usually 0.
- f the Qt::WindowFlags, default is to not show a windowborder.
Definition at line 232 of file dialog.cpp.
Plasma::Dialog::~Dialog | ( | ) | [virtual] |
Definition at line 255 of file dialog.cpp.
Member Function Documentation
void Plasma::Dialog::animatedHide | ( | Plasma::Direction | direction | ) |
Causes an animated hide; requires compositing to work, otherwise the dialog will simply hide.
Definition at line 554 of file dialog.cpp.
void Plasma::Dialog::animatedShow | ( | Plasma::Direction | direction | ) |
Causes an animated hide; requires compositing to work, otherwise the dialog will simply hide.
Definition at line 571 of file dialog.cpp.
void Plasma::Dialog::dialogResized | ( | ) | [signal] |
Fires when the dialog automatically resizes.
void Plasma::Dialog::dialogVisible | ( | bool | status | ) | [signal] |
Emit a signal when the dialog become visible/invisible.
bool Plasma::Dialog::event | ( | QEvent * | event | ) | [protected] |
Definition at line 389 of file dialog.cpp.
bool Plasma::Dialog::eventFilter | ( | QObject * | watched, | |
QEvent * | event | |||
) | [protected] |
Definition at line 490 of file dialog.cpp.
QGraphicsWidget * Plasma::Dialog::graphicsWidget | ( | ) |
Definition at line 485 of file dialog.cpp.
void Plasma::Dialog::hideEvent | ( | QHideEvent * | event | ) | [protected] |
Definition at line 500 of file dialog.cpp.
bool Plasma::Dialog::inControlArea | ( | const QPoint & | point | ) | [protected] |
Convenience method to know whether the point is in a control area (e.g.
resize area) or not.
- Returns:
- true if the point is in the control area.
Definition at line 660 of file dialog.cpp.
void Plasma::Dialog::keyPressEvent | ( | QKeyEvent * | event | ) | [protected] |
Definition at line 382 of file dialog.cpp.
void Plasma::Dialog::mouseMoveEvent | ( | QMouseEvent * | event | ) | [protected] |
Definition at line 296 of file dialog.cpp.
void Plasma::Dialog::mousePressEvent | ( | QMouseEvent * | event | ) | [protected] |
Definition at line 350 of file dialog.cpp.
void Plasma::Dialog::mouseReleaseEvent | ( | QMouseEvent * | event | ) | [protected] |
Definition at line 371 of file dialog.cpp.
void Plasma::Dialog::moveEvent | ( | QMoveEvent * | event | ) | [protected] |
Definition at line 528 of file dialog.cpp.
void Plasma::Dialog::paintEvent | ( | QPaintEvent * | e | ) | [protected] |
Reimplemented from QWidget.
Definition at line 260 of file dialog.cpp.
Dialog::ResizeCorners Plasma::Dialog::resizeCorners | ( | ) | const |
Convenience method to get the enabled resize corners.
- Returns:
- which resize corners are active.
Definition at line 549 of file dialog.cpp.
void Plasma::Dialog::resizeEvent | ( | QResizeEvent * | e | ) | [protected] |
Definition at line 400 of file dialog.cpp.
void Plasma::Dialog::setGraphicsWidget | ( | QGraphicsWidget * | widget | ) |
Definition at line 447 of file dialog.cpp.
void Plasma::Dialog::setResizeHandleCorners | ( | ResizeCorners | corners | ) |
- corners the corners the resize handlers should be placed in.
Definition at line 541 of file dialog.cpp.
void Plasma::Dialog::showEvent | ( | QShowEvent * | event | ) | [protected] |
Definition at line 506 of file dialog.cpp.
The documentation for this class was generated from the following files: