home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 1996 November
/
VPR9611B.ISO
/
vabasic
/
ntclnt.exe
/
DISK8
/
data.8
/
datab
/
INCLUDE
/
VWFORMSC.HH
< prev
next >
Wrap
Text File
|
1996-07-29
|
3KB
|
106 lines
/*------------------------------------------------------------------------
* $Source: /rcs/vwrcs/components/intel/vwformsc.hh,v $
* Checked in by $Author: gabriel $
* $Date: 1996/07/19 20:36:46 $ $Revision: 1.10 $
*------------------------------------------------------------------------
* Copyright (c) 1992, Visual Edge Software Ltd.
*
* ALL RIGHTS RESERVED. This notice is intended as a precaution
* against inadvertent publication, and shall not be deemed to con-
* stitute an acknowledgment that publication has occurred nor to
* imply any waiver of confidentiality. The year included in the
* notice is the year of the creation of the work.
*------------------------------------------------------------------------
* DESCRIPTION:
* This file contains the declaration of the VwFormsCollection
* and VwControlsCollection class methods.
* The class implementation can be found in VwFormsc.cc.
* An instance of the VwFormsCollection class
* is used for holding the list of forms belonging to the
* current application.
*------------------------------------------------------------------------*/
#ifndef FORMSC_HH
#define FORMSC_HH
#include <vwglobal.hh>
#include <object.hh>
class VwFormBase;
#ifdef NOTEMPLATES
#ifndef VwFormListDefined
# define VwFormListDefined
# define CLASSNAME VwFormList
# define ENTRYTYPE VwFormBase*
# include <mst/varray.mst>
#endif
#else
#include <varray.hh>
typedef VeArray<VwFormBase *> VwFormList;
#endif
class VwFormsCollection {
friend class VwApplication;
friend class VwFormBase;
public:
VOPERDECL VwFormsCollection();
VOPERDECL ~VwFormsCollection();
VMETHODDECL(VwInt) Count();
VMETHODDECL(VwInt) LoadedFormCount();
VMETHODDECL(VwFormBase*) GetNth (VwInt);
VMETHODDECL(void) Unload(VwFormBase*);
protected:
VMETHODDECL(void) AddForm(VwFormBase *);
VMETHODDECL(void) RemoveForm(VwFormBase *);
private:
VwFormList* itsForms;
};
class VwComponent;
#ifdef NOTEMPLATES
#ifndef VwControlListDefined
# define VwControlListDefined
# define CLASSNAME VwControlList
# define ENTRYTYPE VwComponent*
# include <mst/varray.mst>
#endif
#else
#include <varray.hh>
typedef VeArray<VwComponent *> VwControlList;
#endif
class VwControlsCollection : public VeObject {
friend class VwApplication;
friend class VwComponent;
friend class VwFormBase;
public:
RTTI_H(VeClass,VeObject);
VOPERDECL VwControlsCollection(VwFormBase *);
VOPERDECL ~VwControlsCollection();
VMETHODDECL(VwInt) Count();
VMETHODDECL(VwComponent *) GetNth (VwInt);
VMETHODDECL(VwComponent *) GetNth (char *);
protected:
VMETHODDECL(void) AddControl(VwComponent *);
VMETHODDECL(void) RemoveControl(VwComponent *);
private:
VwControlList* itsControlsList;
};
#endif