• 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
detaildialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  detaildialog.h - description
3  -------------------
4  begin : Sun May 5 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 DETAILDIALOG_H_
19 #define DETAILDIALOG_H_
20 
21 #include <QPixmap>
22 #include <QMouseEvent>
23 #include <QFocusEvent>
24 #include <QHBoxLayout>
25 #include <QTabWidget>
26 #include <QPushButton>
27 #include <QPalette>
28 
29 #include <kpagedialog.h>
30 #include <ktextedit.h>
31 
32 #include "skyobjects/skyobject.h"
33 //UI headers
34 #include "ui_details_data.h"
35 #include "ui_details_data_comet.h"
36 #include "ui_details_position.h"
37 #include "ui_details_links.h"
38 #include "ui_details_database.h"
39 #include "ui_details_log.h"
40 
41 class GeoLocation;
42 class QHBoxLayout;
43 class QLineEdit;
44 class QListWidgetItem;
45 class QPixmap;
46 class QString;
47 class QStringList;
48 class KStars;
49 class KStarsDateTime;
50 
51 class DataWidget;
52 class DataCometWidget;
53 class PositionWidget;
54 class LinksWidget;
55 class DatabaseWidget;
56 class LogWidget;
57 
58 struct ADVTreeData
59 {
60  QString Name;
61  QString Link;
62  int Type;
63 };
64 
88 class DetailDialog : public KPageDialog {
89  Q_OBJECT
90 public:
93  DetailDialog( SkyObject *o, const KStarsDateTime &ut, GeoLocation *geo, QWidget *parent=0 );
94 
97  ~DetailDialog();
98 
102  inline QPixmap* thumbnail() { return Thumbnail; }
103 
104 public slots:
107  void addToObservingList();
108 
111  void centerMap();
112 
115  void centerTelescope();
116 
117  //TODO: showThumbnail() is only called in the ctor; make it private and not a slot.
120  void showThumbnail();
121 
126  void updateThumbnail();
127 
130  void viewLink();
131 
139  void setCurrentLink(QListWidgetItem *it);
140 
144  void updateLists();
145 
149  void editLinkDialog();
150 
154  void removeLinkDialog();
155 
159  void viewADVData();
160 
163  void saveLogData();
164 
167  void updateButtons();
168 
169 private:
170 
173  void createGeneralTab();
174 
177  void createPositionTab( const KStarsDateTime &ut, GeoLocation *geo );
178 
182  void createLinksTab();
183 
186  void createAdvancedTab();
187 
190  void createLogTab();
191 
194  void populateADVTree();
195 
199  QString parseADVData( const QString &link );
200 
207  void updateLocalDatabase(int type, const QString &search_line, const QString &replace_line = QString());
208 
209  SkyObject *selectedObject;
210  QPalette titlePalette;
211 
212  QListWidgetItem *m_CurrentLink;
213 
214  QPixmap *Thumbnail;
215  int currentItemIndex;
216  QStringList dataList;
217 
218  DataWidget *Data;
219  DataCometWidget *DataComet;
220  PositionWidget *Pos;
221  LinksWidget *Links;
222  DatabaseWidget *Adv;
223  LogWidget *Log;
224 
225 };
226 
227 class DataWidget : public QFrame, public Ui::DetailsData
228 {
229 public:
230  explicit DataWidget( QWidget *parent=0 );
231 };
232 
233 class DataCometWidget : public QFrame, public Ui::DetailsDataComet
234 {
235 public:
236  explicit DataCometWidget( QWidget *parent=0 );
237 };
238 
239 class PositionWidget : public QFrame, public Ui::DetailsPosition
240 {
241 public:
242  explicit PositionWidget( QWidget *parent=0 );
243 };
244 
245 class LinksWidget : public QFrame, public Ui::DetailsLinks
246 {
247 public:
248  explicit LinksWidget( QWidget *parent=0 );
249 };
250 
251 class DatabaseWidget : public QFrame, public Ui::DetailsDatabase
252 {
253 public:
254  explicit DatabaseWidget( QWidget *parent=0 );
255 };
256 
257 class LogWidget : public QFrame, public Ui::DetailsLog
258 {
259 public:
260  explicit LogWidget( QWidget *parent=0 );
261 };
262 
263 #endif
KPageDialog
DetailDialog
window showing detailed information for a selected object.
Definition: detaildialog.h:88
DetailDialog::updateButtons
void updateButtons()
Update View/Edit/Remove buttons.
Definition: detaildialog.cpp:665
DataCometWidget::DataCometWidget
DataCometWidget(QWidget *parent=0)
Definition: detaildialog.cpp:1113
DetailDialog::removeLinkDialog
void removeLinkDialog()
remove a URL entry from either the Images or Info lists, and update the user's *url.dat file.
Definition: detaildialog.cpp:772
DetailDialog::updateLists
void updateLists()
Rebuild the Image and Info URL lists for this object.
Definition: detaildialog.cpp:651
skyobject.h
LogWidget::LogWidget
LogWidget(QWidget *parent=0)
Definition: detaildialog.cpp:1135
QWidget
LogWidget
Definition: detaildialog.h:257
KStars
This is the main window for KStars.
Definition: kstars.h:94
ADVTreeData::Type
int Type
Definition: detaildialog.h:62
PositionWidget::PositionWidget
PositionWidget(QWidget *parent=0)
Definition: detaildialog.cpp:1118
DetailDialog::centerMap
void centerMap()
Slot to center this object in the display.
Definition: detaildialog.cpp:1008
DetailDialog::updateThumbnail
void updateThumbnail()
Slot to update thumbnail image for the object, using the Thumbnail Picker tool.
Definition: detaildialog.cpp:1085
GeoLocation
Contains all relevant information for specifying a location on Earth: City Name, State/Province name...
Definition: geolocation.h:39
LinksWidget
Definition: detaildialog.h:245
DatabaseWidget::DatabaseWidget
DatabaseWidget(QWidget *parent=0)
Definition: detaildialog.cpp:1130
DetailDialog::showThumbnail
void showThumbnail()
Slot to display the thumbnail image for the object.
Definition: detaildialog.cpp:1056
KStarsDateTime
Extension of KDateTime for KStars KStarsDateTime can represent the date/time as a Julian Day...
Definition: kstarsdatetime.h:45
DetailDialog::addToObservingList
void addToObservingList()
Slot to add this object to the observing list.
Definition: detaildialog.cpp:1004
DataCometWidget
Definition: detaildialog.h:233
DetailDialog::DetailDialog
DetailDialog(SkyObject *o, const KStarsDateTime &ut, GeoLocation *geo, QWidget *parent=0)
Constructor.
Definition: detaildialog.cpp:69
DetailDialog::viewADVData
void viewADVData()
Open the web browser to the selected online astronomy database, with a query to the object of this De...
Definition: detaildialog.cpp:937
DetailDialog::saveLogData
void saveLogData()
Save the User's text in the Log Tab to the userlog.dat file.
Definition: detaildialog.cpp:1000
DetailDialog::viewLink
void viewLink()
Slot for viewing the selected image or info URL in the web browser.
Definition: detaildialog.cpp:634
DetailDialog::thumbnail
QPixmap * thumbnail()
Definition: detaildialog.h:102
DatabaseWidget
Definition: detaildialog.h:251
ADVTreeData
Definition: detaildialog.h:58
DataWidget
Definition: detaildialog.h:227
ADVTreeData::Link
QString Link
Definition: detaildialog.h:61
DataWidget::DataWidget
DataWidget(QWidget *parent=0)
Definition: detaildialog.cpp:1107
LinksWidget::LinksWidget
LinksWidget(QWidget *parent=0)
Definition: detaildialog.cpp:1125
DetailDialog::~DetailDialog
~DetailDialog()
Destructor.
Definition: detaildialog.cpp:94
ADVTreeData::Name
QString Name
Definition: detaildialog.h:60
DetailDialog::centerTelescope
void centerTelescope()
Slot to center this object in the telescope.
Definition: detaildialog.cpp:1014
DetailDialog::editLinkDialog
void editLinkDialog()
Open a dialog to edit a URL in either the Images or Info lists, and update the user's *url...
Definition: detaildialog.cpp:679
SkyObject
Provides all necessary information about an object in the sky: its coordinates, name(s), type, magnitude, and QStringLists of URLs for images and webpages regarding the object.
Definition: skyobject.h:46
QFrame
PositionWidget
Definition: detaildialog.h:239
DetailDialog::setCurrentLink
void setCurrentLink(QListWidgetItem *it)
Set the currently-selected URL resource.
Definition: detaildialog.cpp:629
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