@PathProps.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /******************************************************************************/
  2. /******************************************************************************/
  3. class PathProps : Region
  4. {
  5. Memx<Property> props;
  6. Text tcell, vcell, tctrl_r, vctrl_r ; // t-text, v-value
  7. Button dcell, icell, dctrl_r, ictrl_r, apply, copy, paste; // d-dec , i-inc
  8. TextWhite ts, tsr;
  9. static ElmWorld* WS(); // world settings
  10. static void Changed(C Property &prop);
  11. static void CellSize (PathProps &pp, C Str &text); static Str CellSize (C PathProps &pp);
  12. static void CtrlRadius(PathProps &pp, C Str &text); static Str CtrlRadius(C PathProps &pp);
  13. static void CtrlHeight(PathProps &pp, C Str &text); static Str CtrlHeight(C PathProps &pp);
  14. static void MaxSlope (PathProps &pp, C Str &text); static Str MaxSlope (C PathProps &pp);
  15. static void MaxClimb (PathProps &pp, C Str &text); static Str MaxClimb (C PathProps &pp);
  16. static void IncCellSize(PathProps &pp);
  17. static void DecCellSize(PathProps &pp);
  18. static void IncCtrlRadius(PathProps &pp);
  19. static void DecCtrlRadius(PathProps &pp);
  20. static void Apply(PathProps &pp);
  21. static void Copy (PathProps &pp);
  22. static void Paste(PathProps &pp);
  23. PathProps& create();
  24. void toGui();
  25. };
  26. /******************************************************************************/
  27. /******************************************************************************/
  28. /******************************************************************************/