home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
gpfcnt.zip
/
CONT1.HPP
< prev
next >
Wrap
Text File
|
1994-05-01
|
3KB
|
94 lines
#ifndef ACLIENT
#define ACLIENT
#include <iWindow.hpp> //IWindow
#include <icmdhdr.hpp> //Command handler
#include <ientryfd.hpp> //IEntryField
//**************************************************************************
// Class: AClient
//
// Purpose: Build a wrapper around the client window generated by Gpf
//
//
//**************************************************************************
class AClient : public IWindow,
public ICommandHandler,
public ICnrHandler
{
public:
AClient (IWindowHandle hwndClient) ;
~AClient();
public:
protected:
virtual Boolean command(ICommandEvent& cmdevt); //Process the command events
void ObkectDetails();
private:
void Push();
void ObjektDetails();
IContainerControl *cnr1, *cnr2;
ICnrEditHandler * cnrEdit;
IContainerColumn *colName, *colCode, *colNumber;
}; // AClient
//**************************************************************************
// Class: Objekt *
// *
// Purpose: Describes a generic Container object that contains
// an ULONG and a string
// *
//**************************************************************************
class Objekt : public IContainerObject
{
// friend class IContainerColumn;
friend class AClient;
public:
Objekt(const IString& Name, const IPointerHandle& Icon,
const IString& Code,
const ULONG ulNumber, AClient *owner);
IString Code() const { return strCode; }
ULONG Number() const { return ulNumber; }
void setCode (IString code) {strCode = code;}
void setNumber (ULONG number) {ulNumber = number;}
private:
IString strCode;
ULONG ulNumber;
AClient *owner;
};
//**************************************************************************
// Class: ADialog
//
// Purpose: Build a wrapper around the dialog window generated by Gpf
//
// THIS WINDOW STILL NEEDS A COMMAND HANLER !!!!!!
//**************************************************************************
class ADialog : public IWindow
{
public:
ADialog (IWindowHandle hwndClient, Objekt *obj) ;
~ADialog();
public:
// void PushOK();
private:
IEntryField *EFName, *EFCode, *EFNumber;
Objekt *Obj;
}; // End ADialog
#endif