/**********************************************************************/
/*                                                                    */
/* File name: Progress.h                                              */
/*                                                                    */
/* Since:     2003/20/07                                              */
/*                                                                    */
/* Version:   1.0                                                     */
/*                                                                    */
/* Author:    MONTAGNE Xavier [XM] {link xavier.montagne@wanadoo.fr}  */
/*                                                                    */
/* Purpose: Offer high level interface for PIC programming operations:*/
/*          parsing or creat an HEX file, updating the PIC structures */
/*          after parsing, reading or programming the PIC,...         */
/*                                                                    */
/* Distribution: This file is part of PP18.                           */
/*               PP18 is free software; you can redistribute it       */
/*               and/or modify it under the terms of the GNU General  */
/*               Public License as published by the Free Software     */
/*               Foundation; either version 2, or (at your option)    */
/*               any later version.                                   */
/*                                                                    */
/*               PP18 is distributed in the hope that it will be      */
/*               useful, but WITHOUT ANY WARRANTY; without even the   */
/*               implied warranty of MERCHANTABILITY or FITNESS FOR A */
/*               PARTICULAR PURPOSE.  See the GNU General Public      */
/*               License for more details.                            */
/*                                                                    */
/*               You should have received a copy of the GNU General   */
/*               Public License along with PP18; see the file         */
/*               COPYING.txt. If not, write to the Free Software      */
/*               Foundation, 59 Temple Place - Suite 330,             */
/*               Boston, MA 02111-1307, USA.                          */
/*                                                                    */
/* History:                                                           */
/*   2003/20/07  [XM] Create this file                                */
/*                                                                    */
/**********************************************************************/

#ifndef __PROGRESS_H__
#define __PROGRESS_H__

/***********************************************************************
 * INCLUDES
 **********************************************************************/
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Buttons.hpp>
#include <ExtCtrls.hpp>
#include <ComCtrls.hpp>

#include "DLL_interface.h"
#include <Graphics.hpp>

/***********************************************************************
 * DEFINES
 **********************************************************************/
#define BLOCK_SIZE  0x200  /* 1Kbytes (0x200 = 512 words 16 bits long */

/***********************************************************************
 * TProgressWindow object definition.
 **********************************************************************/
class TProgressWindow : public TForm
{
__published:
    TButton *Button1;
    TPanel *Panel1;
    TImage *Image1;
    TBitBtn *ButtonCancel;
    TPanel *Panel2;
    TProgressBar *ProgressBar1;
    TTimer *Timer1;
    TImage *Image2;
    TPanel *Panel3;
    TLabel *Label1;
    TLabel *Label2;
    void __fastcall ButtonCancelClick(TObject *Sender);
    void __fastcall Timer1Timer(TObject *Sender);
    
private:
public:
    __fastcall TProgressWindow(TComponent* Owner);
};

extern PACKAGE TProgressWindow *ProgressWindow;

#endif  /* __PROGRESS_H__ */
