ObjectEditor Constructor

(Windows Only)WRAPPER_API ObjectEditor(GEOCALCPBW_NAMESPACE::DataSource *dataSource, GEOCALCPBW_NAMESPACE::DataSource::ObjectType classType, HWND parent, const BmgChar *name = 0)

 

(Windows Only)WRAPPER_API ObjectEditor(GEOCALCPBW_NAMESPACE::DataSource *dataSource, GEOCALCPBW_NAMESPACE::Serializable* serializableObject, bool saveChangesToDataSource, HWND parent, const BmgChar *name = 0)

 

(Windows Only)WRAPPER_API ObjectEditor(GEOCALCPBW_NAMESPACE::DataSource *dataSource, GEOCALCPBW_NAMESPACE::DataSource::ObjectType classType, const BmgChar *issuer, const BmgChar *code, HWND parent, const BmgChar *name = 0)

 

(Windows Only)WRAPPER_API ObjectEditor(GEOCALCPBW_NAMESPACE::DataSource *dataSource, GEOCALCPBW_NAMESPACE::Serializable* serializableObject, bool saveChangesToDataSource, HWND parent, const BmgChar *name, bool isEditable)

 

(Windows Only)WRAPPER_API ObjectEditor(GEOCALCPBW_NAMESPACE::DataSource *dataSource, GEOCALCPBW_NAMESPACE::DataSource::ObjectType classType, const BmgChar *issuer, const BmgChar *code, HWND parent, const BmgChar *name, bool isEditable)

 

WRAPPER_API ObjectEditor(GEOCALCPBW_NAMESPACE::DataSource *dataSource, GEOCALCPBW_NAMESPACE::DataSource::ObjectType classType, QWidget *parent = 0, const BmgChar *name = 0)

 

WRAPPER_API ObjectEditor(GEOCALCPBW_NAMESPACE::DataSource *dataSource, GEOCALCPBW_NAMESPACE::Serializable* serializableObject, bool saveChangesToDataSource, QWidget *parent = 0, const BmgChar *name = 0)

 

WRAPPER_API ObjectEditor(GEOCALCPBW_NAMESPACE::DataSource *dataSource, GEOCALCPBW_NAMESPACE::DataSource::ObjectType classType, const BmgChar *issuer, const BmgChar *code, QWidget *parent = 0, const BmgChar *name = 0)

 

WRAPPER_API ObjectEditor(GEOCALCPBW_NAMESPACE::DataSource *dataSource, GEOCALCPBW_NAMESPACE::Serializable* serializableObject, bool saveChangesToDataSource, QWidget *parent, const BmgChar *name, bool isEditable)

 

WRAPPER_API ObjectEditor(GEOCALCPBW_NAMESPACE::DataSource *dataSource, GEOCALCPBW_NAMESPACE::DataSource::ObjectType classType, const BmgChar *issuer, const BmgChar *code, QWidget *parent, const BmgChar *name, bool isEditable)

 

Description

The ObjectEditor constructor creates a new instance of the ObjectEditor class.  For each platform, there are several signatures for this constructor.  

The first signature takes four arguments, the first of which is a pointer to the DataSource that will be edited, the second of which is the type of object to be edited, according to the DataSource::ObjectType enumeration, the third of which is the parent window of the ObjectEditor dialog, and the last of which is a string to display on the dialog.  This constructor will create an ObjectEditor for a new object.  

The second constructor creates an ObjectEditor that will allow for the viewing and modification of the serializableObject passed into the dialog (which may or may not exist in the datasource already). If the changes to the objects should be written out to the datasource when the dialog is closed, the saveChangesToDataSource boolean should be set to true.

The third constructor allows for the modification (if it is editable) or viewing (if it is not editable) an existing DataSource object, which is identified by two additional BmgChar * arguments that specify the object's issuer and code.

The fourth and fifth constructors are similar to the second and third, respectively,  but allow the caller to specify whether the ObjectEditor should allow changes to the specified object. Passing in an "isEditable" value of false will ensure that no changes are allowed, even if the object is editable. On the other hand, passing in an "isEditable" value of true will still only allow changes to editable objects (i.e. you may never edit a read-only object).