// Borland C++ Builder
// Copyright (c) 1995, 1998 by Borland International
// All rights reserved

// (DO NOT EDIT: machine generated header) 'IOPreviews.pas' rev: 3.00

#ifndef IOPreviewsHPP
#define IOPreviewsHPP
#include <iedefs.hpp>
#include <Buttons.hpp>
#include <ImageEnIO.hpp>
#include <ExtCtrls.hpp>
#include <ImageEn.hpp>
#include <ImageEnView.hpp>
#include <StdCtrls.hpp>
#include <ComCtrls.hpp>
#include <ImageEnProc.hpp>
#include <Dialogs.hpp>
#include <Forms.hpp>
#include <Controls.hpp>
#include <Graphics.hpp>
#include <Classes.hpp>
#include <SysUtils.hpp>
#include <Messages.hpp>
#include <Windows.hpp>
#include <SysInit.hpp>
#include <System.hpp>

//-- user supplied -----------------------------------------------------------

namespace Iopreviews
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TfIOPreviews;
class PASCALIMPLEMENTATION TfIOPreviews : public Forms::TForm 
{
	typedef Forms::TForm inherited;
	
__published:
	Stdctrls::TButton* Button1;
	Stdctrls::TButton* Button2;
	Comctrls::TPageControl* PageControl1;
	Comctrls::TTabSheet* TabSheet1;
	Stdctrls::TLabel* Label23;
	Stdctrls::TLabel* Label24;
	Stdctrls::TLabel* Label25;
	Stdctrls::TEdit* Edit22;
	Comctrls::TTrackBar* TrackBar13;
	Stdctrls::TGroupBox* GroupBox5;
	Stdctrls::TLabel* Label26;
	Stdctrls::TLabel* Label27;
	Stdctrls::TCheckBox* CheckBox2;
	Stdctrls::TComboBox* ComboBox1;
	Stdctrls::TEdit* Edit23;
	Comctrls::TUpDown* UpDown11;
	Stdctrls::TLabel* Label3;
	Stdctrls::TLabel* Label4;
	Stdctrls::TCheckBox* CheckBox3;
	Buttons::TSpeedButton* SpeedButton1;
	Stdctrls::TButton* Button3;
	Comctrls::TTabSheet* TabSheet2;
	Stdctrls::TLabel* Label5;
	Stdctrls::TComboBox* ComboBox2;
	Stdctrls::TLabel* Label6;
	Stdctrls::TEdit* Edit1;
	Comctrls::TUpDown* UpDown1;
	Stdctrls::TLabel* Label7;
	Stdctrls::TComboBox* ComboBox3;
	Stdctrls::TGroupBox* GroupBox1;
	Stdctrls::TLabel* Label8;
	Stdctrls::TLabel* Label10;
	Stdctrls::TEdit* Edit2;
	Stdctrls::TEdit* Edit3;
	Stdctrls::TLabel* Label12;
	Stdctrls::TEdit* Edit4;
	Stdctrls::TLabel* Label13;
	Stdctrls::TEdit* Edit5;
	Stdctrls::TLabel* Label14;
	Stdctrls::TEdit* Edit6;
	Stdctrls::TLabel* Label15;
	Stdctrls::TEdit* Edit7;
	Stdctrls::TLabel* Label16;
	Stdctrls::TEdit* Edit8;
	Stdctrls::TLabel* Label9;
	Stdctrls::TLabel* Label11;
	Stdctrls::TLabel* Label17;
	Stdctrls::TLabel* Label18;
	Stdctrls::TLabel* Label19;
	Stdctrls::TComboBox* ComboBox4;
	Comctrls::TTabSheet* TabSheet3;
	Stdctrls::TLabel* Label20;
	Stdctrls::TEdit* Edit9;
	Comctrls::TUpDown* UpDown2;
	Stdctrls::TLabel* Label21;
	Stdctrls::TComboBox* ComboBox5;
	Stdctrls::TLabel* Label22;
	Stdctrls::TLabel* Label28;
	Stdctrls::TLabel* Label29;
	Stdctrls::TLabel* Label30;
	Stdctrls::TLabel* Label34;
	Extctrls::TPanel* Panel3;
	Stdctrls::TCheckBox* CheckBox4;
	Stdctrls::TCheckBox* CheckBox5;
	Stdctrls::TLabel* Label35;
	Extctrls::TPanel* Panel4;
	Stdctrls::TGroupBox* GroupBox2;
	Stdctrls::TEdit* Edit12;
	Stdctrls::TLabel* Label33;
	Stdctrls::TLabel* Label31;
	Stdctrls::TEdit* Edit10;
	Stdctrls::TLabel* Label32;
	Stdctrls::TEdit* Edit11;
	Stdctrls::TLabel* Label36;
	Comctrls::TTabSheet* TabSheet4;
	Stdctrls::TLabel* Label37;
	Stdctrls::TComboBox* ComboBox6;
	Stdctrls::TLabel* Label38;
	Stdctrls::TComboBox* ComboBox7;
	Stdctrls::TLabel* Label39;
	Stdctrls::TLabel* Label40;
	Stdctrls::TLabel* Label41;
	Stdctrls::TLabel* Label42;
	Comctrls::TTabSheet* TabSheet5;
	Stdctrls::TLabel* Label43;
	Stdctrls::TComboBox* ComboBox8;
	Stdctrls::TLabel* Label44;
	Stdctrls::TComboBox* ComboBox9;
	Stdctrls::TLabel* Label45;
	Stdctrls::TLabel* Label46;
	Stdctrls::TLabel* Label47;
	Stdctrls::TLabel* Label48;
	Comctrls::TTabSheet* TabSheet6;
	Stdctrls::TLabel* Label49;
	Stdctrls::TComboBox* ComboBox10;
	Stdctrls::TLabel* Label50;
	Stdctrls::TLabel* Label51;
	Stdctrls::TLabel* Label52;
	Stdctrls::TLabel* Label53;
	Stdctrls::TLabel* Label54;
	Extctrls::TPanel* Panel1;
	Dialogs::TColorDialog* ColorDialog1;
	Stdctrls::TGroupBox* GroupBox3;
	Stdctrls::TLabel* Label55;
	Stdctrls::TComboBox* ComboBox11;
	Stdctrls::TCheckBox* CheckBox6;
	Stdctrls::TLabel* Label56;
	Stdctrls::TComboBox* ComboBox12;
	Extctrls::TPanel* Panel2;
	Stdctrls::TLabel* Label1;
	Stdctrls::TLabel* Label2;
	Imageen::TImageEn* ImageEn1;
	Imageen::TImageEn* ImageEn2;
	Comctrls::TProgressBar* ProgressBar1;
	Stdctrls::TLabel* Label57;
	Stdctrls::TComboBox* ComboBox13;
	void __fastcall PageControl1Change(System::TObject* Sender);
	void __fastcall FormCreate(System::TObject* Sender);
	void __fastcall FormDestroy(System::TObject* Sender);
	void __fastcall Edit22Change(System::TObject* Sender);
	void __fastcall TrackBar13Change(System::TObject* Sender);
	void __fastcall FormActivate(System::TObject* Sender);
	void __fastcall ImageEn1ViewChange(System::TObject* Sender, int Change);
	void __fastcall SpeedButton1Click(System::TObject* Sender);
	void __fastcall Button3Click(System::TObject* Sender);
	void __fastcall ComboBox2Click(System::TObject* Sender);
	void __fastcall Panel3Click(System::TObject* Sender);
	void __fastcall Panel4Click(System::TObject* Sender);
	void __fastcall ComboBox5Click(System::TObject* Sender);
	void __fastcall ComboBox6Change(System::TObject* Sender);
	void __fastcall ComboBox8Change(System::TObject* Sender);
	void __fastcall Button1Click(System::TObject* Sender);
	void __fastcall ComboBox10Change(System::TObject* Sender);
	void __fastcall Panel1Click(System::TObject* Sender);
	void __fastcall PageControl1Changing(System::TObject* Sender, bool &AllowChange);
	
private:
	Imageenio::TPreviewParams pp;
	System::AnsiString msgCancel;
	bool dochange;
	Imageenio::TImageEnIO* fImageEnIO;
	Imageenproc::TImageEnProc* fImageEnProc;
	void __fastcall applyAct(Imageen::TImageEn* im);
	
public:
	Imageenio::TIOParamsVals* fParams;
	int JPEG_Quality;
	int JPEG_Photometric;
	int JPEG_DCTMethod;
	bool JPEG_OptimalHuffman;
	int JPEG_Smooth;
	bool JPEG_Progressive;
	TIOTIFFCompression TIFF_Compression;
	int TIFF_ImageIndex;
	TIOTIFFPhotometInterpret TIFF_PhotometInterpret;
	int TIFF_XPos;
	int TIFF_YPos;
	System::AnsiString TIFF_DocumentName;
	System::AnsiString TIFF_ImageDescription;
	System::AnsiString TIFF_PageName;
	int TIFF_PageNumber;
	int TIFF_PageCount;
	int TIFF_BitsPerSample;
	int TIFF_SamplesPerPixel;
	Imageenio::TTIFFLZWDecompFunc TIFF_LZWDecompFunc;
	Imageenio::TTIFFLZWCompFunc TIFF_LZWCompFunc;
	int GIF_ImageIndex;
	int GIF_XPos;
	int GIF_YPos;
	int GIF_DelayTime;
	bool GIF_FlagTranspColor;
	Iedefs::TRGB GIF_TranspColor;
	bool GIF_Interlaced;
	Iedefs::TRGB GIF_Background;
	int GIF_BitsPerSample;
	Imageenio::TGIFLZWDecompFunc GIF_LZWDecompFunc;
	Imageenio::TGIFLZWCompFunc GIF_LZWCompFunc;
	TIOBMPCompression BMP_Compression;
	int BMP_BitsPerPixel;
	TIOPCXCompression PCX_Compression;
	int PCX_BitsPerPixel;
	int PNG_Colors;
	bool PNG_Interlaced;
	Iedefs::TRGB PNG_Background;
	int PNG_Filter;
	int PNG_Compression;
	bool DefaultLockPreview;
	bool ars[8];
	int xper;
	int xdiv;
	void __fastcall SetLanguage(Iedefs::TMsgLanguage l);
	void __fastcall ApplyParameters(void);
	void __fastcall ResetParameters(void);
	void __fastcall Progress(System::TObject* Sender, int per);
	bool __fastcall SetPreviewParams(Imageenio::TPreviewParams xpp);
public:
	/* TCustomForm.Create */ __fastcall virtual TfIOPreviews(Classes::TComponent* AOwner) : Forms::TForm(
		AOwner) { }
	/* TCustomForm.CreateNew */ __fastcall TfIOPreviews(Classes::TComponent* AOwner, int Dummy) : Forms::
		TForm(AOwner, Dummy) { }
	/* TCustomForm.Destroy */ __fastcall virtual ~TfIOPreviews(void) { }
	
public:
	/* TWinControl.CreateParented */ __fastcall TfIOPreviews(HWND ParentWindow) : Forms::TForm(ParentWindow
		) { }
	
};

//-- var, const, procedure ---------------------------------------------------

}	/* namespace Iopreviews */
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Iopreviews;
#endif
//-- end unit ----------------------------------------------------------------
#endif	// IOPreviews
