Subversion Repositories DevTools

Rev

Blame | Last modification | View Log | RSS feed

//---------------------------------------------------------------------------

#ifndef UdTransferHistoryH
#define UdTransferHistoryH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Buttons.hpp>
#include <DBGrids.hpp>
#include <Grids.hpp>
#include <ExtCtrls.hpp>
#include <DB.hpp>
#include "Grids_ts.hpp"
#include "TSDBGrid.hpp"
#include "TSGrid.hpp"
#include <ADODB.hpp>
#include <ComCtrls.hpp>
#include "PERFGRAP.h"
#include "UdTransferManager.h"
#include "AdvPageControl.hpp"
#include "AdvGrid.hpp"
#include "BaseGrid.hpp"
#include <Chart.hpp>
#include <Series.hpp>
#include <TeEngine.hpp>
#include <TeeProcs.hpp>

//---------------------------------------------------------------------------
class TUdTransferHistoryForm : public TForm
{
__published:    // IDE-managed Components
    TDataSource *dsTransferHistory;
    TADOQuery *qryTransferHistory;
    TPanel *pnlRight;
    TBitBtn *btAdd;
    TBitBtn *btnAbort;
    TBitBtn *btnClose;
    TPanel *pnlLeft;
    TPanel *pnlTop;
    TPanel *pnlBottom;
    TSplitter *Splitter1;
    TtsDBGrid *gridHistory;
    TLabel *Label1;
    TLabel *Label2;
    TAdvPageControl *tabDetails;
    TAdvTabSheet *tabSettings;
    TPanel *Panel1;
    TPanel *Panel2;
    TPanel *Panel3;
    TAdvTabSheet *tabResults;
    TAdvStringGrid *gridDetails;
    TGroupBox *gbStatistics;
    TLabel *Label3;
    TLabel *Label4;
    TLabel *Label5;
    TLabel *Label6;
    TLabel *Label7;
    TProgressBar *pbCompleted;
    TLabel *lblPercent;
    TLabel *lblNumFiles;
    TLabel *lblBytes;
    TLabel *lblTransferTime;
    TLabel *lblFilesPerSec;
    TLabel *lblBytesPerSec;
    TLabel *lblProgress;
    TBitBtn *btnRefresh;
    TTimer *Timer;
    TChart *chartBatchSize;
    TLineSeries *seriesBatches;
    void __fastcall btAddClick(TObject *Sender);
    void __fastcall gridHistoryCellLoaded(TObject *Sender, int DataCol,
          Variant &DataRow, Variant &Value);
    void __fastcall gridHistoryRowChanged(TObject *Sender, Variant &OldRow,
          Variant &NewRow);
    void __fastcall ShowForm(TObject *Sender);
    void __fastcall gridRowResized(TObject *Sender, int RowColnr);
    void __fastcall btnAbortClick(TObject *Sender);
    void __fastcall btnCloseClick(TObject *Sender);
    void __fastcall btnRefreshClick(TObject *Sender);
    void __fastcall TimerTick(TObject *Sender);
private:        // User declarations
    void __fastcall ResetTransferDetails();
    void __fastcall LoadTransferDetails();
    void __fastcall SetTransferDetails( const UdTransferTask & task,
                                        const TDateTime & endTime,
                                        const AnsiString & comments = "" );
    void __fastcall ResetTransferStatistics();
    void __fastcall LoadTransferStatistics();
    void __fastcall UpdateTransferStatistics();


    int m_curTransferNum;

public:         // User declarations
    __fastcall TUdTransferHistoryForm(TComponent* Owner);

    void __fastcall RefreshHistory();
    void __fastcall SetTransferManager( UdTransferManager * manager ) { m_manager = manager; }

private:
    UdTransferManager * m_manager;
};
//---------------------------------------------------------------------------
extern PACKAGE TUdTransferHistoryForm *UdTransferHistoryForm;
//---------------------------------------------------------------------------
#endif