User interface

Top  Previous  Next

 

The main window of the Delphi2Cpp application consists in a menu, a tool bar and in three windows for the input and for the output.

 

--

 

Clear

 

By this button the texts in all windows is cleared and then you are asked, whether the type information that was learned from the previous translations shall be cleared too.

 

--

 

NewUnit

 

This button does the same as the previous and than inserts the frame for a new unit. So you can quickly write some code snippets into the frame, to translate them.

 

--

 

DProject

 

By this button the conversion of a Delphi dpr project file to a translated unit and a C++Builder project file is started. In addition the project options can be supplemented with the paths to the found source files and a management for the conversion of the whole project can be created.

 

--

 

You can load a Delphi source file into the first window by CTRL+O or by the button:

 

FileOpen

 

--

 

Before you start the translation, you can set some options in the according dialog, which is shown by the button

 

OptionsProject

 

--

 

Options can be saved and reloaded by the buttons

 

ProjectSaveAs        ProjectOpen

 

 

--

 

There are two buttons which can have two states each  If the PP-button is down, the preprocessor is enabled, if the PP-button is up, the preprocessor is disabled. If the T-button is down, the translator is enabled, if the T-button is up, the translator is disabled.

 

PP_T_downdown

 

You can disable the translator either to check the preprocessing of a source file. But the feature to disable the translator mainly has been implemented, to give you the possibility to create a preprocessed copy of the VCL or your Delphi source files, by means of the file manager. By use of preprocessed files the repeated translation can be accelerated. If you chose the include paths to the  directories with the preprocessed VCL and you also select your preprocessed Delphi sources, the enabling of the translator suffices for the fastest possible translation. If parts of your files aren't preprocessed, you have to enable both, the preprocessor and the translator. This will still be faster than don't to use preprocessed files, because the preprocessor hardly needs time to preprocess files again, which already were preprocessed.

The initial state of these buttons can be saved with the options.

The overwritten System.pas gets always preprocessed, even if the button is disabled.

 

--

 

The translation is started with F9 or

 

Arrow_r

 

--

 

In the professional version of Delphi2Cpp the dialog for the translation of groups of files is shown by the button:

 

MultiFile

 

--

 

All information that once has been obtained from the interface parts of the processed files is remembered for the translation of further files. Types and variables can be cleared by the button:

 

ClearVars

--

 

Finally you can save the generated C++ code by CTRL+S or by

 

FileSaveAs

 

At first a file dialog for the header appears and as soon as you have saved the header file the dialog appears again for the C++ source file. If the translated file is a library, the file dialog appears for a third time, to save a module definition file.

 

--

 

Find

 

Shows a dialog to find expressions in the text of the actual window.

 

--

 

ShowLastError

 

Shows the position, where the parser found an error in the Delphi code.

 

--

 

This help is shown with F1 or by the button

 

Help_oldstyle

 

 

 

 



This page belongs to the Delphi2Cpp Documentation

Delphi2Cpp home  Content