SearchDialog.hpp   SearchDialog.hpp 
skipping to change at line 26 skipping to change at line 26
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U SA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U SA.
*/ */
#ifndef _SEARCHDIALOG_HPP_ #ifndef _SEARCHDIALOG_HPP_
#define _SEARCHDIALOG_HPP_ #define _SEARCHDIALOG_HPP_
#include <QObject> #include <QObject>
#include <QLabel> #include <QLabel>
#include <QMap> #include <QMap>
#include <QHash>
#include "StelDialog.hpp" #include "StelDialog.hpp"
#include "VecMath.hpp" #include "VecMath.hpp"
// pre declaration of the ui class // pre declaration of the ui class
class Ui_searchDialogForm; class Ui_searchDialogForm;
//! @class CompletionLabel //! @class CompletionLabel
//! Display a list of results matching the search string, and allow to //! Display a list of results matching the search string, and allow to
//! tab through those selections. //! tab through those selections.
class CompletionLabel : public QLabel class CompletionLabel : public QLabel
{ {
Q_OBJECT Q_OBJECT
public: public:
CompletionLabel(QWidget* parent=0); CompletionLabel(QWidget* parent=0);
~CompletionLabel(); ~CompletionLabel();
QString getSelected(void); QString getSelected(void);
void setValues(const QStringList&); void setValues(const QStringList&);
bool isEmpty() const {return values.isEmpty();}
void appendValues(const QStringList&); void appendValues(const QStringList&);
void clearValues(); void clearValues();
public slots: public slots:
void selectNext(); void selectNext();
void selectPrevious(); void selectPrevious();
void selectFirst(); void selectFirst();
private: private:
void updateText(); void updateText();
skipping to change at line 72 skipping to change at line 74
{ {
Q_OBJECT Q_OBJECT
public: public:
SearchDialog(); SearchDialog();
virtual ~SearchDialog(); virtual ~SearchDialog();
void languageChanged(); void languageChanged();
//! 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);
void setSimpleStyle(bool b); void setSimpleStyle(bool b);
public slots: public slots:
// Add auto focus of the edit line //! Add auto focus of the edit line
void setVisible(bool); void setVisible(bool);
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:
//! 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
void onTextChanged(const QString& text); void onTextChanged(const QString& text);
void gotoObject(); void gotoObject();
//! Called when the user edit the manual position controls
void manualPositionChanged(); void manualPositionChanged();
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;
QString substituteGreek(const QString& keyString);
QString getGreekLetterByName(const QString& potentialGreekLetterName
);
QHash<QString, QString> greekLetters;
}; };
#endif // _SEARCHDIALOG_HPP_ #endif // _SEARCHDIALOG_HPP_
 End of changes. 8 change blocks. 
2 lines changed or deleted 12 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/