kstars
kstarsactions.cpp
Go to the documentation of this file.
180 QString message = i18n( "When the horizon is switched off, refraction effects are temporarily disabled." );
232 data()->geo()->tzrule()->reset_with_ltime( ltime, data()->geo()->TZ0(), data()->isTimeRunningForward() );
306 connect(dialog, SIGNAL(settingsChanged(const QString &)), this, SLOT(slotApplyWIConfigChanges()));
407 KMessageBox::error(NULL, i18n("Unable to find INDI server. Please make sure the package that provides the 'indiserver' binary is installed."));
422 KMessageBox::error(NULL, i18n("Unable to find INDI server. Please make sure the package that provides the 'indiserver' binary is installed."));
434 KMessageBox::error(NULL, i18n("Unable to find INDI server. Please make sure the package that provides the 'indiserver' binary is installed."));
449 KMessageBox::error(NULL, i18n("Unable to find INDI server. Please make sure the package that provides the 'indiserver' binary is installed."));
474 newLocation->tzrule()->reset_with_ltime( ltime, newLocation->TZ0(), data()->isTimeRunningForward() );
509 connect( dialog, SIGNAL( settingsChanged( const QString &) ), this, SLOT( slotApplyConfigChanges() ) );
551 // If the focus object was a constellation and the sky culture has changed, remove the focus object
553 if( kstarsData->skyComposite()->currentCulture() != kstarsData->skyComposite()->getCultureName( (int)Options::skyCulture() ) || kstarsData->skyComposite()->isLocalCNames() != Options::useLocalConstellNames() ) {
563 kstarsData->skyComposite()->setCurrentCulture( kstarsData->skyComposite()->getCultureName( (int)Options::skyCulture() ) );
629 if ( findDialog->exec() == QDialog::Accepted && ( targetObject = findDialog->selectedObject() ) ) {
644 KUrl fileURL = KFileDialog::getOpenUrl( QDir::homePath(), "*.fits *.fit *.fts|Flexible Image Transport System" );
659 KUrl fileURL = KFileDialog::getSaveUrl( QDir::homePath(), "image/png image/jpeg image/gif image/x-portable-pixmap image/bmp image/svg+xml" );
679 // Note: We don't let ExportImageDialog create its own ImageExporter because we want legend settings etc to be remembered between UI use and DBus scripting interface use.
684 imgExportDialog = new ExportImageDialog( fileURL.url(), QSize( map()->width(), map()->height() ), imageExporter );
694 KUrl fileURL = KFileDialog::getOpenUrl( QDir::homePath(), "*.kstars|" + i18nc("Filter by file type: KStars Scripts.", "KStars Scripts (*.kstars)") );
701 QString message = i18n( "Warning: You are about to execute a remote shell script on your machine. " );
702 message += i18n( "If you absolutely trust the source of this script, press Continue to execute the script; " );
706 int result = KMessageBox::warningYesNoCancel( 0, message, i18n( "Really Execute Remote Script?" ),
711 KUrl saveURL = KFileDialog::getSaveUrl( QDir::homePath(), "*.kstars|" + i18nc("Filter by file type: KStars Scripts.", "KStars Scripts (*.kstars)") );
717 if ( KMessageBox::warningYesNo( 0, message, i18n( "Invalid Save Location" ), KGuiItem(i18n("Try Another")), KGuiItem(i18n("Do Not Try")) ) == KMessageBox::No ) return;
718 saveURL = KFileDialog::getSaveUrl( QDir::homePath(), "*.kstars|" + i18nc("Filter by file type: KStars Scripts.", "KStars Scripts (*.kstars)") );
728 chmod( fname.toAscii(), S_IRUSR|S_IWUSR|S_IXUSR|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH ); //make it executable
765 // or begin with "dbus-send". INDI scripts are much more complicated, so this simple test is not
784 answer = KMessageBox::warningContinueCancel( 0, i18n( "The selected script contains unrecognized elements, "
788 i18n( "Script Validation Failed" ), KGuiItem( i18n( "Run Nevertheless" ) ), KStandardGuiItem::cancel(), "daExecuteScript" );
823 KGuiItem(i18n("Switch Color Scheme")), KGuiItem(i18n("Do Not Switch")), KStandardGuiItem::cancel(), "askAgainPrintColors" );
869 data()->clock()->setClockScale( -1.0 * data()->clock()->scale() ); //temporarily need negative time step
871 data()->clock()->setClockScale( -1.0 * data()->clock()->scale() ); //reset original sign of time step
947 //The slew takes some time to complete, and this often causes the final focus point to be slightly
953 //automatically correct the final pointing from the intermediate offset position to the final position
977 map()->setupProjector(); // this needs to be run redundantly, so that the FOV returned below is up-to-date.
979 KLocalizedString fovi18nstring = ki18nc( "approximate field of view", "Approximate FOV: %1 degrees" );
998 double angSize = KInputDialog::getDouble( i18nc( "The user should enter an angle for the field-of-view of the display",
1020 actionCollection()->action("coordsys")->setText( i18n("Switch to horizonal view (Horizontal &Coordinates)") );
1026 actionCollection()->action("coordsys")->setText( i18n("Switch to star globe view (Equatorial &Coordinates)") );
1115 topLevelWidget()->setWindowState( topLevelWidget()->windowState() & ~Qt::WindowFullScreen ); // reset
1117 topLevelWidget()->setWindowState( topLevelWidget()->windowState() | Qt::WindowFullScreen ); // set
1124 if ( map()->focusObject() && map()->focusObject()->isSolarSystem() && data()->temporaryTrail ) {
1163 if ( actionName.mid( 3 ) == cg.readEntry( "ColorSchemeFile", "moonless-night.colors" ).remove( ".colors" ) ) {
static void setFOVNames(const QStringList &v)
Set Name of selected FOV indicators.
Definition: Options.h:970
void addColorMenuItem(const QString &name, const QString &actionName)
Add an item to the color-scheme action manu.
Definition: kstarsactions.cpp:1154
Definition: obsconditions.h:38
Dialog for changing the geographic location of the observer.
Definition: locationdialog.h:57
Definition: skymap.h:97
static bool showAltAzField()
Get Display Alt/Az coordinates in the statusbar?
Definition: Options.h:334
void setManualMode(bool on=true)
Sets Manual Mode on/off according to the bool argument.
Definition: simclock.cpp:73
static bool showRADecField()
Get Display RA/Dec coordinates in the statusbar?
Definition: Options.h:353
static void clearTrailsExcept(SkyObject *o)
Remove trail for all objects but one which is passed as parameter.
Definition: trailobject.cpp:71
static QList< int > showCatalog()
Get List of toggles for displaying custom object catalogs.
Definition: Options.h:448
void setFocusObject(SkyObject *o)
Set the FocusObject pointer to the argument.
Definition: skymap.cpp:365
static bool noEquipCheck()
Get Availability of both telescope and binoculars.
Definition: Options.h:4521
void setDestination(const SkyPoint &f)
sets the destination point of the sky map.
Definition: skymap.cpp:812
void setClickedObject(SkyObject *o)
Set the ClickedObject pointer to the argument.
Definition: skymap.cpp:361
Definition: skymap.h:101
static void setCatalogFile(const QStringList &v)
Set Filenames of defined custom object catalogs.
Definition: Options.h:419
void forceUpdate(bool now=false)
Recalculates the positions of objects in the sky, and then repaints the sky map.
Definition: skymap.cpp:985
Backends for exporting a sky image, either raster or vector, with a legend.
Definition: imageexporter.h:35
void setFullTimeUpdate()
The Sky is updated more frequently than the moon, which is updated more frequently than the planets...
Definition: kstarsdata.cpp:260
void setCurrentCulture(QString culture)
Definition: skymapcomposite.cpp:597
AsteroidsComponent * asteroidsComponent()
Definition: solarsystemcomposite.cpp:127
Definition: skymap.h:96
Definition: obsconditions.h:38
void removeColorMenuItem(const QString &actionName)
Remove an item from the color-scheme action manu.
Definition: kstarsactions.cpp:1168
static void setShowCBounds(bool v)
Set Draw constellation boundaries in the sky map?
Definition: Options.h:1540
static QStringList catalogFile()
Get Filenames of defined custom object catalogs.
Definition: Options.h:429
void addCustomCatalog(const QString &filename, int index)
Definition: skymapcomposite.cpp:468
Definition: obsconditions.h:38
void slotSetZoom()
action slot: Allow user to specify a field-of-view angle for the display window in degrees...
Definition: kstarsactions.cpp:992
static void setShowCLines(bool v)
Set Draw constellation lines in the sky map?
Definition: Options.h:1578
void applyConfig(bool doApplyFocus=true)
Apply config options throughout the program.
Definition: kstars.cpp:165
static void setShowCNames(bool v)
Set Draw constellation names in the sky map?
Definition: Options.h:1597
static double slewTimeScale()
Get Minimum timescale for forced-slewing mode.
Definition: Options.h:2272
void slotShowPositionBar(SkyPoint *)
Display position in the status bar.
Definition: kstarsactions.cpp:1208
static void setShowMilkyWay(bool v)
Set Draw Milky Way contour in the sky map?
Definition: Options.h:1882
Astrocalc is the base class for the KStars astronomical calculator.
Definition: astrocalc.h:37
void changeDateTime(const KStarsDateTime &newDate)
change the current simulation date/time to the KStarsDateTime argument.
Definition: kstarsdata.cpp:272
SkyPoint * focus()
Retrieve the Focus point; the position on the sky at the center of the skymap.
Definition: skymap.h:120
Contains all relevant information for specifying a location on Earth: City Name, State/Province name...
Definition: geolocation.h:39
static void setShowHorizontalGrid(bool v)
Set Draw horizontal coordinate grid in the sky map?
Definition: Options.h:1711
void slotTriggerDataFileUpdate()
This initiates updating of the data file by using supernovae_updates_parser.py.
Definition: supernovaecomponent.cpp:228
void slotGeoLocator()
action slot: open dialog for selecting a new geographic location
Definition: kstarsactions.cpp:461
static void setShowRADecField(bool v)
Set Display RA/Dec coordinates in the statusbar?
Definition: Options.h:343
The Setup Wizard will be automatically opened when KStars runs for the first time.
Definition: kswizard.h:56
SupernovaeComponent * supernovaeComponent()
Definition: skymapcomposite.cpp:618
static void setShowCatalog(const QList< int > &v)
Set List of toggles for displaying custom object catalogs.
Definition: Options.h:438
i18nc("string from libindi, used in the config dialog","100x")
void setFocusAltAz(const dms &alt, const dms &az)
sets the focus point of the sky map, using its alt/az coordinates
Definition: skymap.cpp:801
void updateTime(const bool automaticDSTchange=true)
Update time-dependent data and (possibly) repaint the sky map.
Definition: kstars.cpp:334
void HorizontalToEquatorial(const dms *LST, const dms *lat)
Determine the (RA, Dec) coordinates of the SkyPoint from its (Altitude, Azimuth) coordinates, given the local sidereal time and the observer's latitude.
Definition: skypoint.cpp:102
Extension of KDateTime for KStars KStarsDateTime can represent the date/time as a Julian Day...
Definition: kstarsdatetime.h:45
void slotTrack()
action slot: Toggle whether kstars is tracking current position
Definition: kstarsactions.cpp:892
Class representing Printing Wizard for KStars printed documents (currently only finder charts)...
Definition: printingwizard.h:66
void EquatorialToHorizontal(const dms *LST, const dms *lat)
Determine the (Altitude, Azimuth) coordinates of the SkyPoint from its (RA, Dec) coordinates, given the local sidereal time and the observer's latitude.
Definition: skypoint.cpp:55
void setObsConditions(int bortle, double aperture, Equipment equip, TelescopeType telType)
Set new observing conditions.
Definition: obsconditions.cpp:107
int addFITS(const KUrl *imageName, FITSMode mode=FITS_NORMAL, FITSScale filter=FITS_NONE)
Definition: fitsviewer.cpp:196
void reset_with_ltime(KStarsDateTime <ime, const double TZoffset, const bool time_runs_forward, const bool automaticDSTchange=false)
Recalculate next dst change and if DST is active by a given local time with timezone offset and time ...
Definition: timezonerule.cpp:301
Definition: skymap.h:99
static bool useRefraction()
Get Correct positions for atmospheric refraction?
Definition: Options.h:2462
void syncFOV()
Synchronize list of visible FOVs and list of selected FOVs in Options.
Definition: kstarsdata.cpp:1045
Q_SCRIPTABLE Q_NOREPLY void setClockScale(float s)
DBUS function to set scale of simclock.
Definition: simclock.cpp:157
Q_SCRIPTABLE Q_NOREPLY void printImage(bool usePrintDialog, bool useChartColors)
DBUS interface function.
Definition: kstarsdcop.cpp:528
Definition: obsconditions.h:44
void slotSetTimeToNow()
action slot: sync kstars clock to system time
Definition: kstarsactions.cpp:600
void setClickedPoint(SkyPoint *f)
Set the ClickedPoint to the skypoint given as an argument.
Definition: skymap.cpp:829
void setSnapNextFocus(bool b=true)
Disable or re-enable the slewing animation for the next Focus change.
Definition: kstarsdata.h:194
Definition: skyobject.h:110
SolarSystemComposite * solarSystemComposite()
Definition: skymapcomposite.cpp:613
void setNextDSTChange(const KStarsDateTime &dt)
Set the NextDSTChange member.
Definition: kstarsdata.h:106
void slotApplyConfigChanges()
Apply new settings and redraw skymap.
Definition: kstarsactions.cpp:548
This class deals with the observing conditions of the night sky.
Definition: obsconditions.h:31
void clearCachedFindDialog()
Delete FindDialog because ObjNames list has changed in KStarsData due to reloading star data...
Definition: kstars.cpp:152
A subclass of TrailObject that provides additional information needed for most solar system objects...
Definition: ksplanetbase.h:63
Q_SCRIPTABLE Q_NOREPLY void start()
DBUS function to start the SimClock.
Definition: simclock.cpp:117
bool isTimeRunningForward()
Returns true if time is running forward else false.
Definition: kstarsdata.h:111
static void setRunStartupWizard(bool v)
Set Run Startup Wizard when KStars launches?
Definition: Options.h:400
static void setShowAltAzField(bool v)
Set Display Alt/Az coordinates in the statusbar?
Definition: Options.h:324
KStarsDateTime UTtoLT(const KStarsDateTime &ut) const
Definition: geolocation.h:233
Definition: skymap.h:100
CometsComponent * cometsComponent()
Definition: solarsystemcomposite.cpp:122
Q_SCRIPTABLE Q_NOREPLY void loadColorScheme(const QString &name)
DBUS interface function.
Definition: kstarsdcop.cpp:406
Definition: obsconditions.h:38
void setFocusPoint(SkyPoint *f)
set the FocusPoint; the position that is to be the next Destination.
Definition: skymap.h:191
SkyObject * focusObject() const
Retrieve the object which is centered in the sky map.
Definition: skymap.h:229
Definition: skymap.h:98
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
static void setShowDeepSky(bool v)
Set Draw "deep sky" objects in the sky map?
Definition: Options.h:1616
Definition: fitsviewer.h:51
void setDestinationAltAz(const dms &alt, const dms &az)
sets the destination point of the sky map, using its alt/az coordinates.
Definition: skymap.cpp:822
static bool useLocalConstellNames()
Get Use localized constellation names?
Definition: Options.h:2367
static void setShowSolarSystem(bool v)
Set Meta-option for all planets in the sky map.
Definition: Options.h:1920
static void setShowEquatorialGrid(bool v)
Set Draw equatorial coordinate grid in the sky map?
Definition: Options.h:1692
void slotClearAllTrails()
Remove all trails which may have been added to solar system bodies.
Definition: kstarsactions.cpp:1121
void setLocation(const GeoLocation &l)
Set the GeoLocation according to the argument.
Definition: kstarsdata.cpp:323
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:20 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:20 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.