Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The behaviour that you want in your updated answer is not available in Code::Blocks.</p> <p>However, you should be able to get this behaviour if you invest the time to write a plugin for that (should be under an hour, depening on your wxWidgets skill, the GUI bit to pop up the dialog will probably be the hardest thing).</p> <p>Either write a script plugin (this is allegedly the easiest and quickest way, though I've never done that, so cannot tell for sure) -- look at <code>share/codeblocks/scripts/sample_plugin.script</code>, and see if you can adapt that -- or write a proper plugin in C++.<br> Edit: <a href="http://wiki.codeblocks.org/index.php?title=Script_plugins" rel="nofollow">some sparse docs on script plugin</a>.</p> <p>Look for example at <code>src/plugins/autosave/autosave.[h|cpp]</code> (which is one of the most primitive plugins) to learn how this is done. Something like this should work:</p> <ul> <li>Derive a class from <code>cbPlugin</code>, implement all the pure virtuals as <code>{}</code> (don't need them)</li> <li>Put a <code>namespace { PluginRegistrant&lt;YourClassName&gt; reg(_T("Readable Plugin Name")); }</code> into your source file</li> <li>Register for <code>EVT_COMMAND(cbEVT_COMPILER_STARTED...)</code> inside your <code>BEGIN_EVENT_TABLE/END_EVENT_TABLE</code> block.</li> <li>In your event handler, pop up the dialog, read out the textbox, and modify any settings you want. Either modify the compiler's settings, or use the pointer to the project contained in the the event, which lets you access project settings and targets with their own settings</li> <li>You probably want to undo your changes, too. So do the same for <code>cbEVT_COMPILER_FINISHED</code>, restoring the original settings</li> </ul> <p>Alternatively, one could probably just call <code>cbProject::ShowOptions()</code> (after all, the event gives you a pointer to a <code>cbProject</code>, so why not just use that) when <code>cbEVT_COMPILER_STARTED</code> is received, that should bring up the builtin options dialog.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload