SkyGui.hpp   SkyGui.hpp 
skipping to change at line 23 skipping to change at line 23
* 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., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA. * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
*/ */
#ifndef _SKYGUI_HPP_ #ifndef _SKYGUI_HPP_
#define _SKYGUI_HPP_ #define _SKYGUI_HPP_
#include "config.h"
#include "StelStyle.hpp" #include "StelStyle.hpp"
#include "StelObject.hpp" #include "StelObject.hpp"
#include <QDebug> #include <QDebug>
#include <QGraphicsWidget> #include <QGraphicsWidget>
class QGraphicsSceneMouseEvent; class QGraphicsSceneMouseEvent;
class QAction;
class QGraphicsTextItem; class QGraphicsTextItem;
class QTimeLine; class QTimeLine;
class StelButton; class StelButton;
class BottomStelBar; class BottomStelBar;
class StelProgressController;
//! The informations about the currently selected object //! The informations about the currently selected object
class InfoPanel : public QGraphicsTextItem class InfoPanel : public QGraphicsTextItem
{ {
public: public:
//! Reads "gui/selected_object_info", etc from the configura tion file. //! Reads "gui/selected_object_info", etc from the configura tion file.
//! @todo Bad idea to read from the configuration file in a constructor? --BM //! @todo Bad idea to read from the configuration file in a constructor? --BM
InfoPanel(QGraphicsItem* parent); InfoPanel(QGraphicsItem* parent);
void setInfoTextFilters(const StelObject::InfoStringGroup& a flags) {infoTextFilters=aflags;} void setInfoTextFilters(const StelObject::InfoStringGroup& a flags) {infoTextFilters=aflags;}
const StelObject::InfoStringGroup& getInfoTextFilters(void) const {return infoTextFilters;} const StelObject::InfoStringGroup& getInfoTextFilters(void) const {return infoTextFilters;}
skipping to change at line 64 skipping to change at line 65
{ {
Q_OBJECT Q_OBJECT
public: public:
friend class StelGui; friend class StelGui;
SkyGui(QGraphicsItem * parent=NULL); SkyGui(QGraphicsItem * parent=NULL);
//! Add a new progress bar in the lower right corner of the screen. //! Add a new progress bar in the lower right corner of the screen.
//! When the progress bar is deleted with removeProgressBar() the la yout is automatically rearranged. //! When the progress bar is deleted with removeProgressBar() the la yout is automatically rearranged.
//! @return a pointer to the progress bar //! @return a pointer to the progress bar
class QProgressBar* addProgressBar(); void addProgressBar(StelProgressController*);
void init(class StelGui* stelGui); void init(class StelGui* stelGui);
virtual void paint(QPainter*, const QStyleOptionGraphicsItem*, QWidg et* = 0); virtual void paint(QPainter*, const QStyleOptionGraphicsItem*, QWidg et* = 0);
int getSkyGuiWidth() const;
int getSkyGuiHeight() const;
protected: protected:
virtual void resizeEvent(QGraphicsSceneResizeEvent* event); virtual void resizeEvent(QGraphicsSceneResizeEvent* event);
virtual void hoverMoveEvent(QGraphicsSceneHoverEvent* event); virtual void hoverMoveEvent(QGraphicsSceneHoverEvent* event);
private slots: private slots:
//! Load color scheme from the given ini file and section name //! Load color scheme from the given ini file and section name
void setStelStyle(const QString& style); void setStelStyle(const QString& style);
//! Update the position of the button bars in the main window //! Update the position of the button bars in the main window
void updateBarsPos(); void updateBarsPos();
 End of changes. 5 change blocks. 
2 lines changed or deleted 6 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/