FrmCommLogF.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. //---------------------------------------------------------------------------
  2. #ifndef FrmCommLogFH
  3. #define FrmCommLogFH
  4. //---------------------------------------------------------------------------
  5. #include <Classes.hpp>
  6. #include <Controls.hpp>
  7. #include <StdCtrls.hpp>
  8. #include <Forms.hpp>
  9. #include <Buttons.hpp>
  10. #include <ExtCtrls.hpp>
  11. #include <Graphics.hpp>
  12. #include <ComCtrls.hpp>
  13. //---------------------------------------------------------------------------
  14. #include "ITSLogF.h"
  15. #include "CDSCtlrF.h"
  16. #include "VMSCommLibF.h"
  17. //---------------------------------------------------------------------------
  18. class TFrmCommLog : public TForm
  19. {
  20. __published: // IDE-managed Components
  21. TPanel *plServerInfo;
  22. TPanel *Panel1;
  23. TPanel *Panel2;
  24. TCheckBox *chkLogPause;
  25. TButton *btnClear;
  26. TButton *btnCopy;
  27. TMemo *reMsg;
  28. TPanel *Panel4;
  29. TPanel *Panel6;
  30. TImage *Image2;
  31. TCheckBox *chkInfo;
  32. TCheckBox *chkData;
  33. TCheckBox *chkDetail;
  34. TCheckBox *chkError;
  35. TCheckBox *chkWarning;
  36. TCheckBox *chkDebug;
  37. TButton *btnSetLog;
  38. TCheckBox *chkServer;
  39. TCheckBox *chkClient;
  40. void __fastcall btnClearClick(TObject *Sender);
  41. void __fastcall btnCopyClick(TObject *Sender);
  42. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  43. void __fastcall btnSetLogClick(TObject *Sender);
  44. void __fastcall FormShow(TObject *Sender);
  45. private: // User declarations
  46. TCDSCtlr *FObjCtlr;
  47. int FObjCtlrIdx;
  48. AnsiString FObjCtlrId;
  49. LOG_INFO FLogCfg;
  50. public:
  51. public: // User declarations
  52. __fastcall TFrmCommLog(TComponent* Owner);
  53. void DisplayMsg(String& AMsg);
  54. void __fastcall ResetDisplayLog(int AControllerIdx=-1);
  55. void LogWrite(IPC_LOG_MESSAGE *ALog);
  56. void LogData(IPC_LOG_MESSAGE *ALog);
  57. void __fastcall OnWMLogDisplayMessage(TMessage &Msg);
  58. BEGIN_MESSAGE_MAP
  59. MESSAGE_HANDLER(WM_LOG_DISPLAY, TMessage, OnWMLogDisplayMessage)
  60. END_MESSAGE_MAP(TForm)
  61. public:
  62. __property TCDSCtlr* CDSCtlr = { read = FObjCtlr };
  63. };
  64. //---------------------------------------------------------------------------
  65. extern PACKAGE TFrmCommLog *FrmCommLog;
  66. //---------------------------------------------------------------------------
  67. #endif