• Skip to content
  • Skip to link menu
KDE 4.4 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, WindowsGoBelow }

Public Slots

void appletAdded (Plasma::Applet *applet)
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 ()
void unhide (bool destroyTrigger)

Public Member Functions

 PanelView (Plasma::Containment *panel, int id=0, QWidget *parent=0)
 ~PanelView ()
Qt::Alignment alignment () const
bool hintOrUnhide (const QPoint &point, bool dueToDnd=false)
Plasma::Location location () const
int offset () const
void pinchContainment (const QRect &screenGeometry)
QRect unhideHintGeometry () const
void unhintHide ()
VisibilityMode visibilityMode () const

Protected Slots

void updateStruts ()

Protected Member Functions

void dragLeaveEvent (QDragLeaveEvent *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)

Detailed Description

Definition at line 58 of file panelview.h.


Member Enumeration Documentation

enum PanelView::VisibilityMode
Enumerator:
NormalPanel 
AutoHide 
LetWindowsCover 
WindowsGoBelow 

Definition at line 63 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 198 of file panelview.cpp.

PanelView::~PanelView (  ) 

Definition at line 303 of file panelview.cpp.


Member Function Documentation

Qt::Alignment PanelView::alignment (  )  const
Returns:
the panel alignment

Definition at line 815 of file panelview.cpp.

void PanelView::appletAdded ( Plasma::Applet *  applet  )  [slot]

Called when a new applet is added into the view's containment.

Definition at line 1304 of file panelview.cpp.

void PanelView::dragLeaveEvent ( QDragLeaveEvent *  event  )  [protected]

Definition at line 1537 of file panelview.cpp.

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

Definition at line 1275 of file panelview.cpp.

void PanelView::dropEvent ( QDropEvent *  event  )  [protected]

Definition at line 1546 of file panelview.cpp.

bool PanelView::event ( QEvent *  event  )  [protected]

Definition at line 1293 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 1115 of file panelview.cpp.

void PanelView::leaveEvent ( QEvent *  event  )  [protected]

Definition at line 1253 of file panelview.cpp.

Plasma::Location PanelView::location (  )  const
Returns:
the location (screen edge) where this panel is positioned.

Definition at line 403 of file panelview.cpp.

void PanelView::moveEvent ( QMoveEvent *  event  )  [protected]

Definition at line 1052 of file panelview.cpp.

int PanelView::offset (  )  const

Definition at line 802 of file panelview.cpp.

void PanelView::paintEvent ( QPaintEvent *  event  )  [protected]

Definition at line 1285 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 637 of file panelview.cpp.

void PanelView::pinchContainmentToCurrentScreen (  )  [slot]

Pinches the min/max sizes of the containment to the current screen resolution.

Definition at line 630 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 1348 of file panelview.cpp.

void PanelView::resizeEvent ( QResizeEvent *  event  )  [protected]

Definition at line 1066 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 807 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 336 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 788 of file panelview.cpp.

void PanelView::setVisibilityMode ( PanelView::VisibilityMode  mode  )  [slot]

Sets the panel behaviour.

Parameters:
mode 

Definition at line 412 of file panelview.cpp.

void PanelView::unhide (  )  [slot]

unhides the panel if it is hidden, always destroys the unhide trigger this is an overloaded function provided for convenience

Definition at line 1226 of file panelview.cpp.

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

unhides the panel if it is hidden

Definition at line 1189 of file panelview.cpp.

QRect PanelView::unhideHintGeometry (  )  const

Returns the geometry of the current unhide hint window.

Definition at line 1106 of file panelview.cpp.

void PanelView::unhintHide (  ) 

Hides any hide hinting.

Definition at line 1160 of file panelview.cpp.

void PanelView::updateStruts (  )  [protected, slot]

Definition at line 928 of file panelview.cpp.

PanelView::VisibilityMode PanelView::visibilityMode (  )  const
Returns:
panel behaviour

Definition at line 453 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
  • System Settings
  •   SystemSettingsView
Generated for API Reference by doxygen 1.5.9-20090814
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