kstars
conjunctions.cpp
Go to the documentation of this file.
114 OutputList->horizontalHeader()->setResizeMode( QHeaderView::ResizeToContents, QHeaderView::ResizeToContents );
130 connect( FilterEdit, SIGNAL( textChanged( const QString & ) ), this, SLOT( slotFilterReg( const QString & ) ) );
141 int index = m_SortModel->mapToSource( OutputList->currentIndex() ).row(); // Get the number of the line
152 map->setClickedObject( data->skyComposite()->findByName( m_Model->data( m_Model->index( index, 2 ) ).toString() ) );
201 QFile file( KFileDialog::getSaveFileName( QDir::homePath(), "*|All files", this, "Save Conjunctions" ) );
243 KMessageBox::sorry( 0, i18n("Maximum separation entered is not a valid angle. Use the What's this help feature for information on how to enter a valid angle") );
249 KMessageBox::sorry( 0, i18n("Please select an object to check conjunctions with, by clicking on the \'Find Object\' button.") );
255 KMessageBox::sorry( 0 , i18n("Please select two different objects to check conjunctions with.") );
331 QProgressDialog progressDlg( i18n( "Compute conjunction..." ), i18n( "Abort" ), 0, objects.count(), this);
343 progressDlg.setLabelText( i18n( "Compute conjunction between %1 and %2", Object2->name(), object ) );
347 showConjunctions( ksc.findClosestApproach(*Object1, *Object2, startJD, stopJD, maxSeparation, opposition), object );
356 showConjunctions( ksc.findClosestApproach(*Object1, *Object2, startJD, stopJD, maxSeparation, opposition), Object1->name() );
371 void ConjunctionsTool::showConjunctions(const QMap<long double, dms> &conjunctionlist, QString object)
void setGeoLocation(GeoLocation *geo)
Sets the geographic location to compute conjunctions at.
Definition: ksconjunct.cpp:33
Dialog for changing the geographic location of the observer.
Definition: locationdialog.h:57
Definition: ksplanetbase.h:82
Definition: ksplanetbase.h:82
Definition: ksplanetbase.h:82
Definition: skyobject.h:108
void setClickedObject(SkyObject *o)
Set the ClickedObject pointer to the argument.
Definition: skymap.cpp:361
Definition: ksplanetbase.h:82
Definition: skyobject.h:109
Definition: ksplanetbase.h:82
Definition: skyobject.h:110
QMap< long double, dms > findClosestApproach(SkyObject &Object1, KSPlanetBase &Object2, long double startJD, long double stopJD, dms maxSeparation, bool _opposition=false)
Compute the closest approach of two planets in the given range.
Definition: ksconjunct.cpp:40
void changeDateTime(const KStarsDateTime &newDate)
change the current simulation date/time to the KStarsDateTime argument.
Definition: kstarsdata.cpp:272
static KStarsDateTime currentDateTime(KDateTime::Spec ts=KDateTime::Spec::ClockTime())
Definition: kstarsdatetime.cpp:67
Definition: ksplanetbase.h:82
Extension of KDateTime for KStars KStarsDateTime can represent the date/time as a Julian Day...
Definition: kstarsdatetime.h:45
Definition: skyobject.h:110
A class that implements a method to compute close conjunctions between any two solar system objects e...
Definition: ksconjunct.h:47
Definition: ksplanetbase.h:82
Definition: ksplanetbase.h:82
void setClickedPoint(SkyPoint *f)
Set the ClickedPoint to the skypoint given as an argument.
Definition: skymap.cpp:829
void setDJD(long double jd)
Assign the (long double) Julian Day value, which includes the time of day encoded in the fractional p...
Definition: kstarsdatetime.cpp:99
Definition: skyobject.h:109
virtual SkyObject * findByName(const QString &name)
Search the children of this SkyMapComposite for a SkyObject whose name matches the argument...
Definition: skymapcomposite.cpp:426
Definition: skyobject.h:110
Definition: ksplanetbase.h:82
Definition: skyobject.h:109
SkyObject * clickedObject() const
Retrieve the object nearest to a mouse click event.
Definition: skymap.h:214
Definition: skyobject.h:108
Definition: ksplanetbase.h:82
Definition: skyobject.h:108
Definition: skyobject.h:108
Definition: skyobject.h:108
Definition: ksplanetbase.h:82
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:19 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:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.