@AppPropsEditor.h 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. /******************************************************************************/
  2. /******************************************************************************/
  3. class AppPropsEditor : PropWin
  4. {
  5. enum ORIENT
  6. {
  7. ORIENT_PORTRAIT ,
  8. ORIENT_LANDSCAPE ,
  9. ORIENT_ALL ,
  10. ORIENT_ALL_NO_DOWN ,
  11. ORIENT_PORTRAIT_LOCKED ,
  12. ORIENT_LANDSCAPE_LOCKED,
  13. };
  14. static cchar8 *OrientName[]
  15. ;
  16. static NameDesc EmbedEngine[]
  17. ;
  18. static NameDesc StorageName[]
  19. ; ASSERT(Edit::STORAGE_INTERNAL==0 && Edit::STORAGE_EXTERNAL==1 && Edit::STORAGE_AUTO==2);
  20. static ORIENT FlagToOrient(uint flag);
  21. static uint OrientToFlag(ORIENT orient);
  22. class AppImage : ImageSkin
  23. {
  24. Button remove;
  25. Image image_2d;
  26. ImagePtr game_image;
  27. MemberDesc md, md_time;
  28. static void Remove(AppImage &ai);
  29. void setImage();
  30. void setImage(C UID &image_id);
  31. AppImage& create(C MemberDesc &md, C MemberDesc &md_time, GuiObj &parent, C Rect &rect);
  32. };
  33. UID elm_id;
  34. Elm *elm;
  35. bool changed, changed_headers;
  36. Property *p_icon, *p_image_portrait, *p_image_landscape, *p_notification_icon;
  37. AppImage icon , image_portrait , image_landscape , notification_icon;
  38. Tabs platforms, platforms2;
  39. static void Changed (C Property &prop);
  40. static void GetAndroidLicenseKey( ptr );
  41. static void GetFacebookAppID ( ptr );
  42. static void GetChartboostApp ( ptr );
  43. static void DirsWin ( AppPropsEditor &ap, C Str &text);
  44. static Str DirsWin (C AppPropsEditor &ap );
  45. static void DirsNonWin ( AppPropsEditor &ap, C Str &text);
  46. static Str DirsNonWin (C AppPropsEditor &ap );
  47. static void HeadersWin ( AppPropsEditor &ap, C Str &text);
  48. static Str HeadersWin (C AppPropsEditor &ap );
  49. static void HeadersMac ( AppPropsEditor &ap, C Str &text);
  50. static Str HeadersMac (C AppPropsEditor &ap );
  51. static void HeadersLinux ( AppPropsEditor &ap, C Str &text);
  52. static Str HeadersLinux (C AppPropsEditor &ap );
  53. static void HeadersAndroid ( AppPropsEditor &ap, C Str &text);
  54. static Str HeadersAndroid (C AppPropsEditor &ap );
  55. static void HeadersiOS ( AppPropsEditor &ap, C Str &text);
  56. static Str HeadersiOS (C AppPropsEditor &ap );
  57. static void LibsWindows ( AppPropsEditor &ap, C Str &text);
  58. static Str LibsWindows (C AppPropsEditor &ap );
  59. static void LibsMac ( AppPropsEditor &ap, C Str &text);
  60. static Str LibsMac (C AppPropsEditor &ap );
  61. static void LibsLinux ( AppPropsEditor &ap, C Str &text);
  62. static Str LibsLinux (C AppPropsEditor &ap );
  63. static void LibsAndroid ( AppPropsEditor &ap, C Str &text);
  64. static Str LibsAndroid (C AppPropsEditor &ap );
  65. static void LibsiOS ( AppPropsEditor &ap, C Str &text);
  66. static Str LibsiOS (C AppPropsEditor &ap );
  67. static void Package ( AppPropsEditor &ap, C Str &text);
  68. static Str Package (C AppPropsEditor &ap );
  69. static void AndroidLicenseKey ( AppPropsEditor &ap, C Str &text);
  70. static Str AndroidLicenseKey (C AppPropsEditor &ap );
  71. static void Build ( AppPropsEditor &ap, C Str &text);
  72. static Str Build (C AppPropsEditor &ap );
  73. static void LocationUsageReason ( AppPropsEditor &ap, C Str &text);
  74. static Str LocationUsageReason (C AppPropsEditor &ap );
  75. static void FacebookAppID ( AppPropsEditor &ap, C Str &text);
  76. static Str FacebookAppID (C AppPropsEditor &ap );
  77. static void ChartboostAppIDiOS ( AppPropsEditor &ap, C Str &text);
  78. static Str ChartboostAppIDiOS (C AppPropsEditor &ap );
  79. static void ChartboostAppSignatureiOS ( AppPropsEditor &ap, C Str &text);
  80. static Str ChartboostAppSignatureiOS (C AppPropsEditor &ap );
  81. static void ChartboostAppIDGoogle ( AppPropsEditor &ap, C Str &text);
  82. static Str ChartboostAppIDGoogle (C AppPropsEditor &ap );
  83. static void ChartboostAppSignatureGoogle( AppPropsEditor &ap, C Str &text);
  84. static Str ChartboostAppSignatureGoogle(C AppPropsEditor &ap );
  85. static void Storage ( AppPropsEditor &ap, C Str &text);
  86. static Str Storage (C AppPropsEditor &ap );
  87. static void GuiSkin ( AppPropsEditor &ap, C Str &text);
  88. static Str GuiSkin (C AppPropsEditor &ap );
  89. static void EmbedEngineData ( AppPropsEditor &ap, C Str &text);
  90. static Str EmbedEngineData (C AppPropsEditor &ap );
  91. static void PublishProjData ( AppPropsEditor &ap, C Str &text);
  92. static Str PublishProjData (C AppPropsEditor &ap );
  93. static void PublishDataAsPak ( AppPropsEditor &ap, C Str &text);
  94. static Str PublishDataAsPak (C AppPropsEditor &ap );
  95. static void AndroidExpansion ( AppPropsEditor &ap, C Str &text);
  96. static Str AndroidExpansion (C AppPropsEditor &ap );
  97. static void PublishPhysxDll ( AppPropsEditor &ap, C Str &text);
  98. static Str PublishPhysxDll (C AppPropsEditor &ap );
  99. static void PublishSteamDll ( AppPropsEditor &ap, C Str &text);
  100. static Str PublishSteamDll (C AppPropsEditor &ap );
  101. static void PublishOpenVRDll ( AppPropsEditor &ap, C Str &text);
  102. static Str PublishOpenVRDll (C AppPropsEditor &ap );
  103. //static void WindowsCodeSign ( AppPropsEditor &ap, C Str &text) {if(ap.elm)if(ElmApp *app_data=ap.elm.appData()){app_data.windowsCodeSign(TextBool(text)).windows_code_sign_time.getUTC();}}
  104. //static Str WindowsCodeSign (C AppPropsEditor &ap ) {if(ap.elm)if(ElmApp *app_data=ap.elm.appData())return app_data.windowsCodeSign(); return S;}
  105. static void Orientation ( AppPropsEditor &ap, C Str &text);
  106. static Str Orientation (C AppPropsEditor &ap );
  107. static cchar8 *platforms_t[]
  108. ;
  109. static cchar8 *platforms2_t[]
  110. ;
  111. void create();
  112. void toGui();
  113. virtual AppPropsEditor& hide()override;
  114. void flush();
  115. void setChanged();
  116. void set(Elm *elm);
  117. void activate(Elm *elm);
  118. void toggle (Elm *elm);
  119. void elmChanged(C UID &elm_id);
  120. void erasing(C UID &elm_id);
  121. void drag(Memc<UID> &elms, GuiObj *obj, C Vec2 &screen_pos);
  122. void drop(Memc<Str> &names, GuiObj *obj, C Vec2 &screen_pos);
  123. public:
  124. AppPropsEditor();
  125. };
  126. /******************************************************************************/
  127. /******************************************************************************/
  128. extern AppPropsEditor AppPropsEdit;
  129. /******************************************************************************/