• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeplasma-addons API Reference
  • KDE Home
  • Contact Us
 

liblancelot

  • Lancelot
  • Panel
Public Member Functions | Protected Member Functions | Properties | List of all members
Lancelot::Panel Class Reference

#include <Panel.h>

Inheritance diagram for Lancelot::Panel:
Inheritance graph
[legend]

Public Member Functions

 Panel (QString title, QGraphicsItem *parent=0)
 
virtual ~Panel ()
 
qreal borderSize (Plasma::MarginEdge edge) const
 
QIcon icon () const
 
QSize iconSize () const
 
bool isShowingTitle () const
 
QGraphicsLayoutItem * layoutItem () const
 
L_Override void setGroup (Group *group=NULL)
 
void setIcon (QIcon icon)
 
void setIconSize (QSize size)
 
void setLayoutItem (QGraphicsLayoutItem *layoutItem)
 
void setShowingTitle (bool value)
 
void setTitle (const QString &title)
 
QString title () const
 
- Public Member Functions inherited from Lancelot::Widget
 Widget (QGraphicsItem *parent=0)
 
virtual ~Widget ()
 
Group * group () const
 
QString groupName () const
 
bool isDown () const
 
bool isHovered () const
 
virtual void setGroupByName (const QString &groupName)
 

Protected Member Functions

L_Override void resizeEvent (QGraphicsSceneResizeEvent *event)
 
L_Override QSizeF sizeHint (Qt::SizeHint which, const QSizeF &constraint=QSizeF()) const
 
- Protected Member Functions inherited from Lancelot::Widget
L_Override void hideEvent (QHideEvent *event)
 
L_Override void hoverEnterEvent (QGraphicsSceneHoverEvent *event)
 
L_Override void hoverLeaveEvent (QGraphicsSceneHoverEvent *event)
 
L_Override void mousePressEvent (QGraphicsSceneMouseEvent *event)
 
L_Override void mouseReleaseEvent (QGraphicsSceneMouseEvent *event)
 
L_Override void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
 
void paintBackground (QPainter *painter)
 
void paintBackground (QPainter *painter, const QString &element)
 
void setDown (bool value)
 
void setHovered (bool value)
 
void setPaintBackwardsWhenRTL (bool value)
 
L_Override QSizeF sizeHint (Qt::SizeHint which, const QSizeF &constraint=QSizeF()) const
 

Properties

QIcon icon
 
QSize iconSize
 
QString title
 
- Properties inherited from Lancelot::Widget
bool down
 
QString group
 

Additional Inherited Members

- Signals inherited from Lancelot::Widget
void clicked ()
 
void mouseHoverEnter ()
 
void mouseHoverLeave ()
 
void pressed ()
 
void released ()
 

Detailed Description

A container widget with optional title-bar.

Author
Ivan Cukic

Definition at line 38 of file Panel.h.

Constructor & Destructor Documentation

Lancelot::Panel::Panel ( QString  title,
QGraphicsItem *  parent = 0 
)
explicit

Creates a new Lancelot::Widget.

Parameters
titlethe title of the widget
parentparent item

Definition at line 109 of file Panel.cpp.

Lancelot::Panel::~Panel ( )
virtual

Destroys Lancelot::Panel.

Definition at line 127 of file Panel.cpp.

Member Function Documentation

qreal Lancelot::Panel::borderSize ( Plasma::MarginEdge  edge) const
Parameters
edgeedge
Returns
size of the specified edge

Definition at line 132 of file Panel.cpp.

QIcon Lancelot::Panel::icon ( ) const
Returns
icon of this Lancelot::Panel
QSize Lancelot::Panel::iconSize ( ) const
Returns
icon size of this Lancelot::Panel
bool Lancelot::Panel::isShowingTitle ( ) const
Returns
whether the title is shown

Definition at line 177 of file Panel.cpp.

QGraphicsLayoutItem * Lancelot::Panel::layoutItem ( ) const
Returns
the layout item

Definition at line 200 of file Panel.cpp.

void Lancelot::Panel::resizeEvent ( QGraphicsSceneResizeEvent *  event)
protected

Definition at line 182 of file Panel.cpp.

void Lancelot::Panel::setGroup ( Group *  group = NULL)
virtual

Sets this widget's group.

Parameters
groupnew group

Reimplemented from Lancelot::Widget.

Reimplemented in Lancelot::PassagewayView.

Definition at line 188 of file Panel.cpp.

void Lancelot::Panel::setIcon ( QIcon  icon)

Sets icon of this Lancelot::Panel.

Parameters
iconnew icon

Definition at line 151 of file Panel.cpp.

void Lancelot::Panel::setIconSize ( QSize  size)

Sets icon size of this Lancelot::Panel.

Parameters
sizenew icon size

Definition at line 161 of file Panel.cpp.

void Lancelot::Panel::setLayoutItem ( QGraphicsLayoutItem *  layoutItem)

Sets the layout item for the components in case the panel should contain more than one item at a time.

Parameters
layoutItemthe contained layout item

Definition at line 194 of file Panel.cpp.

void Lancelot::Panel::setShowingTitle ( bool  value)

Sets whether the title is shown.

Definition at line 171 of file Panel.cpp.

void Lancelot::Panel::setTitle ( const QString &  title)

Sets title of this Lancelot::Panel.

Parameters
titlenew title

Definition at line 140 of file Panel.cpp.

QSizeF Lancelot::Panel::sizeHint ( Qt::SizeHint  which,
const QSizeF &  constraint = QSizeF() 
) const
protected

Definition at line 205 of file Panel.cpp.

QString Lancelot::Panel::title ( ) const
Returns
title of this Lancelot::Panel

Property Documentation

QIcon Lancelot::Panel::icon
readwrite

Definition at line 42 of file Panel.h.

QSize Lancelot::Panel::iconSize
readwrite

Definition at line 43 of file Panel.h.

QString Lancelot::Panel::title
readwrite

Definition at line 44 of file Panel.h.


The documentation for this class was generated from the following files:
  • Panel.h
  • Panel.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Mon Oct 13 2014 22:55:07 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

liblancelot

Skip menu "liblancelot"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeplasma-addons API Reference

Skip menu "kdeplasma-addons API Reference"
  •     GroupingDesktop
  •   liblancelot

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal