@WaypointListClass.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /******************************************************************************/
  2. /******************************************************************************/
  3. class WaypointListClass : ClosableWindow
  4. {
  5. class Elm
  6. {
  7. EditWaypoint *waypoint;
  8. public:
  9. Elm();
  10. };
  11. bool _changed;
  12. Button refresh;
  13. TextLine filter;
  14. Button show_removed;
  15. Region region;
  16. List<Elm> list;
  17. Memx<Elm> data;
  18. static void FilterChanged(WaypointListClass &ol);
  19. static void Hide(WaypointListClass &ol);
  20. static Str WaypointName (C Elm &elm);
  21. static Str WaypointPoints(C Elm &elm);
  22. static Str WaypointPosX (C Elm &elm);
  23. static Str WaypointPosY (C Elm &elm);
  24. static Str WaypointPosZ (C Elm &elm);
  25. void setChanged();
  26. WaypointListClass&create();
  27. void setCur();
  28. void setVisible();
  29. void set();
  30. virtual Rect sizeLimit()C override;
  31. C Rect& rect()C;
  32. virtual Window& rect(C Rect &rect)override;
  33. virtual void update(C GuiPC &gpc)override;
  34. void removed(EditWaypoint &waypoint);
  35. public:
  36. WaypointListClass();
  37. };
  38. /******************************************************************************/
  39. /******************************************************************************/
  40. extern WaypointListClass WaypointList;
  41. /******************************************************************************/