kstars
addcatdialog.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef ADDCATDIALOG_H_
00019 #define ADDCATDIALOG_H_
00020
00021 #include <kdialog.h>
00022 #include <klineedit.h>
00023 #include <kurlrequester.h>
00024
00025 #include "ui_addcatdialog.h"
00026 #include "deepskyobject.h"
00027
00028 class KStars;
00029
00030 class AddCatDialogUI : public QFrame, public Ui::AddCatDialog {
00031 Q_OBJECT
00032 public:
00033 explicit AddCatDialogUI( QWidget *parent=0 );
00034 };
00035
00042 class AddCatDialog : public KDialog {
00043 Q_OBJECT
00044 public:
00048 AddCatDialog( KStars *_ks );
00049
00053 ~AddCatDialog();
00054
00058 QString name() const { return acd->CatalogName->text(); }
00059
00063 QString filename() const { return acd->CatalogURL->url().path(); }
00064
00065 private slots:
00069 void slotShowDataFile();
00070
00075 void slotCreateCatalog();
00076
00080 void slotPreviewCatalog();
00081
00086 void slotHelp();
00087
00092 void slotOk();
00093
00094 private:
00099 bool validateDataFile();
00100
00105 QString writeCatalogHeader();
00106
00107 KStars *ks;
00108 AddCatDialogUI *acd;
00109 QString CatalogContents;
00110 };
00111
00112 #endif