SearchDialog.hpp   SearchDialog.hpp 
skipping to change at line 25 skipping to change at line 25
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* 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 "StelDialog.hpp" #include "StelDialog.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
//! used to display a few results matching the search string, and 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 appendValues(const QStringList&);
void clearValues();
public slots: public slots:
void selectNext(void); void selectNext();
void selectPrevious(void); void selectPrevious();
void selectFirst(void); void selectFirst();
private: private:
void updateSelected(void); void updateText();
int selectedIdx; int selectedIdx;
QStringList values;
}; };
//! @class SearchDialog //! @class SearchDialog
//! contains the search dialog widget //! The sky object search dialog.
class SearchDialog : public StelDialog class SearchDialog : public StelDialog
{ {
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);
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);
void onTextChanged(const QString& text);
void gotoObject();
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();
bool eventFilter(QObject *object, QEvent *event);
private slots:
//! Called when the current simbad query status changes
void onSimbadStatusChanged();
void onTextChanged(const QString& text);
void gotoObject();
void manualPositionChanged();
private:
class SimbadSearcher* simbadSearcher;
class SimbadLookupReply* simbadReply;
QMap<QString, Vec3d> simbadResults;
}; };
#endif // _SEARCHDIALOG_HPP_ #endif // _SEARCHDIALOG_HPP_
 End of changes. 14 change blocks. 
12 lines changed or deleted 30 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/