~ubuntu-branches/debian/wheezy/stellarium/wheezy

« back to all changes in this revision

Viewing changes to src/gui/SearchDialog.hpp

  • Committer: Package Import Robot
  • Author(s): Tomasz Buchert
  • Date: 2012-05-18 13:26:18 UTC
  • mfrom: (1.2.7)
  • Revision ID: package-import@ubuntu.com-20120518132618-3uso09fo68c218cx
Tags: 0.11.2-1
* Imported Upstream version 0.11.1 and then 0.11.2 (Closes: #658431)
* Change maintainer (Closes: #668916)
* Machine-readable copyright file
* Bump Standards-Version to 3.9.3
* Update debhelper compat to 9
* Fix lintian duplicate-font-file warning
* Fix copyright-refers-to-symlink-license lintian tag
* Add lintian override for embedded-library error

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
 * 
15
15
 * You should have received a copy of the GNU General Public License
16
16
 * along with this program; if not, write to the Free Software
17
 
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
17
 * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA  02110-1335, USA.
18
18
*/
19
19
 
20
20
#ifndef _SEARCHDIALOG_HPP_
72
72
        bool eventFilter(QObject *object, QEvent *event);
73
73
        
74
74
public slots:
75
 
        void languageChanged();
 
75
        void retranslate();
76
76
        //! Add auto focus of the edit line
77
77
        void setVisible(bool);
78
 
    //! This style only displays the text search field and the search button
 
78
        //! This style only displays the text search field and the search button
79
79
        void setSimpleStyle();
80
80
 
81
81
protected:
84
84
        virtual void createDialogContent();
85
85
 
86
86
private slots:
87
 
    void greekLetterClicked();
 
87
        void greekLetterClicked();
88
88
        //! Called when the current simbad query status changes
89
89
        void onSimbadStatusChanged();
90
90
        //! Called when the user changed the input text
94
94
        
95
95
        //! Called when the user edit the manual position controls
96
96
        void manualPositionChanged();
97
 
        
 
97
 
 
98
        //! Whether to use SIMBAD for searches or not.
 
99
        void enableSimbadSearch(bool enable);
 
100
 
 
101
        //! Set flagHasSelectedText as true, if search box has selected text
 
102
        void setHasSelectedFlag();
 
103
 
98
104
private:
99
105
        class SimbadSearcher* simbadSearcher;
100
106
        class SimbadLookupReply* simbadReply;
104
110
        QString substituteGreek(const QString& keyString);
105
111
        QString getGreekLetterByName(const QString& potentialGreekLetterName);
106
112
        QHash<QString, QString> greekLetters;
 
113
        bool useSimbad;
 
114
        bool flagHasSelectedText;
107
115
};
108
116
 
109
117
#endif // _SEARCHDIALOG_HPP_