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

Applets

LayoutWidget Class Reference

A Layout for the expanded group. More...

#include <layoutwidget.h>

Inheritance diagram for LayoutWidget:

Inheritance graph
[legend]

List of all members.


Public Slots

void update ()

Signals

void sizeHintChanged (Qt::SizeHint)

Public Member Functions

void addTaskItem (AbstractTaskItem *)
bool insert (int index, AbstractTaskItem *item)
int insertionIndexAt (const QPointF &pos)
 LayoutWidget (TaskGroupItem *parent, Tasks *applet)
int maximumRows ()
int numberOfColumns ()
int numberOfRows ()
int preferredColumns ()
void removeTaskItem (AbstractTaskItem *)
void setForceRows (bool)
void setMaximumRows (int)
int size ()
 ~LayoutWidget ()

Detailed Description

A Layout for the expanded group.

Definition at line 46 of file layoutwidget.h.


Constructor & Destructor Documentation

LayoutWidget::LayoutWidget ( TaskGroupItem *  parent,
Tasks *  applet 
)

Definition at line 21 of file layoutwidget.cpp.

LayoutWidget::~LayoutWidget (  ) 

Definition at line 39 of file layoutwidget.cpp.


Member Function Documentation

void LayoutWidget::addTaskItem ( AbstractTaskItem *  item  ) 

insert the item on the index in TaskGroupItem::getMemberList

Definition at line 62 of file layoutwidget.cpp.

bool LayoutWidget::insert ( int  index,
AbstractTaskItem *  item 
)

insert the item on a specific index

Definition at line 109 of file layoutwidget.cpp.

int LayoutWidget::insertionIndexAt ( const QPointF &  pos  ) 

returns the insert index for a task drop on pos

Definition at line 394 of file layoutwidget.cpp.

int LayoutWidget::maximumRows (  ) 

Returns the preferred number of rows based on the user settings but limited by calculation to honor AbstractGroupableItem::basicPreferredSize().

Definition at line 178 of file layoutwidget.cpp.

int LayoutWidget::numberOfColumns (  ) 

returns columnCount or rowCount depending on m_applet->formFactor()

Definition at line 471 of file layoutwidget.cpp.

int LayoutWidget::numberOfRows (  ) 

returns columnCount or rowCount depending on m_applet->formFactor()

Definition at line 462 of file layoutwidget.cpp.

int LayoutWidget::preferredColumns (  ) 

Returns the preferred number of columns calculated on base of AbstractGroupableItem::basicPreferredSize().

Definition at line 202 of file layoutwidget.cpp.

void LayoutWidget::removeTaskItem ( AbstractTaskItem *  item  ) 

Definition at line 92 of file layoutwidget.cpp.

void LayoutWidget::setForceRows ( bool  forceRows  ) 

force the layout to use maximumRows setting and fill rows before columns

Definition at line 389 of file layoutwidget.cpp.

void LayoutWidget::setMaximumRows ( int  rows  ) 

set the maximum number of rows

Definition at line 384 of file layoutwidget.cpp.

int LayoutWidget::size (  ) 

the size including expanded groups

size including expanded groups

Definition at line 148 of file layoutwidget.cpp.

void LayoutWidget::sizeHintChanged ( Qt::SizeHint   )  [signal]

void LayoutWidget::update (  )  [slot]

Definition at line 140 of file layoutwidget.cpp.


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

Applets

Skip menu "Applets"
  • 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