ExportDialog.h
Go to the documentation of this file.
/***************************************************************************
File : ExportDialog.h
Project : QtiPlot
--------------------------------------------------------------------
Copyright : (C) 2006 by Ion Vasilief
Email (use @ for *) : ion_vasilief*yahoo.fr
Description : Export ASCII dialog
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the Free Software *
* Foundation, Inc., 51 Franklin Street, Fifth Floor, *
* Boston, MA 02110-1301 USA *
* *
***************************************************************************/
#ifndef EXPORTDIALOG_H
#define EXPORTDIALOG_H
#include <ExtensibleFileDialog.h>
class QPushButton;
class QCheckBox;
class QComboBox;
class QGroupBox;
class QLabel;
class MdiSubWindow;
class ExportDialog : public ExtensibleFileDialog
{
Q_OBJECT
public:
ExportDialog(MdiSubWindow *window = NULL, QWidget* parent = 0, bool extended = true, Qt::WFlags fl = 0 );
private:
MdiSubWindow *d_window;
void closeEvent(QCloseEvent*);
void initAdvancedOptions();
void setFileTypeFilters();
QGroupBox *d_advanced_options;
QPushButton* buttonHelp;
QCheckBox* boxNames;
QCheckBox* boxComments;
QCheckBox* boxSelection;
QCheckBox* boxAllTables;
QComboBox* boxSeparator;
QComboBox* boxTable;
QLabel *separatorLbl;
public slots:
void setColumnSeparator(const QString& sep);
void updateOptions(const QString & name);
void updateAdvancedOptions (const QString &filter);
private slots:
void enableTableName(bool ok);
protected slots:
void accept();
void help();
};
#endif // ExportDialog_H
ExtensibleFileDialog.h
ExportDialog::initAdvancedOptions
void initAdvancedOptions()
Create d_advanced_options and everything it contains.
Definition: ExportDialog.cpp:74
ExportDialog::buttonHelp
QPushButton * buttonHelp
Definition: ExportDialog.h:67
ExportDialog::updateAdvancedOptions
void updateAdvancedOptions(const QString &filter)
Update which options are visible and enabled based on the output format.
Definition: ExportDialog.cpp:143
ExportDialog::closeEvent
void closeEvent(QCloseEvent *)
Definition: ExportDialog.cpp:280
ExportDialog::boxTable
QComboBox * boxTable
Definition: ExportDialog.h:73
ExportDialog::boxAllTables
QCheckBox * boxAllTables
Definition: ExportDialog.h:71
ExportDialog::boxNames
QCheckBox * boxNames
Definition: ExportDialog.h:68
ExportDialog::enableTableName
void enableTableName(bool ok)
Enable/disable the tables combox box.
Definition: ExportDialog.cpp:159
ExportDialog::updateOptions
void updateOptions(const QString &name)
Enable/disable export options depending if the selected window is a Table or a Matrix.
Definition: ExportDialog.cpp:299
ExportDialog::help
void help()
Display help.
Definition: ExportDialog.cpp:152
ExportDialog::setFileTypeFilters
void setFileTypeFilters()
Definition: ExportDialog.cpp:177
ExportDialog
Export ASCII dialog.
Definition: ExportDialog.h:42
ExportDialog::boxSelection
QCheckBox * boxSelection
Definition: ExportDialog.h:70
ExportDialog::accept
void accept()
Accept changes.
Definition: ExportDialog.cpp:199
ExportDialog::d_advanced_options
QGroupBox * d_advanced_options
Container widget for all advanced options.
Definition: ExportDialog.h:65
ExportDialog::setColumnSeparator
void setColumnSeparator(const QString &sep)
Set the column delimiter.
Definition: ExportDialog.cpp:256
ExportDialog::separatorLbl
QLabel * separatorLbl
Definition: ExportDialog.h:74
ExportDialog::d_window
MdiSubWindow * d_window
Pointer to the window to be exported.
Definition: ExportDialog.h:58
ExportDialog::boxComments
QCheckBox * boxComments
Definition: ExportDialog.h:69
ExportDialog::boxSeparator
QComboBox * boxSeparator
Definition: ExportDialog.h:72
MdiSubWindow
Base class of all MDI client windows.
Definition: MdiSubWindow.h:51
ExportDialog::ExportDialog
ExportDialog(MdiSubWindow *window=NULL, QWidget *parent=0, bool extended=true, Qt::WFlags fl=0)
Constructor.
Definition: ExportDialog.cpp:42
ExtensibleFileDialog
QFileDialog plus generic extension support.
Definition: ExtensibleFileDialog.h:44