kexi

KexiCSVExportWizard Class Reference

#include <kexicsvexportwizard.h>

Inherits KWizard.

List of all members.


Detailed Description

Kexi CSV export wizard Supports exporting to a file and to a clipboard.

Definition at line 42 of file kexicsvexportwizard.h.


Public Member Functions

 KexiCSVExportWizard (const KexiCSVExport::Options &options, KexiMainWindow *mainWin, QWidget *parent=0, const char *name=0)
bool cancelled () const
virtual void showPage (QWidget *page)

Protected Slots

virtual void next ()
virtual void done (int result)
void slotShowOptionsButtonClicked ()
void slotDefaultsButtonClicked ()

Protected Member Functions

virtual void layOutButtonRow (QHBoxLayout *layout)
QString defaultDelimiter () const
QString defaultTextQuote () const
bool readBoolEntry (const char *key, bool defaultValue)
QString readEntry (const char *key, const QString &defaultValue=QString::null)
void writeEntry (const char *key, bool value)
void writeEntry (const char *key, const QString &value)
void deleteEntry (const char *key)

Protected Attributes

KexiCSVExport::Options m_options
KexiMainWindowm_mainWin
KexiStartupFileDialogm_fileSavePage
QWidget * m_exportOptionsPage
KPushButton * m_showOptionsButton
KPushButton * m_defaultsBtn
QGroupBox * m_exportOptionsSection
KexiCSVInfoLabelm_infoLblFrom
KexiCSVInfoLabelm_infoLblTo
KexiCSVDelimiterWidgetm_delimiterWidget
KexiCSVTextQuoteComboBoxm_textQuote
KexiCharacterEncodingComboBoxm_characterEncodingCombo
QCheckBox * m_addColumnNamesCheckBox
QCheckBox * m_alwaysUseCheckBox
KexiDB::TableOrQuerySchemam_tableOrQuery
int m_rowCount
bool m_rowCountDetermined: 1
bool m_cancelled: 1

Constructor & Destructor Documentation

KexiCSVExportWizard::KexiCSVExportWizard ( const KexiCSVExport::Options options,
KexiMainWindow mainWin,
QWidget *  parent = 0,
const char *  name = 0 
)

lineEditOnBottom

Todo:
1.1: for copying use "Always use above options for copying" string

Definition at line 46 of file kexicsvexportwizard.cpp.


Member Function Documentation

void KexiCSVExportWizard::layOutButtonRow ( QHBoxLayout *  layout  )  [protected, virtual]

reimplemented to add "Defaults" button on the left hand

Definition at line 349 of file kexicsvexportwizard.cpp.

QString KexiCSVExportWizard::defaultDelimiter (  )  const [protected]

Returns:
default delimiter depending on mode.

Definition at line 413 of file kexicsvexportwizard.cpp.

QString KexiCSVExportWizard::defaultTextQuote (  )  const [protected]

Returns:
default text quote depending on mode.

Definition at line 424 of file kexicsvexportwizard.cpp.

bool KexiCSVExportWizard::readBoolEntry ( const char *  key,
bool  defaultValue 
) [protected]

Helper, works like kapp->config()->readBoolEntry(const char*, bool) but if mode is Clipboard, "Exporting" is replaced with "Copying" and "Export" is replaced with "Copy" and "CSVFiles" is replaced with "CSVToClipboard" in key, to keep the setting separate.

Definition at line 388 of file kexicsvexportwizard.cpp.

QString KexiCSVExportWizard::readEntry ( const char *  key,
const QString &  defaultValue = QString::null 
) [protected]

Helper like readBoolEntry(const char *, bool), but for QString values.

Definition at line 393 of file kexicsvexportwizard.cpp.

void KexiCSVExportWizard::writeEntry ( const char *  key,
bool  value 
) [protected]

Helper, works like kapp->config()->writeEntry(const char*,bool) but if mode is Clipboard, "Exporting" is replaced with "Copying" and "Export" is replaced with "Copy" and "CSVFiles" is replaced with "CSVToClipboard" in key, to keep the setting separate.

Definition at line 403 of file kexicsvexportwizard.cpp.

void KexiCSVExportWizard::writeEntry ( const char *  key,
const QString &  value 
) [protected]

Helper like writeEntry(const char *, bool), but for QString values.

Definition at line 398 of file kexicsvexportwizard.cpp.

void KexiCSVExportWizard::deleteEntry ( const char *  key  )  [protected]

Helper like writeEntry(const char *, bool), but for deleting config entry.

Definition at line 408 of file kexicsvexportwizard.cpp.


Member Data Documentation

Cached row count for a table/query.

Definition at line 108 of file kexicsvexportwizard.h.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys