#include <SpreadsheetDialog.h>
This class handles user input and sends it off to the GtoSConverter for processing.
Definition at line 27 of file SpreadsheetDialog.h.
Public Member Functions | |
SpreadsheetDialog (GLIMSProject *proj) | |
GLIMSProject *proj - the project to associate with creates a new SpreadSheetDialog with the associated project. | |
~SpreadsheetDialog () | |
destructor | |
Protected Slots | |
void | setSavePath () |
opens a file browser, and sets the save path. | |
void | doConvert () |
starts the conversion, and closes the dialog when complete. | |
Protected Member Functions | |
void | buildDialog () |
builds the dialog box, connect all buttons to actions | |
Protected Attributes | |
QLabel * | label |
says File | |
QPushButton * | go |
button to do conversion | |
QPushButton * | browse |
button for browsing where to save | |
QPushButton * | cancel |
button to cancel | |
QComboBox * | delim |
selection of Delimiter | |
GLIMSProject * | mProj |
the project | |
GtoSConverter * | gtos |
the Converter | |
QLineEdit * | filePath |
holds the path |
SpreadsheetDialog::SpreadsheetDialog | ( | GLIMSProject * | proj | ) |
GLIMSProject *proj - the project to associate with creates a new SpreadSheetDialog with the associated project.
Definition at line 6 of file SpreadsheetDialog.cpp.
References buildDialog(), gtos, and mProj.
SpreadsheetDialog::~SpreadsheetDialog | ( | ) |
void SpreadsheetDialog::buildDialog | ( | ) | [protected] |
builds the dialog box, connect all buttons to actions
Definition at line 17 of file SpreadsheetDialog.cpp.
References browse, cancel, delim, doConvert(), filePath, go, and setSavePath().
Referenced by SpreadsheetDialog().
void SpreadsheetDialog::setSavePath | ( | ) | [protected, slot] |
opens a file browser, and sets the save path.
connected to the browse button.
Definition at line 71 of file SpreadsheetDialog.cpp.
References filePath.
Referenced by buildDialog().
void SpreadsheetDialog::doConvert | ( | ) | [protected, slot] |
starts the conversion, and closes the dialog when complete.
connected to the go button
Definition at line 79 of file SpreadsheetDialog.cpp.
References GtoSConverter::convert(), delim, filePath, and gtos.
Referenced by buildDialog().
QLabel* SpreadsheetDialog::label [protected] |
QPushButton* SpreadsheetDialog::go [protected] |
button to do conversion
Definition at line 33 of file SpreadsheetDialog.h.
Referenced by buildDialog().
QPushButton* SpreadsheetDialog::browse [protected] |
button for browsing where to save
Definition at line 34 of file SpreadsheetDialog.h.
Referenced by buildDialog().
QPushButton* SpreadsheetDialog::cancel [protected] |
QComboBox* SpreadsheetDialog::delim [protected] |
selection of Delimiter
Definition at line 36 of file SpreadsheetDialog.h.
Referenced by buildDialog(), and doConvert().
GLIMSProject* SpreadsheetDialog::mProj [protected] |
GtoSConverter* SpreadsheetDialog::gtos [protected] |
the Converter
Definition at line 38 of file SpreadsheetDialog.h.
Referenced by doConvert(), SpreadsheetDialog(), and ~SpreadsheetDialog().
QLineEdit* SpreadsheetDialog::filePath [protected] |
holds the path
Definition at line 40 of file SpreadsheetDialog.h.
Referenced by buildDialog(), doConvert(), and setSavePath().
Home |
Search |
Disclaimers & Privacy |
Contact Us GLIMSView Maintainer: dsoltesz@usgs.gov |