kexi

#include <kexicsvexportwizard.h>

Inherits KWizard.

Public Member Functions

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

Protected Slots

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

Protected Member Functions

virtual void layOutButtonRow (TQHBoxLayout *layout)
 
TQString defaultDelimiter () const
 
TQString defaultTextQuote () const
 
bool readBoolEntry (const char *key, bool defaultValue)
 
TQString readEntry (const char *key, const TQString &defaultValue=TQString())
 
void writeEntry (const char *key, bool value)
 
void writeEntry (const char *key, const TQString &value)
 
void deleteEntry (const char *key)
 

Protected Attributes

KexiCSVExport::Options m_options
 
KexiMainWindow * m_mainWin
 
KexiStartupFileDialog * m_fileSavePage
 
TQWidget * m_exportOptionsPage
 
KPushButton * m_showOptionsButton
 
KPushButton * m_defaultsBtn
 
TQGroupBox * m_exportOptionsSection
 
KexiCSVInfoLabel * m_infoLblFrom
 
KexiCSVInfoLabel * m_infoLblTo
 
KexiCSVDelimiterWidget * m_delimiterWidget
 
KexiCSVTextQuoteComboBox * m_textQuote
 
KexiCharacterEncodingComboBox * m_characterEncodingCombo
 
TQCheckBox * m_addColumnNamesCheckBox
 
TQCheckBox * m_alwaysUseCheckBox
 
KexiDB::TableOrQuerySchema * m_tableOrQuery
 
int m_rowCount
 
bool m_rowCountDetermined: 1
 
bool m_cancelled: 1
 

Detailed Description

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

Definition at line 42 of file kexicsvexportwizard.h.

Constructor & Destructor Documentation

◆ KexiCSVExportWizard()

KexiCSVExportWizard::KexiCSVExportWizard ( const KexiCSVExport::Options &  options,
KexiMainWindow *  mainWin,
TQWidget *  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.

◆ ~KexiCSVExportWizard()

KexiCSVExportWizard::~KexiCSVExportWizard ( )
virtual

Definition at line 231 of file kexicsvexportwizard.cpp.

Member Function Documentation

◆ cancelled()

bool KexiCSVExportWizard::cancelled ( ) const

Definition at line 236 of file kexicsvexportwizard.cpp.

◆ defaultDelimiter()

TQString KexiCSVExportWizard::defaultDelimiter ( ) const
protected
Returns
default delimiter depending on mode.

Definition at line 413 of file kexicsvexportwizard.cpp.

◆ defaultTextQuote()

TQString KexiCSVExportWizard::defaultTextQuote ( ) const
protected
Returns
default text quote depending on mode.

Definition at line 424 of file kexicsvexportwizard.cpp.

◆ deleteEntry()

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.

◆ done

void KexiCSVExportWizard::done ( int  result)
protectedvirtualslot

Definition at line 288 of file kexicsvexportwizard.cpp.

◆ layOutButtonRow()

void KexiCSVExportWizard::layOutButtonRow ( TQHBoxLayout *  layout)
protectedvirtual

reimplemented to add "Defaults" button on the left hand

Definition at line 349 of file kexicsvexportwizard.cpp.

◆ next

void KexiCSVExportWizard::next ( )
protectedvirtualslot

Definition at line 276 of file kexicsvexportwizard.cpp.

◆ readBoolEntry()

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.

◆ readEntry()

TQString KexiCSVExportWizard::readEntry ( const char *  key,
const TQString &  defaultValue = TQString() 
)
protected

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

Definition at line 393 of file kexicsvexportwizard.cpp.

◆ showPage()

void KexiCSVExportWizard::showPage ( TQWidget *  page)
virtual

Definition at line 241 of file kexicsvexportwizard.cpp.

◆ slotDefaultsButtonClicked

void KexiCSVExportWizard::slotDefaultsButtonClicked ( )
protectedslot

Definition at line 369 of file kexicsvexportwizard.cpp.

◆ slotShowOptionsButtonClicked

void KexiCSVExportWizard::slotShowOptionsButtonClicked ( )
protectedslot

Definition at line 331 of file kexicsvexportwizard.cpp.

◆ writeEntry() [1/2]

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.

◆ writeEntry() [2/2]

void KexiCSVExportWizard::writeEntry ( const char *  key,
const TQString &  value 
)
protected

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

Definition at line 398 of file kexicsvexportwizard.cpp.

Member Data Documentation

◆ m_addColumnNamesCheckBox

TQCheckBox* KexiCSVExportWizard::m_addColumnNamesCheckBox
protected

Definition at line 107 of file kexicsvexportwizard.h.

◆ m_alwaysUseCheckBox

TQCheckBox * KexiCSVExportWizard::m_alwaysUseCheckBox
protected

Definition at line 107 of file kexicsvexportwizard.h.

◆ m_cancelled

bool KexiCSVExportWizard::m_cancelled
protected

Definition at line 111 of file kexicsvexportwizard.h.

◆ m_characterEncodingCombo

KexiCharacterEncodingComboBox* KexiCSVExportWizard::m_characterEncodingCombo
protected

Definition at line 106 of file kexicsvexportwizard.h.

◆ m_defaultsBtn

KPushButton* KexiCSVExportWizard::m_defaultsBtn
protected

Definition at line 101 of file kexicsvexportwizard.h.

◆ m_delimiterWidget

KexiCSVDelimiterWidget* KexiCSVExportWizard::m_delimiterWidget
protected

Definition at line 104 of file kexicsvexportwizard.h.

◆ m_exportOptionsPage

TQWidget* KexiCSVExportWizard::m_exportOptionsPage
protected

Definition at line 99 of file kexicsvexportwizard.h.

◆ m_exportOptionsSection

TQGroupBox* KexiCSVExportWizard::m_exportOptionsSection
protected

Definition at line 102 of file kexicsvexportwizard.h.

◆ m_fileSavePage

KexiStartupFileDialog* KexiCSVExportWizard::m_fileSavePage
protected

Definition at line 98 of file kexicsvexportwizard.h.

◆ m_infoLblFrom

KexiCSVInfoLabel* KexiCSVExportWizard::m_infoLblFrom
protected

Definition at line 103 of file kexicsvexportwizard.h.

◆ m_infoLblTo

KexiCSVInfoLabel * KexiCSVExportWizard::m_infoLblTo
protected

Definition at line 103 of file kexicsvexportwizard.h.

◆ m_mainWin

KexiMainWindow* KexiCSVExportWizard::m_mainWin
protected

Definition at line 97 of file kexicsvexportwizard.h.

◆ m_options

KexiCSVExport::Options KexiCSVExportWizard::m_options
protected

Definition at line 94 of file kexicsvexportwizard.h.

◆ m_rowCount

int KexiCSVExportWizard::m_rowCount
protected

Cached row count for a table/query.

Definition at line 109 of file kexicsvexportwizard.h.

◆ m_rowCountDetermined

bool KexiCSVExportWizard::m_rowCountDetermined
protected

Definition at line 110 of file kexicsvexportwizard.h.

◆ m_showOptionsButton

KPushButton* KexiCSVExportWizard::m_showOptionsButton
protected

Definition at line 100 of file kexicsvexportwizard.h.

◆ m_tableOrQuery

KexiDB::TableOrQuerySchema* KexiCSVExportWizard::m_tableOrQuery
protected

Definition at line 108 of file kexicsvexportwizard.h.

◆ m_textQuote

KexiCSVTextQuoteComboBox* KexiCSVExportWizard::m_textQuote
protected

Definition at line 105 of file kexicsvexportwizard.h.


The documentation for this class was generated from the following files: