Kross
Kross::FormAssistant Class Reference
#include <form.h>
Inheritance diagram for Kross::FormAssistant:

Public Types | |
| enum | AssistantButtonCode { None = 0x00000000, Help = 0x00000001, Default = 0x00000002, Cancel = 0x00000020, Finish = 0x00001000, Next = 0x00002000, Back = 0x00004000, NoDefault = 0x00008000 } |
Public Types inherited from KAssistantDialog | |
| enum | ButtonCode |
| enum | ButtonPopupMode |
| enum | CaptionFlag |
| enum | FaceType |
Public Types inherited from KPageDialog | |
Public Types inherited from KDialog | |
Signals | |
| void | backClicked () |
| void | nextClicked () |
Signals inherited from KAssistantDialog | |
| void | aboutToShowDetails () |
| void | applyClicked () |
| void | buttonClicked (KDialog::ButtonCode button) |
| void | cancelClicked () |
| void | closeClicked () |
| void | currentPageChanged (KPageWidgetItem *current, KPageWidgetItem *before) |
| void | defaultClicked () |
| void | finished () |
| void | helpClicked () |
| void | hidden () |
| void | layoutHintChanged () |
| void | noClicked () |
| void | okClicked () |
| void | pageRemoved (KPageWidgetItem *page) |
| void | resetClicked () |
| void | tryClicked () |
| void | user1Clicked () |
| void | user2Clicked () |
| void | user3Clicked () |
| void | yesClicked () |
Signals inherited from KPageDialog | |
Signals inherited from KDialog | |
Additional Inherited Members | |
Public Attributes inherited from KAssistantDialog | |
| Apply | |
| AppNameCaption | |
| Auto | |
| Close | |
| DelayedPopup | |
| Details | |
| HIGCompliantCaption | |
| InstantPopup | |
| List | |
| ModifiedCaption | |
| No | |
| NoCaptionFlags | |
| Ok | |
| Plain | |
| Reset | |
| Tabbed | |
| Tree | |
| Try | |
| User1 | |
| User2 | |
| User3 | |
| Yes | |
Public Attributes inherited from KPageDialog | |
Public Attributes inherited from KDialog | |
Protected Member Functions inherited from KAssistantDialog | |
| KAssistantDialog (KPageWidget *widget, QWidget *parent=0, Qt::WFlags flags=0) | |
| virtual void | closeEvent (QCloseEvent *e) |
| virtual void | hideEvent (QHideEvent *) |
| KDialog (KDialogPrivate &dd, QWidget *parent, Qt::WFlags flags=0) | |
| virtual void | keyPressEvent (QKeyEvent *) |
| KPageDialog (KPageDialogPrivate &dd, KPageWidget *widget, QWidget *parent, Qt::WFlags flags=0) | |
| KPageDialog (KPageWidget *widget, QWidget *parent, Qt::WFlags flags=0) | |
| KPageWidget * | pageWidget () |
| const KPageWidget * | pageWidget () const |
| void | setPageWidget (KPageWidget *widget) |
| virtual void | showEvent (QShowEvent *event) |
Detailed Description
The FormAssistant class provides access to KAssistantDialog objects as top-level containers.
Example (in Python) :
import Kross
import sys,os
ourPath=(filter(lambda p: os.path.exists(p+'/mywidget.ui'),sys.path)+[''])[0]
forms = Kross.module("forms")
myassistant = forms.createAssistant("MyAssistant")
myassistant.showHelpButton(0)
mypage = myassistant.addPage("name","header")
mywidget = forms.createWidgetFromUIFile(mypage, ourPath+'/mywidget.ui')
mypage2 = myassistant.addPage("name2","header2")
mywidget2 = forms.createWidgetFromUIFile(mypage2, ourPath+'/mywidget.ui')
mypage3 = myassistant.addPage("name3","header3")
mywidget3 = forms.createWidgetFromUIFile(mypage3, ourPath+'/mywidget.ui')
mywidget["lineEdit"].setText("some string")
def nextClicked():
myassistant.setAppropriate("name2",0)
def finished():
...
myassistant.deleteLater() #remember to cleanup
myassistant.connect("nextClicked()",nextClicked)
myassistant.connect("finished()",finished)
myassistant.show()
Member Enumeration Documentation
Constructor & Destructor Documentation
Member Function Documentation
|
slot |
Add and return a new page.
- Parameters:
-
name The name the page has. This name is for example returned at the currentPage() method and should be unique. The name is also used to display a short title for the page. header The longer header title text used for display purposes. iconname The name of the icon which the page have. This could be for example "about_kde", "document-open", "configure" or any other iconname known by KDE.
- Returns:
- the new QWidget page instance.
|
virtualslot |
|
signal |
|
slot |
- Returns:
- the name of the currently selected page. Use the page() method to get the matching page QWidget instance.
Reimplemented from KAssistantDialog.
|
inlineslot |
Shows the dialog as a modal dialog, blocking until the user closes it and returns the execution result.
- Returns:
- >=1 if the dialog was accepted (e.g. "Finished" pressed) else the user rejected the dialog (e.g. by pressing "Cancel" or just closing the dialog by pressing the escape-key).
|
inlineslot |
- See also:
- KAssistantDialog::isAppropriate()
- See also:
- KAssistantDialog::isValid()
|
virtualslot |
|
signal |
use it to setAppropriate()
|
slot |
- See also:
- KAssistantDialog::setAppropriate()
- See also:
- KAssistantDialog::setValid()
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Fri Dec 7 2012 16:07:59 by doxygen 1.8.1 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2012 The KDE developers.
Generated on Fri Dec 7 2012 16:07:59 by doxygen 1.8.1 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
Public Types inherited from