KStars

Search for usage in LXR

#include <kstars.h>

Inheritance diagram for KStars:

Properties

Q_SCRIPTABLEQString colorScheme
 
- Properties inherited from QMainWindow
 animated
 
 dockNestingEnabled
 
 dockOptions
 
 documentMode
 
 iconSize
 
 tabShape
 
 toolButtonStyle
 
 unifiedTitleAndToolBarOnMac
 
- Properties inherited from QWidget
 acceptDrops
 
 accessibleDescription
 
 accessibleName
 
 autoFillBackground
 
 baseSize
 
 childrenRect
 
 childrenRegion
 
 contextMenuPolicy
 
 cursor
 
 enabled
 
 focus
 
 focusPolicy
 
 font
 
 frameGeometry
 
 frameSize
 
 fullScreen
 
 geometry
 
 height
 
 inputMethodHints
 
 isActiveWindow
 
 layoutDirection
 
 locale
 
 maximized
 
 maximumHeight
 
 maximumSize
 
 maximumWidth
 
 minimized
 
 minimumHeight
 
 minimumSize
 
 minimumSizeHint
 
 minimumWidth
 
 modal
 
 mouseTracking
 
 normalGeometry
 
 palette
 
 pos
 
 rect
 
 size
 
 sizeHint
 
 sizeIncrement
 
 sizePolicy
 
 statusTip
 
 styleSheet
 
 tabletTracking
 
 toolTip
 
 toolTipDuration
 
 updatesEnabled
 
 visible
 
 whatsThis
 
 width
 
 windowFilePath
 
 windowFlags
 
 windowIcon
 
 windowIconText
 
 windowModality
 
 windowModified
 
 windowOpacity
 
 windowTitle
 
 x
 
 y
 
- Properties inherited from QObject
 objectName
 

Signals

void colorSchemeChanged ()
 

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 getFocusInformationXML ()
 
Q_SCRIPTABLE QString getObjectDataXML (const QString &objectName, bool fallbackToInternet=false, bool storeInternetResolved=true)
 
Q_SCRIPTABLE QString getObjectPositionInfo (const QString &objectName)
 
Q_SCRIPTABLE QString getObservingSessionPlanObjectNames ()
 
Q_SCRIPTABLE QString getObservingWishListObjectNames ()
 
Q_DECL_DEPRECATED Q_SCRIPTABLE QString getOption (const QString &name)
 
Q_SCRIPTABLE QString getSkyMapDimensions ()
 
bool isWIVisible ()
 
Q_SCRIPTABLE Q_NOREPLY void loadColorScheme (const QString &name)
 
Q_SCRIPTABLE QString location ()
 
Q_SCRIPTABLE Q_NOREPLY void lookTowards (const QString &direction)
 
Q_SCRIPTABLE Q_NOREPLY void openFITS (const QUrl &imageUrl)
 
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 renderEyepieceView (const QString &objectName, const QString &destPathChart, const double fovWidth=-1.0, const double fovHeight=-1.0, const double rotation=0.0, const double scale=1.0, const bool flip=false, const bool invert=false, QString imagePath=QString(), const QString &destPathImage=QString(), const bool overlay=false, const bool invertColors=false)
 
Q_SCRIPTABLE Q_NOREPLY void setAltAz (double alt, double az, bool altIsRefracted=false)
 
Q_SCRIPTABLE Q_NOREPLY void setApproxFOV (double FOV_Degrees)
 
Q_SCRIPTABLE Q_NOREPLY void setColor (const QString &colorName, const QString &value)
 
Q_SCRIPTABLE bool setGeoLocation (const QString &city, const QString &province, const QString &country)
 
Q_SCRIPTABLE bool setGPSLocation (double longitude, double latitude, double elevation, double tz0)
 
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 setRaDecJ2000 (double ra0, double dec0)
 
Q_SCRIPTABLE Q_NOREPLY void setTimeToNow ()
 
Q_SCRIPTABLE Q_NOREPLY void setTracking (bool track)
 
void slotApplyConfigChanges ()
 
void slotApplyWIConfigChanges ()
 
void slotClearAllTrails ()
 
void slotDSOCatalogGUI ()
 
void slotFlagManager ()
 
void slotGeoLocator ()
 
void slotSetDomeEnabled (bool enable)
 
void slotSetTelescopeEnabled (bool enable)
 
void slotSetTimeToNow ()
 
void slotSetZoom ()
 
void slotShowPositionBar (SkyPoint *)
 
void slotToggleWIView ()
 
void slotTrack ()
 
void slotWISettings ()
 
void slotWizard ()
 
void slotZoomChanged ()
 
void updateLocationFromWizard (const GeoLocation &geo)
 
void updateTime (const bool automaticDSTchange=true)
 
Q_SCRIPTABLE Q_NOREPLY void waitFor (double t)
 
Q_SCRIPTABLE Q_NOREPLY void waitForKey (const QString &k)
 
WIViewwiView ()
 
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 Slots inherited from KXmlGuiWindow
virtual void configureToolbars ()
 
virtual void slotStateChanged (const QString &newstate)
 
void slotStateChanged (const QString &newstate, bool reverse)
 
- Public Slots inherited from KMainWindow
void appHelpActivated ()
 
virtual void setCaption (const QString &caption)
 
virtual void setCaption (const QString &caption, bool modified)
 
virtual void setPlainCaption (const QString &caption)
 
void setSettingsDirty ()
 

Public Member Functions

 ~KStars () override
 
void addColorMenuItem (QString name, const QString &actionName)
 
void applyConfig (bool doApplyFocus=true)
 
Q_SCRIPTABLE QString colorScheme () const
 
KStarsDatadata () const
 
FlagManagerflagManager () const
 
WIEquipSettingsgetWIEquipSettings ()
 
void hideAllFovExceptFirst ()
 
bool isGUIReady ()
 
bool isStartedWithClockRunning ()
 
SkyMapmap () const
 
PrintingWizardprintingWizard () const
 
void releaseResources ()
 
void removeColorMenuItem (const QString &actionName)
 
void repopulateHIPS ()
 
void repopulateOrientation ()
 
void repopulateViews ()
 
void selectNextFov ()
 
void selectNextView ()
 
void selectPreviousFov ()
 
void selectPreviousView ()
 
void showImgExportDialog ()
 
void showWI (ObsConditions *obs)
 
void showWISettingsUI ()
 
void syncFOVActions ()
 
void syncOps ()
 
- Public Member Functions inherited from KXmlGuiWindow
 KXmlGuiWindow (QWidget *parent=nullptr, Qt::WindowFlags flags=Qt::WindowFlags())
 
