KoTemplateChooseDia Class Reference
This class is used to show the template dialog on startup.The template choose dialog. More...
#include <koTemplateChooseDia.h>
Public Types | |
| enum | ReturnType { Cancel, Template, File, Empty } |
| enum | DialogType { Everything, OnlyTemplates, NoTemplates } |
Public Member Functions | |
| QString | getTemplate () const |
| QString | getFullTemplate () const |
| ReturnType | getReturnType () const |
| DialogType | getDialogType () const |
Static Public Member Functions | |
| static ReturnType | choose (KInstance *instance, QString &file, const DialogType &dialogType, const QCString &templateType, QWidget *parent) |
Protected Slots | |
| virtual void | slotOk () |
Detailed Description
This class is used to show the template dialog on startup.The template choose dialog.Unless you need something special, you should use the static method choose().
- Author:
- Reginald Stadlbauer <reggie@kde.org>
Werner Trobin <trobin@kde.org>
Definition at line 131 of file koTemplateChooseDia.h.
Member Enumeration Documentation
|
|
The Dialog returns one of these values depending on the input of the user. Cancel = The user pressed 'Cancel' Template = The user selected a template File = The user has chosen a file Empty = The user selected "Empty document" Definition at line 144 of file koTemplateChooseDia.h. |
|
|
To configure the dialog you have to use this enum. Everything = Show templates and the rest of the dialog OnlyTemplates = Show only the templates NoTemplates = Just guess :) Definition at line 151 of file koTemplateChooseDia.h. |
Member Function Documentation
|
||||||||||||||||||||||||
|
This is the static method you'll normally use to show the dialog.
Definition at line 230 of file koTemplateChooseDia.cc. References KoDocument::readExtraNativeMimeTypes(), and KoDocument::readNativeFormatMimeType(). |
|
|
Method to get the current template.
Definition at line 283 of file koTemplateChooseDia.cc. |
|
|
Method to get the "full" template (path+template).
Definition at line 287 of file koTemplateChooseDia.cc. |
|
|
The ReturnType (call this one after exec()).
Definition at line 291 of file koTemplateChooseDia.cc. |
|
|
The dialogType - normally you won't need this one.
Definition at line 295 of file koTemplateChooseDia.cc. |
|
|
Activated when the Ok button has been clicked.
Definition at line 635 of file koTemplateChooseDia.cc. |
The documentation for this class was generated from the following files:
