@IconSettsEditor.h 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. /******************************************************************************/
  2. /******************************************************************************/
  3. class IconSettsEditor : PropWin
  4. {
  5. class Change : Edit::_Undo::Change
  6. {
  7. IconSettings data;
  8. virtual void create(ptr user)override;
  9. virtual void apply(ptr user)override;
  10. };
  11. UID elm_id;
  12. Elm *elm;
  13. bool changed;
  14. IconSettings edit;
  15. Button undo, redo, locate;
  16. Edit::Undo<Change> undos; void undoVis();
  17. ElmIconSetts* data()C;
  18. static cchar8 *IconSizes[]
  19. ;
  20. static void PreChanged(C Property &prop);
  21. static void Changed(C Property &prop);
  22. static void Width ( IconSettsEditor &ie, C Str &t);
  23. static Str Width (C IconSettsEditor &ie );
  24. static void Height ( IconSettsEditor &ie, C Str &t);
  25. static Str Height (C IconSettsEditor &ie );
  26. static void Type ( IconSettsEditor &ie, C Str &t);
  27. static Str Type (C IconSettsEditor &ie );
  28. static void MipMaps ( IconSettsEditor &ie, C Str &t);
  29. static Str MipMaps (C IconSettsEditor &ie );
  30. static void AutoCenter ( IconSettsEditor &ie, C Str &t);
  31. static Str AutoCenter (C IconSettsEditor &ie );
  32. static void Scale ( IconSettsEditor &ie, C Str &t);
  33. static Str Scale (C IconSettsEditor &ie );
  34. static void CamYaw ( IconSettsEditor &ie, C Str &t);
  35. static Str CamYaw (C IconSettsEditor &ie );
  36. static void CamPitch ( IconSettsEditor &ie, C Str &t);
  37. static Str CamPitch (C IconSettsEditor &ie );
  38. static void CamRoll ( IconSettsEditor &ie, C Str &t);
  39. static Str CamRoll (C IconSettsEditor &ie );
  40. static void CamFocusX ( IconSettsEditor &ie, C Str &t);
  41. static Str CamFocusX (C IconSettsEditor &ie );
  42. static void CamFocusY ( IconSettsEditor &ie, C Str &t);
  43. static Str CamFocusY (C IconSettsEditor &ie );
  44. static void CamFocusZ ( IconSettsEditor &ie, C Str &t);
  45. static Str CamFocusZ (C IconSettsEditor &ie );
  46. static void BloomOriginal( IconSettsEditor &ie, C Str &t);
  47. static Str BloomOriginal(C IconSettsEditor &ie );
  48. static void BloomScale ( IconSettsEditor &ie, C Str &t);
  49. static Str BloomScale (C IconSettsEditor &ie );
  50. static void BloomCut ( IconSettsEditor &ie, C Str &t);
  51. static Str BloomCut (C IconSettsEditor &ie );
  52. static void Light0Shadow ( IconSettsEditor &ie, C Str &t);
  53. static Str Light0Shadow (C IconSettsEditor &ie );
  54. static void Light1Shadow ( IconSettsEditor &ie, C Str &t);
  55. static Str Light1Shadow (C IconSettsEditor &ie );
  56. static void AmbientCol ( IconSettsEditor &ie, C Str &t);
  57. static Str AmbientCol (C IconSettsEditor &ie );
  58. static void AmbientOccl ( IconSettsEditor &ie, C Str &t);
  59. static Str AmbientOccl (C IconSettsEditor &ie );
  60. static void AmbientRange ( IconSettsEditor &ie, C Str &t);
  61. static Str AmbientRange (C IconSettsEditor &ie );
  62. static void Light0Col ( IconSettsEditor &ie, C Str &t);
  63. static Str Light0Col (C IconSettsEditor &ie );
  64. static void Light0Yaw ( IconSettsEditor &ie, C Str &t);
  65. static Str Light0Yaw (C IconSettsEditor &ie );
  66. static void Light0Pitch ( IconSettsEditor &ie, C Str &t);
  67. static Str Light0Pitch (C IconSettsEditor &ie );
  68. static void Light1Col ( IconSettsEditor &ie, C Str &t);
  69. static Str Light1Col (C IconSettsEditor &ie );
  70. static void Light1Yaw ( IconSettsEditor &ie, C Str &t);
  71. static Str Light1Yaw (C IconSettsEditor &ie );
  72. static void Light1Pitch ( IconSettsEditor &ie, C Str &t);
  73. static Str Light1Pitch (C IconSettsEditor &ie );
  74. static void Fov ( IconSettsEditor &ie, C Str &t);
  75. static Str Fov (C IconSettsEditor &ie );
  76. static void Undo (IconSettsEditor &editor);
  77. static void Redo (IconSettsEditor &editor);
  78. static void Locate(IconSettsEditor &editor);
  79. void create();
  80. virtual IconSettsEditor& hide()override;
  81. void flush();
  82. void setChanged();
  83. void set(Elm *elm);
  84. void activate(Elm *elm);
  85. void toggle (Elm *elm);
  86. void erasing(C UID &elm_id);
  87. void elmChanged(C UID &elm_id);
  88. public:
  89. IconSettsEditor();
  90. };
  91. /******************************************************************************/
  92. /******************************************************************************/
  93. extern IconSettsEditor IconSettsEdit;
  94. /******************************************************************************/