Kstars
skymapevents.cpp
112 focus()->setAltRefracted(focus()->altRefracted().Degrees() + step * MINZOOM / Options::zoomFactor());
132 focus()->setAltRefracted(focus()->altRefracted().Degrees() - step * MINZOOM / Options::zoomFactor());
412 if (QPinchGesture *pinch = static_cast<QPinchGesture*>(gestureEvent->gesture(Qt::PinchGesture)))
438 if (QTapAndHoldGesture *tapAndHold = static_cast<QTapAndHoldGesture*>(gestureEvent->gesture(Qt::TapAndHoldGesture)))
648 focus()->setAltRefracted(KSUtils::clamp(focus()->altRefracted().Degrees() - dAlt.Degrees(), -90.0, 90.0));
void mousePressEvent(QMouseEvent *e) override
Determine RA, Dec coordinates of clicked location.
Definition: skymapevents.cpp:746
QPoint pos() const const
GestureFinished
void setWidth(int width)
void setDestinationAltAz(const dms &alt, const dms &az, bool altIsRefracted)
sets the destination point of the sky map, using its alt/az coordinates.
Definition: skymap.cpp:995
TouchBegin
void mosaicCenterChanged(dms dRA, dms dDE)
Emitter when mosaic center is dragged in the sky map.
void createEmptyMenu(SkyPoint *nullObj)
Create a popup menu for empty sky.
Definition: kspopupmenu.cpp:132
Qt::MouseButton button() const const
Stores dms coordinates for a point in the sky. for converting between coordinate systems.
Definition: skypoint.h:44
void mouseMoveEvent(QMouseEvent *e) override
This function does several different things depending on the state of the program:
Definition: skymapevents.cpp:489
static constexpr double DegToRad
DegToRad is a const static member equal to the number of radians in one degree (dms::PI/180....
Definition: dms.h:390
void update()
void setClickedPoint(const SkyPoint *f)
Set the ClickedPoint to the skypoint given as an argument.
Definition: skymap.cpp:1011
void resizeEvent(QResizeEvent *) override
If the skymap will be resized, the sky must be new computed.
Definition: skymapevents.cpp:32
QPoint angleDelta() const const
void showFocusCoords()
Update object name and coordinates in the Focus InfoBox.
Definition: skymap.cpp:324
SkyObject * clickedObject() const
Retrieve the object nearest to a mouse click event.
Definition: skymap.h:244
int width() const const
void slotAddObjectLabel()
Add ClickedObject to KStarsData::ObjLabelList, which stores pointers to SkyObjects which have User La...
Definition: skymap.cpp:871
int x() const const
int y() const const
virtual bool event(QEvent *event) override
LeftButton
void EquatorialToHorizontal(const CachingDms *LST, const CachingDms *lat)
Determine the (Altitude, Azimuth) coordinates of the SkyPoint from its (RA, Dec) coordinates,...
Definition: skypoint.cpp:77
void slotEndRulerMode()
Computes the angular distance, prints the result in the status bar and disables the angular distance ...
Definition: skymap.cpp:646
void showPopupMenu(KSPopupMenu *pmenu, const QPoint &pos)
Show Type-specific popup menu.
Definition: skyobject.cpp:56
void setMouseCursorShape(Cursor type)
Sets the shape of the default mouse cursor.
Definition: skymap.cpp:1300
void showMessage(const QString &message, int timeout)
void setDestination(const SkyPoint &f)
sets the destination point of the sky map.
Definition: skymap.cpp:983
Qt::KeyboardModifiers modifiers() const const
void start(int msec)
QString i18n(const char *text, const TYPE &arg...)
void slotRemoveObjectLabel()
Remove ClickedObject from KStarsData::ObjLabelList, which stores pointers to SkyObjects which have Us...
Definition: skymap.cpp:845
SkyPoint * focus()
Retrieve the Focus point; the position on the sky at the center of the skymap.
Definition: skymap.h:123
void wheelEvent(QWheelEvent *e) override
Zoom in and out with the mouse wheel.
Definition: skymapevents.cpp:675
void setHeight(int height)
void setAltRefracted(dms alt_apparent)
Sets the apparent altitude, checking whether refraction corrections are enabled.
Definition: skypoint.cpp:1055
SkyObject * objectNearest(SkyPoint *p, double &maxrad) override
Definition: skymapcomposite.cpp:413
bool isValid() const const
void mouseDoubleClickEvent(QMouseEvent *e) override
Center SkyMap at double-clicked location
Definition: skymapevents.cpp:845
int x() const const
int y() const const
typedef ChangeFlags
void setClickedObject(SkyObject *o)
Set the ClickedObject pointer to the argument.
Definition: skymap.cpp:363
int globalX() const const
int globalY() const const
QPoint center() const const
AKONADI_CALENDAR_EXPORT KCalendarCore::Event::Ptr event(const Akonadi::Item &item)
This is the main window for KStars. In addition to the GUI elements, the class contains the program c...
Definition: kstars.h:90
void slotDetail()
Popup menu function: Show the Detailed Information window for ClickedObject.
Definition: skymap.cpp:897
Key_Left
QPoint pos()
void moveCenter(const QPoint &position)
PinchGesture
QStatusBar * statusBar() const const
Qt::KeyboardModifiers modifiers() const const
void resize(int w, int h)
height
void slotTrack()
action slot: Toggle whether kstars is tracking current position
Definition: kstarsactions.cpp:1525
SkyObject * focusObject() const
Retrieve the object which is centered in the sky map.
Definition: skymap.h:262
void slotBeginAngularDistance()
Enables the angular distance measuring mode.
Definition: skymap.cpp:610
int key() const const
virtual SkyPoint fromScreen(const QPointF &p, dms *LST, const dms *lat, bool onlyAltAz=false) const
Determine RA, Dec coordinates of the pixel at (dx, dy), which are the screen pixel coordinate offsets...
Definition: projector.cpp:449
void hideText()
void HorizontalToEquatorial(const dms *LST, const dms *lat)
Determine the (RA, Dec) coordinates of the SkyPoint from its (Altitude, Azimuth) coordinates,...
Definition: skypoint.cpp:143
void mouseReleaseEvent(QMouseEvent *e) override
set mouseButtonDown==false, slewing==false
Definition: skymapevents.cpp:683
void forceUpdate(bool now=false)
Recalculates the positions of objects in the sky, and then repaints the sky map.
Definition: skymap.cpp:1176
void slotSetSkyRotation(double angle)
Sets the base sky rotation (before correction) to the given angle.
Definition: skymap.cpp:1215
void mousePointChanged(SkyPoint *)
Emitted when position under mouse changed.
void keyReleaseEvent(QKeyEvent *e) override
When keyRelease is triggered, just set the "slewing" flag to false, and update the display (to draw o...
Definition: skymapevents.cpp:463
width
ShiftModifier
bool isEmpty() const const
void setFocus()
size
QGesture * gesture(Qt::GestureType type) const const
Provides necessary information about objects in the solar system.
Definition: ksplanetbase.h:49
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Sep 27 2023 04:02:14 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Sep 27 2023 04:02:14 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.