20 #ifndef _SEARCHDIALOG_HPP_
21 #define _SEARCHDIALOG_HPP_
27 #include "StelDialog.hpp"
28 #include "VecMath.hpp"
31 class Ui_searchDialogForm;
35 bool operator()(
const QString &s1,
const QString &s2)
const
37 return s1.length() < s2.length();
52 QString getSelected(
void);
53 void setValues(
const QStringList&);
54 bool isEmpty()
const {
return values.isEmpty();}
55 void appendValues(
const QStringList&);
60 void selectPrevious();
69 QT_FORWARD_DECLARE_CLASS(QListWidgetItem)
76 Q_ENUMS(CoordinateSystem)
93 bool eventFilter(QObject *
object, QEvent *event);
98 void setSimpleStyle();
101 void setCurrentCoordinateSystem(CoordinateSystem cs)
103 currentCoordinateSystem = cs;
106 CoordinateSystem getCurrentCoordinateSystem()
const
108 return currentCoordinateSystem;
111 QString getCurrentCoordinateSystemKey(
void)
const;
113 void setCurrentCoordinateSystemKey(QString key);
115 void setCoordinateSystem(
int csID);
116 void populateCoordinateSystemsList();
117 void populateCoordinateAxis();
120 Ui_searchDialogForm* ui;
122 virtual void createDialogContent();
125 void greekLetterClicked();
127 void onSimbadStatusChanged();
129 void onSearchTextChanged(
const QString& text);
132 void gotoObject(
const QString& nameI18n);
134 void gotoObject(QListWidgetItem* item);
136 void searchListChanged(
const QString& newText);
139 void manualPositionChanged();
142 void enableSimbadSearch(
bool enable);
145 void enableStartOfWordsAutofill(
bool enable);
148 void setHasSelectedFlag();
151 void selectSimbadServer(
int index);
154 void updateListWidget(
int index);
157 void updateListTab();
159 void showContextMenu(
const QPoint &pt);
166 QMap<QString, Vec3d> simbadResults;
168 class QSettings* conf;
170 QString substituteGreek(
const QString& keyString);
171 QString getGreekLetterByName(
const QString& potentialGreekLetterName);
172 QHash<QString, QString> greekLetters;
174 bool flagHasSelectedText;
176 bool useStartOfWords;
179 QString simbadServerUrl;
180 void populateSimbadServerList();
182 static const char* DEF_SIMBAD_URL;
185 CoordinateSystem currentCoordinateSystem;
188 #endif // _SEARCHDIALOG_HPP_
Base class for all the GUI windows in Stellarium.
Contains all the information about a current simbad lookup query.
Display a list of results matching the search string, and allow to tab through those selections...
Manage the selection and queries on one or more StelObjects.
The sky object search dialog.
Provides lookup features into the online Simbad service from CDS.