CFG0000MF.h 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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. #include "dxSkinMcSkin.hpp"
  32. //---------------------------------------------------------------------------
  33. class TCFG0000M : public TForm
  34. {
  35. __published: // IDE-managed Components
  36. TTimer *TmrShow;
  37. TShape *ShpTitle;
  38. TcxButton *BtnClose;
  39. TLabel *LblCaption;
  40. TShape *ShpList;
  41. TEdit *EdFocus;
  42. TcxButton *BtnSave;
  43. TOpenDialog *OpenDialog1;
  44. TPanel *Panel1;
  45. TcxGroupBox *cxGroupBox4;
  46. TLabel *Label1;
  47. TImage *ImgDesc01;
  48. TLabel *Label2;
  49. TImage *ImgDesc02;
  50. TcxTextEdit *EdCenterId;
  51. TcxTextEdit *EdCenterName;
  52. TcxGroupBox *GrpMap;
  53. TLabel *Label36;
  54. TImage *ImgDesc03;
  55. TcxButtonEdit *EdGisFile;
  56. TcxGroupBox *cxGroupBox2;
  57. TImage *ImgDesc04;
  58. TLabel *Label3;
  59. TImage *ImgDesc05;
  60. TLabel *Label4;
  61. TImage *ImgDesc07;
  62. TLabel *Label5;
  63. TLabel *Label6;
  64. TImage *ImgDesc06;
  65. TcxTextEdit *EdDbProvider;
  66. TcxTextEdit *EdDbUser;
  67. TcxTextEdit *EdDbSource;
  68. TcxTextEdit *EdDbPasswd;
  69. TcxGroupBox *cxGroupBox3;
  70. TLabel *Label7;
  71. TImage *ImgDesc08;
  72. TcxTextEdit *EdProcessId;
  73. TcxGroupBox *GrpLogout;
  74. TcxCheckBox *ChkAutoLogout;
  75. TLabel *Label11;
  76. TImage *Image1;
  77. TcxSpinEdit *SeInterevalMin;
  78. TLabel *Label9;
  79. TImage *ImgDesc10;
  80. TImage *ImgDesc11;
  81. TLabel *Label10;
  82. TcxTextEdit *EdTaskId;
  83. TcxTextEdit *EdNodeId;
  84. TcxTextEdit *EdSequence;
  85. TcxCheckBox *ChkSaveForm;
  86. TcxGroupBox *GrpAlarm;
  87. TLabel *Label12;
  88. TImage *ImgDesc12;
  89. TcxCheckBox *ChkAlarm;
  90. TcxSpinEdit *SeAlarmTimeOut;
  91. TLabel *Label13;
  92. TImage *ImgDesc13;
  93. TcxCheckBox *ChkIncident;
  94. TcxSpinEdit *SeIncidentTimeOut;
  95. TImage *ImgDesc14;
  96. TcxSpinEdit *SeTemp;
  97. TLabel *Label14;
  98. TcxCheckBox *ChkAlarmWindow;
  99. TcxLabel *lblQry;
  100. TcxLabel *lblQryRes;
  101. void __fastcall FormShow(TObject *Sender);
  102. void __fastcall TmrShowTimer(TObject *Sender);
  103. void __fastcall BtnCloseClick(TObject *Sender);
  104. void __fastcall BtnSaveClick(TObject *Sender);
  105. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  106. void __fastcall EdGisFilePropertiesButtonClick(TObject *Sender, int AButtonIndex);
  107. private: // User declarations
  108. void __fastcall CommClose();
  109. String FTitle;
  110. String FIniFile;
  111. public:
  112. public: // User declarations
  113. __fastcall TCFG0000M(TComponent* Owner);
  114. void __fastcall RefreshData();
  115. String __fastcall GetConfigValue(String sSection, String sIdent, String sDefVal);
  116. void __fastcall SetConfigValue(String sSection, String sIdent, String sSetVal);
  117. __property String IniFile = {read=FIniFile, write=FIniFile};
  118. };
  119. //---------------------------------------------------------------------------
  120. extern PACKAGE TCFG0000M *CFG0000M;
  121. //---------------------------------------------------------------------------
  122. #endif