Elementary PzlStudio: различия между версиями

Материал из wikiru.visual-prolog.com

Строка 89: Строка 89:
=Adding the Pzl-Component to the Pzl-Container=
=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.
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 non-correspondence of some necessary links in the projects.


Не имеет значения, является ли pzl-Контейнер пустым или в нем уже содержатся другие Pzl-Компоненты. Главное - добавляемая компонента до этого не должна содержаться в данном контейнере.
Any entity may be a pzl-container - an executable application or it may be a dll-container. To make the adding operation you choose the Visual Prolog project, which is a pzl-container. If it is the main application, then the pzlPort must be added to it before. If it is the DLL, then it must be actually the pzl-container based on DLL.


Pzl-контейнером может быть как главное приложение, так и DLL-контейнер. Для добавления Pzl-Контейнера в специальной форме Вы выбираете проект контейнера. Если это главное исполняемое приложение, то в него предварительно  должен быть добавлен PzlPort. Если это DLL - то это должен быть именно Pzl-контейнер на основе DLL.
Further you choose a pzl-component package and you may choose any of ways to add the pzl-component to the pzl-container: as the original pzl-component or it will be added as the pzl-component delegate (proxy).  


Далее Вы выбираете пакет, содержащий Pzl-Компоненту, и можете Выбрать один из способов добавления pzl-компоненты: pzl-Компонента добавляется либо как оригинальная компонента, либо как представитель pzl-Компоненты (proxy).
You may also make a conversion of the status of the pzl-components, which was included to the  pzl-container before. The status "original" may be converted to the status "proxy". The back operation is available also.
 
Если компонента добавляется как оригинальная компонента, то все другие классы могут ее использовать, создавая ее экземпляры и выполняя все, предусмотренные ее интерфейсами, действия.  
 
Если Вы добавляете в данный контейнер представителя Pzl-Компоненты, то это означает, что эта pzl-Компонента находится в каком-либо контейнере (Вы можете не знать, где именно), а все классы данного контейнера взаимодействуют с ней через ее представителя, находящегося в данном контейнере.


[[Adding/Removing pzl-Component to the Pzl-Container|See more...]].
[[Adding/Removing pzl-Component to the Pzl-Container|See more...]].

Версия 09:07, 6 февраля 2008

Автор: Виктор Юхтенко

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.

Emblem-important.png

Important!
  1. Elementary PzlStudio manipulates by components considering them as the combined packages, representing original components and their proxies same time.
  2. Elementary PzlStudio modifies the projects files in the following cases:
    1. while adding the Pzl-system to the existing applicaion
    2. while creation the pzl-container
    3. while adding and removing the component to(from) the pzl-container
  3. Before the execution of the operations listed above and after they complete it is recommended to build the project using the IDE.
  4. While the building (compiling) the proect after you have added any package (class), which is expected to make a call to any Pzl-component, you must refuse' the proposal of the IDE to include the pzl-component to the given project.
    The inclusion of these new pzl-components must be done using Elementary PzlStudio only.
  5. Adding and removing the pzl-components to(from) the pzl-containers makes the coordinated changes in several parts of the Project. It is not recommended to perform these operations using the IDE. It is possible to perform these operation manually using the IDE, but it needs to know all details of the coordinated updates.

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.

ElementaryPzlStduioOverview.png

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

See more ....

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.

See more ....

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.

See more...

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).

See more...

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 non-correspondence of some necessary links in the projects.

Any entity may be a pzl-container - an executable application or it may be a dll-container. To make the adding operation you choose the Visual Prolog project, which is a pzl-container. If it is the main application, then the pzlPort must be added to it before. If it is the DLL, then it must be actually the pzl-container based on DLL.

Further you choose a pzl-component package and you may choose any of ways to add the pzl-component to the pzl-container: as the original pzl-component or it will be added as the pzl-component delegate (proxy).

You may also make a conversion of the status of the pzl-components, which was included to the pzl-container before. The status "original" may be converted to the status "proxy". The back operation is available also.

See more....

References