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
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 Views
Reference Manual for a description of this class, which is part of the Views
library
.Constructors
The generated constructors only call the related base class constructors.
makePanels Method
For each application, 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 Views
Reference Manual. Panel Accessors
For each panel in the application Views Studio generates a panel accessor which returns the panel.
Published date: 05/24/2022
Last modified date: 02/24/2022