kexi
KexiStartupDialog Class Reference
#include <KexiStartupDialog.h>
Detailed Description
This class is used to show the template/open-existing/open-recent tabbed dialog on Kexi startup. If only one page is shown, tab is no displayed, so dialog becomes a normal "plain" type dialog.
Definition at line 66 of file KexiStartupDialog.h.
Public Types | |
enum | Result { CancelResult = 0, TemplateResult = 1, OpenExistingResult = 2, OpenRecentResult = 3 } |
enum | DialogType { Templates = 1, OpenExisting = 2, OpenRecent = 4, Everything = (1+2+4) } |
enum | DialogOptions { CheckBoxDoNotShowAgain = 1 } |
Public Member Functions | |
KexiStartupDialog (int dialogType, int dialogOptions, KexiDBConnectionSet &connSet, KexiProjectSet &recentProjects, QWidget *parent=0, const char *name=0) | |
~KexiStartupDialog () | |
int | result () const |
QString | selectedTemplateKey () const |
KexiProjectData * | selectedProjectData () const |
QString | selectedExistingFile () const |
KexiDB::ConnectionData * | selectedExistingConnection () const |
virtual void | show () |
Static Public Member Functions | |
static bool | shouldBeShown () |
Protected Slots | |
virtual void | done (int r) |
virtual void | reject () |
virtual void | slotOk () |
void | templatesPageShown (QWidget *page) |
void | templateItemExecuted (QIconViewItem *item) |
void | templateItemSelected (QIconViewItem *item) |
void | tabShown (QWidget *w) |
void | recentProjectItemExecuted (KexiProjectData *data) |
void | existingFileSelected (const QString &f) |
void | showSimpleConnForOpenExisting () |
void | showAdvancedConnForOpenExisting () |
void | connectionItemForOpenExistingExecuted (ConnectionDataLVItem *item) |
void | connectionItemForOpenExistingHighlighted (ConnectionDataLVItem *item) |
Protected Member Functions | |
virtual bool | eventFilter (QObject *o, QEvent *e) |
void | updateDialogOKButton (QWidget *w) |
int | activePageIndex () const |
Member Enumeration Documentation
|
Options for a dialog (any or'ed value or 0 is ok)
Definition at line 93 of file KexiStartupDialog.h. |
|
To configure the dialog you have to use this enum (any !=0 or'ed value is ok)
Definition at line 87 of file KexiStartupDialog.h. |
|
The Dialog returns one of these values depending on the input of the user. CancelResult The user pressed 'Cancel' TemplateResult The user selected a template OpenExistingResult The user has chosen an existing connection or db file OpenRecentResult The user selected one of recently used databases Definition at line 78 of file KexiStartupDialog.h. |
Constructor & Destructor Documentation
|
Creates a dialog.
Definition at line 206 of file KexiStartupDialog.cpp. |
Member Function Documentation
|
internal reimplementation
Definition at line 694 of file KexiStartupDialog.cpp. |
|
used for accepting templates dialog with just return key press
Definition at line 677 of file KexiStartupDialog.cpp. |
|
helper
Definition at line 668 of file KexiStartupDialog.cpp. |
|
Executes dialog.
Definition at line 280 of file KexiStartupDialog.cpp. |
|
Definition at line 635 of file KexiStartupDialog.cpp. |
|
Definition at line 628 of file KexiStartupDialog.cpp. |
|
Definition at line 660 of file KexiStartupDialog.cpp. |
|
Definition at line 558 of file KexiStartupDialog.cpp. |
|
Definition at line 263 of file KexiStartupDialog.cpp. |
|
Reimplemented for internal reasons Definition at line 269 of file KexiStartupDialog.cpp. |
|
Any tab has been selected.
Definition at line 509 of file KexiStartupDialog.cpp. |
|
Any icon view item has been executed (dblclicked).
Definition at line 466 of file KexiStartupDialog.cpp. |
|
Any icon view item has been selected.
Definition at line 461 of file KexiStartupDialog.cpp. |
|
slot activated when one of page in templates window is shown
Definition at line 423 of file KexiStartupDialog.cpp. |
|
helper: updates a state of dialog's OK button
Definition at line 520 of file KexiStartupDialog.cpp. |
The documentation for this class was generated from the following files: