Gadgets > Creating GUI Applications with Rogue Wave Views Studio > Using the Generated Code > Generating the C++ Code > MyApplication Header File
 
MyApplication Header File
Header
Like all the generated files, the first lines of the application header file, myappli.h, show the date and directory path for the generated file, as well as providing the version of Rogue Wave® Views:
// ----------------------------------------------------- -*- C++ -*-
// File: /tmp/test/myappli.h
// Views 4.0 generated application header file
// File generated Wed May 03 16:56:53 2000
// by Rogue Wave Views Studio
// -----------------------------------------------------------------
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 5.8
Copyright © 2014, Rogue Wave Software, Inc. All Rights Reserved.