void applyMainWindowSettings (const KConfigGroup &config) override
 
void createGUI (const QString &xmlfile=QString())
 
void createStandardStatusBarAction ()
 
void finalizeGUI (bool force)
 
bool isCommandBarEnabled () const
 
bool isHelpMenuEnabled () const
 
bool isStandardToolBarMenuEnabled () const
 
void setCommandBarEnabled (bool showCommandBar)
 
void setHelpMenuEnabled (bool showHelpMenu=true)
 
void setStandardToolBarMenuEnabled (bool showToolBarMenu)
 
void setupGUI (const QSize &defaultSize, StandardWindowOptions options=Default, const QString &xmlfile=QString())
 
void setupGUI (StandardWindowOptions options=Default, const QString &xmlfile=QString())
 
void setupToolbarMenuActions ()
 
QActiontoolBarMenuAction ()
 
- Public Member Functions inherited from KMainWindow
 KMainWindow (QWidget *parent=nullptr, Qt::WindowFlags flags=Qt::WindowFlags())
 
KConfigGroup autoSaveConfigGroup () const
 
QString autoSaveGroup () const
 
bool autoSaveSettings () const
 
QString dbusName () const
 
bool hasMenuBar ()
 
void resetAutoSaveSettings ()
 
bool restore (int numberOfInstances, bool show=true)
 
void saveMainWindowSettings (KConfigGroup &config)
 
void setAutoSaveSettings (const KConfigGroup &group, bool saveWindowSize=true)
 
void setAutoSaveSettings (const QString &groupName=QStringLiteral("MainWindow"), bool saveWindowSize=true)
 
void setStateConfigGroup (const QString &configGroup)
 
KConfigGroup stateConfigGroup () const
 
KToolBartoolBar (const QString &name=QString())
 
QList< KToolBar * > toolBars () const
 
- Public Member Functions inherited from QMainWindow
 QMainWindow (QWidget *parent, Qt::WindowFlags flags)
 
void addDockWidget (Qt::DockWidgetArea area, QDockWidget *dockwidget)
 
void addDockWidget (Qt::DockWidgetArea area, QDockWidget *dockwidget, Qt::Orientation orientation)
 
QToolBaraddToolBar (const QString &title)
 
void addToolBar (Qt::ToolBarArea area, QToolBar *toolbar)
 
void addToolBar (QToolBar *toolbar)
 
void addToolBarBreak (Qt::ToolBarArea area)
 
QWidgetcentralWidget () const const
 
Qt::DockWidgetArea corner (Qt::Corner corner) const const
 
virtual QMenucreatePopupMenu ()
 
DockOptions dockOptions () const const
 
Qt::DockWidgetArea dockWidgetArea (QDockWidget *dockwidget) const const
 
bool documentMode () const const
 
QSize iconSize () const const
 
void iconSizeChanged (const QSize &iconSize)
 
void insertToolBar (QToolBar *before, QToolBar *toolbar)
 
void insertToolBarBreak (QToolBar *before)
 
bool isAnimated () const const
 
bool isDockNestingEnabled () const const
 
QMenuBarmenuBar () const const
 
QWidgetmenuWidget () const const
 
void removeDockWidget (QDockWidget *dockwidget)
 
void removeToolBar (QToolBar *toolbar)
 
void removeToolBarBreak (QToolBar *before)
 
void resizeDocks (const QList< QDockWidget * > &docks, const QList< int > &sizes, Qt::Orientation orientation)
 
bool restoreDockWidget (QDockWidget *dockwidget)
 
bool restoreState (const QByteArray &state, int version)
 
QByteArray saveState (int version) const const
 
void setAnimated (bool enabled)
 
void setCentralWidget (QWidget *widget)
 
void setCorner (Qt::Corner corner, Qt::DockWidgetArea area)
 
void setDockNestingEnabled (bool enabled)
 
void setDockOptions (DockOptions options)
 
void setDocumentMode (bool enabled)
 
void setIconSize (const QSize &iconSize)
 
void setMenuBar (QMenuBar *menuBar)
 
void setMenuWidget (QWidget *menuBar)
 
void setStatusBar (QStatusBar *statusbar)
 
void setTabPosition (Qt::DockWidgetAreas areas, QTabWidget::TabPosition tabPosition)
 
void setTabShape (QTabWidget::TabShape tabShape)
 
void setToolButtonStyle (Qt::ToolButtonStyle toolButtonStyle)
 
void setUnifiedTitleAndToolBarOnMac (bool set)
 
void splitDockWidget (QDockWidget *first, QDockWidget *second, Qt::Orientation orientation)
 
QStatusBarstatusBar () const const
 
void tabifiedDockWidgetActivated (QDockWidget *dockWidget)
 
QList< QDockWidget * > tabifiedDockWidgets (QDockWidget *dockwidget) const const
 
void tabifyDockWidget (QDockWidget *first, QDockWidget *second)
 
QTabWidget::TabPosition tabPosition (Qt::DockWidgetArea area) const const
 
QTabWidget::TabShape tabShape () const const
 
QWidgettakeCentralWidget ()
 
Qt::ToolBarArea toolBarArea (const QToolBar *toolbar) const const
 
bool toolBarBreak (QToolBar *toolbar) const const
 
Qt::ToolButtonStyle toolButtonStyle () const const
 
void toolButtonStyleChanged (Qt::ToolButtonStyle toolButtonStyle)
 
bool unifiedTitleAndToolBarOnMac () const const
 
- Public Member Functions inherited from QWidget
 QWidget (QWidget *parent, Qt::WindowFlags f)
 
bool acceptDrops () const const
 
QString accessibleDescription () const const
 
QString accessibleName () const const
 
QList< QAction * > actions () const const
 
void activateWindow ()
 
QActionaddAction (const QIcon &icon, const QString &text)
 
QActionaddAction (const QIcon &icon, const QString &text, Args &&... args)
 
QActionaddAction (const QIcon &icon, const QString &text, const QKeySequence &shortcut)
 
QActionaddAction (const QIcon &icon, const QString &text, const QKeySequence &shortcut, Args &&... args)
 
QActionaddAction (const QIcon &icon, const QString &text, const QKeySequence &shortcut, const QObject *receiver, const char *member, Qt::ConnectionType type)
 
QActionaddAction (const QIcon &icon, const QString &text, const QObject *receiver, const char *member, Qt::ConnectionType type)
 
QActionaddAction (const QString &text)
 
QActionaddAction (const QString &text, Args &&... args)
 
QActionaddAction (const QString &text, const QKeySequence &shortcut)
 
QActionaddAction (const QString &text, const QKeySequence &shortcut, Args &&... args)
 
