CFG0000MF.h 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. //---------------------------------------------------------------------------
  2. #ifndef CFG0000MFH
  3. #define CFG0000MFH
  4. //---------------------------------------------------------------------------
  5. #include <Classes.hpp>
  6. #include <Controls.hpp>
  7. #include <StdCtrls.hpp>
  8. #include <Forms.hpp>
  9. #include <Graphics.hpp>
  10. #include <ExtCtrls.hpp>
  11. #include <ComCtrls.hpp>
  12. #include <Menus.hpp>
  13. #include <Dialogs.hpp>
  14. #include "cxButtonEdit.hpp"
  15. #include "cxButtons.hpp"
  16. #include "cxCheckBox.hpp"
  17. #include "cxContainer.hpp"
  18. #include "cxControls.hpp"
  19. #include "cxEdit.hpp"
  20. #include "cxGraphics.hpp"
  21. #include "cxGroupBox.hpp"
  22. #include "cxLookAndFeelPainters.hpp"
  23. #include "cxLookAndFeels.hpp"
  24. #include "cxMaskEdit.hpp"
  25. #include "cxSpinEdit.hpp"
  26. #include "cxTextEdit.hpp"
  27. #include "dxSkinBlack.hpp"
  28. #include "dxSkinBlue.hpp"
  29. #include "dxSkinsCore.hpp"
  30. #include "cxLabel.hpp"
  31. //---------------------------------------------------------------------------
  32. class TCFG0000M : public TForm
  33. {
  34. __published: // IDE-managed Components
  35. TTimer *TmrShow;
  36. TShape *ShpTitle;
  37. TcxButton *BtnClose;
  38. TLabel *LblCaption;
  39. TShape *ShpList;
  40. TEdit *EdFocus;
  41. TcxButton *BtnSave;
  42. TOpenDialog *OpenDialog1;
  43. TPanel *Panel1;
  44. TcxGroupBox *cxGroupBox4;
  45. TLabel *Label1;
  46. TImage *ImgDesc01;
  47. TLabel *Label2;
  48. TImage *ImgDesc02;
  49. TcxTextEdit *EdCenterId;
  50. TcxTextEdit *EdCenterName;
  51. TcxGroupBox *GrpMap;
  52. TLabel *Label36;
  53. TImage *ImgDesc03;
  54. TcxButtonEdit *EdGisFile;
  55. TcxGroupBox *cxGroupBox2;
  56. TImage *ImgDesc04;
  57. TLabel *Label3;
  58. TImage *ImgDesc05;
  59. TLabel *Label4;
  60. TImage *ImgDesc07;
  61. TLabel *Label5;
  62. TLabel *Label6;
  63. TImage *ImgDesc06;
  64. TcxTextEdit *EdDbProvider;
  65. TcxTextEdit *EdDbUser;
  66. TcxTextEdit *EdDbSource;
  67. TcxTextEdit *EdDbPasswd;
  68. TcxGroupBox *cxGroupBox3;
  69. TLabel *Label7;
  70. TImage *ImgDesc08;
  71. TcxTextEdit *EdProcessId;
  72. TcxGroupBox *GrpLogout;
  73. TcxCheckBox *ChkAutoLogout;
  74. TLabel *Label11;
  75. TImage *Image1;
  76. TcxSpinEdit *SeInterevalMin;
  77. TLabel *Label9;
  78. TImage *ImgDesc10;
  79. TImage *ImgDesc11;
  80. TLabel *Label10;
  81. TcxTextEdit *EdTaskId;
  82. TcxTextEdit *EdNodeId;
  83. TcxTextEdit *EdSequence;
  84. TcxCheckBox *ChkSaveForm;
  85. TcxGroupBox *GrpAlarm;
  86. TLabel *Label12;
  87. TImage *ImgDesc12;
  88. TcxCheckBox *ChkAlarm;
  89. TcxSpinEdit *SeAlarmTimeOut;
  90. TLabel *Label13;
  91. TImage *ImgDesc13;
  92. TcxCheckBox *ChkIncident;
  93. TcxSpinEdit *SeIncidentTimeOut;
  94. TImage *ImgDesc14;
  95. TcxSpinEdit *SeTemp;
  96. TLabel *Label14;
  97. TcxCheckBox *ChkAlarmWindow;
  98. TcxLabel *lblQry;
  99. TcxLabel *lblQryRes;
  100. void __fastcall FormShow(TObject *Sender);
  101. void __fastcall TmrShowTimer(TObject *Sender);
  102. void __fastcall BtnCloseClick(TObject *Sender);
  103. void __fastcall BtnSaveClick(TObject *Sender);
  104. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  105. void __fastcall EdGisFilePropertiesButtonClick(TObject *Sender, int AButtonIndex);
  106. private: // User declarations
  107. void __fastcall CommClose();
  108. String FTitle;
  109. String FIniFile;
  110. public:
  111. public: // User declarations
  112. __fastcall TCFG0000M(TComponent* Owner);
  113. void __fastcall RefreshData();
  114. String __fastcall GetConfigValue(String sSection, String sIdent, String sDefVal);
  115. void __fastcall SetConfigValue(String sSection, String sIdent, String sSetVal);
  116. __property String IniFile = {read=FIniFile, write=FIniFile};
  117. };
  118. //---------------------------------------------------------------------------
  119. extern PACKAGE TCFG0000M *CFG0000M;
  120. //---------------------------------------------------------------------------
  121. #endif