Stellarium 0.11.4
Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · File Structure

gui/MapLabel.hpp

00001 /*
00002  * Stellarium
00003  * Copyright (C) 2008 Fabien Chereau
00004  * 
00005  * This program is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU General Public License
00007  * as published by the Free Software Foundation; either version 2
00008  * of the License, or (at your option) any later version.
00009  * 
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  * 
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program; if not, write to the Free Software
00017  * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA  02110-1335, USA.
00018  */
00019 
00020 
00021 #ifndef _MAPLABEL_HPP_
00022 #define _MAPLABEL_HPP_
00023 
00024 #include <QLabel>
00025 
00028 class MapLabel : public QLabel
00029 {
00030     Q_OBJECT
00031 
00032 public:
00033     MapLabel(QWidget *parent = 0);
00034     ~MapLabel();
00038     void setCursorPos(double longitude, double latitude);
00039     
00040 signals:
00042     void positionChanged(double longitude, double latitude);
00043 
00044 protected:
00045     virtual void mousePressEvent(QMouseEvent * event);
00046 
00047 private:
00048     QLabel* cursor;
00049 };
00050 
00051 #endif // _MAPLABEL_HPP_
Generated on Sat Aug 25 22:13:30 2012 for Stellarium by  doxygen 1.6.3