StelGuiItems.hpp   StelGuiItems.hpp 
skipping to change at line 79 skipping to change at line 79
Q_OBJECT Q_OBJECT
public: public:
//! Constructor //! Constructor
//! @param parent the parent item //! @param parent the parent item
//! @param pixOn the pixmap to display when the button is toggled //! @param pixOn the pixmap to display when the button is toggled
//! @param pixOff the pixmap to display when the button is not toggl ed //! @param pixOff the pixmap to display when the button is not toggl ed
//! @param pixHover a pixmap slowly blended when mouse is over the b utton //! @param pixHover a pixmap slowly blended when mouse is over the b utton
//! @param action the associated action. Connections are automatical ly done with the signals if relevant. //! @param action the associated action. Connections are automatical ly done with the signals if relevant.
//! @param noBackground define whether the button background image h ave to be used //! @param noBackground define whether the button background image h ave to be used
StelButton(QGraphicsItem* parent, const QPixmap& pixOn, const QPixma p& pixOff, StelButton(QGraphicsItem* parent, const QPixmap& pixOn, const QPixma p& pixOff,
const QPixmap& pixHover=QPixmap(), const QPixmap& pixHover=QPixmap(),
class StelAction* action=NULL, bool noBackground= class StelAction* action=NULL, bool noBackground=false);
false);
//! Constructor //! Constructor
//! @param parent the parent item //! @param parent the parent item
//! @param pixOn the pixmap to display when the button is toggled //! @param pixOn the pixmap to display when the button is toggled
//! @param pixOff the pixmap to display when the button is not toggl ed //! @param pixOff the pixmap to display when the button is not toggl ed
//! @param pixHover a pixmap slowly blended when mouse is over the b utton //! @param pixHover a pixmap slowly blended when mouse is over the b utton
//! @param actionId the id of the associated action. Connections are automatically done with the signals if relevant. //! @param actionId the id of the associated action. Connections are automatically done with the signals if relevant.
//! @param noBackground define whether the button background image h ave to be used //! @param noBackground define whether the button background image h ave to be used
StelButton(QGraphicsItem* parent, const QPixmap& pixOn, const QPixma p& pixOff, StelButton(QGraphicsItem* parent, const QPixmap& pixOn, const QPixma p& pixOff,
const QPixmap& pixHover, const QPixmap& pixHover,
const QString& actionId, bool noBackground=false) const QString& actionId, bool noBackground=false);
;
//! Constructor //! Constructor
//! @param parent the parent item //! @param parent the parent item
//! @param pixOn the pixmap to display when the button is toggled //! @param pixOn the pixmap to display when the button is toggled
//! @param pixOff the pixmap to display when the button is not toggl ed //! @param pixOff the pixmap to display when the button is not toggl ed
//! @param pixNoChange the pixmap to display when the button state o f a tristate is not changed //! @param pixNoChange the pixmap to display when the button state o f a tristate is not changed
//! @param pixHover a pixmap slowly blended when mouse is over the b utton //! @param pixHover a pixmap slowly blended when mouse is over the b utton
//! @param actionId the associated action. Connections are automatic ally done with the signals if relevant. //! @param actionId the associated action. Connections are automatic ally done with the signals if relevant.
//! @param noBackground define whether the button background image h ave to be used //! @param noBackground define whether the button background image h ave to be used
//! @param isTristate define whether the button is a tristate or an on/off button //! @param isTristate define whether the button is a tristate or an on/off button
StelButton(QGraphicsItem* parent, const QPixmap& pixOn, const QPixma p& pixOff, const QPixmap& pixNoChange, StelButton(QGraphicsItem* parent, const QPixmap& pixOn, const QPixma p& pixOff, const QPixmap& pixNoChange,
const QPixmap& pixHover, const QPixmap& pixHover,
const QString& actionId=QString(), bool noBackgro const QString& actionId=QString(), bool noBackground=fals
und=false, bool isTristate=true); e, bool isTristate=true);
//! Button states //! Button states
enum {ButtonStateOff = 0, ButtonStateOn = 1, ButtonStateNoChange = 2 }; enum {ButtonStateOff = 0, ButtonStateOn = 1, ButtonStateNoChange = 2 };
//! Get whether the button is checked //! Get whether the button is checked
int isChecked() const {return checked;} int isChecked() const {return checked;}
//! Get the width of the button image. //! Get the width of the button image.
//! The width is based on pixOn. //! The width is based on pixOn.
int getButtonPixmapWidth() const {return pixOn.width();} int getButtonPixmapWidth() const {return pixOn.width();}
 End of changes. 3 change blocks. 
9 lines changed or deleted 7 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/