QActionaddAction (const QString &text, const QKeySequence &shortcut, const QObject *receiver, const char *member, Qt::ConnectionType type)
 
QActionaddAction (const QString &text, const QObject *receiver, const char *member, Qt::ConnectionType type)
 
void addAction (QAction *action)
 
void addActions (const QList< QAction * > &actions)
 
void adjustSize ()
 
bool autoFillBackground () const const
 
QPalette::ColorRole backgroundRole () const const
 
QBackingStorebackingStore () const const
 
QSize baseSize () const const
 
QWidgetchildAt (const QPoint &p) const const
 
QWidgetchildAt (int x, int y) const const
 
QRect childrenRect () const const
 
QRegion childrenRegion () const const
 
void clearFocus ()
 
void clearMask ()
 
bool close ()
 
QMargins contentsMargins () const const
 
QRect contentsRect () const const
 
Qt::ContextMenuPolicy contextMenuPolicy () const const
 
QCursor cursor () const const
 
void customContextMenuRequested (const QPoint &pos)
 
WId effectiveWinId () const const
 
void ensurePolished () const const
 
Qt::FocusPolicy focusPolicy () const const
 
QWidgetfocusProxy () const const
 
QWidgetfocusWidget () const const
 
const QFontfont () const const
 
QFontInfo fontInfo () const const
 
QFontMetrics fontMetrics () const const
 
QPalette::ColorRole foregroundRole () const const
 
QRect frameGeometry () const const
 
QSize frameSize () const const
 
const QRectgeometry () const const
 
QPixmap grab (const QRect &rectangle)
 
void grabGesture (Qt::GestureType gesture, Qt::GestureFlags flags)
 
void grabKeyboard ()
 
void grabMouse ()
 
void grabMouse (const QCursor &cursor)
 
int grabShortcut (const QKeySequence &key, Qt::ShortcutContext context)
 
QGraphicsEffectgraphicsEffect () const const
 
QGraphicsProxyWidgetgraphicsProxyWidget () const const
 
bool hasEditFocus () const const
 
bool hasFocus () const const
 
virtual bool hasHeightForWidth () const const
 
bool hasMouseTracking () const const
 
bool hasTabletTracking () const const
 
int height () const const
 
virtual int heightForWidth (int w) const const
 
void hide ()
 
Qt::InputMethodHints inputMethodHints () const const
 
virtual QVariant inputMethodQuery (Qt::InputMethodQuery query) const const
 
void insertAction (QAction *before, QAction *action)
 
void insertActions (QAction *before, const QList< QAction * > &actions)
 
bool isActiveWindow () const const
 
bool isAncestorOf (const QWidget *child) const const
 
bool isEnabled () const const
 
bool isEnabledTo (const QWidget *ancestor) const const
 
bool isFullScreen () const const
 
bool isHidden () const const
 
bool isMaximized () const const
 
bool isMinimized () const const
 
bool isModal () const const
 
bool isTopLevel () const const
 
bool isVisible () const const
 
bool isVisibleTo (const QWidget *ancestor) const const
 
bool isWindow () const const
 
bool isWindowModified () const const
 
QLayoutlayout () const const
 
Qt::LayoutDirection layoutDirection () const const
 
QLocale locale () const const
 
void lower ()
 
QPoint mapFrom (const QWidget *parent, const QPoint &pos) const const
 
QPointF mapFrom (const QWidget *parent, const QPointF &pos) const const
 
QPoint mapFromGlobal (const QPoint &pos) const const
 
QPointF mapFromGlobal (const QPointF &pos) const const
 
QPoint mapFromParent (const QPoint &pos) const const
 
QPointF mapFromParent (const QPointF &pos) const const
 
QPoint mapTo (const QWidget *parent, const QPoint &pos) const const
 
QPointF mapTo (const QWidget *parent, const QPointF &pos) const const
 
QPoint mapToGlobal (const QPoint &pos) const const
 
QPointF mapToGlobal (const QPointF &pos) const const
 
QPoint mapToParent (const QPoint &pos) const const
 
QPointF mapToParent (const QPointF &pos) const const
 
QRegion mask () const const
 
int maximumHeight () const const
 
QSize maximumSize () const const
 
int maximumWidth () const const
 
int minimumHeight () const const
 
QSize minimumSize () const const
 
virtual QSize minimumSizeHint () const const
 
int minimumWidth () const const
 
void move (const QPoint &)
 
void move (int x, int y)
 
QWidgetnativeParentWidget () const const
 
QWidgetnextInFocusChain () const const
 
QRect normalGeometry () const const
 
void overrideWindowFlags (Qt::WindowFlags flags)
 
virtual QPaintEnginepaintEngine () const const override
 
const QPalettepalette () const const
 
QWidgetparentWidget () const const
 
QPoint pos () const const
 
QWidgetpreviousInFocusChain () const const
 
 QWIDGETSIZE_MAX QWIDGETSIZE_MAX
 
void raise ()
 
QRect rect () const const
 
void releaseKeyboard ()
 
void releaseMouse ()
 
void releaseShortcut (int id)
 
void removeAction (QAction *action)
 
void render (QPaintDevice *target, const QPoint &targetOffset, const QRegion &sourceRegion, RenderFlags renderFlags)
 
void render (QPainter *painter, const QPoint &targetOffset, const QRegion &sourceRegion, RenderFlags renderFlags)
 
void repaint ()
 
void repaint (const QRect &rect)
 
void repaint (const QRegion &rgn)
 
void repaint (int x, int y, int w, int h)
 
void resize (const QSize &)
 
void resize (int w, int h)
 
bool restoreGeometry (const QByteArray &geometry)
 
QByteArray saveGeometry () const const
 
QScreenscreen () const const
 
void scroll (int dx, int dy)
 
void scroll (int dx, int dy, const QRect &r)
 
void setAcceptDrops (bool on)
 
void setAccessibleDescription (const QString &description)
 
void setAccessibleName (const QString &name)
 
void setAttribute (Qt::WidgetAttribute attribute, bool on)
 
void setAutoFillBackground (bool enabled)
 
void setBackgroundRole (QPalette::ColorRole role)
 
void setBaseSize (const QSize &)
 
void setBaseSize (int basew, int baseh)
 
void setContentsMargins (const QMargins &margins)
 
void setContentsMargins (int left, int top, int right, int bottom)
 
void setContextMenuPolicy (Qt::ContextMenuPolicy policy)
 
void setCursor (const QCursor &)
 
void setDisabled (bool disable)
 
void setEditFocus (bool enable)
 
void setEnabled (bool)
 
void setFixedHeight (int h)
 
