X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FGUI%2FWaypointList.hxx;h=46a386b59601d93a64e8a095e920b2046139e4fe;hb=49677f512b8edaaf22c76761dbbf9c0850c79aad;hp=165a1dad39bf86312ae169dc0ddb846b0287b7f7;hpb=de79ec4421fc5b93412bcf0585d86c145110a975;p=flightgear.git diff --git a/src/GUI/WaypointList.hxx b/src/GUI/WaypointList.hxx index 165a1dad3..46a386b59 100644 --- a/src/GUI/WaypointList.hxx +++ b/src/GUI/WaypointList.hxx @@ -14,9 +14,12 @@ // forward decls class puaScrollBar; -class SGWayPoint; class SGCallback; +namespace flightgear { + class Waypt; +} + class WaypointList : public puFrame, public GUI_ID { public: @@ -71,14 +74,13 @@ public: virtual unsigned int numWaypoints() const = 0; virtual int currentWaypoint() const = 0; - virtual SGWayPoint waypointAt(unsigned int index) const = 0; + virtual flightgear::Waypt* waypointAt(unsigned int index) const = 0; // update notifications virtual void setUpdateCallback(SGCallback* cb) = 0; // editing operations virtual void deleteAt(unsigned int index) = 0; - virtual void setWaypointTargetAltitudeFt(unsigned int index, int altFt) = 0; virtual void moveWaypointToIndex(unsigned int srcIndex, unsigned int dstIndex) = 0; }; @@ -121,9 +123,7 @@ private: int numFullyVisibleRows() const; int firstFullyVisibleRow() const; int lastFullyVisibleRow() const; - - int wayptAltFtHundreds(int index) const; - + void modelUpdateCallback(); int _scrollPx; // scroll ammount (in pixels) @@ -141,6 +141,10 @@ private: Model* _model; SGCallback* _updateCallback; SGCallback* _scrollCallback; + + SGTimeStamp _blinkTimer; + bool _blink; + int _arrowWidth; }; class ScrolledWaypointList : public puGroup