• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.10.4 API Reference
  • KDE Home
  • Contact Us
 

KDEUI

Signals | Public Member Functions | Protected Member Functions
KPageWidget Class Reference

#include <kpagewidget.h>

Inheritance diagram for KPageWidget:
KPageView QWidget

List of all members.

Signals

void currentPageChanged (KPageWidgetItem *current, KPageWidgetItem *before)
void pageRemoved (KPageWidgetItem *page)
void pageToggled (KPageWidgetItem *page, bool checked)
- Signals inherited from KPageView
void currentPageChanged (const QModelIndex &current, const QModelIndex &previous)

Public Member Functions

 KPageWidget (QWidget *parent=0)
 ~KPageWidget ()
KPageWidgetItem * addPage (QWidget *widget, const QString &name)
void addPage (KPageWidgetItem *item)
KPageWidgetItem * addSubPage (KPageWidgetItem *parent, QWidget *widget, const QString &name)
void addSubPage (KPageWidgetItem *parent, KPageWidgetItem *item)
KPageWidgetItem * currentPage () const
KPageWidgetItem * insertPage (KPageWidgetItem *before, QWidget *widget, const QString &name)
void insertPage (KPageWidgetItem *before, KPageWidgetItem *item)
void removePage (KPageWidgetItem *item)
void setCurrentPage (KPageWidgetItem *item)
- Public Member Functions inherited from KPageView
 KPageView (QWidget *parent=0)
virtual ~KPageView ()
FaceType faceType () const
QAbstractItemDelegate * itemDelegate () const
QAbstractItemModel * model () const
void setCurrentPage (const QModelIndex &index)
void setDefaultWidget (QWidget *widget)
void setFaceType (FaceType faceType)
void setItemDelegate (QAbstractItemDelegate *delegate)
void setModel (QAbstractItemModel *model)

Protected Member Functions

 KPageWidget (KPageWidgetPrivate &dd, QWidget *parent)
- Protected Member Functions inherited from KPageView
 KPageView (KPageViewPrivate &dd, QWidget *parent)
virtual QAbstractItemView * createView ()
virtual bool showPageHeader () const
virtual Qt::Alignment viewPosition () const

Additional Inherited Members

- Public Types inherited from KPageView
enum  FaceType {
  Auto, Plain, List, Tree,
  Tabbed
}
- Protected Attributes inherited from KPageView
KPageViewPrivate *const d_ptr
- Properties inherited from KPageView
FaceType faceType

Detailed Description

Page widget with many layouts (faces).

See also:
KPageView with hierarchical page model.
Author:
Tobias Koenig (tokoe.nosp@m.@kde.nosp@m..org)

Definition at line 36 of file kpagewidget.h.


Constructor & Destructor Documentation

KPageWidget::KPageWidget ( QWidget *  parent = 0)
explicit

Creates a new page widget.

Parameters:
parentThe parent widget.

Definition at line 63 of file kpagewidget.cpp.

KPageWidget::~KPageWidget ( )

Destroys the page widget.

Definition at line 76 of file kpagewidget.cpp.

KPageWidget::KPageWidget ( KPageWidgetPrivate &  dd,
QWidget *  parent 
)
protected

Definition at line 46 of file kpagewidget.cpp.


Member Function Documentation

KPageWidgetItem * KPageWidget::addPage ( QWidget *  widget,
const QString &  name 
)

Adds a new top level page to the widget.

Parameters:
widgetThe widget of the page.
nameThe name which is displayed in the navigation view.
Returns:
The associated
See also:
KPageWidgetItem.

Definition at line 80 of file kpagewidget.cpp.

void KPageWidget::addPage ( KPageWidgetItem *  item)

Adds a new top level page to the widget.

Parameters:
itemThe
See also:
KPageWidgetItem which describes the page.

Definition at line 85 of file kpagewidget.cpp.

KPageWidgetItem * KPageWidget::addSubPage ( KPageWidgetItem *  parent,
QWidget *  widget,
const QString &  name 
)

Inserts a new sub page in the widget.

Parameters:
parentThe new page will be insert as child of this
See also:
KPageWidgetItem.
Parameters:
widgetThe widget of the page.
nameThe name which is displayed in the navigation view.
Returns:
The associated
See also:
KPageWidgetItem.

Definition at line 100 of file kpagewidget.cpp.

void KPageWidget::addSubPage ( KPageWidgetItem *  parent,
KPageWidgetItem *  item 
)

Inserts a new sub page in the widget.

Parameters:
parentThe new page will be insert as child of this
See also:
KPageWidgetItem.
Parameters:
itemThe
See also:
KPageWidgetItem which describes the page.

Definition at line 105 of file kpagewidget.cpp.

KPageWidgetItem * KPageWidget::currentPage ( ) const

Returns the.

See also:
KPageWidgetItem for the current page or 0 if there is no current page.

Reimplemented from KPageView.

Definition at line 125 of file kpagewidget.cpp.

void KPageWidget::currentPageChanged ( KPageWidgetItem *  current,
KPageWidgetItem *  before 
)
signal

This signal is emitted whenever the current page has changed.

Parameters:
itemThe new current page or 0 if no current page is available.
KPageWidgetItem * KPageWidget::insertPage ( KPageWidgetItem *  before,
QWidget *  widget,
const QString &  name 
)

Inserts a new page in the widget.

Parameters:
beforeThe new page will be insert before this
See also:
KPageWidgetItem on the same level in hierarchy.
Parameters:
widgetThe widget of the page.
nameThe name which is displayed in the navigation view.
Returns:
The associated
See also:
KPageWidgetItem.

Definition at line 90 of file kpagewidget.cpp.

void KPageWidget::insertPage ( KPageWidgetItem *  before,
KPageWidgetItem *  item 
)

Inserts a new page in the widget.

Parameters:
beforeThe new page will be insert before this
See also:
KPageWidgetItem on the same level in hierarchy.
Parameters:
itemThe
See also:
KPageWidgetItem which describes the page.

Definition at line 95 of file kpagewidget.cpp.

void KPageWidget::pageRemoved ( KPageWidgetItem *  page)
signal

This signal is emitted when a page is removed.

Parameters:
pageThe page which is removed
void KPageWidget::pageToggled ( KPageWidgetItem *  page,
bool  checked 
)
signal

This signal is emitted whenever a checkable page changes its state.

Parameters:
checkedis true when the
pageis checked, or false if the
pageis unchecked.
void KPageWidget::removePage ( KPageWidgetItem *  item)

Removes the page associated with the given.

See also:
KPageWidgetItem.

Definition at line 110 of file kpagewidget.cpp.

void KPageWidget::setCurrentPage ( KPageWidgetItem *  item)

Sets the page which is associated with the given.

See also:
KPageWidgetItem to be the current page and emits the currentPageChanged() signal.

Definition at line 116 of file kpagewidget.cpp.


The documentation for this class was generated from the following files:
  • kpagewidget.h
  • kpagewidget.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat Jun 1 2013 12:07:23 by doxygen 1.8.1.1 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDEUI

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

kdelibs-4.10.4 API Reference

Skip menu "kdelibs-4.10.4 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
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