QTimeSeries Homepage

Main Page   Alphabetical List   Compound List   File List   Compound Members  

qts_dataretrievaldialog.ui.h

00001 /****************************************************************************
00002 ** ui.h extension file, included from the uic-generated form implementation.
00003 **
00004 ** If you wish to add, delete or rename slots use Qt Designer which will
00005 ** update this file, preserving your code. Create an init() slot in place of
00006 ** a constructor, and a destroy() slot in place of a destructor.
00007 *****************************************************************************/
00008 
00009 void QTS_DataRetrievalDialog::init() {
00010     deEnd->setDate(QDate::currentDate());
00011     connect(bChoose, SIGNAL(clicked()),
00012             this, SLOT(chooseFile()));
00013 }
00014 
00015 void QTS_DataRetrievalDialog::chooseFile() {
00016     QString file = QFileDialog::getSaveFileName("newfile.csv", "*.csv", 
00017                                                 this, "choose file", "Choose File");
00018     leFile->setText(file);
00019 }
00020 
00021 QString QTS_DataRetrievalDialog::getFile() {
00022    return leFile->text();
00023 }
00024 
00025 QString QTS_DataRetrievalDialog::getSymbol() {
00026     return cbSymbol->currentText();
00027 }
00028 
00029 QDate QTS_DataRetrievalDialog::getStartDate() {
00030     return deStart->date();
00031 }
00032 
00033 QDate QTS_DataRetrievalDialog::getEndDate() {
00034     return deEnd->date();
00035 }
00036 
00037 void QTS_DataRetrievalDialog::validate() {
00038     if (leFile->text().isEmpty()) {
00039         QMessageBox::warning(this, tr("Warning"), 
00040                          tr("Please select a file to save the data first."), 
00041                          QMessageBox::Ok, QMessageBox::NoButton);
00042     }
00043     else {
00044         accept();
00045     }
00046 }

Copyright © 2002, Andrew Mustun <andrew@mustun.com>. All rights reserved.
System documentation was generated using doxygen.