home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1997 May
/
Pcwk0597.iso
/
borland
/
cb
/
setup
/
cbuilder
/
data.z
/
ITEMEDIT.HPP
< prev
next >
Wrap
C/C++ Source or Header
|
1997-02-28
|
5KB
|
132 lines
//----------------------------------------------------------------------------
// ItemEdit.hpp - bcbdcc32 generated hdr (DO NOT EDIT) rev: 0
// From: ItemEdit.pas
//----------------------------------------------------------------------------
#ifndef ItemEditHPP
#define ItemEditHPP
//----------------------------------------------------------------------------
#include <LibHelp.hpp>
#include <ComCtrls.hpp>
#include <StdCtrls.hpp>
#include <Dialogs.hpp>
#include <Forms.hpp>
#include <Controls.hpp>
#include <Graphics.hpp>
#include <Classes.hpp>
#include <Messages.hpp>
#include <Windows.hpp>
#include <SysUtils.hpp>
#include <System.hpp>
#pragma warn -par
#pragma warn -hid
#pragma warn -inl
namespace Itemedit
{
//-- type declarations -------------------------------------------------------
class __declspec(delphiclass) TItemInfo;
class __declspec(pascalimplementation) TItemInfo : public System::TObject
{
typedef System::TObject inherited;
private:
Classes::TList* FOwner;
Classes::TStringList* FSubItems;
System::AnsiString FCaption;
int FImageIndex;
int FStateIndex;
int __fastcall GetIndex(void);
public:
__fastcall TItemInfo(Classes::TList* AOwner, Comctrls::TListItem* Item);
__fastcall virtual ~TItemInfo(void);
__property int Index = {read=GetIndex, nodefault};
__property Classes::TList* Owner = {read=FOwner, nodefault};
__property Classes::TStringList* SubItems = {read=FSubItems, nodefault};
};
class __declspec(delphiclass) TListViewItems;
class __declspec(pascalimplementation) TListViewItems : public Forms::TForm
{
typedef Forms::TForm inherited;
__published:
Stdctrls::TGroupBox* GroupBox1;
Stdctrls::TGroupBox* PropGroupBox;
Stdctrls::TButton* New;
Stdctrls::TButton* Delete;
Stdctrls::TLabel* Label1;
Stdctrls::TLabel* Label2;
Stdctrls::TLabel* Label3;
Comctrls::TTreeView* TreeView;
Stdctrls::TButton* NewSub;
Stdctrls::TEdit* Text;
Stdctrls::TEdit* Image;
Stdctrls::TEdit* StateImage;
Stdctrls::TButton* Button4;
Stdctrls::TButton* Cancel;
Stdctrls::TButton* Apply;
Stdctrls::TButton* Button7;
void __fastcall NewClick(System::TObject* Sender);
void __fastcall NewSubClick(System::TObject* Sender);
void __fastcall DeleteClick(System::TObject* Sender);
void __fastcall ValueChange(System::TObject* Sender);
void __fastcall TextExit(System::TObject* Sender);
void __fastcall ImageExit(System::TObject* Sender);
void __fastcall StateImageExit(System::TObject* Sender);
void __fastcall FormCreate(System::TObject* Sender);
void __fastcall FormDestroy(System::TObject* Sender);
void __fastcall ApplyClick(System::TObject* Sender);
void __fastcall TreeViewChange(System::TObject* Sender, Comctrls::TTreeNode* Node);
void __fastcall TreeViewChanging(System::TObject* Sender, Comctrls::TTreeNode* Node, bool &AllowChange
);
void __fastcall TreeViewDragOver(System::TObject* Sender, System::TObject* Source, int X, int Y, Controls::TDragState
State, bool &Accept);
void __fastcall TreeViewDragDrop(System::TObject* Sender, System::TObject* Source, int X, int Y);
void __fastcall TreeViewEdited(System::TObject* Sender, Comctrls::TTreeNode* Node, System::AnsiString &
S);
void __fastcall Button7Click(System::TObject* Sender);
private:
Classes::TList* FInfoList;
Comctrls::TListItems* FItems;
bool FDropping;
void __fastcall FlushControls(void);
void __fastcall GetItem(Comctrls::TListItem* Value);
TItemInfo* __fastcall GetItemInfo(int Index);
void __fastcall SetItem(TItemInfo* Value);
void __fastcall SetStates(void);
void __fastcall SetSubItem(const System::AnsiString S);
public:
__property TItemInfo* InfoItem[int Index] = {read=GetItemInfo};
__property Classes::TList* InfoList = {read=FInfoList, nodefault};
__property Comctrls::TListItems* Items = {read=FItems, nodefault};
public:
/* TForm.Create */ __fastcall virtual TListViewItems(Classes::TComponent* AOwner) : Forms::TForm(AOwner
) { }
/* TForm.CreateNew */ __fastcall TListViewItems(Classes::TComponent* AOwner, int Dummy) : Forms::TForm(
AOwner, Dummy) { }
/* TForm.Destroy */ __fastcall virtual ~TListViewItems(void) { }
public:
/* TWinControl.CreateParented */ __fastcall TListViewItems(HWND ParentWindow) : Forms::TForm(ParentWindow
) { }
};
//-- var, const, procedure ---------------------------------------------------
extern bool __fastcall EditListViewItems(Comctrls::TListItems* AItems);
} /* namespace Itemedit */
#pragma warn .par
#pragma warn .hid
#pragma warn .inl
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Itemedit;
#endif
//-- end unit ----------------------------------------------------------------
#endif // ItemEdit