Plasma
PanelView Class Reference
#include <panelview.h>

Public Types | |
enum | VisibilityMode { NormalPanel = 0, AutoHide, LetWindowsCover } |
Public Slots | |
void | pinchContainmentToCurrentScreen () |
void | recreateUnhideTrigger () |
void | setAlignment (Qt::Alignment align) |
void | setLocation (Plasma::Location location) |
void | setOffset (int newOffset) |
void | setVisibilityMode (PanelView::VisibilityMode mode) |
void | unhide (bool destroyTrigger) |
Public Member Functions | |
Qt::Alignment | alignment () const |
Plasma::Corona * | corona () const |
bool | hintOrUnhide (const QPoint &point, bool dueToDnd=false) |
Plasma::Location | location () const |
int | offset () const |
PanelView (Plasma::Containment *panel, int id=0, QWidget *parent=0) | |
void | pinchContainment (const QRect &screenGeometry) |
QRect | unhideHintGeometry () const |
void | unhintHide () |
VisibilityMode | visibilityMode () const |
~PanelView () | |
Protected Member Functions | |
void | dragEnterEvent (QDragEnterEvent *event) |
void | dragLeaveEvent (QDragLeaveEvent *event) |
void | dragMoveEvent (QDragMoveEvent *event) |
void | drawBackground (QPainter *painter, const QRectF &rect) |
void | dropEvent (QDropEvent *event) |
bool | event (QEvent *event) |
void | leaveEvent (QEvent *event) |
void | moveEvent (QMoveEvent *event) |
void | paintEvent (QPaintEvent *event) |
void | resizeEvent (QResizeEvent *event) |
void | updateStruts () |
Detailed Description
Definition at line 57 of file panelview.h.
Member Enumeration Documentation
Constructor & Destructor Documentation
PanelView::PanelView | ( | Plasma::Containment * | panel, | |
int | id = 0 , |
|||
QWidget * | parent = 0 | |||
) | [explicit] |
Constructs a new panelview.
- parent the QWidget this panel is parented to
Definition at line 186 of file panelview.cpp.
PanelView::~PanelView | ( | ) |
Definition at line 257 of file panelview.cpp.
Member Function Documentation
Qt::Alignment PanelView::alignment | ( | ) | const |
Plasma::Corona * PanelView::corona | ( | ) | const |
- Returns:
- the Corona (scene) associated with this panel.
Definition at line 380 of file panelview.cpp.
void PanelView::dragEnterEvent | ( | QDragEnterEvent * | event | ) | [protected] |
Definition at line 1371 of file panelview.cpp.
void PanelView::dragLeaveEvent | ( | QDragLeaveEvent * | event | ) | [protected] |
Definition at line 1396 of file panelview.cpp.
void PanelView::dragMoveEvent | ( | QDragMoveEvent * | event | ) | [protected] |
Definition at line 1384 of file panelview.cpp.
Definition at line 1094 of file panelview.cpp.
void PanelView::dropEvent | ( | QDropEvent * | event | ) | [protected] |
Definition at line 1405 of file panelview.cpp.
bool PanelView::event | ( | QEvent * | event | ) | [protected] |
Definition at line 1121 of file panelview.cpp.
bool PanelView::hintOrUnhide | ( | const QPoint & | point, | |
bool | dueToDnd = false | |||
) |
Show a visual hint or perhaps even unhide, based on the position of the event.
Definition at line 923 of file panelview.cpp.
void PanelView::leaveEvent | ( | QEvent * | event | ) | [protected] |
Definition at line 1066 of file panelview.cpp.
Plasma::Location PanelView::location | ( | ) | const |
- Returns:
- the location (screen edge) where this panel is positioned.
Definition at line 333 of file panelview.cpp.
void PanelView::moveEvent | ( | QMoveEvent * | event | ) | [protected] |
Definition at line 862 of file panelview.cpp.
int PanelView::offset | ( | ) | const |
Definition at line 697 of file panelview.cpp.
void PanelView::paintEvent | ( | QPaintEvent * | event | ) | [protected] |
Definition at line 1104 of file panelview.cpp.
void PanelView::pinchContainment | ( | const QRect & | screenGeometry | ) |
Pinches the min/max sizes of the containment to the current screen resolution.
Definition at line 564 of file panelview.cpp.
void PanelView::pinchContainmentToCurrentScreen | ( | ) | [slot] |
Pinches the min/max sizes of the containment to the current screen resolution.
Definition at line 558 of file panelview.cpp.
void PanelView::recreateUnhideTrigger | ( | ) | [slot] |
Call when there has been a change that might require changes to the unhide trigger, such as compositing changing.
Definition at line 1187 of file panelview.cpp.
void PanelView::resizeEvent | ( | QResizeEvent * | event | ) | [protected] |
Definition at line 870 of file panelview.cpp.
void PanelView::setAlignment | ( | Qt::Alignment | align | ) | [slot] |
Sets the edge of the screen the panel will be aligned and will grow.
- Parameters:
-
align the direction (for instance Qt::AlignLeft) means the panel will start from the left of the screen and grow to the right
Definition at line 702 of file panelview.cpp.
void PanelView::setLocation | ( | Plasma::Location | location | ) | [slot] |
Sets the location (screen edge) where this panel is positioned.
- Parameters:
-
location the location to place the panel at
Definition at line 266 of file panelview.cpp.
void PanelView::setOffset | ( | int | newOffset | ) | [slot] |
Sets the offset the left border, the offset is the distance of the left border of the panel from the left border of the screen when the alignment is Qt::AlignLeft, right border and right edge if the alignment is Qt::alignRight and the distance between the center of the panel and the center of the screen if the alignment is Qt::AlignCenter.
Similar way for vertical panels.
- Parameters:
-
newOffset the offset of the panel
Definition at line 684 of file panelview.cpp.
void PanelView::setVisibilityMode | ( | PanelView::VisibilityMode | mode | ) | [slot] |
void PanelView::unhide | ( | bool | destroyTrigger | ) | [slot] |
QRect PanelView::unhideHintGeometry | ( | ) | const |
Returns the geometry of the current unhide hint window.
Definition at line 914 of file panelview.cpp.
void PanelView::unhintHide | ( | ) |
void PanelView::updateStruts | ( | ) | [protected] |
Definition at line 799 of file panelview.cpp.
PanelView::VisibilityMode PanelView::visibilityMode | ( | ) | const |
The documentation for this class was generated from the following files: