Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

New projects "Custom Vars" tab

(1/5) > >>

earlgrey:
Hello everyone.

I made ( for me ) a new "Custom vars" panel in the "Build options" configuration panel.
It looks like this :



A minimalistic doc is at https://github.com/earlgrey-bis/erg.cbproject-custom-vars/tree/doc

Are you interested.

Regards.

BlueHazzard:
Are this the variables for the global variables (Settings->Variables)? Or are this some custom variables? If custom: why not use a UI for the global variables? This was on my todo list for a long time.... Project specific global variables with notes... the project specific variables would only be used if no global variable is set...

earlgrey:

--- Quote from: BlueHazzard on November 18, 2019, 08:39:46 pm ---Are this the variables for the global variables (Settings->Variables)?

--- End quote ---
No

--- Quote ---Or are this some custom variables?

--- End quote ---
Yes, Project->Build options->Custom variables. It replaces the current "Custom variables" tab

--- Quote ---If custom: why not use a UI for the global variables?...

--- End quote ---
I dont get you
==============================================================================================
Custom variables are per-project, saved in the project file ( .cbp ).
Global variables, Environment variables are attached to an OS user, saved in C::B configuration files ( .config/codeblocks/default.conf for me )

BlueHazzard:
I like this GUI.... I would add a "comment" or "note" column (also to the project file)

I am not quite sure what obfuscated thinks about the wxDataViewListCtrl, because in the past it was quite buggy on different platforms...

I also do not know if we want to add this before the next release, but in general i really like this! Can you create a patch?

earlgrey:

--- Quote from: BlueHazzard on November 19, 2019, 11:47:52 am ---I like this GUI.... I would add a "comment" or "note" column (also to the project file)

--- End quote ---
Should be possible with a thing like this in compileoptionsbase.h:

--- Code: ---typedef struct
{
    wxString    a_value;
    wxString    a_comment;
} wxString2;
WX_DECLARE_STRING_HASH_MAP(wxString2, String2Hash);

--- End code ---
And with a slight modification of all code parts that uses CompileOptionsBase::m_Vars. There are not too many apparently.


--- Quote ---I am not quite sure what obfuscated thinks about the wxDataViewListCtrl, because in the past it was quite buggy on different platforms...

--- End quote ---
U right, that is the real problem


--- Quote ---I also do not know if we want to add this before the next release, but in general i really like this! Can you create a patch?

--- End quote ---
Patches for each file are in the "pub" branch. There is a script for linux that apply the patches automatically.
Should I rather create a patch for the whole trunk ?

Navigation

[0] Message Index

[#] Next page

Go to full version