kstars
lcgenerator.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 lcgenerator.cpp - description 00003 ------------------- 00004 begin : Tue Oct 1 18:01:48 CDT 2002 00005 copyright : (C) 2002 by Jasem Mutlaq 00006 email : mutlaqja@ku.edu 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00027 #ifndef LCGENERATOR_H 00028 #define LCGENERATOR_H 00029 00030 #include <qvariant.h> 00031 #include <kdialogbase.h> 00032 #include <kio/job.h> 00033 00034 class QVBoxLayout; 00035 class QHBoxLayout; 00036 class QGridLayout; 00037 class QFile; 00038 class KLineEdit; 00039 class KListBox; 00040 class KPushButton; 00041 class QCheckBox; 00042 class QGroupBox; 00043 class QLabel; 00044 class QListBoxItem; 00045 00046 class KStars; 00047 00048 struct VariableStarInfo 00049 { 00050 QString Name; 00051 QString Designation; 00052 }; 00053 00054 class LCGenerator : public KDialogBase 00055 { 00056 Q_OBJECT 00057 00058 public: 00062 LCGenerator( QWidget* parent = 0); 00064 ~LCGenerator(); 00065 00066 private: 00067 00069 void createGUI(); 00070 00077 bool setJD(QString date, QString * JD, int JDType); 00078 00085 void DownloadCurve(QString FinalStartDate, QString FinalEndDate, QString FinalDesignation, QString AverageDay); 00086 00087 00088 KStars *ksw; 00089 const QString Hostprefix; 00090 const int JDCutOff; 00091 00092 QGroupBox* StarInfoBox; 00093 QLabel* desigLabel; 00094 KListBox* DesignationIn; 00095 QLabel* nameLabel; 00096 KListBox* NameIn; 00097 QLabel* startLabel; 00098 KLineEdit* StartDateIn; 00099 QLabel* endLabel; 00100 KLineEdit* EndDateIn; 00101 QGroupBox* DataSelectBox; 00102 QCheckBox* VisualCheck; 00103 QCheckBox* FainterCheck; 00104 QCheckBox* DiscrepantCheck; 00105 QCheckBox* CCDBCheck; 00106 QCheckBox* CCDVCheck; 00107 QCheckBox* CCDRCheck; 00108 QCheckBox* CCDICheck; 00109 QLabel* plotLabel; 00110 KLineEdit* AverageDayIn; 00111 QLabel* daysLabel; 00112 KPushButton* GetCurveButton; 00113 KPushButton* UpdateListButton; 00114 KPushButton* CloseButton; 00115 00116 QVBoxLayout* LCGeneratorDialogLayout; 00117 QHBoxLayout* SDLayout; 00118 QVBoxLayout* StarInfoBoxLayout; 00119 QHBoxLayout* DesignHLayout; 00120 QHBoxLayout* NameHLayout; 00121 QHBoxLayout* StartHLayout; 00122 QHBoxLayout* EndHLayout; 00123 QVBoxLayout* DataSelectBoxLayout; 00124 QHBoxLayout* PlotHLayout; 00125 QHBoxLayout* ButtonHLayout; 00126 00127 00128 KIO::Job *downloadJob; // download job of image -> 0 == no job is running 00129 00130 QFile *file; 00131 00135 void closeEvent (QCloseEvent *ev); 00136 00137 public slots: 00141 void VerifyData(); 00142 00146 void updateNameList(int index); 00147 00151 void updateDesigList(int index); 00152 00154 void updateStarList(); 00155 00157 void downloadReady(KIO::Job *); 00158 }; 00159 00160 #endif // LCGENERATOR_H