Author Topic: Custom variables  (Read 5391 times)

Offline LETARTARE

  • Lives here!
  • ****
  • Posts: 563
  • L'ami de l'homme.The friend of man.
    • LETARTARE
Custom variables
« on: April 13, 2025, 01:17:44 am »
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-13670, plugins-sdk-2.25.0 : Collector-2.6.5, AddOnForQt-4.1.5
1- Win7 Business Pack1 64bits : wx-3.2.8, gcc-14.2.0,
2- OpenSuse::Leap-15.6-64bits : wx-3.2.8;gtk3, gcc-13.3.0,
=> !! The messages are translated by 'Deepl'

Offline LETARTARE

  • Lives here!
  • ****
  • Posts: 563
  • L'ami de l'homme.The friend of man.
    • LETARTARE
Re: Custom variables
« Reply #1 on: April 16, 2025, 10:41:51 am »
I still have no lead ...
CB-13670, plugins-sdk-2.25.0 : Collector-2.6.5, AddOnForQt-4.1.5
1- Win7 Business Pack1 64bits : wx-3.2.8, gcc-14.2.0,
2- OpenSuse::Leap-15.6-64bits : wx-3.2.8;gtk3, gcc-13.3.0,
=> !! The messages are translated by 'Deepl'

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1726
Re: Custom variables
« Reply #2 on: April 22, 2025, 06:47:05 pm »
If you are referring to "Custom variables" in "Project build options", look at CompilerOptionsDlg::DoFillVars() and other methods involving "lstVars".

Offline LETARTARE

  • Lives here!
  • ****
  • Posts: 563
  • L'ami de l'homme.The friend of man.
    • LETARTARE
Re: Custom variables
« Reply #3 on: April 25, 2025, 02:00:56 am »
Thank you very much.
This is exactly what I needed to read user-defined variables from a project.
CB-13670, plugins-sdk-2.25.0 : Collector-2.6.5, AddOnForQt-4.1.5
1- Win7 Business Pack1 64bits : wx-3.2.8, gcc-14.2.0,
2- OpenSuse::Leap-15.6-64bits : wx-3.2.8;gtk3, gcc-13.3.0,
=> !! The messages are translated by 'Deepl'