SearchDialog.hpp   SearchDialog.hpp 
skipping to change at line 33 skipping to change at line 33
#include <QObject> #include <QObject>
#include <QLabel> #include <QLabel>
#include <QMap> #include <QMap>
#include <QHash> #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;
struct stringLengthCompare
{
bool operator()(const QString &s1, const QString &s2) const
{
return s1.length() < s2.length();
}
};
//! @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();
skipping to change at line 70 skipping to change at line 78
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
public: public:
SearchDialog(); 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();
//! Add auto focus of the edit line
void setVisible(bool);
//! 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();
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();
skipping to change at line 123 skipping to change at line 129
//! Called when a SIMBAD server is selected in the list. //! Called when a SIMBAD server is selected in the list.
void selectSimbadServer(int index); void selectSimbadServer(int index);
//! Called when new type of objects selected in list view tab //! Called when new type of objects selected in list view tab
void updateListWidget(int index); void updateListWidget(int index);
// retranslate/recreate tab // retranslate/recreate tab
void updateListTab(); void updateListTab();
void showContextMenu(const QPoint &pt);
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;
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.
 End of changes. 4 change blocks. 
3 lines changed or deleted 13 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/