• 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
  • oal
execute.h
Go to the documentation of this file.
1 /***************************************************************************
2  execute.h - description
3 
4  -------------------
5  begin : Friday July 21, 2009
6  copyright : (C) 2009 by Prakash Mohan
7  email : prakash.mohan*@kdemail.net
8  ***************************************************************************/
9 
10 /***************************************************************************
11  * *
12  * This program is free software; you can redistribute it and/or modify *
13  * it under the terms of the GNU General Public License as published by *
14  * the Free Software Foundation; either version 2 of the License, or *
15  * (at your option) any later version. *
16  * *
17  ***************************************************************************/
18 
19 #ifndef EXECUTE_H_
20 #define EXECUTE_H_
21 
22 #include "ui_execute.h"
23 
24 #include <QWidget>
25 #include<kdialog.h>
26 
27 #include "kstars.h"
28 #include "geolocation.h"
29 #include "oal/oal.h"
30 #include "oal/session.h"
31 #include "skyobjects/skyobject.h"
32 
33 class KStars;
34 
35 class Execute : public KDialog {
36 Q_OBJECT
37  public:
40  Execute();
41 
45  void init();
46 
47  public slots:
51  void slotNext();
52 
53  /*Function to Save the session details*/
54  bool saveSession();
55 
59  void addTargetNotes();
60 
63  bool addObservation();
64 
68  void slotEndSession();
69 
72  void slotLocation();
73 
77  void loadTargets();
78 
81  void sortTargetList();
82 
88  static bool timeLessThan( SkyObject *, SkyObject * );
89 
93  void slotSetTarget( QString name );
94 
98  void loadEquipment();
99 
103  void loadObservers();
104 
107  void loadObservationTab();
108 
109  void selectNextTarget();
110 
111  void loadCurrentItems();
112 
113  void slotSetCurrentObjects();
114 
115  void slotSlew();
116 
117  void slotShowSession();
118 
119  void slotShowTargets();
120 
121  int findIndexOfTarget( QString );
122 
123  void slotAddObject();
124 
125  private:
126  KStars *ks;
127  Ui::Execute ui;
128  OAL::Session *currentSession;
129  OAL::Log *logObject;
130  OAL::Observer *currentObserver;
131  OAL::Scope *currentScope;
132  OAL::Eyepiece *currentEyepiece;
133  OAL::Lens *currentLens;
134  OAL::Filter *currentFilter;
135  GeoLocation *geo;
136  SkyObject *currentTarget;
137  int nextSession, nextObservation, nextSite;
138 };
139 
140 #endif
Execute::selectNextTarget
void selectNextTarget()
Definition: execute.cpp:327
OAL::Eyepiece
Definition: eyepiece.h:25
Execute::findIndexOfTarget
int findIndexOfTarget(QString)
Definition: execute.cpp:125
Execute::slotShowSession
void slotShowSession()
Definition: execute.cpp:343
Execute::timeLessThan
static bool timeLessThan(SkyObject *, SkyObject *)
Custom LessThan function for the sort by time This compares the times of the two skyobjects using an ...
Definition: execute.cpp:217
skyobject.h
Execute::addTargetNotes
void addTargetNotes()
Function to save the user notes set for the current object in the target combo box.
Definition: execute.cpp:230
Execute
Definition: execute.h:35
OAL::Scope
Definition: scope.h:25
Execute::slotAddObject
void slotAddObject()
Definition: execute.cpp:360
session.h
Execute::sortTargetList
void sortTargetList()
Sorts the target list using the scheduled time.
Definition: execute.cpp:213
Execute::slotSetTarget
void slotSetTarget(QString name)
set the currentTarget when the user selection is changed in the target combo box
Definition: execute.cpp:296
KDialog
Execute::loadObservationTab
void loadObservationTab()
loads the observation edit page
Definition: execute.cpp:242
Execute::Execute
Execute()
Default constructor.
Definition: execute.cpp:37
KStars
This is the main window for KStars.
Definition: kstars.h:94
Execute::loadObservers
void loadObservers()
loads the observer list from the global logObject into the comboBoxes
Definition: execute.cpp:207
geolocation.h
Execute::saveSession
bool saveSession()
Definition: execute.cpp:155
Execute::slotShowTargets
void slotShowTargets()
Definition: execute.cpp:350
oal.h
Execute::slotNext
void slotNext()
Function to handle the UI when the 'next' button is pressed This calls the corresponding functions ba...
Definition: execute.cpp:132
Execute::loadEquipment
void loadEquipment()
loads the equipment list from the global logObject into the comboBoxes
Definition: execute.cpp:192
GeoLocation
Contains all relevant information for specifying a location on Earth: City Name, State/Province name...
Definition: geolocation.h:39
Execute::loadTargets
void loadTargets()
Loads the sessionlist from the OL into the target combo box.
Definition: execute.cpp:184
OAL::Filter
Definition: filter.h:25
Execute::addObservation
bool addObservation()
Function to add the current observation to the observation list.
Definition: execute.cpp:248
OAL::Session
Definition: session.h:26
Execute::slotSetCurrentObjects
void slotSetCurrentObjects()
Definition: execute.cpp:335
Execute::init
void init()
This initializes the combo boxes, and sets up the dateTime and geolocation from the OL...
Definition: execute.cpp:86
Execute::slotEndSession
void slotEndSession()
Function to handle the state of current observation, and hiding the execute window.
Definition: execute.cpp:259
Execute::slotSlew
void slotSlew()
Definition: execute.cpp:323
Execute::loadCurrentItems
void loadCurrentItems()
Definition: execute.cpp:106
OAL::Observer
Definition: observer.h:25
OAL::Log
Definition: log.h:41
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
OAL::Lens
Definition: lens.h:25
kstars.h
Execute::slotLocation
void slotLocation()
Opens the location dialog for setting the current location.
Definition: execute.cpp:175
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