wa2cfgitems.h 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. #ifndef _WA2CFGITEMS_H
  2. #define _WA2CFGITEMS_H
  3. #include <api/config/items/cfgitemi.h>
  4. #include <api/config/items/attribs.h>
  5. #include <api/config/items/attrcb.h>
  6. //---------------------------------------------------------
  7. // playlist editor cfg items
  8. //---------------------------------------------------------
  9. class Wa2PlEditCfgItems : public CfgItemI {
  10. public:
  11. Wa2PlEditCfgItems();
  12. virtual ~Wa2PlEditCfgItems();
  13. static void onSetShuffle(BOOL set);
  14. static void onSetRepeat(BOOL set);
  15. };
  16. //---------------------------------------------------------
  17. // {1828D28F-78DD-4647-8532-EBA504B8FC04}
  18. static const GUID customOptionsMenuitemGuid =
  19. { 0x1828d28f, 0x78dd, 0x4647, { 0x85, 0x32, 0xeb, 0xa5, 0x4, 0xb8, 0xfc, 0x4 } };
  20. // {0542AFA4-48D9-4c9f-8900-5739D52C114F}
  21. static const GUID skinTweaksGuid =
  22. { 0x542afa4, 0x48d9, 0x4c9f, { 0x89, 0x0, 0x57, 0x39, 0xd5, 0x2c, 0x11, 0x4f } };
  23. // {6559CA61-7EB2-4415-A8A9-A2AEEF762B7F}
  24. static const GUID customWindowsMenuitemGuid =
  25. { 0x6559ca61, 0x7eb2, 0x4415, { 0xa8, 0xa9, 0xa2, 0xae, 0xef, 0x76, 0x2b, 0x7f } };
  26. // {F1239F09-8CC6-4081-8519-C2AE99FCB14C}
  27. static const GUID crossfaderGuid =
  28. { 0xf1239f09, 0x8cc6, 0x4081, { 0x85, 0x19, 0xc2, 0xae, 0x99, 0xfc, 0xb1, 0x4c } };
  29. //---------------------------------------------------------
  30. class CustomOptionsMenuItems : public CfgItemI {
  31. public:
  32. CustomOptionsMenuItems() : CfgItemI(L"Custom OptionsMenu Items", customOptionsMenuitemGuid) { };
  33. virtual ~CustomOptionsMenuItems() {}
  34. };
  35. //---------------------------------------------------------
  36. class Crossfader : public CfgItemI {
  37. public:
  38. Crossfader();
  39. virtual ~Crossfader();
  40. static void onOutputChanged();
  41. };
  42. //---------------------------------------------------------
  43. class AvsCfg : public CfgItemI {
  44. public:
  45. AvsCfg();
  46. virtual ~AvsCfg() {}
  47. static void onVisRandomChanged(BOOL set);
  48. };
  49. //---------------------------------------------------------
  50. class CustomWindowsMenuItems : public CfgItemI {
  51. public:
  52. CustomWindowsMenuItems() : CfgItemI(L"Custom WindowsMenu Items", customWindowsMenuitemGuid) { };
  53. virtual ~CustomWindowsMenuItems() {}
  54. };
  55. //---------------------------------------------------------
  56. class SkinTweaks : public CfgItemI {
  57. public:
  58. SkinTweaks();
  59. virtual ~SkinTweaks() {}
  60. static void onPreventVideoStopChanged(BOOL set);
  61. static void onPreventVideoResize(BOOL set);
  62. //static void onDisplayVideoWndOnPlay(BOOL set);
  63. //static void onCloseVideoWndOnStop(BOOL set);
  64. };
  65. //---------------------------------------------------------
  66. class Wa2CfgItems {
  67. public:
  68. Wa2CfgItems();
  69. virtual ~Wa2CfgItems();
  70. private:
  71. Wa2PlEditCfgItems pledit;
  72. };
  73. extern _bool shuffle;
  74. extern _int repeat;
  75. extern _bool cfg_audiooptions_crossfader;
  76. extern _bool cfg_options_alwaysontop;
  77. extern _bool cfg_uioptions_desktopalpha;
  78. extern _bool cfg_uioptions_linkratio;
  79. extern _bool cfg_uioptions_linkalpha;
  80. extern _bool cfg_uioptions_linkallratio;
  81. extern _bool cfg_uioptions_linkallalpha;
  82. extern _bool cfg_uioptions_tooltips;
  83. extern _float cfg_uioptions_textspeed;
  84. extern _int cfg_uioptions_textincrement;
  85. extern _int cfg_uioptions_appbarshidetime;
  86. extern _int cfg_uioptions_appbarsshowtime;
  87. extern _int cfg_uioptions_timerresolution;
  88. extern _bool cfg_audiooptions_crossfader;
  89. extern _bool cfg_options_altfonts;
  90. extern _bool cfg_options_allowbitmapfonts;
  91. extern _string cfg_options_defaultfont;
  92. extern _string cfg_options_ttfoverridefont;
  93. extern _int cfg_options_ttfoverridescale;
  94. extern _int cfg_options_defaultfontscale;
  95. extern _string cfg_options_fontrenderer;
  96. extern _bool cfg_options_docking;
  97. extern _int cfg_options_dockingdistance;
  98. extern _bool cfg_options_appbarondrag;
  99. extern _int cfg_options_appbardockingdistance;
  100. extern _int cfg_options_freetypecharmap;
  101. extern _bool cfg_options_no7bitsttfoverride;
  102. extern _bool cfg_options_noalt7bitsttfoverride;
  103. extern _bool cfg_uioptions_uselocks;
  104. extern _int cfg_uioptions_autoopacitytime;
  105. extern _int cfg_uioptions_autoopacitylinked;
  106. extern _int cfg_uioptions_linkedalpha;
  107. extern _int cfg_uioptions_autoopacityfadein;
  108. extern _int cfg_uioptions_autoopacityfadeout;
  109. extern _int cfg_uioptions_extendautoopacity;
  110. extern _bool cfg_options_usefontmapper;
  111. extern CustomOptionsMenuItems *optionsmenuitems;
  112. extern CustomWindowsMenuItems *windowsmenuitems;
  113. extern SkinTweaks *skintweaks;
  114. extern int disable_set_wa2_repeat;
  115. extern StringW eqmenustring;
  116. extern int my_set;
  117. #endif