SkyGui.hpp   SkyGui.hpp 
skipping to change at line 28 skipping to change at line 28
*/ */
#ifndef _SKYGUI_HPP_ #ifndef _SKYGUI_HPP_
#define _SKYGUI_HPP_ #define _SKYGUI_HPP_
#include "StelStyle.hpp" #include "StelStyle.hpp"
#include "StelObject.hpp" #include "StelObject.hpp"
#include <QDebug> #include <QDebug>
#include <QGraphicsWidget> #include <QGraphicsWidget>
#include <QGraphicsPixmapItem>
class QGraphicsSceneMouseEvent; class QGraphicsSceneMouseEvent;
class QGraphicsTextItem; class QGraphicsTextItem;
class QTimeLine; class QTimeLine;
class StelButton; class StelButton;
class BottomStelBar; class BottomStelBar;
class StelProgressController; 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);
~InfoPanel();
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;}
void setTextFromObjects(const QList<StelObjectP>&); void setTextFromObjects(const QList<StelObjectP>&);
const QString getSelectedText(void); const QString getSelectedText(void);
private: private:
StelObject::InfoStringGroup infoTextFilters; StelObject::InfoStringGroup infoTextFilters;
QGraphicsPixmapItem *infoPixmap; // Used when text rendering is buggy. Used when CLI option -t given.
}; };
//! The class managing the layout for button bars, selected object info and loading bars. //! The class managing the layout for button bars, selected object info and loading bars.
class SkyGui: public QGraphicsWidget class SkyGui: public QGraphicsWidget
{ {
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
void addProgressBar(StelProgressController*); 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) Q_DECL_OVERRIDE;
int getSkyGuiWidth() const; int getSkyGuiWidth() const;
int getSkyGuiHeight() const; int getSkyGuiHeight() const;
protected: protected:
virtual void resizeEvent(QGraphicsSceneResizeEvent* event); virtual void resizeEvent(QGraphicsSceneResizeEvent* event) Q_DECL_OV
virtual void hoverMoveEvent(QGraphicsSceneHoverEvent* event); ERRIDE;
virtual void hoverMoveEvent(QGraphicsSceneHoverEvent* event) Q_DECL_
OVERRIDE;
virtual QVariant itemChange(GraphicsItemChange change, const QVarian t & value) Q_DECL_OVERRIDE; virtual QVariant itemChange(GraphicsItemChange change, const QVarian t & value) Q_DECL_OVERRIDE;
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();
private: private:
 End of changes. 5 change blocks. 
3 lines changed or deleted 8 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/