MyApplication Header File
Included Header Files
The application header file includes the default base class header file and its panel classes header files:
#include <ilviews/gadgets/appli.h>
#include <class1.h>
#include <class2.h>
MyApplication Class
Rogue Wave Views Studio generates the following application class:
class MyApplication: public IlvApplication {
public:
MyApplication(
const char* appName,
const char* displayName = 0,
int argc = 0,
char** argv = 0
);
MyApplication(
IlvDisplay* display,
const char* appName
);
~MyApplication();
virtual void makePanels();
virtual void beforeRunning();
FirstPanelClass* getFirstPanelClass() const
{ return (FirstPanelClass*) getPanel(“FirstPanelClass”); }
FirstPanelClass* getSecondPanel() const
{ return (FirstPanelClass*) getPanel(“SecondPanel”); }
SecondPanelClass* getResult() const
{ return (SecondPanelClass*) getPanel(“Result”); }
};
Base Class
The generated class is derived from
IlvApplication. See
IlvApplication in the Rogue Wave Views
Reference Manual for a description of this class, which is part of the Rogue Wave Views
library
.Constructors
The generated constructors only call the related base class constructors.
makePanels Method
For each application, Rogue Wave Views Studio generates the
makePanels method that is called when the application is initialized. This method handles the creation of the generated application panels. See the class
IlvApplication in the Rogue Wave Views
Reference Manual. Panel Accessors
For each panel in the application Rogue Wave Views Studio generates a panel accessor which returns the panel.
Version 6.0
Copyright © 2015, Rogue Wave Software, Inc. All Rights Reserved.