[Kstars-devel] [kstars] kstars: Deleting broken AAVSO feature.

Rafal Kulaga rl.kulaga at gmail.com
Sun Jul 15 22:19:35 UTC 2012


Git commit c8dd5af7bff7f738ce2b6ab68bdb46e9125bde7d by Rafal Kulaga.
Committed on 16/07/2012 at 00:13.
Pushed by kulaga into branch 'master'.

Deleting broken AAVSO feature.

This feature had been broken for quite some time, so we've decided to
remove it. Due to the big changes at AAVSO site, it might be quite hard
to get it running in the future. Fortunately, we have one person who is
working on it right now.

CCMAIL: kstars-devel at kde.org

M  +0    -2    kstars/CMakeLists.txt
M  +8    -9    kstars/kstars.cpp
M  +0    -5    kstars/kstars.h
M  +0    -8    kstars/kstarsactions.cpp
M  +0    -5    kstars/kstarsinit.cpp
M  +0    -1    kstars/kstarsui-indi.rc
M  +0    -1    kstars/kstarsui-win.rc
M  +0    -1    kstars/kstarsui.rc
D  +0    -223  kstars/tools/lcgenerator.cpp
D  +0    -110  kstars/tools/lcgenerator.h
D  +0    -376  kstars/tools/lcgenerator.ui

http://commits.kde.org/kstars/c8dd5af7bff7f738ce2b6ab68bdb46e9125bde7d

