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

kstars

Public Slots | Public Member Functions | Static Public Member Functions | List of all members
KStars Class Reference

#include <kstars.h>

Inheritance diagram for KStars:
Inheritance graph
[legend]

Public Slots

Q_SCRIPTABLE Q_NOREPLY void addLabel (const QString &name)
 
Q_SCRIPTABLE Q_NOREPLY void addTrail (const QString &name)
 
Q_SCRIPTABLE Q_NOREPLY void changeViewOption (const QString &option, const QString &value)
 
void clearCachedFindDialog ()
 
Q_SCRIPTABLE Q_NOREPLY void defaultZoom ()
 
Q_SCRIPTABLE Q_NOREPLY void drawLine (int x1, int y1, int x2, int y2, int speed)
 
Q_SCRIPTABLE Q_NOREPLY void exportImage (const QString &filename, int width=-1, int height=-1, bool includeLegend=false)
 
Q_SCRIPTABLE QString getDSSURL (const QString &objectName)
 
Q_SCRIPTABLE QString getDSSURL (double RA_J2000, double Dec_J2000, float width=15, float height=15)
 
Q_SCRIPTABLE QString getObjectDataXML (const QString &objectName)
 
Q_SCRIPTABLE QString getObservingSessionPlanObjectNames ()
 
Q_SCRIPTABLE QString getObservingWishListObjectNames ()
 
QString getOption (const QString &name)
 
Q_SCRIPTABLE QString getSkyMapDimensions ()
 
Q_SCRIPTABLE Q_NOREPLY void loadColorScheme (const QString &name)
 
Q_SCRIPTABLE Q_NOREPLY void lookTowards (const QString &direction)
 
Q_SCRIPTABLE Q_NOREPLY void popupMessage (int x, int y, const QString &message)
 
Q_SCRIPTABLE Q_NOREPLY void printImage (bool usePrintDialog, bool useChartColors)
 
Q_SCRIPTABLE Q_NOREPLY void readConfig ()
 
Q_SCRIPTABLE Q_NOREPLY void removeLabel (const QString &name)
 
Q_SCRIPTABLE Q_NOREPLY void removeTrail (const QString &name)
 
Q_SCRIPTABLE Q_NOREPLY void setAltAz (double alt, double az)
 
Q_SCRIPTABLE Q_NOREPLY void setApproxFOV (double FOV_Degrees)
 
Q_SCRIPTABLE Q_NOREPLY void setColor (const QString &colorName, const QString &value)
 
Q_SCRIPTABLE Q_NOREPLY void setGeoLocation (const QString &city, const QString &province, const QString &country)
 
Q_SCRIPTABLE Q_NOREPLY void setLocalTime (int yr, int mth, int day, int hr, int min, int sec)
 
Q_SCRIPTABLE Q_NOREPLY void setRaDec (double ra, double dec)
 
Q_SCRIPTABLE Q_NOREPLY void setTracking (bool track)
 
void slotApplyConfigChanges ()
 
void slotApplyWIConfigChanges ()
 
void slotClearAllTrails ()
 
void slotFlagManager ()
 
void slotGeoLocator ()
 
void slotSetTimeToNow ()
 
void slotSetZoom ()
 
void slotShowPositionBar (SkyPoint *)
 
void slotTrack ()
 
void slotZoomChanged ()
 
void updateTime (const bool automaticDSTchange=true)
 
Q_SCRIPTABLE Q_NOREPLY void waitFor (double t)
 
Q_SCRIPTABLE Q_NOREPLY void waitForKey (const QString &k)
 
Q_SCRIPTABLE Q_NOREPLY void writeConfig ()
 
Q_SCRIPTABLE Q_NOREPLY void zoom (double z)
 
Q_SCRIPTABLE Q_NOREPLY void zoomIn ()
 
Q_SCRIPTABLE Q_NOREPLY void zoomOut ()
 

Public Member Functions

virtual ~KStars ()
 
void addColorMenuItem (const QString &name, const QString &actionName)
 
void applyConfig (bool doApplyFocus=true)
 
KStarsData * data () const
 
EkosManager * ekosManager () const
 
Execute * getExecute ()
 
FlagManager * getFlagManager () const
 
PrintingWizard * getPrintingWizard () const
 
void hideAllFovExceptFirst ()
 
SkyMap * map () const
 
ObservingList * observingList () const
 
void removeColorMenuItem (const QString &actionName)
 
void selectNextFov ()
 
void selectPreviousFov ()
 
void showImgExportDialog ()
 
void showWI (ObsConditions *obs)
 
void showWISettingsUI ()
 
void syncFOVActions ()
 

Static Public Member Functions

static KStars * createInstance (bool doSplash, bool clockrunning=true, const QString &startDateString=QString())
 
static KStars * Instance ()
 

Detailed Description

This is the main window for KStars.

In addition to the GUI elements, the class contains the program clock, KStarsData, and SkyMap objects. It also contains functions for the D-Bus interface.

Author
Jason Harris
Version
1.0

Definition at line 94 of file kstars.h.

Constructor & Destructor Documentation

KStars::~KStars ( )
virtual

Destructor.

Synchs config file. Deletes objects.

Definition at line 137 of file kstars.cpp.

Member Function Documentation

void KStars::addColorMenuItem ( const QString &  name,
const QString &  actionName 
)

Add an item to the color-scheme action manu.

Parameters
nameThe name to use in the menu
actionNameThe internal name for the action (derived from filename)

Definition at line 1154 of file kstarsactions.cpp.

void KStars::addLabel ( const QString &  name)
slot

DBUS interface function.

Add a name label to the named object

Parameters
namethe name of the object to which the label will be attached

Definition at line 115 of file kstarsdcop.cpp.

void KStars::addTrail ( const QString &  name)
slot

DBUS interface function.

Add a trail to the named solar system body

Parameters
namethe name of the body to which the trail will be attached

Definition at line 131 of file kstarsdcop.cpp.

void KStars::applyConfig ( bool  doApplyFocus = true)

Apply config options throughout the program.

In most cases, options are set in the "Options" object directly, but for some things we have to manually react to config changes.

Parameters
doApplyFocusIf true, then focus posiiton will be set from config file

Definition at line 165 of file kstars.cpp.

void KStars::changeViewOption ( const QString &  option,
const QString &  value 
)
slot

DBUS interface function.

modify a view option.

Parameters
optionthe name of the option to be modified
valuethe option's new value

Definition at line 278 of file kstarsdcop.cpp.

void KStars::clearCachedFindDialog ( )
slot

Delete FindDialog because ObjNames list has changed in KStarsData due to reloading star data.

So list in FindDialog must be new filled with current data.

Delete findDialog only if it is not opened

Definition at line 152 of file kstars.cpp.

KStars * KStars::createInstance ( bool  doSplash,
bool  clockrunning = true,
const QString &  startDateString = QString() 
)
static

Create an instance of this class.

Destroy any previous instance

Parameters
doSplash
clockrunning
startDateString
Note
See KStars::KStars for details on parameters
Returns
a pointer to the instance

Definition at line 129 of file kstars.cpp.

KStarsData* KStars::data ( ) const
inline
Returns
pointer to KStarsData object which contains application data.

Definition at line 131 of file kstars.h.

void KStars::defaultZoom ( )
slot

DBUS interface function.

reset to the default zoom level.

Definition at line 159 of file kstarsdcop.cpp.

void KStars::drawLine ( int  x1,
int  y1,
int  x2,
int  y2,
int  speed 
)
slot

DBUS interface function.

Draw a line on the sky map.

Note
Not Yet Implemented
Parameters
x1starting x-coordinate of line
y1starting y-coordinate of line
x2ending x-coordinate of line
y2ending y-coordinate of line
speedspeed at which line should appear from start to end points (in pixels per second)

Definition at line 192 of file kstarsdcop.cpp.

EkosManager* KStars::ekosManager ( ) const
inline

Definition at line 138 of file kstars.h.

void KStars::exportImage ( const QString &  filename,
int  width = -1,
int  height = -1,
bool  includeLegend = false 
)
slot

DBUS interface function.

Export the sky image to a file.

Parameters
filenamethe filename for the exported image
widththe width for the exported image. Map's width will be used if nothing or an invalid value is supplied.
heightthe height for the exported image. Map's height will be used if nothing or an invalid value is supplied.
includeLegendshould we include a legend?

Definition at line 429 of file kstarsdcop.cpp.

QString KStars::getDSSURL ( const QString &  objectName)
slot

DBUS interface function.

Return a URL to retrieve Digitized Sky Survey image.

Parameters
objectNamename of the object.
Note
If the object is note found, the string "ERROR" is returned.

Definition at line 441 of file kstarsdcop.cpp.

QString KStars::getDSSURL ( double  RA_J2000,
double  Dec_J2000,
float  width = 15,
float  height = 15 
)
slot

DBUS interface function.

Return a URL to retrieve Digitized Sky Survey image.

Parameters
RA_J2000J2000.0 RA
Dec_J2000J2000.0 Declination
widthwidth of the image, in arcminutes (default = 15)
heightheight of the image, in arcminutes (default = 15)

Definition at line 451 of file kstarsdcop.cpp.

Execute * KStars::getExecute ( )

Definition at line 363 of file kstars.cpp.

FlagManager* KStars::getFlagManager ( ) const
inline

Definition at line 161 of file kstars.h.

QString KStars::getObjectDataXML ( const QString &  objectName)
slot

DBUS interface function.

Return XML containing information about a sky object

