Providing Container Information
To integrate your container class, you have to define a subclass of
IlvStContainerInfo and add it to the Rogue Wave® Views Studio information set, as shown below:
class MyContainerInfo
: public IlvStContainerInfo {
public:
MyContainerInfo() : IlvStContainerInfo("MyContainer") {}
IlvContainer* createContainer(IlvAbstractView* parent,
const IlvRect& bbox,
IlBoolean useacc,
IlBoolean visible) {
return new MyContainer(parent, bbox, useacc, visible);
}
IlvContainer* createContainer(IlvDisplay* display,
const char* name,
const char* title,
const IlvRect& bbox,
IlUInt properties,
IlBoolean useacc,
IlBoolean visible,
IlvSystemView transientFor) {
return new MyContainer(display,
name,
title,
bbox,
properties,
useacc,
visible,
transientFor);
}
const char* getFileCreatorClass() const {
return "MyGadgetManagerOutput";
}
};
// ...
editor->addContainerInfo(new MyContainerInfo());
Version 6.1
Copyright © 2016, Rogue Wave Software, Inc. All Rights Reserved.