@ProjectSettings.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /******************************************************************************/
  2. /******************************************************************************/
  3. class ProjectSettings : ClosableWindow
  4. {
  5. class CompressType
  6. {
  7. COMPRESS_TYPE type;
  8. cchar *desc;
  9. cchar8 *name;
  10. };
  11. Button randomize_key;
  12. TextLine cipher_key;
  13. Text compress, mtrl_simplify_t, text_data_t;
  14. ComboBox cipher_type, compress_type, compress_level, mtrl_simplify, text_data;
  15. Button ok;
  16. TextBlack ts;
  17. static CompressType cmpr_type[]
  18. ;
  19. static cchar8 *cmpr_lvl[]
  20. ;
  21. static NameDesc mtrl_simplify_nd[]
  22. ; ASSERT(MS_NEVER==0 && MS_MOBILE==1 && MS_ALWAYS==2);
  23. static cchar8 *text_data_modes[]
  24. ;
  25. static void CipherChanged (ProjectSettings &ps);
  26. static void EncryptionKeyChanged (ProjectSettings &ps);
  27. static void RandomizeEncryptionKey (ProjectSettings &ps);
  28. static void CompressTypeChanged (ProjectSettings &ps);
  29. static void CompressLevelChanged (ProjectSettings &ps);
  30. static void MaterialSimplifyChanged(ProjectSettings &ps);
  31. static void TextDataChanged (ProjectSettings &ps);
  32. COMPRESS_TYPE compressType ();
  33. int compressLevel();
  34. MATERIAL_SIMPLIFY mtrlSimplify()C;
  35. void toGui();
  36. void create();
  37. void display();
  38. };
  39. /******************************************************************************/
  40. /******************************************************************************/
  41. extern ProjectSettings ProjSettings;
  42. /******************************************************************************/