Parameters
objectNamename of the object.
Note
If the object was not found, the XML is empty.

Definition at line 456 of file kstarsdcop.cpp.

QString KStars::getObservingSessionPlanObjectNames ( )
slot

DBUS interface function.

Return a newline-separated list of objects in the observing session plan.

Note
Unfortunately, unnamed objects are troublesome. Hopefully, we don't have them on the observing list.

Definition at line 513 of file kstarsdcop.cpp.

QString KStars::getObservingWishListObjectNames ( )
slot

DBUS interface function.

Return a newline-separated list of objects in the observing wishlist.

Note
Unfortunately, unnamed objects are troublesome. Hopefully, we don't have them on the observing list.

Definition at line 505 of file kstarsdcop.cpp.

QString KStars::getOption ( const QString &  name)
slot

DBUS interface function.

Parameters
namethe name of the option to query
Returns
the current value of the named option

Definition at line 267 of file kstarsdcop.cpp.

PrintingWizard* KStars::getPrintingWizard ( ) const
inline

Definition at line 163 of file kstars.h.

QString KStars::getSkyMapDimensions ( )
slot

DBUS interface function.

Get the dimensions of the Sky Map.

Returns
a string containing widthxheight in pixels.

Definition at line 525 of file kstarsdcop.cpp.

void KStars::hideAllFovExceptFirst ( )

Definition at line 249 of file kstars.cpp.

static KStars* KStars::Instance ( )
inlinestatic
Returns
a pointer to the instance of this class

Definition at line 125 of file kstars.h.

void KStars::loadColorScheme ( const QString &  name)
slot

DBUS interface function.

Load a color scheme.

Parameters
namethe name of the color scheme to load (e.g., "Moonless Night")

Definition at line 406 of file kstarsdcop.cpp.

void KStars::lookTowards ( const QString &  direction)
slot

DBUS interface function.

Point in the direction described by the string argument.

Parameters
directioneither an object name, a compass direction (e.g., "north"), or "zenith"

Definition at line 73 of file kstarsdcop.cpp.

SkyMap* KStars::map ( ) const
inline
Returns
pointer to SkyMap object which is the sky display widget.

Definition at line 134 of file kstars.h.

ObservingList* KStars::observingList ( ) const
inline

Definition at line 136 of file kstars.h.

void KStars::popupMessage ( int  x,
int  y,
const QString &  message 
)
slot

DBUS interface function.

Show text message in a popup window.

Note
Not Yet Implemented
Parameters
xx-coordinate for message window
yy-coordinate for message window
messagethe text to display in the message window

Definition at line 188 of file kstarsdcop.cpp.

void KStars::printImage ( bool  usePrintDialog,
bool  useChartColors 
)
slot

DBUS interface function.

Print the sky image.

Parameters
usePrintDialogif true, the KDE print dialog will be shown; otherwise, default parameters will be used
useChartColorsif true, the "Star Chart" color scheme will be used for the printout, which will save ink.

Definition at line 528 of file kstarsdcop.cpp.

void KStars::readConfig ( )
slot

DBUS interface function.

Read config file. This function is useful for restoring the user settings from the config file, after having modified the settings in memory.

See also
writeConfig()

Definition at line 245 of file kstarsdcop.cpp.

void KStars::removeColorMenuItem ( const QString &  actionName)

Remove an item from the color-scheme action manu.

Parameters
actionNameThe internal name of the action (derived from filename)

Definition at line 1168 of file kstarsactions.cpp.

void KStars::removeLabel ( const QString &  name)
slot

DBUS interface function.

Remove a name label from the named object

Parameters
namethe name of the object from which the label will be removed

Definition at line 123 of file kstarsdcop.cpp.

void KStars::removeTrail ( const QString &  name)
slot

DBUS interface function.

Remove a trail from the named solar system body

Parameters
namethe name of the object from which the trail will be removed

Definition at line 139 of file kstarsdcop.cpp.

void KStars::selectNextFov ( )

Definition at line 272 of file kstars.cpp.

void KStars::selectPreviousFov ( )

Definition at line 301 of file kstars.cpp.

void KStars::setAltAz ( double  alt,
double  az 
)
slot

DBUS interface function.

Set focus to given Alt/Az coordinates.

Parameters
altthe Altitude coordinate for the focus (in Degrees)
azthe Azimuth coordinate for the focus (in Degrees)

Definition at line 69 of file kstarsdcop.cpp.

void KStars::setApproxFOV ( double  FOV_Degrees)
slot

DBUS interface function.

Set the approx field-of-view

Parameters
FOV_Degreesfield of view in degrees

Definition at line 521 of file kstarsdcop.cpp.

void KStars::setColor ( const QString &  colorName,
const QString &  value 
)
slot

DBUS interface function.

Modify a color.

Parameters
colorNamethe name of the color to be modified (e.g., "SkyColor")
valuethe new color to use