void setFixedSize (const QSize &s)
 
void setFixedSize (int w, int h)
 
void setFixedWidth (int w)
 
void setFocus ()
 
void setFocus (Qt::FocusReason reason)
 
void setFocusPolicy (Qt::FocusPolicy policy)
 
void setFocusProxy (QWidget *w)
 
void setFont (const QFont &)
 
void setForegroundRole (QPalette::ColorRole role)
 
void setGeometry (const QRect &)
 
void setGeometry (int x, int y, int w, int h)
 
void setGraphicsEffect (QGraphicsEffect *effect)
 
void setHidden (bool hidden)
 
void setInputMethodHints (Qt::InputMethodHints hints)
 
void setLayout (QLayout *layout)
 
void setLayoutDirection (Qt::LayoutDirection direction)
 
void setLocale (const QLocale &locale)
 
void setMask (const QBitmap &bitmap)
 
void setMask (const QRegion &region)
 
void setMaximumHeight (int maxh)
 
void setMaximumSize (const QSize &)
 
void setMaximumSize (int maxw, int maxh)
 
void setMaximumWidth (int maxw)
 
void setMinimumHeight (int minh)
 
void setMinimumSize (const QSize &)
 
void setMinimumSize (int minw, int minh)
 
void setMinimumWidth (int minw)
 
void setMouseTracking (bool enable)
 
void setPalette (const QPalette &)
 
void setParent (QWidget *parent)
 
void setParent (QWidget *parent, Qt::WindowFlags f)
 
void setScreen (QScreen *screen)
 
void setShortcutAutoRepeat (int id, bool enable)
 
void setShortcutEnabled (int id, bool enable)
 
void setSizeIncrement (const QSize &)
 
void setSizeIncrement (int w, int h)
 
void setSizePolicy (QSizePolicy)
 
void setSizePolicy (QSizePolicy::Policy horizontal, QSizePolicy::Policy vertical)
 
void setStatusTip (const QString &)
 
void setStyle (QStyle *style)
 
void setStyleSheet (const QString &styleSheet)
 
void setTabletTracking (bool enable)
 
void setToolTip (const QString &)
 
void setToolTipDuration (int msec)
 
void setUpdatesEnabled (bool enable)
 
void setupUi (QWidget *widget)
 
virtual void setVisible (bool visible)
 
void setWhatsThis (const QString &)
 
void setWindowFilePath (const QString &filePath)
 
void setWindowFlag (Qt::WindowType flag, bool on)
 
void setWindowFlags (Qt::WindowFlags type)
 
void setWindowIcon (const QIcon &icon)
 
void setWindowIconText (const QString &)
 
void setWindowModality (Qt::WindowModality windowModality)
 
void setWindowModified (bool)
 
void setWindowOpacity (qreal level)
 
void setWindowRole (const QString &role)
 
void setWindowState (Qt::WindowStates windowState)
 
void setWindowTitle (const QString &)
 
void show ()
 
void showFullScreen ()
 
void showMaximized ()
 
void showMinimized ()
 
void showNormal ()
 
QSize size () const const
 
virtual QSize sizeHint () const const
 
QSize sizeIncrement () const const
 
QSizePolicy sizePolicy () const const
 
void stackUnder (QWidget *w)
 
QString statusTip () const const
 
QStylestyle () const const
 
QString styleSheet () const const
 
bool testAttribute (Qt::WidgetAttribute attribute) const const
 
QString toolTip () const const
 
int toolTipDuration () const const
 
QWidgettopLevelWidget () const const
 
bool underMouse () const const
 
void ungrabGesture (Qt::GestureType gesture)
 
void unsetCursor ()
 
void unsetLayoutDirection ()
 
void unsetLocale ()
 
void update ()
 
void update (const QRect &rect)
 
void update (const QRegion &rgn)
 
void update (int x, int y, int w, int h)
 
void updateGeometry ()
 
bool updatesEnabled () const const
 
QRegion visibleRegion () const const
 
QString whatsThis () const const
 
int width () const const
 
QWidgetwindow () const const
 
QString windowFilePath () const const
 
Qt::WindowFlags windowFlags () const const
 
QWindowwindowHandle () const const
 
QIcon windowIcon () const const
 
void windowIconChanged (const QIcon &icon)
 
QString windowIconText () const const
 
void windowIconTextChanged (const QString &iconText)
 
Qt::WindowModality windowModality () const const
 
qreal windowOpacity () const const
 
QString windowRole () const const
 
Qt::WindowStates windowState () const const
 
QString windowTitle () const const
 
void windowTitleChanged (const QString &title)
 
Qt::WindowType windowType () const const
 
WId winId () const const
 
int x () const const
 
int y () const const
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
QBindable< QStringbindableObjectName ()
 
bool blockSignals (bool block)
 
const QObjectListchildren () const const
 
QMetaObject::Connection connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method) const const
 
bool disconnect (const QObject *receiver, const char *method) const const
 
void dumpObjectInfo () const const
 
void dumpObjectTree () const const
 
