home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1997 May
/
Pcwk0597.iso
/
borland
/
cb
/
setup
/
cbuilder
/
data.z
/
MENUTMPL.HPP
< prev
next >
Wrap
C/C++ Source or Header
|
1997-02-28
|
3KB
|
92 lines
//----------------------------------------------------------------------------
// MenuTmpl.hpp - bcbdcc32 generated hdr (DO NOT EDIT) rev: 0
// From: MenuTmpl.pas
//----------------------------------------------------------------------------
#ifndef MenuTmplHPP
#define MenuTmplHPP
//----------------------------------------------------------------------------
#include <Menus.hpp>
#include <Classes.hpp>
#include <System.hpp>
#pragma warn -par
#pragma warn -hid
#pragma warn -inl
namespace Menutmpl
{
//-- type declarations -------------------------------------------------------
class __declspec(delphiclass) TMenuTemplate;
class __declspec(pascalimplementation) TMenuTemplate : public Classes::TComponent
{
typedef Classes::TComponent inherited;
private:
System::AnsiString FDescription;
Menus::TMenuItem* FItem;
void __fastcall ComponentRead(Classes::TComponent* Component);
void __fastcall ReaderSetName(Classes::TReader* Reader, Classes::TComponent* Component, System::AnsiString &
Name);
protected:
void __fastcall SetItem(Menus::TMenuItem* AnItem);
void __fastcall ReadStream(Classes::TStream* S, Classes::TComponent* NewOwner, Classes::TComponent*
Parent);
virtual void __fastcall ReadState(Classes::TReader* Reader);
virtual void __fastcall GetChildren(Classes::TGetChildProc Proc);
virtual Classes::TComponent* __fastcall GetChildOwner(void);
public:
__fastcall virtual TMenuTemplate(Classes::TComponent* AOwner);
void __fastcall LoadFromClipboard(Classes::TComponent* NewOwner);
__property Menus::TMenuItem* Item = {read=FItem, write=SetItem, nodefault};
__published:
__property System::AnsiString Description = {read=FDescription, write=FDescription, nodefault};
public:
/* TComponent.Destroy */ __fastcall virtual ~TMenuTemplate(void) { }
};
class __declspec(delphiclass) TMenuTemplateManager;
class __declspec(pascalimplementation) TMenuTemplateManager : public Classes::TComponent
{
typedef Classes::TComponent inherited;
private:
bool FModified;
protected:
virtual void __fastcall GetChildren(Classes::TGetChildProc Proc);
int __fastcall GetTemplatesSize(void);
TMenuTemplate* __fastcall GetTemplate(int Index);
virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation
);
public:
__property int TemplatesSize = {read=GetTemplatesSize, nodefault};
__property TMenuTemplate* Template[int Index] = {read=GetTemplate};
__property bool Modified = {read=FModified, write=FModified, nodefault};
__fastcall virtual TMenuTemplateManager(Classes::TComponent* AOwner);
__fastcall virtual ~TMenuTemplateManager(void);
bool __fastcall DoesTemplateExist( System::AnsiString Description);
bool __fastcall IsSpaceAvailable(void);
void __fastcall TemplateSaveAs(TMenuTemplate* Template);
void __fastcall StreamTemplatesOut(void);
};
//-- var, const, procedure ---------------------------------------------------
extern void __fastcall LoadMenuTemplateManagerFromDisk(TMenuTemplateManager* Manager);
} /* namespace Menutmpl */
#pragma warn .par
#pragma warn .hid
#pragma warn .inl
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Menutmpl;
#endif
//-- end unit ----------------------------------------------------------------
#endif // MenuTmpl