GUIConfiguration.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. //---------------------------------------------------------------------------
  2. #ifndef GUIConfigurationH
  3. #define GUIConfigurationH
  4. //---------------------------------------------------------------------------
  5. #include "Configuration.h"
  6. //---------------------------------------------------------------------------
  7. struct TPasLibModule;
  8. enum TLogView { lvNone, lvWindow, pvPanel };
  9. enum TInterface { ifCommander, ifExplorer };
  10. //---------------------------------------------------------------------------
  11. class TGUIConfiguration : public TConfiguration
  12. {
  13. private:
  14. bool FCopyParamDialogExpanded;
  15. bool FErrorDialogExpanded;
  16. TStrings * FLocales;
  17. AnsiString FLastLocalesExts;
  18. bool FContinueOnError;
  19. AnsiString FPuttyPath;
  20. AnsiString FPuttySession;
  21. int FSynchronizeParams;
  22. protected:
  23. LCID FLocale;
  24. virtual void __fastcall SaveSpecial(THierarchicalStorage * Storage);
  25. virtual void __fastcall LoadSpecial(THierarchicalStorage * Storage);
  26. virtual LCID __fastcall GetLocale();
  27. void __fastcall SetLocale(LCID value);
  28. void __fastcall SetLocaleSafe(LCID value);
  29. virtual HANDLE __fastcall LoadNewResourceModule(LCID Locale,
  30. AnsiString * FileName = NULL);
  31. virtual void __fastcall SetResourceModule(HANDLE Instance);
  32. TStrings * __fastcall GetLocales();
  33. LCID __fastcall InternalLocale();
  34. TPasLibModule * __fastcall FindModule(void * Instance);
  35. void __fastcall FreeResourceModule(HANDLE Instance);
  36. public:
  37. __fastcall TGUIConfiguration();
  38. __fastcall ~TGUIConfiguration();
  39. virtual void __fastcall Default();
  40. __property bool CopyParamDialogExpanded = { read = FCopyParamDialogExpanded, write = FCopyParamDialogExpanded };
  41. __property bool ErrorDialogExpanded = { read = FErrorDialogExpanded, write = FErrorDialogExpanded };
  42. __property bool ContinueOnError = { read = FContinueOnError, write = FContinueOnError };
  43. __property int SynchronizeParams = { read = FSynchronizeParams, write = FSynchronizeParams };
  44. __property LCID Locale = { read = GetLocale, write = SetLocale };
  45. __property LCID LocaleSafe = { read = GetLocale, write = SetLocaleSafe };
  46. __property TStrings * Locales = { read = GetLocales };
  47. __property AnsiString PuttyPath = { read = FPuttyPath, write = FPuttyPath };
  48. __property AnsiString PuttySession = { read = FPuttySession, write = FPuttySession };
  49. };
  50. //---------------------------------------------------------------------------
  51. #define GUIConfiguration (dynamic_cast<TGUIConfiguration *>(Configuration))
  52. //---------------------------------------------------------------------------
  53. #endif