#include <KexiStartupFileDialog.h>
|
| enum | Mode { Opening = 1
, SavingFileBasedDB = 2
, SavingServerBasedDB = 4
, Custom = 256
} |
| |
|
|
void | accepted () |
| |
|
void | rejected () |
| |
Widget for opening/saving files supported by Kexi.
Definition at line 33 of file KexiStartupFileDialog.h.
◆ Mode
Dialog mode:
- Opening opens existing database (or shortcut)
- SavingFileBasedDB saves file-based database file
- SavingServerBasedDB saves server-based (shortcut) file
- CustomOpening can be used for opening other files, like CSV
Definition at line 45 of file KexiStartupFileDialog.h.
◆ KexiStartupFileDialog()
| KexiStartupFileDialog::KexiStartupFileDialog |
( |
const TQString & |
startDirOrVariable, |
|
|
int |
mode, |
|
|
TQWidget * |
parent = 0, |
|
|
const char * |
name = 0 |
|
) |
| |
◆ ~KexiStartupFileDialog()
| KexiStartupFileDialog::~KexiStartupFileDialog |
( |
| ) |
|
|
virtual |
◆ accept
| void KexiStartupFileDialog::accept |
( |
| ) |
|
|
virtualslot |
◆ additionalFilters()
| TQStringList KexiStartupFileDialog::additionalFilters |
( |
| ) |
const |
◆ askForOverwriting()
| bool KexiStartupFileDialog::askForOverwriting |
( |
const TQString & |
filePath, |
|
|
TQWidget * |
parent = 0 |
|
) |
| |
|
static |
Helper. Displays "The file %1 already exists. Do you want to overwrite it?" yes/no message box. parent is used as a parent of the KMessageBox. - Returns
- true if filePath file does not exists or user has agreed on overwriting, false in user do not want to overwrite.
Definition at line 326 of file KexiStartupFileDialog.cpp.
◆ checkFileName()
| bool KexiStartupFileDialog::checkFileName |
( |
| ) |
|
- Returns
- true if the current URL meets requies constraints (i.e. exists or doesn't exist); shows appropriate message box if needed.
Definition at line 284 of file KexiStartupFileDialog.cpp.
◆ currentFileName()
| TQString KexiStartupFileDialog::currentFileName |
( |
| ) |
|
◆ eventFilter()
| bool KexiStartupFileDialog::eventFilter |
( |
TQObject * |
watched, |
|
|
TQEvent * |
e |
|
) |
| |
|
virtual |
◆ excludedFilters()
| TQStringList KexiStartupFileDialog::excludedFilters |
( |
| ) |
const |
◆ reject
| void KexiStartupFileDialog::reject |
( |
| ) |
|
|
protectedvirtualslot |
◆ setAdditionalFilters()
| void KexiStartupFileDialog::setAdditionalFilters |
( |
const TQStringList & |
mimeTypes | ) |
|
◆ setConfirmOverwrites()
| void KexiStartupFileDialog::setConfirmOverwrites |
( |
bool |
set | ) |
|
|
inline |
If true, user will be asked to accept overwriting existing file. This is true by default.
Definition at line 99 of file KexiStartupFileDialog.h.
◆ setDefaultExtension()
| void KexiStartupFileDialog::setDefaultExtension |
( |
const TQString & |
ext | ) |
|
|
inline |
Sets default extension which will be added after accepting if user didn't provided one.
This method is usable when there is more than one filter so there is no rule what extension should be selected (by default first one is selected).
Definition at line 89 of file KexiStartupFileDialog.h.
◆ setExcludedFilters()
| void KexiStartupFileDialog::setExcludedFilters |
( |
const TQStringList & |
mimeTypes | ) |
|
◆ setFocus
| void KexiStartupFileDialog::setFocus |
( |
| ) |
|
|
virtualslot |
◆ setLocationText()
| void KexiStartupFileDialog::setLocationText |
( |
const TQString & |
fn | ) |
|
◆ setMode()
| void KexiStartupFileDialog::setMode |
( |
int |
mode | ) |
|
◆ show
| void KexiStartupFileDialog::show |
( |
| ) |
|
|
virtualslot |
The documentation for this class was generated from the following files:
|