SearchDialog.hpp   SearchDialog.hpp 
skipping to change at line 76 skipping to change at line 76
QStringList values; QStringList values;
}; };
QT_FORWARD_DECLARE_CLASS(QListWidgetItem) QT_FORWARD_DECLARE_CLASS(QListWidgetItem)
//! @class SearchDialog //! @class SearchDialog
//! The sky object search dialog. //! The sky object search dialog.
class SearchDialog : public StelDialog class SearchDialog : public StelDialog
{ {
Q_OBJECT Q_OBJECT
Q_ENUMS(CoordinateSystem)
public: public:
//! @enum CoordinateSystem
//! Available coordinate systems
enum CoordinateSystem
{
equatorialJ2000,
equatorial,
horizontal,
galactic
};
SearchDialog(QObject* parent); SearchDialog(QObject* parent);
virtual ~SearchDialog(); virtual ~SearchDialog();
//! Notify that the application style changed //! Notify that the application style changed
void styleChanged(); void styleChanged();
bool eventFilter(QObject *object, QEvent *event); bool eventFilter(QObject *object, QEvent *event);
public slots: public slots:
void retranslate(); void retranslate();
//! This style only displays the text search field and the search bu tton //! This style only displays the text search field and the search bu tton
void setSimpleStyle(); void setSimpleStyle();
//! Set the current coordinate system
void setCurrentCoordinateSystem(CoordinateSystem cs)
{
currentCoordinateSystem = cs;
}
//! Get the current coordinate system
CoordinateSystem getCurrentCoordinateSystem() const
{
return currentCoordinateSystem;
}
//! Get the current coordinate system key
QString getCurrentCoordinateSystemKey(void) const;
//! Set the current coordinate system from its key
void setCurrentCoordinateSystemKey(QString key);
void setCoordinateSystem(int csID);
void populateCoordinateSystemsList();
void populateCoordinateAxis();
protected: protected:
Ui_searchDialogForm* ui; Ui_searchDialogForm* ui;
//! Initialize the dialog widgets and connect the signals/slots //! Initialize the dialog widgets and connect the signals/slots
virtual void createDialogContent(); virtual void createDialogContent();
private slots: private slots:
void greekLetterClicked(); void greekLetterClicked();
//! Called when the current simbad query status changes //! Called when the current simbad query status changes
void onSimbadStatusChanged(); void onSimbadStatusChanged();
//! Called when the user changed the input text //! Called when the user changed the input text
skipping to change at line 138 skipping to change at line 168
void showContextMenu(const QPoint &pt); void showContextMenu(const QPoint &pt);
void pasteAndGo(); void pasteAndGo();
private: private:
class SimbadSearcher* simbadSearcher; class SimbadSearcher* simbadSearcher;
class SimbadLookupReply* simbadReply; class SimbadLookupReply* simbadReply;
QMap<QString, Vec3d> simbadResults; QMap<QString, Vec3d> simbadResults;
class StelObjectMgr* objectMgr; class StelObjectMgr* objectMgr;
class QSettings* conf;
QString substituteGreek(const QString& keyString); QString substituteGreek(const QString& keyString);
QString getGreekLetterByName(const QString& potentialGreekLetterName ); QString getGreekLetterByName(const QString& potentialGreekLetterName );
QHash<QString, QString> greekLetters; QHash<QString, QString> greekLetters;
//! Used when substituting text with a Greek letter. //! Used when substituting text with a Greek letter.
bool flagHasSelectedText; bool flagHasSelectedText;
bool useStartOfWords; bool useStartOfWords;
bool useSimbad; bool useSimbad;
//! URL of the server used for SIMBAD queries. //! URL of the server used for SIMBAD queries.
QString simbadServerUrl; QString simbadServerUrl;
void populateSimbadServerList(); void populateSimbadServerList();
//! URL of the default SIMBAD server (Strasbourg). //! URL of the default SIMBAD server (Strasbourg).
static const char* DEF_SIMBAD_URL; static const char* DEF_SIMBAD_URL;
// The current coordinate system
CoordinateSystem currentCoordinateSystem;
}; };
#endif // _SEARCHDIALOG_HPP_ #endif // _SEARCHDIALOG_HPP_
 End of changes. 5 change blocks. 
0 lines changed or deleted 34 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/