Toolbar

Top  Previous  Next

User interface > Toolbar

 

The main window of the Delphi2C# 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.

 

--

 

SwitchFormUnit

 

Switch between unit and form.

 

--

 

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 search paths to the  directories with the preprocessed VCL and you also select your preprocessed Delphi sources, only enabling of the translator suffices for translation and the time for the pre-processing is saved. 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 is 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

 

--

 

The dialog for the translation of groups of files is shown by the button:

 

MultiFile

 

--

 

The next button is used to start a recursive translation:

 

Recursive

 

--

 

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

--

 

ShowLastError

 

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

 

--

 

When the pre-processor found new identifiers, their notations can be saved via the tool button:

 

SaveIdentifiers

 

The identifiers are written into a text file, which can be included then into the project options.

 

--

 

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.

 

 

 

--

 

This help is shown with F1 or by the button

 

Help_oldstyle

 

 

 

 



This page belongs to the Delphi2C# Documentation

Delphi2C# home  Content