home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
treecnr.zip
/
TreeCnr.hpp
< prev
next >
Wrap
C/C++ Source or Header
|
1996-03-13
|
9KB
|
242 lines
/*******************************************************************************
* FILE NAME: TreeCnr.hpp *
* *
* DESCRIPTION: *
* Declaration of the class: *
* TreeCnr- Sample tree view container application *
* ---------------------------------------------------------------------------- *
* Warning: This file was generated by the VisualAge C++ Visual Builder. *
* Modifications to this source file will be lost when the part is regenerated. *
*******************************************************************************/
#ifndef _TREECNR_
#define _TREECNR_
class TreeCnr;
#ifndef _IFRAME_
#include <iframe.hpp>
#endif
class IMultiCellCanvas;
#define INCL_WINSTDCNR
#include <os2.h>
#ifndef _PERSON_
#include "Person.hpp"
#endif
#ifndef _IVSEQ_H_
#include <ivseq.h>
#endif
#ifndef _IVBCNR_
#include <ivbcnr.h>
#endif
class IContainerColumn;
class IToolBar;
class IToolBarButton;
class IEntryField;
class IInfoArea;
template <class Element> class IVSequence;
class Person;
#ifndef _ISTDNTFY_
#include <istdntfy.hpp>
#endif
#ifndef _IVBVPRTP_
#include <ivbvprtp.h>
#endif
class IMessageBox;
#ifndef _IRECT_
#include <irect.hpp>
#endif
#ifndef _ISTRING_
#include <istring.hpp>
#endif
#include "icnrolst.hpp"
class TreeCnrConn7;
class TreeCnrConn9;
class TreeCnrConn18;
class TreeCnrConn29;
class TreeCnrConn14;
class TreeCnrConn15;
class TreeCnrConn22;
class TreeCnrConn12;
class TreeCnrConn17;
class TreeCnrConn44;
class TreeCnrConn25;
#include "TreeCnr.h"
/*----------------------------------------------------------------------------*/
/* Align classes on four byte boundary. */
/*----------------------------------------------------------------------------*/
#pragma pack(4)
//*****************************************************************************
// Class definition for TreeCnrTreeCnrCnrObj
//*****************************************************************************
class TreeCnrTreeCnrCnrObj : public IVBContainerObject {
public:
//---------------------------------------------------------------------------
// Constructors / destructors
//---------------------------------------------------------------------------
TreeCnrTreeCnrCnrObj(Person& anObject);
TreeCnrTreeCnrCnrObj(TreeCnrTreeCnrCnrObj& anObject);
virtual ~TreeCnrTreeCnrCnrObj();
//---------------------------------------------------------------------------
// public member functions
//---------------------------------------------------------------------------
IVBContainerObject & refreshFromObject();
IVBContainerObject & updateToObject();
TreeCnrTreeCnrCnrObj& operator=(const TreeCnrTreeCnrCnrObj& anObject);
Person* realObject() { return &pRealObject; }
;
//---------------------------------------------------------------------------
// public member data
//---------------------------------------------------------------------------
IString phoneNumber;
IString parentName;
protected:
private:
//---------------------------------------------------------------------------
// private member data
//---------------------------------------------------------------------------
Person & pRealObject;
}; //TreeCnrTreeCnrCnrObj
//*****************************************************************************
// Class definition for TreeCnrPersonFactFactory
//*****************************************************************************
class TreeCnrPersonFactFactory : public IStandardNotifier {
public:
//---------------------------------------------------------------------------
// Constructors / destructors
//---------------------------------------------------------------------------
TreeCnrPersonFactFactory();
virtual ~TreeCnrPersonFactFactory();
//---------------------------------------------------------------------------
// public member functions
//---------------------------------------------------------------------------
Person * create();
TreeCnrPersonFactFactory & setAddEf(IEntryField * aSelf) {iAddEf = aSelf; return *this;};
TreeCnrPersonFactFactory & setSelPerson(IVBVariablePartPointer<Person *> * aSelf) {iSelPerson = aSelf; return *this;};
//---------------------------------------------------------------------------
// public member data
//---------------------------------------------------------------------------
static const INotificationId newObjectCreatedId;
protected:
private:
//---------------------------------------------------------------------------
// private member data
//---------------------------------------------------------------------------
IEntryField * iAddEf;
IVBVariablePartPointer<Person *> * iSelPerson;
}; //TreeCnrPersonFactFactory
//*****************************************************************************
// Class definition for TreeCnr
//*****************************************************************************
class TreeCnr : public IFrameWindow {
public:
//---------------------------------------------------------------------------
// Constructors / destructors
//---------------------------------------------------------------------------
TreeCnr(
unsigned long id = WND_TreeCnr,
IWindow* parent = IWindow::desktopWindow(),
IWindow* owner = 0,
const IRectangle& rect = defaultFramingSpec(),
const IFrameWindow::Style& style = IFrameWindow::defaultStyle ( ),
const char* title = defaultTitle());
virtual ~TreeCnr();
//---------------------------------------------------------------------------
// public member functions
//---------------------------------------------------------------------------
static const IRectangle defaultFramingSpec();
static IString defaultTitle();
virtual TreeCnr & initializePart();
TreeCnr * getFrameWindow() { return this; };
//---------------------------------------------------------------------------
// public member data
//---------------------------------------------------------------------------
static const INotificationId readyId;
protected:
//---------------------------------------------------------------------------
// protected member functions
//---------------------------------------------------------------------------
Boolean makeConnections();
private:
//---------------------------------------------------------------------------
// private member data
//---------------------------------------------------------------------------
IMultiCellCanvas * iMultiCellCanvas1;
IVBContainerControl< Person*, IVSequence<Person*>, TreeCnrTreeCnrCnrObj > * iTreeCnr;
IContainerColumn * iContainerColumn1;
IContainerColumn * iContainerColumn2;
IContainerColumn * iContainerColumn3;
IToolBar * iToolBar1;
IToolBarButton * iToolBarButton;
IEntryField * iAddEf;
IToolBarButton * iToolBarButton4;
IToolBarButton * iToolBarButton3;
IToolBarButton * iToolBarButton1;
IToolBarButton * iToolBarButton2;
IToolBarButton * iToolBarButton5;
IInfoArea * iInfoArea1;
IVSequence< Person * > * iPeople;
TreeCnrPersonFactFactory * iPersonFact;
IVBVariablePartPointer<Person *> * iSelPerson;
IMessageBox * iMessageBox;
TreeCnrConn7 * conn7;
TreeCnrConn9 * conn9;
TreeCnrConn18 * conn18;
TreeCnrConn29 * conn29;
TreeCnrConn14 * conn14;
TreeCnrConn15 * conn15;
TreeCnrConn22 * conn22;
TreeCnrConn12 * conn12;
TreeCnrConn17 * conn17;
TreeCnrConn44 * conn44;
TreeCnrConn25 * conn25;
friend class TreeCnrConn18;
friend class TreeCnrConn15;
friend class TreeCnrConn12;
friend class TreeCnrConn17;
#include "treecnr.hpv"
}; //TreeCnr
/*----------------------------------------------------------------------------*/
/* Resume compiler default packing. */
/*----------------------------------------------------------------------------*/
#pragma pack()
#endif