QList< QByteArraydynamicPropertyNames () const const
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
findChild (const QString &name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QString &name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (Qt::FindChildOptions options) const const
 
bool inherits (const char *className) const const
 
void installEventFilter (QObject *filterObj)
 
bool isQuickItemType () const const
 
bool isWidgetType () const const
 
bool isWindowType () const const
 
void killTimer (int id)
 
virtual const QMetaObjectmetaObject () const const
 
void moveToThread (QThread *targetThread)
 
QString objectName () const const
 
void objectNameChanged (const QString &objectName)
 
QObjectparent () const const
 
QVariant property (const char *name) const const
 
 Q_CLASSINFO (Name, Value)
 
 Q_EMIT Q_EMIT
 
 Q_ENUM (...)
 
 Q_ENUM_NS (...)
 
 Q_ENUMS (...)
 
 Q_FLAG (...)
 
 Q_FLAG_NS (...)
 
 Q_FLAGS (...)
 
 Q_GADGET Q_GADGET
 
 Q_GADGET_EXPORT (EXPORT_MACRO)
 
 Q_INTERFACES (...)
 
 Q_INVOKABLE Q_INVOKABLE
 
 Q_MOC_INCLUDE Q_MOC_INCLUDE
 
 Q_NAMESPACE Q_NAMESPACE
 
 Q_NAMESPACE_EXPORT (EXPORT_MACRO)
 
 Q_OBJECT Q_OBJECT
 
 Q_PROPERTY (...)
 
 Q_REVISION Q_REVISION
 
 Q_SET_OBJECT_NAME (Object)
 
 Q_SIGNAL Q_SIGNAL
 
 Q_SIGNALS Q_SIGNALS
 
 Q_SLOT Q_SLOT
 
 Q_SLOTS Q_SLOTS
 
qobject_cast (const QObject *object)
 
qobject_cast (QObject *object)
 
 QT_NO_NARROWING_CONVERSIONS_IN_CONNECT QT_NO_NARROWING_CONVERSIONS_IN_CONNECT
 
void removeEventFilter (QObject *obj)
 
void setObjectName (const QString &name)
 
void setObjectName (QAnyStringView name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool setProperty (const char *name, QVariant &&value)
 
bool signalsBlocked () const const
 
int startTimer (int interval, Qt::TimerType timerType)
 
int startTimer (std::chrono::milliseconds interval, Qt::TimerType timerType)
 
QThreadthread () const const
 
- Public Member Functions inherited from QPaintDevice
int colorCount () const const
 
int depth () const const
 
qreal devicePixelRatio () const const
 
qreal devicePixelRatioF () const const
 
int height () const const
 
int heightMM () const const
 
int logicalDpiX () const const
 
int logicalDpiY () const const
 
bool paintingActive () const const
 
int physicalDpiX () const const
 
int physicalDpiY () const const
 
int width () const const
 
int widthMM () const const
 
- Public Member Functions inherited from KXMLGUIBuilder
virtual QWidgetcreateContainer (QWidget *parent, int index, const QDomElement &element, QAction *&containerAction)
 
virtual void removeContainer (QWidget *container, QWidget *parent, QDomElement &element, QAction *containerAction)
 
- Public Member Functions inherited from KXMLGUIClient
 KXMLGUIClient (KXMLGUIClient *parent)
 
virtual QActionaction (const QDomElement &element) const
 
QActionaction (const QString &name) const
 
virtual KActionCollectionactionCollection () const
 
QList< KXMLGUIClient * > childClients ()
 
KXMLGUIBuilderclientBuilder () const
 
virtual QString componentName () const
 
virtual QDomDocument domDocument () const
 
KXMLGUIFactoryfactory () const
 
void insertChildClient (KXMLGUIClient *child)
 
KXMLGUIClientparentClient () const
 
void plugActionList (const QString &name, const QList< QAction * > &actionList)
 
void reloadXML ()
 
void removeChildClient (KXMLGUIClient *child)
 
void replaceXMLFile (const QString &xmlfile, const QString &localxmlfile, bool merge=false)
 
void setClientBuilder (KXMLGUIBuilder *builder)
 
void setFactory (KXMLGUIFactory *factory)
 
void setXMLGUIBuildDocument (const QDomDocument &doc)
 
void unplugActionList (const QString &name)
 
virtual QString xmlFile () const
 
QDomDocument xmlguiBuildDocument () const
 

Static Public Member Functions

static KStarscreateInstance (bool doSplash, bool clockrunning=true, const QString &startDateString=QString())
 
static KStarsInstance ()
 
static bool setResourceFile (QString const rc)
 
- Static Public Member Functions inherited from KMainWindow
static bool canBeRestored (int numberOfInstances)
 
static const QString classNameOfToplevel (int instanceNumber)
 
static QList< KMainWindow * > memberList ()
 
- Static Public Member Functions inherited from QWidget
QWidgetcreateWindowContainer (QWindow *window, QWidget *parent, Qt::WindowFlags flags)
 
QWidgetfind (WId id)
 
QWidgetkeyboardGrabber ()
 
QWidgetmouseGrabber ()
 
void setTabOrder (QWidget *first, QWidget *second)
 
void setTabOrder (std::initializer_list< QWidget * > widgets)
 
- Static Public Member Functions inherited from QObject
QMetaObject::Connection connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, Functor functor)
 
bool disconnect (const QMetaObject::Connection &connection)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
bool disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
- Static Public Member Functions inherited from KXMLGUIClient
static QString findVersionNumber (const QString &xml)
 

Static Public Attributes

static bool Closing = false
 

Additional Inherited Members

- Public Types inherited from KXmlGuiWindow
enum  StandardWindowOption
 
typedef QFlags< StandardWindowOptionStandardWindowOptions
 
- Public Types inherited from QMainWindow
enum  DockOption
 
typedef  DockOptions
 
- Public Types inherited from QWidget
enum  RenderFlag
 
typedef  RenderFlags
 
- Public Types inherited from QObject
typedef  QObjectList
 
- Public Types inherited from QPaintDevice
enum  PaintDeviceMetric
 
- Public Attributes inherited from KXmlGuiWindow
 Create
 
 Default
 
 Keys
 
 Save
 
 StatusBar
 
 ToolBar
 
- Public Attributes inherited from QMainWindow
 AllowNestedDocks
 
 AllowTabbedDocks
 
 AnimatedDocks
 
 ForceTabbedDocks
 
 GroupedDragging
 
 VerticalTabs
 
- Public Attributes inherited from QWidget
 DrawChildren
 
 DrawWindowBackground
 
 IgnoreMask
 
- Public Attributes inherited from QPaintDevice
 PdmDepth
 
 PdmDevicePixelRatio
 
 PdmDevicePixelRatioScaled
 
 PdmDpiX
 
 PdmDpiY
 
 PdmHeight
 
 PdmHeightMM
 
 PdmNumColors
 
 PdmPhysicalDpiX
 
 PdmPhysicalDpiY
 
 PdmWidth
 
 PdmWidthMM
 
- Protected Slots inherited from KXmlGuiWindow
virtual void saveNewToolbarConfig ()
 
- Protected Slots inherited from KMainWindow
void saveAutoSaveSettings ()
 
- Protected Member Functions inherited from KXmlGuiWindow
void checkAmbiguousShortcuts ()
 
bool event (QEvent *event) override
 
- Protected Member Functions inherited from KMainWindow
void keyPressEvent (QKeyEvent *keyEvent) override
 
virtual bool queryClose ()
 
virtual void readGlobalProperties (KConfig *sessionConfig)
 
virtual void readProperties (const KConfigGroup &)
 
virtual void saveGlobalProperties (KConfig *sessionConfig)
 
virtual void saveProperties (KConfigGroup &)
 
bool settingsDirty () const
 
- Protected Member Functions inherited from QMainWindow
virtual void contextMenuEvent (QContextMenuEvent *event) override
 
- Protected Member Functions inherited from QWidget
virtual void actionEvent (QActionEvent *event)
 
virtual void changeEvent (QEvent *event)
 
void create (WId window, bool initializeWindow, bool destroyOldWindow)
 
void destroy (bool destroyWindow, bool destroySubWindows)
 
virtual void dragEnterEvent (QDragEnterEvent *event)
 
virtual void dragLeaveEvent (QDragLeaveEvent *event)
 
virtual void dragMoveEvent (QDragMoveEvent *event)
 
virtual void dropEvent (QDropEvent *event)
 
virtual void enterEvent (QEnterEvent *event)
 
virtual void focusInEvent (QFocusEvent *event)
 
bool focusNextChild ()
 
virtual bool focusNextPrevChild (bool next)
 
virtual void focusOutEvent (QFocusEvent *event)
 
bool focusPreviousChild ()
 
virtual void hideEvent (QHideEvent *event)
 
virtual void initPainter (QPainter *painter) const const override
 
virtual void inputMethodEvent (QInputMethodEvent *event)
 
virtual void keyReleaseEvent (QKeyEvent *event)
 
virtual void leaveEvent (QEvent *event)
 
virtual int metric (PaintDeviceMetric m) const const override
 
virtual void mouseDoubleClickEvent (QMouseEvent *event)
 
virtual void mouseMoveEvent (QMouseEvent *event)
 
virtual void mousePressEvent (QMouseEvent *event)
 
virtual void mouseReleaseEvent (QMouseEvent *event)
 
virtual void moveEvent (QMoveEvent *event)
 
virtual bool nativeEvent (const QByteArray &eventType, void *message, qintptr *result)
 
virtual void paintEvent (QPaintEvent *event)
 
virtual void resizeEvent (QResizeEvent *event)
 
virtual void showEvent (QShowEvent *event)
 
virtual void tabletEvent (QTabletEvent *event)
 
void updateMicroFocus (Qt::InputMethodQuery query)
 
virtual void wheelEvent (QWheelEvent *event)
 
- Protected Member Functions inherited from QObject
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const QMetaMethod &signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const QMetaMethod &signal)
 
