• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

kstars

  • sources
  • kde-4.12
  • kdeedu
  • kstars
  • kstars
  • dialogs
addcatdialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  addcatdialog.h - description
3  -------------------
4  begin : Sun Mar 3 2002
5  copyright : (C) 2002 by Jason Harris
6  email : kstars@30doradus.org
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef ADDCATDIALOG_H_
19 #define ADDCATDIALOG_H_
20 
21 #include <kdialog.h>
22 #include <klineedit.h>
23 #include <kurlrequester.h>
24 
25 #include "ui_addcatdialog.h"
26 #include "skyobjects/deepskyobject.h"
27 
28 class KStars;
29 
30 class AddCatDialogUI : public QFrame, public Ui::AddCatDialog {
31  Q_OBJECT
32 public:
33  explicit AddCatDialogUI( QWidget *parent=0 );
34 };
35 
42 class AddCatDialog : public KDialog {
43  Q_OBJECT
44 public:
48  explicit AddCatDialog( KStars *_ks );
49 
53  ~AddCatDialog();
54 
58  QString name() const { return acd->CatalogName->text(); }
59 
63  QString filename() const { return acd->CatalogURL->url().path(); }
64 
65 private slots:
69  void slotShowDataFile();
70 
75  void slotCreateCatalog();
76 
80  void slotPreviewCatalog();
81 
86  void slotHelp();
87 
92  void slotOk();
93 
94 private:
99  bool validateDataFile();
100 
105  QString writeCatalogHeader();
106 
107  KStars *ks;
108  AddCatDialogUI *acd;
109  QString CatalogContents;
110 };
111 
112 #endif
deepskyobject.h
QWidget
KDialog
AddCatDialog::name
QString name() const
Definition: addcatdialog.h:58
KStars
This is the main window for KStars.
Definition: kstars.h:94
AddCatDialog::filename
QString filename() const
Definition: addcatdialog.h:63
AddCatDialogUI::AddCatDialogUI
AddCatDialogUI(QWidget *parent=0)
Definition: addcatdialog.cpp:36
AddCatDialogUI
Definition: addcatdialog.h:30
AddCatDialog::~AddCatDialog
~AddCatDialog()
Destructor (empty)
Definition: addcatdialog.cpp:72
AddCatDialog::AddCatDialog
AddCatDialog(KStars *_ks)
Default constructor.
Definition: addcatdialog.cpp:40
AddCatDialog
Dialog for adding custom object catalogs to KStars.
Definition: addcatdialog.h:42
QFrame
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kstars

Skip menu "kstars"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal