labplot  2.8.2
About: LabPlot is an application for plotting and analysis of 2D and 3D functions and data. It is a complete rewrite of LabPlot1 and lacks in the first release a lot of features available in the predecessor. On the other hand, the GUI and the usability is more superior.
  Fossies Dox: labplot-2.8.2.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

ExportSpreadsheetDialog Class Reference

Dialog for exporting a spreadsheet to a file. More...

#include <ExportSpreadsheetDialog.h>

Inheritance diagram for ExportSpreadsheetDialog:
[legend]
Collaboration diagram for ExportSpreadsheetDialog:
[legend]

Public Types

enum class  Format {
  ASCII , Binary , LaTeX , FITS ,
  SQLite
}
 

Public Member Functions

 ExportSpreadsheetDialog (QWidget *)
 
 ~ExportSpreadsheetDialog () override
 
QString path () const
 
void setFileName (const QString &)
 
void setMatrixMode (bool)
 
void setExportSelection (bool)
 
bool exportHeader () const
 
bool exportLatexHeader () const
 
bool gridLines () const
 
bool captions () const
 
bool skipEmptyRows () const
 
bool exportSelection () const
 
bool entireSpreadheet () const
 
bool matrixVerticalHeader () const
 
bool matrixHorizontalHeader () const
 
QString separator () const
 
QLocale::Language numberFormat () const
 
int exportToFits () const
 
bool commentsAsUnitsFits () const
 
void setExportTo (const QStringList &to)
 
void setExportToImage (bool possible)
 
Format format () const
 

Private Slots

void setFormat (ExportSpreadsheetDialog::Format)
 
void slotButtonClicked (QAbstractButton *)
 
void okClicked ()
 
void toggleOptions ()
 
void selectFile ()
 
void formatChanged (int)
 
void fileNameChanged (const QString &)
 
void fitsExportToChanged (int)
 

Private Attributes

Ui::ExportSpreadsheetWidget * ui
 
bool m_showOptions {true}
 
bool m_matrixMode {false}
 
Format m_format {Format::ASCII}
 
QPushButton * m_showOptionsButton
 
QPushButton * m_okButton
 
QPushButton * m_cancelButton
 

Detailed Description

Dialog for exporting a spreadsheet to a file.

File : ExportSpreadsheetDialog.cpp Project : LabPlot

Description : export spreadsheet dialog

Copyright : (C) 2014-2019 by Alexander Semke (alexa.nosp@m.nder.nosp@m..semk.nosp@m.e@we.nosp@m.b.de)

  • 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 *

Definition at line 42 of file ExportSpreadsheetDialog.h.

Member Enumeration Documentation

◆ Format

Enumerator
ASCII 
Binary 
LaTeX 
FITS 
SQLite 

Definition at line 69 of file ExportSpreadsheetDialog.h.

Constructor & Destructor Documentation

◆ ExportSpreadsheetDialog()

◆ ~ExportSpreadsheetDialog()

ExportSpreadsheetDialog::~ExportSpreadsheetDialog ( )
override

Definition at line 144 of file ExportSpreadsheetDialog.cpp.

References m_showOptions, and ui.

Member Function Documentation

◆ captions()

bool ExportSpreadsheetDialog::captions ( ) const

Definition at line 228 of file ExportSpreadsheetDialog.cpp.

References ui.

◆ commentsAsUnitsFits()

bool ExportSpreadsheetDialog::commentsAsUnitsFits ( ) const

Definition at line 260 of file ExportSpreadsheetDialog.cpp.

References ui.

◆ entireSpreadheet()

bool ExportSpreadsheetDialog::entireSpreadheet ( ) const

Definition at line 248 of file ExportSpreadsheetDialog.cpp.

References ui.

◆ exportHeader()

bool ExportSpreadsheetDialog::exportHeader ( ) const

Definition at line 224 of file ExportSpreadsheetDialog.cpp.

References ui.

◆ exportLatexHeader()

bool ExportSpreadsheetDialog::exportLatexHeader ( ) const

Definition at line 232 of file ExportSpreadsheetDialog.cpp.

References ui.

◆ exportSelection()

bool ExportSpreadsheetDialog::exportSelection ( ) const

Definition at line 244 of file ExportSpreadsheetDialog.cpp.

References ui.

◆ exportToFits()

int ExportSpreadsheetDialog::exportToFits ( ) const

Definition at line 220 of file ExportSpreadsheetDialog.cpp.

References ui.

◆ fileNameChanged

void ExportSpreadsheetDialog::fileNameChanged ( const QString &  name)
privateslot

Definition at line 534 of file ExportSpreadsheetDialog.cpp.

References GuiTools::highlight(), m_okButton, path(), and ui.

Referenced by ExportSpreadsheetDialog().

◆ fitsExportToChanged

void ExportSpreadsheetDialog::fitsExportToChanged ( int  idx)
privateslot

Definition at line 178 of file ExportSpreadsheetDialog.cpp.

References m_matrixMode, and ui.

Referenced by ExportSpreadsheetDialog().

◆ format()

ExportSpreadsheetDialog::Format ExportSpreadsheetDialog::format ( ) const

Definition at line 530 of file ExportSpreadsheetDialog.cpp.

References m_format.

Referenced by formatChanged(), okClicked(), selectFile(), and setFormat().

◆ formatChanged

void ExportSpreadsheetDialog::formatChanged ( int  index)
privateslot

