options.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. #ifndef _OPTIONS_H
  2. #define _OPTIONS_H
  3. #include <api/config/items/cfgitemi.h>
  4. #include <api/config/items/attrcb.h>
  5. //#include <api/config/filetypes.h>
  6. #include <api/config/uioptions.h>
  7. class Options;
  8. class _string;
  9. class _int;
  10. class _bool;
  11. extern _string cfg_options_defaultfont;
  12. extern _int cfg_options_ttfoverridescale;
  13. extern _bool cfg_options_no7bitsttfoverride;
  14. extern _bool cfg_options_allowbitmapfonts;
  15. extern _string cfg_options_fontrenderer;
  16. #ifdef _WASABIRUNTIME
  17. class SetupOptions : public CfgItemI {
  18. public:
  19. SetupOptions();
  20. Filetypes filetypes;
  21. };
  22. class InstalledComponents : public CfgItemI {
  23. public:
  24. InstalledComponents();
  25. };
  26. #endif
  27. class AudioOptions : public CfgItemI {
  28. public:
  29. AudioOptions();
  30. };
  31. #define OPTIONS_PARENT CfgItemI
  32. class Options : public OPTIONS_PARENT {
  33. public:
  34. Options();
  35. void checkCd();
  36. AudioOptions audio_options;
  37. UIOptions ui_options;
  38. };
  39. #ifdef _WASABIRUNTIME
  40. class LanguageCB : public AttrCallback {
  41. public:
  42. LanguageCB(CfgItemI *_par) : par(_par) { }
  43. virtual void onValueChange(Attribute *attr);
  44. private:
  45. CfgItemI *par;
  46. };
  47. #endif
  48. #endif