QtiPlot  0.9.8.2
Public Slots | Public Member Functions | Protected Slots | Private Slots | Private Member Functions | Private Attributes
ExportDialog Class Reference

Export ASCII dialog. More...

#include <ExportDialog.h>

Inheritance diagram for ExportDialog:
ExtensibleFileDialog

List of all members.

Public Slots

void setColumnSeparator (const QString &sep)
 Set the column delimiter.
void updateAdvancedOptions (const QString &filter)
 Update which options are visible and enabled based on the output format.
void updateOptions (const QString &name)
 Enable/disable export options depending if the selected window is a Table or a Matrix.

Public Member Functions

 ExportDialog (MdiSubWindow *window=NULL, QWidget *parent=0, bool extended=true, Qt::WFlags fl=0)
 Constructor.
- Public Member Functions inherited from ExtensibleFileDialog
 ExtensibleFileDialog (QWidget *parent=0, bool extended=true, Qt::WFlags flags=0)
 Constructor.
bool isExtendable ()
 Tells weather the dialog has a valid extension widget.
bool isExtended ()
void setEditableFilter (bool on=true)
 Enables/Disables editing of the file type filter.
void setExtended (bool extended)
 Toggle extension widget on/off.
void setExtensionWidget (QWidget *extension)
 Set the extension widget to be displayed when the user presses the toggle button.
void setExtentionToggleButtonText (const QString &text)
 Sets the text to be displayed in the toggle button.

Protected Slots

void accept ()
 Accept changes.
void help ()
 Display help.

Private Slots

void enableTableName (bool ok)
 Enable/disable the tables combox box.

Private Member Functions

void closeEvent (QCloseEvent *)
void initAdvancedOptions ()
 Create d_advanced_options and everything it contains.
void setFileTypeFilters ()

Private Attributes

QCheckBox * boxAllTables
QCheckBox * boxComments
QCheckBox * boxNames
QCheckBox * boxSelection
QComboBox * boxSeparator
QComboBox * boxTable
QPushButton * buttonHelp
QGroupBox * d_advanced_options
 Container widget for all advanced options.
MdiSubWindowd_window
 Pointer to the window to be exported.
QLabel * separatorLbl

Additional Inherited Members

- Protected Attributes inherited from ExtensibleFileDialog
QPushButton * d_extension_toggle
 Button for toggling display of extension on/off.

Detailed Description

Export ASCII dialog.


Constructor & Destructor Documentation

ExportDialog::ExportDialog ( MdiSubWindow window = NULL,
QWidget *  parent = 0,
bool  extended = true,
Qt::WFlags  fl = 0 
)

Constructor.

Parameters:
windowwindow to be exported
parentparent widget
extendedflag: show/hide the advanced options on start-up
flwindow flags

References boxTable, d_advanced_options, d_window, initAdvancedOptions(), ExtensibleFileDialog::setExtensionWidget(), setFileTypeFilters(), and updateAdvancedOptions().


Member Function Documentation

void ExportDialog::accept ( )
protectedslot
void ExportDialog::closeEvent ( QCloseEvent *  e)
private
void ExportDialog::enableTableName ( bool  ok)
privateslot

Enable/disable the tables combox box.

The tables combo box is disabled when the checkbox "all" is selected.

References boxTable, d_window, and setFileTypeFilters().

Referenced by initAdvancedOptions().

void ExportDialog::help ( )
protectedslot

Display help.

Referenced by initAdvancedOptions().

void ExportDialog::initAdvancedOptions ( )
private
void ExportDialog::setColumnSeparator ( const QString &  sep)
slot

Set the column delimiter.

References boxSeparator.

Referenced by initAdvancedOptions().

void ExportDialog::setFileTypeFilters ( )
private

Referenced by enableTableName(), and ExportDialog().

void ExportDialog::updateAdvancedOptions ( const QString &  filter)
slot

Update which options are visible and enabled based on the output format.

References boxSeparator, buttonHelp, and separatorLbl.

Referenced by ExportDialog(), ApplicationWindow::exportExcel(), and ApplicationWindow::exportOds().

void ExportDialog::updateOptions ( const QString &  name)
slot

Enable/disable export options depending if the selected window is a Table or a Matrix.

References boxComments, boxNames, and ApplicationWindow::window().

Referenced by initAdvancedOptions().


Member Data Documentation

QCheckBox* ExportDialog::boxAllTables
private

Referenced by accept(), and initAdvancedOptions().

QCheckBox* ExportDialog::boxComments
private
QCheckBox* ExportDialog::boxNames
private
QCheckBox* ExportDialog::boxSelection
private
QComboBox* ExportDialog::boxSeparator
private
QComboBox* ExportDialog::boxTable
private
QPushButton* ExportDialog::buttonHelp
private
QGroupBox* ExportDialog::d_advanced_options
private

Container widget for all advanced options.

Referenced by ExportDialog(), and initAdvancedOptions().

MdiSubWindow* ExportDialog::d_window
private

Pointer to the window to be exported.

Referenced by enableTableName(), ExportDialog(), and initAdvancedOptions().

QLabel* ExportDialog::separatorLbl
private

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