diff --git a/kstars/CMakeLists.txt b/kstars/CMakeLists.txt
index e2931c4..8c228de 100644
--- a/kstars/CMakeLists.txt
+++ b/kstars/CMakeLists.txt
@@ -101,7 +101,6 @@ set(libkstarstools_SRCS
 	tools/eqplotwidget.cpp
 	tools/jmoontool.cpp
 	tools/ksconjunct.cpp
-	tools/lcgenerator.cpp
 	tools/modcalcangdist.cpp
 	tools/modcalcapcoord.cpp
 	tools/modcalcaltaz.cpp
@@ -166,7 +165,6 @@ kde4_add_ui_files(libkstarstools_SRCS
 	tools/argwaitforkey.ui
 	tools/argzoom.ui
 	tools/conjunctions.ui
-	tools/lcgenerator.ui
 	tools/modcalcangdist.ui
 	tools/modcalcapcoord.ui
 	tools/modcalcaltaz.ui
diff --git a/kstars/kstars.cpp b/kstars/kstars.cpp
index ec71002..02661bb 100644
--- a/kstars/kstars.cpp
+++ b/kstars/kstars.cpp
@@ -51,15 +51,14 @@
 
 KStars *KStars::pinstance = 0;
 
-KStars::KStars( bool doSplash, bool clockrun, const QString &startdate ) :
-        KXmlGuiWindow(), kstarsData(0), skymap(0), TimeStep(0),
-        colorActionMenu(0), fovActionMenu(0),
-        AAVSODialog(0), findDialog(0), imgExportDialog(0), obsList(0),
-        execute(0),
-        avt(0), wut(0), skycal(0),
-    sb(0), pv(0), jmt(0), fm(0), astrocalc(0), printingWizard(0), indimenu(0), indidriver(0),
-        indiseq(0), ekosmenu(0), DialogIsObsolete(false), StartClockRunning( clockrun ),
-        StartDateString( startdate )
+KStars::KStars( bool doSplash, bool clockrun, const QString &startdate )
+    : KXmlGuiWindow(), kstarsData(0), skymap(0), TimeStep(0),
+      colorActionMenu(0), fovActionMenu(0), findDialog(0),
+      imgExportDialog(0), obsList(0), execute(0),
+      avt(0), wut(0), skycal(0), sb(0), pv(0), jmt(0),
+      fm(0), astrocalc(0), printingWizard(0), indimenu(0), indidriver(0),
+      indiseq(0), ekosmenu(0), DialogIsObsolete(false), StartClockRunning( clockrun ),
+      StartDateString( startdate )
 {
     new KstarsAdaptor(this);
     QDBusConnection::sessionBus().registerObject("/KStars",  this);
diff --git a/kstars/kstars.h b/kstars/kstars.h
index 959f042..c9e4261 100644
--- a/kstars/kstars.h
+++ b/kstars/kstars.h
@@ -41,7 +41,6 @@ class INDIMenu;
 class INDIDriver;
 class imagesequence;
 class AltVsTime;
-class LCGenerator;
 class WUTDialog;
 class AstroCalc;
 class SkyCalendar;
@@ -498,9 +497,6 @@ private slots:
     /** action slot: open KStars calculator to compute astronomical ephemeris */
     void slotCalculator();
 
-    /** action slot: open KStars AAVSO Light Curve Generator */
-    void slotLCGenerator();
-
     /** action slot: open Elevation vs. Time tool */
     void slotAVT();
 
@@ -641,7 +637,6 @@ private:
 
     KActionMenu *colorActionMenu, *fovActionMenu;
 
-    LCGenerator *AAVSODialog;
     FindDialog *findDialog;
     ExportImageDialog *imgExportDialog;
 
diff --git a/kstars/kstarsactions.cpp b/kstars/kstarsactions.cpp
index e2f8fc5..d2260ef 100644
--- a/kstars/kstarsactions.cpp
+++ b/kstars/kstarsactions.cpp
@@ -71,7 +71,6 @@
 #include "dialogs/fovdialog.h"
 #include "printing/printingwizard.h"
 #include "kswizard.h"
-#include "tools/lcgenerator.h"
 #include "tools/astrocalc.h"
 #include "tools/altvstime.h"
 #include "tools/wutdialog.h"
@@ -266,13 +265,6 @@ void KStars::slotDownload() {
     }
 }
 
-void KStars::slotLCGenerator() {
-    if ( ! AAVSODialog  )
-        AAVSODialog = new LCGenerator(this);
-
-    AAVSODialog->show();
-}
-
 void KStars::slotAVT() {
     if ( ! avt ) avt = new AltVsTime(this);
     avt->show();
diff --git a/kstars/kstarsinit.cpp b/kstars/kstarsinit.cpp
index bbc70fe..5bcefa2 100644
--- a/kstars/kstarsinit.cpp
+++ b/kstars/kstarsinit.cpp
@@ -364,11 +364,6 @@ void KStars::initActions() {
         << i18n("Observing List...")
         << KShortcut( Qt::CTRL+Qt::Key_L );
 
-    // enable action only if file was loaded and processed successfully.
-    actionCollection()->addAction("lightcurvegenerator", this, SLOT( slotLCGenerator() ) )
-        << i18n("AAVSO Light Curves...")
-        << KShortcut( Qt::CTRL+Qt::Key_V );
-
     actionCollection()->addAction("altitude_vs_time", this, SLOT( slotAVT() ) )
         << i18n("Altitude vs. Time...")
         << KShortcut( Qt::CTRL+Qt::Key_A );
diff --git a/kstars/kstarsui-indi.rc b/kstars/kstarsui-indi.rc
index d2bbdb0..d5a038a 100644
--- a/kstars/kstarsui-indi.rc
+++ b/kstars/kstarsui-indi.rc
@@ -71,7 +71,6 @@
 		<Action name="astrocalculator" />
                 <Action name="skycalendar" />
 		<Action name="obslist" />
-		<Action name="lightcurvegenerator" />
 		<Action name="altitude_vs_time" />
 		<Action name="whats_up_tonight" />
                 <Action name="ekos" />
diff --git a/kstars/kstarsui-win.rc b/kstars/kstarsui-win.rc
index 20a2fa0..eb23e82 100644
--- a/kstars/kstarsui-win.rc
+++ b/kstars/kstarsui-win.rc
@@ -62,7 +62,6 @@
 	<Menu name="tools" noMerge="1"><text>&Tools</text>
 		<Action name="astrocalculator" />
 		<Action name="obslist" />
-		<Action name="lightcurvegenerator" />
 		<Action name="altitude_vs_time" />
 		<Action name="whats_up_tonight" />
 		<Action name="glossary" />
diff --git a/kstars/kstarsui.rc b/kstars/kstarsui.rc
index 1f28415..ee56cf3 100644
--- a/kstars/kstarsui.rc
+++ b/kstars/kstarsui.rc
@@ -63,7 +63,6 @@
 		<Action name="astrocalculator" />
                 <Action name="skycalendar" />
 		<Action name="obslist" />
-		<Action name="lightcurvegenerator" />
 		<Action name="altitude_vs_time" />
 		<Action name="whats_up_tonight" />
 		<Action name="glossary" />
diff --git a/kstars/tools/lcgenerator.cpp b/kstars/tools/lcgenerator.cpp
deleted file mode 100644
index 7d29b7c..0000000
--- a/kstars/tools/lcgenerator.cpp
+++ /dev/null
@@ -1,223 +0,0 @@
-/***************************************************************************
-                          lcgenerator.cpp  -  description
-                             -------------------
-    begin                : Tue Oct  1 18:01:48 CDT 2002
-    copyright            : (C) 2002 by Jasem Mutlaq
-    email                : mutlaqja at ku.edu
- ***************************************************************************/
-
-/***************************************************************************
- *                                                                         *
- *   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.                                   *
- *                                                                         *
- ***************************************************************************/
-
-#include "lcgenerator.h"
-
-#include <QFile>
-#include <QVBoxLayout>
-
-#include <kio/netaccess.h>
-#include <kmessagebox.h>
-#include <kstandarddirs.h>
-
-#include "imageviewer.h"
-#include "kstarsdata.h"
-
-LCGeneratorUI::LCGeneratorUI( QWidget *p ) : QFrame(p) {
-    setupUi( this );
-}
-
-LCGenerator::LCGenerator( QWidget* parent) :
-    KDialog( parent )
-{
-    KStarsData* data = KStarsData::Instance();
-
-    lcg = new LCGeneratorUI( this );
-    setMainWidget( lcg );
-    setCaption( i18n( "AAVSO Light Curve Generator" ) );
-    setButtons( KDialog::Close );
-
-    lcg->AverageDayBox->setMinimum( 1 );
-    lcg->AverageDayBox->setValue( 1 );
-    lcg->AverageDayBox->setSuffix(ki18np(" day", " days"));
-
-    setModal( false );
-    setWindowTitle(i18n( "AAVSO Light Curve Generator" ));
-    downloadJob = 0;
-    file = new QFile();
-
-    lcg->DesignationBox->clear();
-    lcg->NameBox->clear();
-
-    lcg->StartDateBox->setDate(data->lt().date());
-    lcg->EndDateBox->setDate(data->lt().date());
-
-    readVarData();
-    // Fill stars designations & names
-    for (int i=0; i< (varInfoList.count()); i++) {
-        lcg->DesignationBox->addItem( varInfoList.at(i).designation );
-        lcg->NameBox->addItem( varInfoList.at(i).name );
-    }
-
-
-    // Signals/Slots
-    QObject::connect(lcg->GetCurveButton, SIGNAL(clicked()), this,
-                     SLOT(VerifyData()));
-    QObject::connect(lcg->UpdateListButton, SIGNAL(clicked()), this,
-                     SLOT(updateStarList()));
-    QObject::connect(lcg->DesignationBox, SIGNAL(currentRowChanged(int)), this,
-                     SLOT(updateNameList(int)));
-    QObject::connect(lcg->NameBox, SIGNAL(currentRowChanged(int)), this,
-                     SLOT(updateDesigList(int)));
-}
-
-LCGenerator::~LCGenerator()
-{
-    delete file;
-    delete downloadJob;
-}
-
-void LCGenerator::VerifyData()
-{
-    QListWidgetItem* item = lcg->DesignationBox->currentItem();
-    if( !item )
-        return;
-    if ( ! lcg->StartDateBox->date().isValid() ) {
-        KMessageBox::error(this, i18n("Start date invalid."));
-        return;
-    }
-    if ( ! lcg->EndDateBox->date().isValid() ) {
-        KMessageBox::error(this, i18n("End date invalid."));
-        return;
-    }
-
-    QDate StartDate    = lcg->StartDateBox->date();
-    QDate EndDate      = lcg->EndDateBox->date();
-    if (EndDate < StartDate) {
-        KMessageBox::error(this, i18n("End date must occur after start date."));
-        return;
-    }
-
-    //Download the curve!
-    DownloadCurve(StartDate, EndDate, item->text(), lcg->AverageDayBox->value());
-}
-
-void LCGenerator::DownloadCurve(const QDate &StartDate, const QDate &EndDate, const QString &Designation, unsigned int AverageDay)
-{
-    QString buf = "http://www.aavso.org/cgi-bin/kstar.pl";
-    QString Yes = "yes";
-    QString No  = "no";
-
-    buf.append('?'+QString::number(StartDate.toJulianDay()));
-    buf.append('?'+QString::number(EndDate.toJulianDay()));
-    buf.append('?'+Designation);
-    buf.append('?'+QString::number(AverageDay));
-    buf.append('?'+ (lcg->FainterCheck->isChecked() ? Yes : No));
-    buf.append('?'+ (lcg->CCDVCheck->isChecked() ? Yes : No));
-    buf.append('?'+ (lcg->CCDICheck->isChecked() ? Yes : No));
-    buf.append('?'+ (lcg->CCDRCheck->isChecked() ? Yes : No));
-    buf.append('?'+ (lcg->CCDBCheck->isChecked() ? Yes : No));
-    buf.append('?'+ (lcg->VisualCheck->isChecked() ? Yes : No));
-    buf.append('?'+ (lcg->DiscrepantCheck->isChecked() ? Yes : No));
-
-    KUrl url(buf);
-    QString message = i18n( "Light Curve produced by the American Amateur Variable Star Observers" );
-
-    ImageViewer *iv = new ImageViewer( url, message, this );
-    iv->show();
-}
-
-void LCGenerator::updateDesigList(int index)
-{
-    lcg->DesignationBox->setCurrentRow(index);
-    //lcg->DesignationBox->centerCurrentItem();
-}
-
-void LCGenerator::updateNameList(int index)
-{
-    lcg->NameBox->setCurrentRow(index);
-    //lcg->NameBox->centerCurrentItem();
-}
-
-void LCGenerator::updateStarList()
-{
-    file->setFileName( KStandardDirs::locateLocal( "appdata", "valaav.txt" ) );
-
-    KUrl AAVSOFile("http://www.aavso.org/observing/aids/valaav.txt");
-    KUrl saveFile (file->fileName());
-
-    downloadJob = KIO::file_copy(AAVSOFile, saveFile, -1, KIO::Overwrite);
-    connect (downloadJob, SIGNAL (result (KJob *)), SLOT (downloadReady (KJob *)));
-}
-
-void LCGenerator::downloadReady(KJob * job)
-{
-    downloadJob = 0;
-    if ( job->error() )
-    {
-        KMessageBox::error(0, job->errorString());
-        return;
-    }
-
-    file->close(); // to get the newest information of the file and not any information from opening of the file
-
-    if ( file->exists() )
-    {
-        readVarData();
-
-        lcg->DesignationBox->clear();
-        lcg->NameBox->clear();
-
-        // Fill stars designations
-        for (int i=0; i < varInfoList.count(); i++) {
-            lcg->DesignationBox->addItem( varInfoList.at(i).designation );
-            lcg->NameBox->addItem( varInfoList.at(i).name );
-        }
-
-        KMessageBox::information(this, i18n("AAVSO Star list downloaded successfully."));
-        return;
-    }
-}
-
-bool LCGenerator::readVarData()
-{
-    QString varFile   = "valaav.txt";
-    QString localName =  KStandardDirs::locateLocal( "appdata", varFile );
-    QFile file;
-
-    file.setFileName( localName );
-    if ( !file.open( QIODevice::ReadOnly ) ) {
-        // Copy file with varstars data to user's data dir
-        QFile::copy(KStandardDirs::locate("appdata", varFile), localName);
-        if( !file.open( QIODevice::ReadOnly ) )
-            return false;
-    }
-
-    QTextStream stream(&file);
-    stream.readLine();
-
-    VariableStarInfo vInfo;
-    while(!stream.atEnd()) {
-        QString line = stream.readLine();
-        if( line.startsWith('*') )
-            break;
-
-        vInfo.designation = line.left(8).trimmed();
-        vInfo.name        = line.mid(10,20).simplified();
-        varInfoList.append(vInfo);
-    }
-    return true;
-}
-
-void LCGenerator::closeEvent (QCloseEvent *ev)
-{
-    if (ev)	// not if closeEvent (0) is called, because segfault
-        ev->accept();	// parent-widgets should not get this event, so it will be filtered
-    //this->~LCGenerator();	// destroy the object, so the object can only allocated with operator new, not as a global/local variable
-}
-
-#include "lcgenerator.moc"
diff --git a/kstars/tools/lcgenerator.h b/kstars/tools/lcgenerator.h
deleted file mode 100644
index e36f443..0000000
--- a/kstars/tools/lcgenerator.h
+++ /dev/null
@@ -1,110 +0,0 @@
-/***************************************************************************
-                          lcgenerator.cpp  -  description
-                             -------------------
-    begin                : Tue Oct  1 18:01:48 CDT 2002
-    copyright            : (C) 2002 by Jasem Mutlaq
-    email                : mutlaqja at ku.edu
- ***************************************************************************/
-
-/***************************************************************************
- *                                                                         *
- *   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.                                   *
- *                                                                         *
- ***************************************************************************/
-
-#ifndef LCGENERATOR_H_
-#define LCGENERATOR_H_
-
-#include <QCloseEvent>
-#include <QList>
-#include <QString>
-#include <kdialog.h>
-#include <kio/job.h>
-
-#include "ui_lcgenerator.h"
-
-class QFile;
-
-struct VariableStarInfo
-{
-    QString name;
-    QString designation;
-};
-
-class LCGeneratorUI : public QFrame, public Ui::LCGenerator {
-    Q_OBJECT
-public:
-    LCGeneratorUI( QWidget *p=0 );
-};
-
-
-/** @class LCGenerator
- *  @short KStars Light Curve Generator
- *  This class provides a simple interface that enables a user to download
- *  variable stars light curves from an online AAVSO database given few basic parameters.
- *  @author Jasem Mutlaq
- */
-class LCGenerator : public KDialog
-{
-    Q_OBJECT
-public:
-    /** Constructor
-     *  @p parent pointer to the parent widget */
-    LCGenerator( QWidget* parent = 0);
-    /** Destructor */
-    ~LCGenerator();
-
-public slots:
-    /** Checks if a star name or designation exists in the database,
-     * verifies date format, and connects to server if no errors occur  
-     */
-    void VerifyData();
-
-    /** Select the star name that matches the current star designation
-     *  @p index the index of the selected designation
-     */
-    void updateNameList(int index);
-
-    /** Select the star designation that matches the current star name
-     *  @p index the index of the selected star name
-     */
-    void updateDesigList(int index);
-
-    /** Connects to AAVSO database server and downloads a fresh list of Variable stars.*/
-    void updateStarList();
-
-    /** Reload file and update lists after download */
-    void downloadReady(KJob *);
-
-private:
-    /** Initializes and positions the dialog child widgets. */
-    void createGUI();
-
-    /** Parses star information and connects to the AAVSO server with the information embedded in the URL
-     * @param FinalStartDate The start date 
-     * @param FinalEndDate The end date 
-     * @param FinalDesignation The AAVSO star designation
-     * @param AverageDay Number of average days for binning the light curve
-     */
-    void DownloadCurve(const QDate &StartDate, const QDate &EndDate, const QString &Designation, unsigned int AverageDay);
-
-    /** Read list of variable stars. */
-    bool readVarData();
-
-
-    LCGeneratorUI *lcg;
-
-    KIO::Job *downloadJob;               /// download job of image -> 0 == no job is running
-    QFile *file;
-    QList<VariableStarInfo> varInfoList; /// Information about variable stars.
-
-    /** Make sure all events have been processed before closing the dialog
-     *  @p ev pointer to the QCloseEvent object
-     */
-    void closeEvent (QCloseEvent *ev);
-};
-
-#endif // LCGENERATOR_H_
diff --git a/kstars/tools/lcgenerator.ui b/kstars/tools/lcgenerator.ui
deleted file mode 100644
index 664b3ab..0000000
--- a/kstars/tools/lcgenerator.ui
+++ /dev/null
@@ -1,376 +0,0 @@
-<ui version="4.0" >
- <class>LCGenerator</class>
- <widget class="QWidget" name="LCGenerator" >
-  <property name="geometry" >
-   <rect>
-    <x>0</x>
-    <y>0</y>
-    <width>586</width>
-    <height>433</height>
-   </rect>
-  </property>
-  <layout class="QHBoxLayout" >
-   <property name="spacing" >
-    <number>6</number>
-   </property>
-   <property name="leftMargin" >
-    <number>9</number>
-   </property>
-   <property name="topMargin" >
-    <number>9</number>
-   </property>
-   <property name="rightMargin" >
-    <number>9</number>
-   </property>
-   <property name="bottomMargin" >
-    <number>9</number>
-   </property>
-   <item>
-    <widget class="QGroupBox" name="groupBox" >
-     <property name="title" >
-      <string>Select a Star</string>
-     </property>
-     <layout class="QVBoxLayout" >
-      <property name="spacing" >
-       <number>6</number>
-      </property>
-      <property name="leftMargin" >
-       <number>9</number>
-      </property>
-      <property name="topMargin" >
-       <number>9</number>
-      </property>
-      <property name="rightMargin" >
-       <number>9</number>
-      </property>
-      <property name="bottomMargin" >
-       <number>9</number>
-      </property>
-      <item>
-       <layout class="QGridLayout" >
-        <property name="leftMargin" >
-         <number>0</number>
-        </property>
-        <property name="topMargin" >
-         <number>0</number>
-        </property>
-        <property name="rightMargin" >
-         <number>0</number>
-        </property>
-        <property name="bottomMargin" >
-         <number>0</number>
-        </property>
-        <property name="horizontalSpacing" >
-         <number>6</number>
-        </property>
-        <property name="verticalSpacing" >
-         <number>6</number>
-        </property>
-        <item row="1" column="1" >
-         <widget class="QListWidget" name="NameBox" />
-        </item>
-        <item row="1" column="0" >
-         <widget class="QListWidget" name="DesignationBox" />
-        </item>
-        <item row="0" column="1" >
-         <widget class="QLabel" name="label_2" >
-          <property name="text" >
-           <string>by Name:</string>
-          </property>
-         </widget>
-        </item>
-        <item row="0" column="0" >
-         <widget class="QLabel" name="label" >
-          <property name="text" >
-           <string>by Designation:</string>
-          </property>
-         </widget>
-        </item>
-       </layout>
-      </item>
-      <item>
-       <layout class="QHBoxLayout" >
-        <property name="spacing" >
-         <number>6</number>
-        </property>
-        <property name="leftMargin" >
-         <number>0</number>
-        </property>
-        <property name="topMargin" >
-         <number>0</number>
-        </property>
-        <property name="rightMargin" >
-         <number>0</number>
-        </property>
-        <property name="bottomMargin" >
-         <number>0</number>
-        </property>
-        <item>
-         <spacer>
-          <property name="orientation" >
-           <enum>Qt::Horizontal</enum>
-          </property>
-          <property name="sizeHint" >
-           <size>
-            <width>40</width>
-            <height>20</height>
-           </size>
-          </property>
-         </spacer>
-        </item>
-        <item>
-         <widget class="QPushButton" name="UpdateListButton" >
-          <property name="text" >
-           <string>Refresh List from AAVSO.org</string>
-          </property>
-         </widget>
-        </item>
-        <item>
-         <spacer>
-          <property name="orientation" >
-           <enum>Qt::Horizontal</enum>
-          </property>
-          <property name="sizeHint" >
-           <size>
-            <width>40</width>
-            <height>20</height>
-           </size>
-          </property>
-         </spacer>
-        </item>
-       </layout>
-      </item>
-     </layout>
-    </widget>
-   </item>
-   <item>
-    <layout class="QVBoxLayout" >
-     <property name="spacing" >
-      <number>6</number>
-     </property>
-     <property name="leftMargin" >
-      <number>0</number>
-     </property>
-     <property name="topMargin" >
-      <number>0</number>
-     </property>
-     <property name="rightMargin" >
-      <number>0</number>
-     </property>
-     <property name="bottomMargin" >
-      <number>0</number>
-     </property>
-     <item>
-      <widget class="QGroupBox" name="groupBox_2" >
-       <property name="title" >
-        <string>Select Data Types</string>
-       </property>
-       <layout class="QVBoxLayout" >
-        <property name="spacing" >
-         <number>6</number>
-        </property>
-        <property name="leftMargin" >
-         <number>9</number>
-        </property>
-        <property name="topMargin" >
-         <number>9</number>
-        </property>
-        <property name="rightMargin" >
-         <number>9</number>
-        </property>
-        <property name="bottomMargin" >
-         <number>9</number>
-        </property>
-        <item>
-         <widget class="QCheckBox" name="VisualCheck" >
-          <property name="text" >
-           <string>Visual</string>
-          </property>
-         </widget>
-        </item>
-        <item>
-         <widget class="QCheckBox" name="FainterCheck" >
-          <property name="text" >
-           <string>Fainter thans</string>
-          </property>
-         </widget>
-        </item>
-        <item>
-         <widget class="QCheckBox" name="DiscrepantCheck" >
-          <property name="text" >
-           <string>Discrepant data</string>
-          </property>
-         </widget>
-        </item>
-        <item>
-         <widget class="QCheckBox" name="CCDBCheck" >
-          <property name="text" >
-           <string>CCD B</string>
-          </property>
-         </widget>
-        </item>
-        <item>
-         <widget class="QCheckBox" name="CCDVCheck" >
-          <property name="text" >
-           <string>CCD V</string>
-          </property>
-         </widget>
-        </item>
-        <item>
-         <widget class="QCheckBox" name="CCDRCheck" >
-          <property name="text" >
-           <string>CCD R</string>
-          </property>
-         </widget>
-        </item>
-        <item>
-         <widget class="QCheckBox" name="CCDICheck" >
-          <property name="text" >
-           <string>CCD I</string>
-          </property>
-         </widget>
-        </item>
-       </layout>
-      </widget>
-     </item>
-     <item>
-      <layout class="QGridLayout" >
-       <property name="leftMargin" >
-        <number>0</number>
-       </property>
-       <property name="topMargin" >
-        <number>0</number>
-       </property>
-       <property name="rightMargin" >
-        <number>0</number>
-       </property>
-       <property name="bottomMargin" >
-        <number>0</number>
-       </property>
-       <property name="horizontalSpacing" >
-        <number>6</number>
-       </property>
-       <property name="verticalSpacing" >
-        <number>6</number>
-       </property>
-       <item row="1" column="0" >
-        <widget class="QLabel" name="label_4" >
-         <property name="text" >
-          <string>End date:</string>
-         </property>
-        </widget>
-       </item>
-       <item row="0" column="0" >
-        <widget class="QLabel" name="label_3" >
-         <property name="text" >
-          <string>Start date:</string>
-         </property>
-        </widget>
-       </item>
-       <item row="0" column="1" >
-        <widget class="QDateEdit" name="StartDateBox" />
-       </item>
-       <item row="1" column="1" >
-        <widget class="QDateEdit" name="EndDateBox" />
-       </item>
-      </layout>
-     </item>
-     <item>
-      <layout class="QHBoxLayout" >
-       <property name="spacing" >
-        <number>6</number>
-       </property>
-       <property name="leftMargin" >
-        <number>0</number>
-       </property>
-       <property name="topMargin" >
-        <number>0</number>
-       </property>
-       <property name="rightMargin" >
-        <number>0</number>
-       </property>
-       <property name="bottomMargin" >
-        <number>0</number>
-       </property>
-       <item>
-        <widget class="QLabel" name="label_5" >
-         <property name="text" >
-          <string>Plot average:</string>
-         </property>
-        </widget>
-       </item>
-       <item>
-        <widget class="KIntSpinBox" name="AverageDayBox" />
-       </item>
-       <item>
-        <widget class="QLabel" name="label_6" >
-        </widget>
-       </item>
-      </layout>
-     </item>
-     <item>
-      <layout class="QHBoxLayout" >
-       <property name="spacing" >
-        <number>6</number>
-       </property>
-       <property name="leftMargin" >
-        <number>0</number>
-       </property>
-       <property name="topMargin" >
-        <number>0</number>
-       </property>
-       <property name="rightMargin" >
-        <number>0</number>
-       </property>
-       <property name="bottomMargin" >
-        <number>0</number>
-       </property>
-       <item>
-        <spacer>
-         <property name="orientation" >
-          <enum>Qt::Horizontal</enum>
-         </property>
-         <property name="sizeHint" >
-          <size>
-           <width>21</width>
-           <height>20</height>
-          </size>
-         </property>
-        </spacer>
-       </item>
-       <item>
-        <widget class="QPushButton" name="GetCurveButton" >
-         <property name="text" >
-          <string>Retrieve Curve...</string>
-         </property>
-        </widget>
-       </item>
-       <item>
-        <spacer>
-         <property name="orientation" >
-          <enum>Qt::Horizontal</enum>
-         </property>
-         <property name="sizeHint" >
-          <size>
-           <width>20</width>
-           <height>20</height>
-          </size>
-         </property>
-        </spacer>
-       </item>
-      </layout>
-     </item>
-    </layout>
-   </item>
-  </layout>
- </widget>
- <customwidgets>
-  <customwidget>
-   <class>KIntSpinBox</class>
-   <extends>QSpinBox</extends>
-   <header>knuminput.h</header>
-  </customwidget>
- </customwidgets>
- <resources/>
- <connections/>
-</ui>



More information about the Kstars-devel mailing list