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

// (DO NOT EDIT: machine generated header) 'EnThbnFm.pas' rev: 4.00

#ifndef EnThbnFmHPP
#define EnThbnFmHPP

#pragma delphiheader begin
#pragma option push -w-
#include <Grids.hpp>	// Pascal unit
#include <ExtCtrls.hpp>	// Pascal unit
#include <FileCtrl.hpp>	// Pascal unit
#include <StdCtrls.hpp>	// Pascal unit
#include <Dialogs.hpp>	// Pascal unit
#include <Forms.hpp>	// Pascal unit
#include <Controls.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <SysUtils.hpp>	// Pascal unit
#include <Messages.hpp>	// Pascal unit
#include <Windows.hpp>	// Pascal unit
#include <EnTransf.hpp>	// Pascal unit
#include <EnImgScr.hpp>	// Pascal unit
#include <SysInit.hpp>	// Pascal unit
#include <System.hpp>	// Pascal unit

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

namespace Enthbnfm
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TThumbnailForm;
#pragma pack(push, 4)
class PASCALIMPLEMENTATION TThumbnailForm : public Forms::TForm 
{
	typedef Forms::TForm inherited;
	
__published:
	Extctrls::TPanel* ButtonPanel;
	Stdctrls::TButton* OkBtn;
	Stdctrls::TButton* CancelBtn;
	Stdctrls::TButton* HelpBtn;
	Stdctrls::TEdit* FileEdit;
	Filectrl::TFilterComboBox* FilterCB;
	Filectrl::TDirectoryListBox* DirectoryLB;
	Filectrl::TDriveComboBox* DriveCB;
	Grids::TDrawGrid* DrawGrid;
	Stdctrls::TLabel* FileNameLbl;
	Stdctrls::TLabel* FilterLbl;
	Filectrl::TFileListBox* FileLB;
	Extctrls::TSplitter* LeftSplitter;
	Extctrls::TSplitter* BottomSplitter;
	void __fastcall FormCreate(System::TObject* Sender);
	void __fastcall DrawGridDrawCell(System::TObject* Sender, int Col, int Row, const Windows::TRect &Rect
		, Grids::TGridDrawState State);
	void __fastcall FormDestroy(System::TObject* Sender);
	void __fastcall FilterCBChange(System::TObject* Sender);
	void __fastcall FileEditKeyPress(System::TObject* Sender, char &Key);
	void __fastcall DirectoryLBChange(System::TObject* Sender);
	void __fastcall FormKeyDown(System::TObject* Sender, Word &Key, Classes::TShiftState Shift);
	void __fastcall DrawGridDblClick(System::TObject* Sender);
	void __fastcall FileLBDblClick(System::TObject* Sender);
	void __fastcall FileLBClick(System::TObject* Sender);
	void __fastcall FormResize(System::TObject* Sender);
	void __fastcall ButtonPanelResize(System::TObject* Sender);
	void __fastcall DrawGridClick(System::TObject* Sender);
	
protected:
	Graphics::TPicture* FPicture;
	int FThumbnailWidth;
	int FThumbnailHeight;
	bool FEnlargeSmallImages;
	Entransf::TResizeTransform* FResizeTransform;
	void __fastcall SetThumbnailWidth(const int Width);
	void __fastcall SetThumbnailHeight(const int Height);
	int __fastcall RowColToIndex(const int Row, const int Col);
	void __fastcall IndexToRowCol(const int Index, int &Row, int &Col);
	bool __fastcall GetResizeable(void);
	void __fastcall SetResizeable(const bool InResizeable);
	bool __fastcall GetShowHelpButton(void);
	void __fastcall SetShowHelpButton(const bool InShowHelpButton);
	
public:
	bool __fastcall Execute(AnsiString &FileName);
	__property int ThumbnailWidth = {read=FThumbnailWidth, write=SetThumbnailWidth, nodefault};
	__property int ThumbnailHeight = {read=FThumbnailHeight, write=SetThumbnailHeight, nodefault};
	__property bool EnlargeSmallImages = {read=FEnlargeSmallImages, write=FEnlargeSmallImages, nodefault
		};
	__property bool Resizeable = {read=GetResizeable, write=SetResizeable, nodefault};
	__property bool ShowHelpButton = {read=GetShowHelpButton, write=SetShowHelpButton, nodefault};
public:
		
	#pragma option push -w-inl
	/* TCustomForm.Create */ inline __fastcall virtual TThumbnailForm(Classes::TComponent* AOwner) : Forms::TForm(
		AOwner) { }
	#pragma option pop
	#pragma option push -w-inl
	/* TCustomForm.CreateNew */ inline __fastcall virtual TThumbnailForm(Classes::TComponent* AOwner, int 
		Dummy) : Forms::TForm(AOwner, Dummy) { }
	#pragma option pop
	#pragma option push -w-inl
	/* TCustomForm.Destroy */ inline __fastcall virtual ~TThumbnailForm(void) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TThumbnailForm(HWND ParentWindow) : Forms::TForm(
		ParentWindow) { }
	#pragma option pop
	
};

#pragma pack(pop)

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

}	/* namespace Enthbnfm */
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Enthbnfm;
#endif
#pragma option pop	// -w-

#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif	// EnThbnFm
