23 #include "StelStyle.hpp" 24 #include "StelObject.hpp" 27 #include <QGraphicsWidget> 28 #include <QGraphicsPixmapItem> 30 class QGraphicsSceneMouseEvent;
31 class QGraphicsTextItem;
45 void setInfoTextFilters(
const StelObject::InfoStringGroup& aflags) {infoTextFilters=aflags;}
46 const StelObject::InfoStringGroup& getInfoTextFilters(
void)
const {
return infoTextFilters;}
47 void setTextFromObjects(
const QList<StelObjectP>&);
48 const QString getSelectedText(
void);
51 StelObject::InfoStringGroup infoTextFilters;
52 QGraphicsPixmapItem *infoPixmap;
63 SkyGui(QGraphicsItem * parent=NULL);
71 virtual void paint(QPainter*,
const QStyleOptionGraphicsItem*, QWidget* = 0) Q_DECL_OVERRIDE;
73 int getSkyGuiWidth()
const;
74 int getSkyGuiHeight()
const;
77 virtual void resizeEvent(QGraphicsSceneResizeEvent* event) Q_DECL_OVERRIDE;
78 virtual void hoverMoveEvent(QGraphicsSceneHoverEvent* event) Q_DECL_OVERRIDE;
79 virtual QVariant itemChange(GraphicsItemChange change,
const QVariant & value) Q_DECL_OVERRIDE;
83 void setStelStyle(
const QString& style);
90 QTimeLine* animLeftBarTimeLine;
91 QTimeLine* animBottomBarTimeLine;
92 int lastButtonbarWidth;
104 bool autoHideHorizontalButtonBar;
105 bool autoHideVerticalButtonBar;
110 #endif // _SKYGUI_HPP_ InfoPanel(QGraphicsItem *parent)
Reads "gui/selected_object_info", etc from the configuration file.
The informations about the currently selected object.
The class managing the layout for button bars, selected object info and loading bars.
Maintain the state of a progress bar.
virtual void init(QGraphicsWidget *topLevelGraphicsWidget)
Initialize the StelGui object.
Main class for the GUI based on QGraphicView.