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

KDEUI

  • sources
  • kde-4.12
  • kdelibs
  • 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 
31 class KPageDialogPrivate;
32 
65 class 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.h
KPageDialog
A dialog base class which can handle multiple pages.
Definition: kpagedialog.h:65
KPageDialog::FaceType
FaceType
Definition: kpagedialog.h:87
KPageView::Tree
Definition: kpageview.h:90
QWidget
KStandardAction::name
const char * name(StandardAction id)
This will return the internal name of a given standard action.
Definition: kstandardaction.cpp:223
KDialog
A dialog base class with standard buttons and predefined layouts.
Definition: kdialog.h:128
QString
KPageView::List
Definition: kpageview.h:89
kpagewidget.h
KPageView::Plain
Definition: kpageview.h:88
KPageWidget
Page widget with many layouts (faces).
Definition: kpagewidget.h:36
KPageView::Tabbed
Definition: kpageview.h:91
KPageWidgetItem
KPageWidgetItem is used by KPageWidget and represents a page.
Definition: kpagewidgetmodel.h:50
Plain
List
KPageView::Auto
Definition: kpageview.h:87
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:15 by doxygen 1.8.7 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 API Reference

Skip menu "kdelibs 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
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

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