News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Custom variables

Started by LETARTARE, April 13, 2025, 01:17:44 AM

Previous topic - Next topic

LETARTARE

Context : writing the programming of a plugin for 'CB'.

In the menu :
Quote'Project->Build Options ...->Custom variables'
:
What are the class methods for reading all the variables for the project and for the different targets ?
CB-13834, plugins-sdk-2.25.0 : Collector-2.6.5, AddOnForQt-5.1.2
1- Win7 Business Pack1 64bits : wx-3.2.8, gcc-15.2.0,
2- OpenSuse::Leap-15.6-64bits : wx-3.2.8;gtk3-u, gcc-15.2.0,
=> !! The messages are translated by 'Deepl'

LETARTARE

CB-13834, plugins-sdk-2.25.0 : Collector-2.6.5, AddOnForQt-5.1.2
1- Win7 Business Pack1 64bits : wx-3.2.8, gcc-15.2.0,
2- OpenSuse::Leap-15.6-64bits : wx-3.2.8;gtk3-u, gcc-15.2.0,
=> !! The messages are translated by 'Deepl'

Miguel Gimenez

If you are referring to "Custom variables" in "Project build options", look at CompilerOptionsDlg::DoFillVars() and other methods involving "lstVars".

LETARTARE

Thank you very much.
This is exactly what I needed to read user-defined variables from a project.
CB-13834, plugins-sdk-2.25.0 : Collector-2.6.5, AddOnForQt-5.1.2
1- Win7 Business Pack1 64bits : wx-3.2.8, gcc-15.2.0,
2- OpenSuse::Leap-15.6-64bits : wx-3.2.8;gtk3-u, gcc-15.2.0,
=> !! The messages are translated by 'Deepl'