• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

Plasma

PanelView Class Reference

#include <panelview.h>

Inheritance diagram for PanelView:

Inheritance graph
[legend]

List of all members.


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

enum PanelView::VisibilityMode

Enumerator:
NormalPanel 
AutoHide 
LetWindowsCover 

Definition at line 62 of file panelview.h.


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

Returns:
the panel alignment

Definition at line 709 of file panelview.cpp.

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.

void PanelView::drawBackground ( QPainter *  painter,
const QRectF &  rect 
) [protected]

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]

Sets the panel behaviour.

Parameters:
mode 

Definition at line 338 of file panelview.cpp.

void PanelView::unhide ( bool  destroyTrigger  )  [slot]

unhides the panel if it is hidden

Definition at line 993 of file panelview.cpp.

QRect PanelView::unhideHintGeometry (  )  const

Returns the geometry of the current unhide hint window.

Definition at line 914 of file panelview.cpp.

void PanelView::unhintHide (  ) 

Hides any hide hinting.

Definition at line 964 of file panelview.cpp.

void PanelView::updateStruts (  )  [protected]

Definition at line 799 of file panelview.cpp.

PanelView::VisibilityMode PanelView::visibilityMode (  )  const

Returns:
panel behaviour

Definition at line 375 of file panelview.cpp.


The documentation for this class was generated from the following files:
  • panelview.h
  • panelview.cpp

Plasma

Skip menu "Plasma"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

API Reference

Skip menu "API Reference"
  • KWin
  •   KWin Libraries
  • Libraries
  •   libkworkspace
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal