Elementary PzlStudio
Автор: Виктор Юхтенко
This document refers to the self-dependent documents: |
Elementary PzlStudio is the the Development Environment supporting the elementary operations related to the pzl-technology. The Elementary PzlStudio gives the possibility to include the pzl-system to the applicaions, created by the Visual Prolog programming system and to gerister pzl-components.
Elementary PzlStudio is not fully autonomous tool. The functionality of the Elementary PzlStudio is coordinated with the IDE of the Visual Prolog system. So the generating and the updating of the source code files and projects is done by the Elementary PzlStudio and the compilation of projects and debugging must be done by the IDE of the Visual Prolog Programming system.
Important!
|
Elementary PzlStudio Overview
Elementary PzlStudio is the application whritten using the Visual Prolog programming language and PzlStudio based on the Pzl-technology.
The operation calls are made using the menu and the Tollbar. The list of the operations, which can be preformed using the Elementary PzlStudio and short comments are placed below.
Most of tools of the PzlStudio are represented as forms, where the options and properties may be set and operations may be called to the execution.
The Message Window is the output stream and all tools may send the messages to the Message Window. The Message Window may be closed. To open the Message Winodw again the menu Item View/Messages must be used.
Usually the latest layout of the form is stored in the Windows registry. All current properties of the PzlStudio tools are stored there also.
The example of the status of the Elementary PzlStudio is shown below.
Setting Basic Options
Before you will start to use the Elementary PzlStudio it is recommended to make some settings, which relate to the further operations. The options are: the company name, the author's name, directories etc. These settings will be stored on your computer when you will end the use of the program. You may change the settings at any time you wish
Adding the PzlPort to the application
Elementary PzlStudio has no feature to create new executable applications projects, which contain the pzl-system embedded. But Elementary PzlStudio gives the possibility to include the pzl-system into any application project created before.
If your project exists, then it is ready to include the pzl-system to that project. Just compile it and save before(Ctrl-S).
There is no need to close the project in the IDE before you are going to add the pzl-system to it – it is enough to save it (Ctrl-S).
When you have the applicaion wich is expected to run using the pzl-technology, then you need run Elementary PzlStudio and make adding the pzl-system to that application. This operation adds all needed parts of the pzl-system to the project.
Coming back to the IDE you may compile the application.
Creation of the Pzl-Container
The pzl-container is the place, where pzl-components are stored. In that sense the main application and the DLL are pzl-containers.
The pzl-technology supposes that the main executable application gets the features of the pzl-container, when it gets the features of the pzl-Port. Thus performing the operation of adding the pzlPort to the executable application, we create the pzl-container of the executable application.
That is why the Elementary PzlStudio has no operations to create the pzl-container at the main executable application. The operation creation of the pzl-container means the creation of the DLL, which is the pzl-container.
It is possible to create the project, which corresponds to the dll-container, manually using the IDE. This is not recommended, because of it needs the knowledge of the details of the pzl-container structure. Instead the Elementary PzlStudio proposes the very easy operation to create such a project.
After invoking the operation it needs to fill the form with the basic features of the pzl-container and by one clicking the button you get the pzl-container. This container you must open using the Visual Prolog IDE and build it.
Creation of the Pzl-Component
Pzl-component is the package of the Visual Prolog programming system. The IDE of the Visual Prolog system can create the class and the package within the currently opened project. The Elementary PzlStudio cannot deal with the Visual Prolog projects fully.
The Elementary Studio performs the elementary operation, which creates the pzl-component independent of the project. The newly created pzl-component may be later placed to any pzl-container.
To create the pzl-component it needs to fill the form, which contains the properties of the pzl-component such as the component identifier, component alias, the name of the base class and the name of the interface etc..
When the form is filled, you press the button and you get the pzl-component, which may be now embedded to any pzl-container (executable application or the DLL).
Adding the Pzl-Component to the Pzl-Container
It is recommended to make the adding the plz-component to the pzl-Container using the Elementary PzlStudio. The manual performing this operation using the IDE may lead to the noncorrespondence of the necessery links in the projects.
Не имеет значения, является ли pzl-Контейнер пустым или в нем уже содержатся другие Pzl-Компоненты. Главное - добавляемая компонента до этого не должна содержаться в данном контейнере.
Pzl-контейнером может быть как главное приложение, так и DLL-контейнер. Для добавления Pzl-Контейнера в специальной форме Вы выбираете проект контейнера. Если это главное исполняемое приложение, то в него предварительно должен быть добавлен PzlPort. Если это DLL - то это должен быть именно Pzl-контейнер на основе DLL.
Далее Вы выбираете пакет, содержащий Pzl-Компоненту, и можете Выбрать один из способов добавления pzl-компоненты: pzl-Компонента добавляется либо как оригинальная компонента, либо как представитель pzl-Компоненты (proxy).
Если компонента добавляется как оригинальная компонента, то все другие классы могут ее использовать, создавая ее экземпляры и выполняя все, предусмотренные ее интерфейсами, действия.
Если Вы добавляете в данный контейнер представителя Pzl-Компоненты, то это означает, что эта pzl-Компонента находится в каком-либо контейнере (Вы можете не знать, где именно), а все классы данного контейнера взаимодействуют с ней через ее представителя, находящегося в данном контейнере.