qxcompat

qxcompat has been specially created for the compatibility reasons. It can convert the whole project at a time or separate files from a specific project to the corresponding format, so that it can be successfully compiled and executed.

Syntax

qxcompat --input-file <file_name> --output <output>

or

qxcompat <file_name>

where:

--input-file <file_name>

a file with one of the following extensions: .4ad, .4fd, .4fm, .4pw, .4sm, .4st, .4tb, .4tm

 --output <output>

a directory (for projects), a form file, etc.

Usage and examples

Here you can see to what formats source files are converted:

project: .4pw → is included into .fglproject

action defaults: .4ad → .ad2

graphical form: .4fd → .fm2, .4fm → .fm2

start menu: .4sm → .sm2

styles: .4st → .qxtheme

toolbar: .4tb → .tb2

top menu: .4tm → .tm2

Example 1.

qxcompat --input-file project_name.4pw --output output_folder_name

where:

project_name.4pw

a project file with the following content:

<?xml version="1.0" encoding="UTF-8" ?>

<Workspace defaultApplication="000000001" version="1.0">

  <Group label="Source">

    <Application id="000000001" label="test_conversion">

      <File filePath="input_toolbar.4tb"/>

      <File filePath="input_topmenu.4tm"/>

      <File filePath="input_sourcefile.4gl"/>

      <File filePath="input_formfile.per"/>

    </Application>

  </Group>

</Workspace>

output_folder_name

a folder where output should be located

As a result of the project_name.4pw project file conversion, the new Lycia project will be created in the directory specified as output. Apart from the default Lycia project content, the project folder output_folder_name will contain all the files listed in project_name.4pw, converted where a file format requires, as they are listed below:

input_toolbar.4tb → input_toolbar.tb2

input_topmenu.4tm → input_topmenu.tm2

input_formfile.per

input_sourcefile.4gl

 

Example 2.

qxcompat file_name.4tm

If the only argument follows qxcompat, it is regarded as input-file. This conversion will take place (the output file will be saved in the same direction):

file_name.4tm → file_name.tm2

 

Contact Us

Privacy Policy

Copyright © 2024 Querix, (UK) Ltd.