SearchDialog.hpp   SearchDialog.hpp 
skipping to change at line 17 skipping to change at line 17
* as published by the Free Software Foundation; either version 2 * as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version. * of the License, or (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* 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., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
*/ */
#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 <QHash>
#include "StelDialog.hpp" #include "StelDialog.hpp"
skipping to change at line 75 skipping to change at line 75
Q_OBJECT Q_OBJECT
public: public:
SearchDialog(); SearchDialog();
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 languageChanged(); void retranslate();
//! Add auto focus of the edit line //! Add auto focus of the edit line
void setVisible(bool); void setVisible(bool);
//! This style only displays the text search field and the search butto n //! 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();
//! 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
void onSearchTextChanged(const QString& text); void onSearchTextChanged(const QString& text);
void gotoObject(); void gotoObject();
//! Called when the user edit the manual position controls //! Called when the user edit the manual position controls
void manualPositionChanged(); void manualPositionChanged();
//! Whether to use SIMBAD for searches or not.
void enableSimbadSearch(bool enable);
//! Set flagHasSelectedText as true, if search box has selected text
void setHasSelectedFlag();
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;
bool useSimbad;
bool flagHasSelectedText;
}; };
#endif // _SEARCHDIALOG_HPP_ #endif // _SEARCHDIALOG_HPP_
 End of changes. 6 change blocks. 
4 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/