Definition at line 398 of file kstarsdcop.cpp.

void KStars::setGeoLocation ( const QString &  city,
const QString &  province,
const QString &  country 
)
slot

DBUS interface function.

Set the geographic location.

Parameters
citythe city name of the location
provincethe province name of the location
countrythe country name of the location

Definition at line 196 of file kstarsdcop.cpp.

void KStars::setLocalTime ( int  yr,
int  mth,
int  day,
int  hr,
int  min,
int  sec 
)
slot

DBUS interface function.

Set local time and date.

Parameters
yryear of date
mthmonth of date
dayday of date
hrhour of time
minminute of time
secsecond of time

Definition at line 163 of file kstarsdcop.cpp.

void KStars::setRaDec ( double  ra,
double  dec 
)
slot

DBUS interface function.

Set focus to given Ra/Dec coordinates

Parameters
rathe Right Ascension coordinate for the focus (in Hours)
decthe Declination coordinate for the focus (in Degrees)

Definition at line 64 of file kstarsdcop.cpp.

void KStars::setTracking ( bool  track)
slot

DBUS interface function.

Toggle tracking.

Parameters
trackengage tracking if true; else disengage tracking

Definition at line 184 of file kstarsdcop.cpp.

void KStars::showImgExportDialog ( )

Definition at line 230 of file kstars.cpp.

void KStars::showWI ( ObsConditions *  obs)
void KStars::showWISettingsUI ( )

Definition at line 329 of file kstars.cpp.

void KStars::slotApplyConfigChanges ( )
slot

Apply new settings and redraw skymap.

Definition at line 548 of file kstarsactions.cpp.

void KStars::slotApplyWIConfigChanges ( )
slot

Apply new settings for WI.

Definition at line 568 of file kstarsactions.cpp.

void KStars::slotClearAllTrails ( )
slot

Remove all trails which may have been added to solar system bodies.

Definition at line 1121 of file kstarsactions.cpp.

void KStars::slotFlagManager ( )
slot

action slot: open Flag Manager

Definition at line 397 of file kstarsactions.cpp.

void KStars::slotGeoLocator ( )
slot

action slot: open dialog for selecting a new geographic location

Definition at line 461 of file kstarsactions.cpp.

void KStars::slotSetTimeToNow ( )
slot

action slot: sync kstars clock to system time

Definition at line 600 of file kstarsactions.cpp.

void KStars::slotSetZoom ( )
slot

action slot: Allow user to specify a field-of-view angle for the display window in degrees, and set the zoom level accordingly.

Definition at line 992 of file kstarsactions.cpp.

void KStars::slotShowPositionBar ( SkyPoint *  p)
slot

Display position in the status bar.

Definition at line 1208 of file kstarsactions.cpp.

void KStars::slotTrack ( )
slot

action slot: Toggle whether kstars is tracking current position

Definition at line 892 of file kstarsactions.cpp.

void KStars::slotZoomChanged ( )
slot

Called when zoom level is changed.

Enables/disables zoom actions and updates status bar.

Definition at line 972 of file kstarsactions.cpp.

void KStars::syncFOVActions ( )

Definition at line 235 of file kstars.cpp.

void KStars::updateTime ( const bool  automaticDSTchange = true)
slot

Update time-dependent data and (possibly) repaint the sky map.

Parameters
automaticDSTchangechange DST status automatically?

Definition at line 334 of file kstars.cpp.

void KStars::waitFor ( double  t)
slot

DBUS interface function.

Delay further execution of DBUS commands.

Parameters
tnumber of seconds to delay

Definition at line 167 of file kstarsdcop.cpp.

void KStars::waitForKey ( const QString &  k)
slot

DBUS interface function.

Pause further DBUS execution until a key is pressed.

Parameters
kthe key which will resume DBUS execution

Definition at line 173 of file kstarsdcop.cpp.

void KStars::writeConfig ( )
slot

DBUS interface function.

Write current settings to config file. This function is useful for storing user settings before modifying them with a DBUS script. The original settings can be restored with readConfig().

See also
readConfig()

Definition at line 260 of file kstarsdcop.cpp.

void KStars::zoom ( double  z)
slot

DBUS interface function.

Set zoom level to specified value.

Parameters
zthe zoom level. Units are pixels per radian.

Definition at line 147 of file kstarsdcop.cpp.

void KStars::zoomIn ( )
slot

DBUS interface function.

Zoom in one step.

Definition at line 151 of file kstarsdcop.cpp.

void KStars::zoomOut ( )
slot

DBUS interface function.

Zoom out one step.

Definition at line 155 of file kstarsdcop.cpp.


The documentation for this class was generated from the following files:
  • kstars.h
  • kstars.cpp
  • kstarsactions.cpp
  • kstarsdcop.cpp
  • kstarsinit.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:22 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