Log.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. //---------------------------------------------------------------------------
  2. #ifndef LogH
  3. #define LogH
  4. //---------------------------------------------------------------------------
  5. #include <Classes.hpp>
  6. #include <Controls.hpp>
  7. #include <StdCtrls.hpp>
  8. #include <Forms.hpp>
  9. #include <ComCtrls.hpp>
  10. #include <ExtCtrls.hpp>
  11. #include <LogMemo.h>
  12. #include <ToolWin.hpp>
  13. //---------------------------------------------------------------------------
  14. class TLogForm : public TForm
  15. {
  16. __published: // IDE-managed Components
  17. TStatusBar *StatusBar;
  18. TCoolBar *TopCoolBar;
  19. TToolBar *ToolBar;
  20. TToolButton *ToolButton1;
  21. TToolButton *ToolButton3;
  22. TToolButton *ToolButton2;
  23. TToolButton *ToolButton4;
  24. TToolButton *ToolButton5;
  25. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  26. void __fastcall StatusBarResize(TObject *Sender);
  27. private:
  28. Boolean FFormRestored;
  29. Boolean FStatusBarFile;
  30. TLogMemo * FLogMemo;
  31. TSessionLog * FSessionLog;
  32. void __fastcall SetLogMemo(TLogMemo * value);
  33. void __fastcall SetSessionLog(TSessionLog * value); // User declarations
  34. protected:
  35. virtual void __fastcall CreateParams(TCreateParams & Params);
  36. void __fastcall LogMemoChange(TObject * Sender);
  37. void __fastcall SetStatusBarText(AnsiString Text);
  38. void __fastcall UpdateControls();
  39. public:
  40. virtual __fastcall ~TLogForm(); // User declarations
  41. __fastcall TLogForm(TComponent* Owner);
  42. __property TLogMemo * LogMemo = { read = FLogMemo, write = SetLogMemo };
  43. __property TSessionLog * SessionLog = { read = FSessionLog, write = SetSessionLog };
  44. };
  45. //---------------------------------------------------------------------------
  46. extern PACKAGE TLogForm *LogForm;
  47. //---------------------------------------------------------------------------
  48. TLogForm * __fastcall CreateLogForm(TLogMemo *ALogMemo);
  49. TLogForm * __fastcall RequireLogForm(TLogMemo *ALogMemo);
  50. void __fastcall FreeLogForm();
  51. //---------------------------------------------------------------------------
  52. #endif