Main Page | Namespace List | Class List | File List | Class Members | File Members

form1.ui.h

Go to the documentation of this file.
00001 /****************************************************************************
00002 ** ui.h extension file, included from the uic-generated form implementation.
00003 **
00004 ** If you want to add, delete, or rename functions or slots, use
00005 ** Qt Designer to update this file, preserving your code.
00006 **
00007 ** You should not define a constructor or destructor in this file.
00008 ** Instead, write your code in functions called init() and destroy().
00009 ** These will automatically be called by the form's constructor and
00010 ** destructor.
00011 *****************************************************************************/
00012 #include <qfiledialog.h>
00013 #include <qstringlist.h>
00014 
00015 
00016 void Form1::fileOpen()
00017 {
00018   QStringList files = QFileDialog::getOpenFileNames(
00019                             "Data files (*.txt)",
00020                             "./",
00021                             this,
00022                             "open files dialog"
00023                             "Select data files" );
00024 
00025   if (files.size() == 1)
00026   {
00027     gLView2->init(files[0]);
00028     
00029     DataFile& file = gLView2->GetDataFile();
00030     
00031     xComboBox->clear();
00032     yComboBox->clear();
00033     colorComboBox->clear();
00034     
00035     xComboBox->insertStringList(file.GetFileList());
00036     yComboBox->insertStringList(file.GetFileList());
00037     colorComboBox->insertStringList(file.GetFileList());
00038     
00039     xComboBox->setCurrentItem(0);
00040     gLView2->setOxId(0);
00041     
00042     yComboBox->setCurrentItem(1);
00043     gLView2->setOyId(1);
00044     
00045     colorComboBox->setCurrentItem(1);
00046     gLView2->setColorId(1);
00047   }
00048   
00049 }
00050 
00051 
00052 
00053 
00054 
00055 
00056 void Form1::fileExit()
00057 {
00058     exit(0);
00059 }

Generated on Fri Jun 18 18:53:15 2004 for PBC by doxygen 1.3.6