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

#ifndef LogViewer_FormH
#define LogViewer_FormH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include <Grids.hpp>
#include <FileCtrl.hpp>
#include <vector.h>

#include "Environment.h"
#include "TntExtCtrls.hpp"
#include "TntGrids.hpp"
#include "TntStdCtrls.hpp"
#include "TntForms.hpp"
//---------------------------------------------------------------------------
class TLogViewerForm : public TTntForm
{
__published:	// IDE-managed Components
    TTntPanel *Panel1;
    TTntButton *ViewCurrentLogButton;
    TTntPanel *Panel2;
    TTntStringGrid *ErrorStringGrid;
    TFileListBox *LogFileListBox;
    void __fastcall ViewCurrentLogButtonClick(TObject *Sender);
    void __fastcall FormCreate(TObject *Sender);
    void __fastcall LogFileListBoxClick(TObject *Sender);
    void __fastcall FormResize(TObject *Sender);
private:	// User declarations
    vector<TErrorUnit> ErrorList;

    void __fastcall ResizeComponents(void);
    void __fastcall UpdateErrorList(void);
public:		// User declarations
    __fastcall TLogViewerForm(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TLogViewerForm *LogViewerForm;
//---------------------------------------------------------------------------
#endif
