1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
|
//---------------------------------------------------------------------------
#ifndef outstrdlgH
#define outstrdlgH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Dialogs.hpp>
#include <Buttons.hpp>
//---------------------------------------------------------------------------
class TOutputStrDialog : public TForm
{
__published:
TButton *BtnCancel;
TButton *BtnOk;
TLabel *Label5;
TLabel *Label6;
TComboBox *Stream1;
TButton *BtnStr1;
TButton *BtnStr2;
TComboBox *Stream2;
TLabel *Label10;
TLabel *Label7;
TComboBox *Format1;
TComboBox *Format2;
TButton *BtnFile1;
TEdit *FilePath1;
TEdit *FilePath2;
TButton *BtnFile2;
TLabel *LabelF1;
TSaveDialog *SaveDialog;
TCheckBox *TimeTagC;
TCheckBox *Stream1C;
TCheckBox *Stream2C;
TSpeedButton *BtnKey;
TLabel *Label1;
TComboBox *SwapIntv;
TLabel *Label2;
void __fastcall BtnOkClick(TObject *Sender);
void __fastcall FormShow(TObject *Sender);
void __fastcall BtnStr1Click(TObject *Sender);
void __fastcall BtnStr2Click(TObject *Sender);
void __fastcall Stream1Change(TObject *Sender);
void __fastcall Stream2Change(TObject *Sender);
void __fastcall BtnFile1Click(TObject *Sender);
void __fastcall BtnFile2Click(TObject *Sender);
void __fastcall Stream1CClick(TObject *Sender);
void __fastcall Stream2CClick(TObject *Sender);
void __fastcall BtnKeyClick(TObject *Sender);
private:
AnsiString __fastcall GetFilePath(AnsiString path);
AnsiString __fastcall SetFilePath(AnsiString path);
void __fastcall SerialOpt(int index, int opt);
void __fastcall TcpOpt(int index, int opt);
void __fastcall UpdateEnable(void);
public:
int StreamC[2],Stream[2],Format[2],OutTimeTag,OutAppend;
AnsiString Paths[2][4],SwapInterval;
AnsiString History[10],MntpHist[10];
__fastcall TOutputStrDialog(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TOutputStrDialog *OutputStrDialog;
//---------------------------------------------------------------------------
#endif
|