bool isSignalConnected (const QMetaMethod &signal) const const
 
int receivers (const char *signal) const const
 
QObjectsender () const const
 
int senderSignalIndex () const const
 
virtual void timerEvent (QTimerEvent *event)
 
- Protected Member Functions inherited from QPaintDevice
- Protected Member Functions inherited from KXMLGUIClient
void loadStandardsXmlFile ()
 
virtual void setComponentName (const QString &componentName, const QString &componentDisplayName)
 
virtual void setDOMDocument (const QDomDocument &document, bool merge=false)
 
virtual void setLocalXMLFile (const QString &file)
 
virtual void setXML (const QString &document, bool merge=false)
 
virtual void setXMLFile (const QString &file, bool merge=false, bool setXMLDoc=true)
 
virtual void stateChanged (const QString &newstate, ReverseStateChange reverse=StateNoReverse)
 
- Static Protected Member Functions inherited from KXMLGUIClient
static QString standardsXmlFileLocation ()
 

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 DBus Interface D-Bus interface. KStars is now a singleton class. Use KStars::createInstance() to create an instance and KStars::Instance() to get a pointer to the instance

Author
Jason Harris, Jasem Mutlaq
Version
1.1

Definition at line 88 of file kstars.h.

Property Documentation

◆ colorScheme

Q_SCRIPTABLEQString KStars::colorScheme
readwrite

Definition at line 92 of file kstars.h.

Constructor & Destructor Documentation

◆ ~KStars()

KStars::~KStars ( )
override

Destructor.

Definition at line 248 of file kstars.cpp.

Member Function Documentation

◆ addColorMenuItem()

