home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2002 May
/
Chip_2002-05_cd1.bin
/
chplus
/
cpp
/
5
/
Komponety.exe
/
ibreg.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
1998-02-09
|
1KB
|
46 lines
//---------------------------------------------------------------------------
// Borland C++Builder
// Copyright (c) 1987, 1998 Borland International Inc. All Rights Reserved.
//---------------------------------------------------------------------------
#pragma hdrstop
#include <dsgnintf.hpp>
#include <memory> //for STL auto_ptr
#include "ibreg.h"
#include "ibctrls.cpp"
#include "ibevnts.cpp"
#include "samp.h"
#pragma resource "*.res"
__fastcall TIBEventListProperty::TIBEventListProperty(void)
: TClassProperty() { }
__fastcall TIBEventListProperty::~TIBEventListProperty(void){}
TPropertyAttributes __fastcall TIBEventListProperty::GetAttributes()
{
return (TClassProperty::GetAttributes() << paDialog ) >> paSubProperties;
}
void __fastcall TIBEventListProperty::Edit()
{
std::auto_ptr<TStringList> Events(new TStringList());
Events->Assign((TStrings*)GetOrdValue());
if(Ibevnts::EditAlerterEvents(Events.get()))
SetOrdValue(long(Events.get()));
}
namespace Ibevnts
{
void __fastcall PACKAGE Register()
{
TComponentClass classes[1] = {__classid(TIBEventAlerter)};
RegisterComponents(LoadStr(Tab_101), classes, 0);
RegisterPropertyEditor(__typeinfo(TStrings),
__classid(TIBEventAlerter),
"Events",
__classid(TIBEventListProperty));
}
} /* namespace Ibreg */