20 #ifndef _SEARCHDIALOG_HPP_
21 #define _SEARCHDIALOG_HPP_
27 #include "StelDialog.hpp"
28 #include "VecMath.hpp"
31 class Ui_searchDialogForm;
44 QString getSelected(
void);
45 void setValues(
const QStringList&);
46 bool isEmpty()
const {
return values.isEmpty();}
47 void appendValues(
const QStringList&);
52 void selectPrevious();
61 QT_FORWARD_DECLARE_CLASS(QListWidgetItem)
74 bool eventFilter(QObject *
object, QEvent *event);
79 void setVisible(
bool);
81 void setSimpleStyle();
84 Ui_searchDialogForm* ui;
86 virtual void createDialogContent();
89 void greekLetterClicked();
91 void onSimbadStatusChanged();
93 void onSearchTextChanged(
const QString& text);
96 void gotoObject(
const QString& nameI18n);
98 void gotoObject(QListWidgetItem* item);
100 void searchListChanged(
const QString& newText);
103 void manualPositionChanged();
106 void enableSimbadSearch(
bool enable);
109 void setHasSelectedFlag();
112 void selectSimbadServer(
int index);
115 void updateListWidget(
int index);
118 void updateListTab();
123 QMap<QString, Vec3d> simbadResults;
126 QString substituteGreek(
const QString& keyString);
127 QString getGreekLetterByName(
const QString& potentialGreekLetterName);
128 QHash<QString, QString> greekLetters;
130 bool flagHasSelectedText;
134 QString simbadServerUrl;
135 void populateSimbadServerList();
137 static const char* DEF_SIMBAD_URL;
140 #endif // _SEARCHDIALOG_HPP_