void KStars::addColorMenuItem ( 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 2084 of file kstarsactions.cpp.

◆ addLabel

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 142 of file kstarsdbus.cpp.

◆ addTrail

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 162 of file kstarsdbus.cpp.

◆ applyConfig()

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 position will be set from config file

Note: This uses style sheets to set the dark colors, this should be cross platform. Palettes have a different behavior on OS X and Windows as opposed to Linux. It might be a good idea to use stylesheets in the future instead of palettes but this will work for now for OS X. This is also in KStarsDbus.cpp. If you change it, change it in BOTH places.

#ifdef Q_OS_MACOS
if (Options::darkAppColors())
qApp->setStyleSheet(
"QWidget { background-color: black; color:red; "
"selection-background-color:rgb(30,30,30);selection-color:white}"
"QToolBar { border:none }"
"QTabBar::tab:selected { background-color:rgb(50,50,50) }"
"QTabBar::tab:!selected { background-color:rgb(30,30,30) }"
"QPushButton { background-color:rgb(50,50,50);border-width:1px; border-style:solid;border-color:black}"
"QPushButton::disabled { background-color:rgb(10,10,10);border-width:1px; "
"border-style:solid;border-color:black }"
"QToolButton:Checked { background-color:rgb(30,30,30); border:none }"
"QComboBox { background-color:rgb(30,30,30); }"
"QComboBox::disabled { background-color:rgb(10,10,10) }"
"QScrollBar::handle { background: rgb(30,30,30) }"
"QSpinBox { border-width: 1px; border-style:solid; border-color:rgb(30,30,30) }"
"QDoubleSpinBox { border-width:1px; border-style:solid; border-color:rgb(30,30,30) }"
"QLineEdit { border-width: 1px; border-style: solid; border-color:rgb(30,30,30) }"
"QCheckBox::indicator:unchecked { background-color:rgb(30,30,30);border-width:1px; "
"border-style:solid;border-color:black }"
"QCheckBox::indicator:checked { background-color:red;border-width:1px; "
"border-style:solid;border-color:black }"
"QRadioButton::indicator:unchecked { background-color:rgb(30,30,30) }"
"QRadioButton::indicator:checked { background-color:red }"
"QRoundProgressBar { alternate-background-color:black }"
"QDateTimeEdit {background-color:rgb(30,30,30); border-width: 1px; border-style:solid; "
"border-color:rgb(30,30,30) }"
"QHeaderView { color:red;background-color:black }"
"QHeaderView::Section { background-color:rgb(30,30,30) }"
"QTableCornerButton::section{ background-color:rgb(30,30,30) }"
"");
else
qApp->setStyleSheet("");
#endif

Definition at line 311 of file kstars.cpp.

◆ changeViewOption

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 419 of file kstarsdbus.cpp.

◆ clearCachedFindDialog

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.

Definition at line 293 of file kstars.cpp.

◆ colorScheme()

QString KStars::colorScheme ( ) const

Definition at line 626 of file kstarsdbus.cpp.

◆ colorSchemeChanged

void KStars::colorSchemeChanged ( )
signal

DBUS interface notification.

Color scheme was updated.

◆ createInstance()

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 239 of file kstars.cpp.

◆ data()

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

Definition at line 133 of file kstars.h.

◆ defaultZoom

void KStars::defaultZoom ( )
slot

DBUS interface function.

reset to the default zoom level.

Definition at line 197 of file kstarsdbus.cpp.

◆ drawLine

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 248 of file kstarsdbus.cpp.

◆ exportImage

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 703 of file kstarsdbus.cpp.

◆ flagManager()

FlagManager * KStars::flagManager ( ) const
inline

Definition at line 144 of file kstars.h.

◆ getDSSURL [1/2]

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 719 of file kstarsdbus.cpp.

◆ getDSSURL [2/2]

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 732 of file kstarsdbus.cpp.

◆ getFocusInformationXML

QString KStars::getFocusInformationXML ( )
slot

DBUS interface function.

Get the focus information as XML.

Definition at line 395 of file kstarsdbus.cpp.

◆ getObjectDataXML

QString KStars::getObjectDataXML ( const QString & objectName,
bool fallbackToInternet = false,
bool storeInternetResolved = true )
slot

DBUS interface function.

Return XML containing information about a sky object

Parameters
objectNamename of the object.
fallbackToInternetAttempt to resolve the name using internet databases if not found
storeInternetResolvedIf we fell back to the internet, save the result in DSO database for future offline access
Note
If the object was not found, the XML is empty.

Definition at line 738 of file kstarsdbus.cpp.

◆ getObjectPositionInfo

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

DBUS interface function.

Return XML containing position info about a sky object

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

Definition at line 819 of file kstarsdbus.cpp.

◆ getObservingSessionPlanObjectNames

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 982 of file kstarsdbus.cpp.

◆ getObservingWishListObjectNames

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 971 of file kstarsdbus.cpp.

◆ getOption

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
Note
Deprecated because it's not clear how to list the options

Definition at line 375 of file kstarsdbus.cpp.

◆ getSkyMapDimensions

QString KStars::getSkyMapDimensions ( )
slot

DBUS interface function.

Get the dimensions of the Sky Map.

Returns
a string containing widthxheight in pixels.

Definition at line 998 of file kstarsdbus.cpp.

◆ getWIEquipSettings()

WIEquipSettings * KStars::getWIEquipSettings ( )
inline

Definition at line 213 of file kstars.h.

◆ hideAllFovExceptFirst()

void KStars::hideAllFovExceptFirst ( )

Definition at line 457 of file kstars.cpp.

◆ Instance()

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

Definition at line 121 of file kstars.h.

◆ isGUIReady()

bool KStars::isGUIReady ( )
inline

Check if the KStars main window is shown.

Definition at line 842 of file kstars.h.

◆ isStartedWithClockRunning()

bool KStars::isStartedWithClockRunning ( )
inline

Was KStars started with the clock running, or paused?

Definition at line 848 of file kstars.h.

◆ isWIVisible

bool KStars::isWIVisible ( )
inlineslot

Definition at line 582 of file kstars.h.

◆ loadColorScheme

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 631 of file kstarsdbus.cpp.

◆ location

QString KStars::location ( )
slot

location Returns a JSON Object (as string) that contains the following information: name: String province: String country: String longitude: Double (-180 to +180) latitude: Double (-90 to +90) tz0 (Time zone without DST): Double tz (Time zone with DST): Double

Returns
Stringified JSON object as described above.

Definition at line 253 of file kstarsdbus.cpp.

◆ lookTowards

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 75 of file kstarsdbus.cpp.

◆ map()

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

Definition at line 139 of file kstars.h.

◆ openFITS

void KStars::openFITS ( const QUrl & imageUrl)
slot

DBUS interface function.

Open FITS image.

Parameters
imageUrlURL of FITS image to load. For a local file the prefix must be file:// For example if the file is located at /home/john/m42.fits then the full URL is file:///home/john/m42.fits

Definition at line 1057 of file kstarsdbus.cpp.

◆ popupMessage

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 243 of file kstarsdbus.cpp.

◆ printImage

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 1002 of file kstarsdbus.cpp.

◆ printingWizard()

PrintingWizard * KStars::printingWizard ( ) const
inline

Definition at line 149 of file kstars.h.

◆ readConfig

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 350 of file kstarsdbus.cpp.

◆ releaseResources()

void KStars::releaseResources ( )

Syncs config file.

Deletes objects.

Definition at line 274 of file kstars.cpp.

◆ removeColorMenuItem()

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 2106 of file kstarsactions.cpp.

◆ removeLabel

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 152 of file kstarsdbus.cpp.

◆ removeTrail

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 172 of file kstarsdbus.cpp.

◆ renderEyepieceView

void KStars::renderEyepieceView ( const QString & objectName,
const QString & destPathChart,
const double fovWidth = -1.0,
const double fovHeight = -1.0,
const double rotation = 0.0,
const double scale = 1.0,
const bool flip = false,
const bool invert = false,
QString imagePath = QString(),
const QString & destPathImage = QString(),
const bool overlay = false,
const bool invertColors = false )
slot

DBUS interface function.

Render eyepiece view and save it in the file(s) specified

Note
See EyepieceField::renderEyepieceView() for more info. This is a DBus proxy that calls that method, and then writes the resulting image(s) to file(s).
Important: If imagePath is empty, but overlay is true, or destPathImage is supplied, this method will make a blocking DSS download.

Definition at line 918 of file kstarsdbus.cpp.

◆ repopulateHIPS()

void KStars::repopulateHIPS ( )

Load HIPS information and repopulate menu.

Definition at line 847 of file kstarsinit.cpp.

◆ repopulateOrientation()

void KStars::repopulateOrientation ( )

Definition at line 726 of file kstarsinit.cpp.

◆ repopulateViews()

void KStars::repopulateViews ( )

Load Views and repopulate menu.

Definition at line 792 of file kstarsinit.cpp.

◆ selectNextFov()

void KStars::selectNextFov ( )

Definition at line 485 of file kstars.cpp.

◆ selectNextView()

void KStars::selectNextView ( )

Definition at line 558 of file kstars.cpp.

◆ selectPreviousFov()

void KStars::selectPreviousFov ( )

Definition at line 521 of file kstars.cpp.

◆ selectPreviousView()

void KStars::selectPreviousView ( )

Definition at line 571 of file kstars.cpp.

◆ setAltAz

void KStars::setAltAz ( double alt,
double az,
bool altIsRefracted = false )
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)
altIsRefractedIf set to true, the altitude is interpreted as if it were corrected for atmospheric refraction (i.e. the altitude is an apparent altitude)

Definition at line 61 of file kstarsdbus.cpp.

◆ setApproxFOV

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 993 of file kstarsdbus.cpp.

◆ setColor

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 616 of file kstarsdbus.cpp.

