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 <qglobal.h>
00022 #include <qptrlist.h>
00023
00024 #include <kdialogbase.h>
00025 #include <klineedit.h>
00026 #include <kurlrequester.h>
00027 #include "deepskyobject.h"
00028 #include "addcatdialogui.h"
00029 #include "draglistbox.h"
00030
00037 class AddCatDialog : public KDialogBase {
00038 Q_OBJECT
00039 public:
00042 AddCatDialog( QWidget *parent=0 );
00043
00046 ~AddCatDialog();
00047
00050 QString name() const { return acd->CatalogName->text(); }
00051
00054 QString filename() const { return acd->CatalogURL->url(); }
00055
00056 private slots:
00059 void slotShowDataFile();
00060
00064 void slotCreateCatalog();
00065
00068 void slotPreviewCatalog();
00069
00073 void slotHelp();
00074
00078 void slotOk();
00079
00080 private:
00084 bool validateDataFile();
00085
00089 QString writeCatalogHeader();
00090
00091 QVBoxLayout *vlay;
00092 AddCatDialogUI *acd;
00093 QString CatalogContents;
00094 };
00095
00096 #endif