called when the output format was changed. Adjusts the extension for the specified file.

Definition at line 373 of file ExportSpreadsheetDialog.cpp.

References FITS, format(), LaTeX, m_matrixMode, path(), setFormat(), SQLite, and ui.

Referenced by ExportSpreadsheetDialog(), and setFileName().

◆ gridLines()

bool ExportSpreadsheetDialog::gridLines ( ) const

Definition at line 236 of file ExportSpreadsheetDialog.cpp.

References ui.

◆ matrixHorizontalHeader()

bool ExportSpreadsheetDialog::matrixHorizontalHeader ( ) const

Definition at line 252 of file ExportSpreadsheetDialog.cpp.

References ui.

◆ matrixVerticalHeader()

bool ExportSpreadsheetDialog::matrixVerticalHeader ( ) const

Definition at line 256 of file ExportSpreadsheetDialog.cpp.

References ui.

◆ numberFormat()

QLocale::Language ExportSpreadsheetDialog::numberFormat ( ) const

Definition at line 268 of file ExportSpreadsheetDialog.cpp.

References C, and ui.

◆ okClicked

void ExportSpreadsheetDialog::okClicked ( )
privateslot

Definition at line 291 of file ExportSpreadsheetDialog.cpp.

References FITS, format(), i18n, path(), and ui.

Referenced by slotButtonClicked().

◆ path()

QString ExportSpreadsheetDialog::path ( ) const

Definition at line 216 of file ExportSpreadsheetDialog.cpp.

References ui.

Referenced by fileNameChanged(), formatChanged(), okClicked(), and selectFile().

◆ selectFile

void ExportSpreadsheetDialog::selectFile ( )
privateslot

opens a file dialog and lets the user select the file.

Definition at line 333 of file ExportSpreadsheetDialog.cpp.

References ASCII, Binary, FITS, format(), i18n, LaTeX, path(), SQLite, and ui.

Referenced by ExportSpreadsheetDialog().

◆ separator()

QString ExportSpreadsheetDialog::separator ( ) const

Definition at line 264 of file ExportSpreadsheetDialog.cpp.

References ui.

◆ setExportSelection()

void ExportSpreadsheetDialog::setExportSelection ( bool  enable)

Definition at line 514 of file ExportSpreadsheetDialog.cpp.

References ui.

◆ setExportTo()

void ExportSpreadsheetDialog::setExportTo ( const QStringList &  to)

Definition at line 526 of file ExportSpreadsheetDialog.cpp.

References ui.

◆ setExportToImage()

void ExportSpreadsheetDialog::setExportToImage ( bool  possible)

Definition at line 283 of file ExportSpreadsheetDialog.cpp.

References ui, and Qxt::UserRole.

◆ setFileName()

void ExportSpreadsheetDialog::setFileName ( const QString &  name)

Definition at line 165 of file ExportSpreadsheetDialog.cpp.

References formatChanged(), and ui.

◆ setFormat

void ExportSpreadsheetDialog::setFormat ( ExportSpreadsheetDialog::Format  format)
privateslot

Definition at line 522 of file ExportSpreadsheetDialog.cpp.

References format(), and m_format.

Referenced by formatChanged().

◆ setMatrixMode()

void ExportSpreadsheetDialog::setMatrixMode ( bool  b)

Definition at line 190 of file ExportSpreadsheetDialog.cpp.

References i18n, m_matrixMode, and ui.

◆ skipEmptyRows()

bool ExportSpreadsheetDialog::skipEmptyRows ( ) const

Definition at line 240 of file ExportSpreadsheetDialog.cpp.

References ui.

◆ slotButtonClicked

void ExportSpreadsheetDialog::slotButtonClicked ( QAbstractButton *  button)
privateslot

Definition at line 275 of file ExportSpreadsheetDialog.cpp.

References m_cancelButton, m_okButton, and okClicked().

Referenced by ExportSpreadsheetDialog().

◆ toggleOptions

void ExportSpreadsheetDialog::toggleOptions ( )
privateslot

Shows/hides the GroupBox with export options in this dialog.

Definition at line 320 of file ExportSpreadsheetDialog.cpp.

References i18n, m_showOptions, m_showOptionsButton, and ui.

Referenced by ExportSpreadsheetDialog().

Member Data Documentation

◆ m_cancelButton

QPushButton* ExportSpreadsheetDialog::m_cancelButton
private

Definition at line 86 of file ExportSpreadsheetDialog.h.

Referenced by ExportSpreadsheetDialog(), and slotButtonClicked().

◆ m_format

Format ExportSpreadsheetDialog::m_format {Format::ASCII}
private

Definition at line 82 of file ExportSpreadsheetDialog.h.

Referenced by format(), and setFormat().

◆ m_matrixMode

bool ExportSpreadsheetDialog::m_matrixMode {false}
private

Definition at line 81 of file ExportSpreadsheetDialog.h.

Referenced by fitsExportToChanged(), formatChanged(), and setMatrixMode().

◆ m_okButton

QPushButton* ExportSpreadsheetDialog::m_okButton
private

◆ m_showOptions

bool ExportSpreadsheetDialog::m_showOptions {true}
private

◆ m_showOptionsButton

QPushButton* ExportSpreadsheetDialog::m_showOptionsButton
private

Definition at line 84 of file ExportSpreadsheetDialog.h.

Referenced by ExportSpreadsheetDialog(), and toggleOptions().

◆ ui


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