◆ setGeoLocation

bool 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
Returns
True if geographic location is found and set, false otherwise.

Definition at line 271 of file kstarsdbus.cpp.

◆ setGPSLocation

bool KStars::setGPSLocation ( double longitude,
double latitude,
double elevation,
double tz0 )
slot

DBUS interface function.

Set the GPS geographic location.

Parameters
longitudelongitude in degrees (-180 West to +180 East)
latitudelatitude in degrees (-90 South to +90 North)
elevationsite elevation in meters
tz0Time zone offset WITHOUT daylight saving time.
Returns
True if geographic location is set, false otherwise.

Definition at line 325 of file kstarsdbus.cpp.

◆ setLocalTime

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 202 of file kstarsdbus.cpp.

◆ setRaDec

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 44 of file kstarsdbus.cpp.

◆ setRaDecJ2000

void KStars::setRaDecJ2000 ( double ra0,
double dec0 )
slot

DBUS interface function.

Set focus to given J2000.0 Ra/Dec coordinates

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

Definition at line 51 of file kstarsdbus.cpp.

◆ setResourceFile()

bool KStars::setResourceFile ( QString const rc)
static

Override KStars UI resource file.

Note
This is used by UI tests, which need to use the same resources with a different app name

Definition at line 124 of file kstarsinit.cpp.

◆ setTimeToNow

void KStars::setTimeToNow ( )
slot

DBUS interface function.

Set local time and date to present values acc. system clock

Note
Just a proxy for slotSetTimeToNow(), but it is better to keep the DBus interface separate from the internal methods.

Definition at line 207 of file kstarsdbus.cpp.

◆ setTracking

void KStars::setTracking ( bool track)
slot

DBUS interface function.

Toggle tracking.

Parameters
trackengage tracking if true; else disengage tracking

Definition at line 237 of file kstarsdbus.cpp.

◆ showImgExportDialog()

void KStars::showImgExportDialog ( )

Definition at line 431 of file kstars.cpp.

◆ showWISettingsUI()

void KStars::showWISettingsUI ( )

Definition at line 586 of file kstars.cpp.

◆ slotApplyConfigChanges

void KStars::slotApplyConfigChanges ( )
slot

Apply new settings and redraw skymap.

Definition at line 1220 of file kstarsactions.cpp.

◆ slotApplyWIConfigChanges

void KStars::slotApplyWIConfigChanges ( )
slot

Apply new settings for WI.

Definition at line 1230 of file kstarsactions.cpp.

◆ slotClearAllTrails

void KStars::slotClearAllTrails ( )
slot

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

Definition at line 2041 of file kstarsactions.cpp.

◆ slotDSOCatalogGUI

void KStars::slotDSOCatalogGUI ( )
slot

Show the DSO Catalog Management GUI.

Definition at line 2219 of file kstarsactions.cpp.

◆ slotFlagManager

void KStars::slotFlagManager ( )
slot

action slot: open Flag Manager

Definition at line 673 of file kstarsactions.cpp.

◆ slotGeoLocator

void KStars::slotGeoLocator ( )
slot

action slot: open dialog for selecting a new geographic location

Definition at line 1053 of file kstarsactions.cpp.

◆ slotSetDomeEnabled

void KStars::slotSetDomeEnabled ( bool enable)
slot

slotSetDomeEnabled call when dome comes online or goes offline.

Parameters
enableTrue if dome is online and connected, false otherwise.

Definition at line 403 of file kstarsactions.cpp.

◆ slotSetTelescopeEnabled

void KStars::slotSetTelescopeEnabled ( bool enable)
slot

slotSetTelescopeEnabled call when telescope comes online or goes offline.

Parameters
enableTrue if telescope is online and connected, false otherwise.

Definition at line 391 of file kstarsactions.cpp.

◆ slotSetTimeToNow

void KStars::slotSetTimeToNow ( )
slot

action slot: sync kstars clock to system time

Definition at line 1273 of file kstarsactions.cpp.

◆ slotSetZoom

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 1727 of file kstarsactions.cpp.

◆ slotShowPositionBar

void KStars::slotShowPositionBar ( SkyPoint * p)
slot

Display position in the status bar.

Definition at line 2153 of file kstarsactions.cpp.

◆ slotToggleWIView

void KStars::slotToggleWIView ( )
slot

action slot: toggle What's Interesting window

Definition at line 600 of file kstarsactions.cpp.

◆ slotTrack

void KStars::slotTrack ( )
slot

action slot: Toggle whether kstars is tracking current position

Definition at line 1590 of file kstarsactions.cpp.

◆ slotWISettings

void KStars::slotWISettings ( )
slot

action slot: open What's Interesting settings window

Definition at line 572 of file kstarsactions.cpp.

◆ slotWizard

void KStars::slotWizard ( )
slot

action slot: open KStars startup wizard

Definition at line 424 of file kstarsactions.cpp.

◆ slotZoomChanged

void KStars::slotZoomChanged ( )
slot

Called when zoom level is changed.

Enables/disables zoom actions and updates status bar.

Definition at line 1699 of file kstarsactions.cpp.

◆ syncFOVActions()

void KStars::syncFOVActions ( )

Definition at line 437 of file kstars.cpp.

◆ syncOps()

void KStars::syncOps ( )

Sync Options to GUI, if any.

Definition at line 1209 of file kstarsactions.cpp.

◆ updateLocationFromWizard

void KStars::updateLocationFromWizard ( const GeoLocation & geo)
slot

Definition at line 435 of file kstarsactions.cpp.

◆ updateTime

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 592 of file kstars.cpp.

◆ waitFor

void KStars::waitFor ( double t)
slot

DBUS interface function.

Delay further execution of DBUS commands.

Parameters
tnumber of seconds to delay

Definition at line 212 of file kstarsdbus.cpp.

◆ waitForKey

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 222 of file kstarsdbus.cpp.

◆ wiView

WIView * KStars::wiView ( )
inlineslot

Definition at line 577 of file kstars.h.

◆ writeConfig

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 367 of file kstarsdbus.cpp.

◆ zoom

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 182 of file kstarsdbus.cpp.

◆ zoomIn

void KStars::zoomIn ( )
slot

DBUS interface function.

Zoom in one step.

Definition at line 187 of file kstarsdbus.cpp.

◆ zoomOut

void KStars::zoomOut ( )
slot

DBUS interface function.

Zoom out one step.

Definition at line 192 of file kstarsdbus.cpp.

Member Data Documentation

◆ Closing

bool KStars::Closing = false
static

Set to true when the application is being closed.

Definition at line 854 of file kstars.h.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:38:44 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.