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

KDEUI

  • kdeui
  • paged
kpagedialog.h
Go to the documentation of this file.
1/*
2 * This file is part of the KDE Libraries
3 * Copyright (C) 1999-2001 Mirko Boehm (mirko@kde.org) and
4 * Espen Sand (espen@kde.org)
5 * Holger Freyther <freyther@kde.org>
6 * 2005-2006 Olivier Goffart <ogoffart at kde.org>
7 * 2006 Tobias Koenig <tokoe@kde.org>
8 *
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public
11 * License as published by the Free Software Foundation; either
12 * version 2 of the License, or (at your option) any later version.
13 *
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Library General Public License for more details.
18 *
19 * You should have received a copy of the GNU Library General Public License
20 * along with this library; see the file COPYING.LIB. If not, write to
21 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
22 * Boston, MA 02110-1301, USA.
23 *
24 */
25#ifndef KPAGEDIALOG_H
26#define KPAGEDIALOG_H
27
28#include <kdialog.h>
29#include <kpagewidget.h>
30
31class KPageDialogPrivate;
32
65class KDEUI_EXPORT KPageDialog : public KDialog
66{
67 Q_OBJECT
68 Q_DECLARE_PRIVATE(KPageDialog)
69
70 public:
71
87 enum FaceType
88 {
89 Auto = KPageView::Auto,
90 Plain = KPageView::Plain,
91 List = KPageView::List,
92 Tree = KPageView::Tree,
93 Tabbed = KPageView::Tabbed
94 };
95
96 public:
100 explicit KPageDialog( QWidget *parent = 0, Qt::WindowFlags flags = 0 );
101
105 ~KPageDialog();
106
110 void setFaceType( FaceType faceType );
111
120 KPageWidgetItem* addPage( QWidget *widget, const QString &name );
121
127 void addPage( KPageWidgetItem *item );
128
139 KPageWidgetItem* insertPage( KPageWidgetItem *before, QWidget *widget, const QString &name );
140
149 void insertPage( KPageWidgetItem *before, KPageWidgetItem *item );
150
160 KPageWidgetItem* addSubPage( KPageWidgetItem *parent, QWidget *widget, const QString &name );
161
169 void addSubPage( KPageWidgetItem *parent, KPageWidgetItem *item );
170
174 void removePage( KPageWidgetItem *item );
175
180 void setCurrentPage( KPageWidgetItem *item );
181
186 KPageWidgetItem* currentPage() const;
187
188 Q_SIGNALS:
194 void currentPageChanged( KPageWidgetItem *current, KPageWidgetItem *before );
195
201 void pageRemoved( KPageWidgetItem *page );
202
203 protected:
210 KPageDialog(KPageWidget *widget, QWidget *parent, Qt::WindowFlags flags = 0);
211 KPageDialog(KPageDialogPrivate &dd, KPageWidget *widget, QWidget *parent, Qt::WindowFlags flags = 0);
212
216 KPageWidget *pageWidget();
217
221 const KPageWidget *pageWidget() const;
222
231 void setPageWidget(KPageWidget *widget);
232
233};
234
235#endif
KDialog
A dialog base class with standard buttons and predefined layouts.
Definition: kdialog.h:129
KPageDialog
A dialog base class which can handle multiple pages.
Definition: kpagedialog.h:66
KPageDialog::FaceType
FaceType
Definition: kpagedialog.h:88
KPageDialog::currentPageChanged
void currentPageChanged(KPageWidgetItem *current, KPageWidgetItem *before)
This signal is emitted whenever the current page has changed.
KPageDialog::pageRemoved
void pageRemoved(KPageWidgetItem *page)
This signal is emitted whenever a page has been removed.
KPageView::List
@ List
Definition: kpageview.h:89
KPageView::Auto
@ Auto
Definition: kpageview.h:87
KPageView::Tree
@ Tree
Definition: kpageview.h:90
KPageView::Plain
@ Plain
Definition: kpageview.h:88
KPageView::Tabbed
@ Tabbed
Definition: kpageview.h:91
KPageWidgetItem
KPageWidgetItem is used by KPageWidget and represents a page.
Definition: kpagewidgetmodel.h:51
KPageWidget
Page widget with many layouts (faces).
Definition: kpagewidget.h:37
QWidget
kdialog.h
kpagewidget.h
Plain
Plain
List
List
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 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.14.38 API Reference

Skip menu "kdelibs-4.14.38 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