| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- //---------------------------------------------------------------------------
- #ifndef LogSettingsH
- #define LogSettingsH
- //---------------------------------------------------------------------------
- #include <Classes.hpp>
- #include <Controls.hpp>
- #include <StdCtrls.hpp>
- #include <Forms.hpp>
- #include <ExtCtrls.hpp>
- #include <Mask.hpp>
- #include <ComboEdit.hpp>
- #include <UpDownEdit.hpp>
- #include <WinInterface.h>
- //---------------------------------------------------------------------------
- class TLoggingFrame : public TFrame
- {
- __published:
- TCheckBox *LoggingCheck;
- TGroupBox *LoggingGroup;
- TLabel *LogWindowLinesText;
- TCheckBox *LogToFileCheck;
- TFilenameEdit *LogFileNameEdit;
- TCheckBox *LogShowWindowCheck;
- TRadioButton *LogWindowCompleteButton;
- TRadioButton *LogWindowLinesButton;
- TUpDownEdit *LogWindowLinesEdit;
- TPanel *LogFilePanel;
- TRadioButton *LogFileAppendButton;
- TRadioButton *LogFileOverwriteButton;
- TLabel *LogProtocolLabel;
- TComboBox *LogProtocolCombo;
- TStaticText *LogFileNameHintText;
- void __fastcall LogToFileCheckChange(TObject *Sender);
- void __fastcall DataChange(TObject *Sender);
- void __fastcall LogFileNameEditBeforeDialog(TObject *Sender,
- AnsiString &Name, bool &Action);
- void __fastcall LogFileNameEditAfterDialog(TObject *Sender,
- AnsiString &Name, bool &Action);
- void __fastcall LogFileNameEditCreateEditDialog(TObject *Sender,
- TFileDialogKind DialogKind, TOpenDialog *&Dialog);
- private:
- bool FEnableLogWindow;
- AnsiString FBeforeDialogPath;
- AnsiString __fastcall GetDefaultLogFileName();
- void __fastcall SetEnableLogWindow(bool value);
- public:
- __fastcall TLoggingFrame(TComponent* Owner);
- void __fastcall LoadConfiguration();
- void __fastcall SaveConfiguration();
- void __fastcall Init();
- __property AnsiString DefaultLogFileName = { read = GetDefaultLogFileName };
- __property bool EnableLogWindow = { read = FEnableLogWindow, write = SetEnableLogWindow };
- protected:
- void __fastcall UpdateControls();
- };
- //---------------------------------------------------------------------------
- extern PACKAGE TLoggingFrame *LoggingFrame;
- //---------------------------------------------------------------------------
- #endif
|