KDEUI
#include <kpagedialog.h>
Public Types | |
enum | FaceType { Auto = KPageView::Auto, Plain = KPageView::Plain, List = KPageView::List, Tree = KPageView::Tree, Tabbed = KPageView::Tabbed } |
Public Types inherited from KDialog | |
enum | ButtonCode { None = 0x00000000, Help = 0x00000001, Default = 0x00000002, Ok = 0x00000004, Apply = 0x00000008, Try = 0x00000010, Cancel = 0x00000020, Close = 0x00000040, No = 0x00000080, Yes = 0x00000100, Reset = 0x00000200, Details = 0x00000400, User1 = 0x00001000, User2 = 0x00002000, User3 = 0x00004000, NoDefault = 0x00008000 } |
enum | ButtonPopupMode { InstantPopup = 0, DelayedPopup = 1 } |
enum | CaptionFlag { NoCaptionFlags = 0, AppNameCaption = 1, ModifiedCaption = 2, HIGCompliantCaption = AppNameCaption } |
Signals | |
void | currentPageChanged (KPageWidgetItem *current, KPageWidgetItem *before) |
void | pageRemoved (KPageWidgetItem *page) |
Signals inherited from KDialog | |
void | aboutToShowDetails () |
void | applyClicked () |
void | buttonClicked (KDialog::ButtonCode button) |
void | cancelClicked () |
void | closeClicked () |
void | defaultClicked () |
void | finished () |
void | helpClicked () |
void | hidden () |
void | layoutHintChanged () |
void | noClicked () |
void | okClicked () |
void | resetClicked () |
void | tryClicked () |
void | user1Clicked () |
void | user2Clicked () |
void | user3Clicked () |
void | yesClicked () |
Protected Member Functions | |
KPageDialog (KPageWidget *widget, QWidget *parent, Qt::WindowFlags flags=0) | |
KPageDialog (KPageDialogPrivate &dd, KPageWidget *widget, QWidget *parent, Qt::WindowFlags flags=0) | |
KPageWidget * | pageWidget () |
const KPageWidget * | pageWidget () const |
void | setPageWidget (KPageWidget *widget) |
Protected Member Functions inherited from KDialog | |
KDialog (KDialogPrivate &dd, QWidget *parent, Qt::WindowFlags flags=0) | |
virtual void | closeEvent (QCloseEvent *e) |
virtual void | hideEvent (QHideEvent *) |
virtual void | keyPressEvent (QKeyEvent *) |
Additional Inherited Members | |
Public Slots inherited from KDialog | |
void | delayedDestruct () |
void | enableButton (ButtonCode id, bool state) |
void | enableButtonApply (bool state) |
void | enableButtonCancel (bool state) |
void | enableButtonOk (bool state) |
void | enableLinkedHelp (bool state) |
bool | isDetailsWidgetVisible () const |
virtual void | setCaption (const QString &caption) |
virtual void | setCaption (const QString &caption, bool modified) |
void | setDetailsWidget (QWidget *detailsWidget) |
void | setDetailsWidgetVisible (bool visible) |
void | setHelp (const QString &anchor, const QString &appname=QString()) |
void | setHelpLinkText (const QString &text) |
virtual void | setPlainCaption (const QString &caption) |
Static Public Member Functions inherited from KDialog | |
static bool | avoidArea (QWidget *widget, const QRect &area, int screen=-1) |
static void | centerOnScreen (QWidget *widget, int screen=-1) |
static int | groupSpacingHint () |
static QString | makeStandardCaption (const QString &userCaption, QWidget *window=0, CaptionFlags flags=HIGCompliantCaption) |
static int | marginHint () |
static void | resizeLayout (QWidget *widget, int margin, int spacing) |
static void | resizeLayout (QLayout *lay, int margin, int spacing) |
static void | setAllowEmbeddingInGraphicsView (bool allowEmbedding) |
static int | spacingHint () |
Protected Slots inherited from KDialog | |
virtual void | slotButtonClicked (int button) |
void | updateGeometry () |
Protected Attributes inherited from KDialog | |
KDialogPrivate *const | d_ptr |
Detailed Description
A dialog base class which can handle multiple pages.
This class provides a dialog base class which handles multiple pages and allows the user to switch between these pages in different ways.
Currently, Auto
, Plain
, List
, Tree
and Tabbed
face types are available (
- See also
- KPageView).
Example:
Definition at line 65 of file kpagedialog.h.
Member Enumeration Documentation
Auto
- A dialog with a face based on the structure of the available pages. If only a single page is added, the dialog behaves like inPlain
mode, with multiple pages without sub pages it behaves like inList
mode and like inTree
mode otherwise.Plain
- A normal dialog.List
- A dialog with an icon list on the left side and a representation of the contents on the right side.Tree
- A dialog with a tree on the left side and a representation of the contents on the right side.Tabbed
- A dialog with a tab bar above the representation of the contents.
Enumerator | |
---|---|
Auto | |
Plain | |
List | |
Tree | |
Tabbed |
Definition at line 87 of file kpagedialog.h.
Constructor & Destructor Documentation
|
explicit |
Creates a new page dialog.
Definition at line 31 of file kpagedialog.cpp.
KPageDialog::~KPageDialog | ( | ) |
Destroys the page dialog.
Definition at line 64 of file kpagedialog.cpp.
|
protected |
This constructor can be used by subclasses to provide a custom page widget.
- Parameters
-
widget The KPageWidget object will be reparented to this object, so you can create it without parent and you are not allowed to delete it.
Definition at line 40 of file kpagedialog.cpp.
|
protected |
Definition at line 51 of file kpagedialog.cpp.
Member Function Documentation
KPageWidgetItem * KPageDialog::addPage | ( | QWidget * | widget, |
const QString & | name | ||
) |
Adds a new top level page to the dialog.
- Parameters
-
widget The widget of the page. name The name which is displayed in the navigation view.
- Returns
- The associated
- See also
- KPageWidgetItem.
Definition at line 73 of file kpagedialog.cpp.
void KPageDialog::addPage | ( | KPageWidgetItem * | item | ) |
Adds a new top level page to the dialog.
- Parameters
-
item The
- See also
- KPageWidgetItem which describes the page.
Definition at line 78 of file kpagedialog.cpp.
KPageWidgetItem * KPageDialog::addSubPage | ( | KPageWidgetItem * | parent, |
QWidget * | widget, | ||
const QString & | name | ||
) |
Inserts a new sub page in the dialog.
- Parameters
-
parent The new page will be insert as child of this
- See also
- KPageWidgetItem.
- Parameters
-
widget The widget of the page. name The name which is displayed in the navigation view.
- Returns
- The associated
- See also
- KPageWidgetItem.
Definition at line 93 of file kpagedialog.cpp.
void KPageDialog::addSubPage | ( | KPageWidgetItem * | parent, |
KPageWidgetItem * | item | ||
) |
Inserts a new sub page in the dialog.
- Parameters
-
parent The new page will be insert as child of this
- See also
- KPageWidgetItem.
- Parameters
-
item The
- See also
- KPageWidgetItem which describes the page.
Definition at line 98 of file kpagedialog.cpp.
KPageWidgetItem * KPageDialog::currentPage | ( | ) | const |
Returns the.
- See also
- KPageWidgetItem for the current page or 0 if there is no current page.
Definition at line 113 of file kpagedialog.cpp.
|
signal |
This signal is emitted whenever the current page has changed.
- Parameters
-
item The new current page or 0 if no current page is available.
KPageWidgetItem * KPageDialog::insertPage | ( | KPageWidgetItem * | before, |
QWidget * | widget, | ||
const QString & | name | ||
) |
Inserts a new page in the dialog.
- Parameters
-
before The new page will be insert before this
- See also
- KPageWidgetItem on the same level in hierarchy.
- Parameters
-
widget The widget of the page. name The name which is displayed in the navigation view.
- Returns
- The associated
- See also
- KPageWidgetItem.
Definition at line 83 of file kpagedialog.cpp.
void KPageDialog::insertPage | ( | KPageWidgetItem * | before, |
KPageWidgetItem * | item | ||
) |
Inserts a new page in the dialog.
- Parameters
-
before The new page will be insert before this
- See also
- KPageWidgetItem on the same level in hierarchy.
- Parameters
-
item The
- See also
- KPageWidgetItem which describes the page.
Definition at line 88 of file kpagedialog.cpp.
|
signal |
This signal is emitted whenever a page has been removed.
- Parameters
-
page The page which has been removed
|
protected |
Returns the page widget of the dialog or 0 if no page widget is set.
Definition at line 118 of file kpagedialog.cpp.
|
protected |
Returns the page widget of the dialog or 0 if no page widget is set.
Definition at line 130 of file kpagedialog.cpp.
void KPageDialog::removePage | ( | KPageWidgetItem * | item | ) |
Removes the page associated with the given.
- See also
- KPageWidgetItem.
Definition at line 103 of file kpagedialog.cpp.
void KPageDialog::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 108 of file kpagedialog.cpp.
void KPageDialog::setFaceType | ( | FaceType | faceType | ) |
Sets the face type of the dialog.
Definition at line 68 of file kpagedialog.cpp.
|
protected |
Set the page widget of the dialog.
- Note
- the previous pageWidget will be deleted.
- Parameters
-
widget The KPageWidget object will be reparented to this object, so you can create it without parent and you are not allowed to delete it.
Definition at line 123 of file kpagedialog.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:17 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.