Code::Blocks  SVN r11506
Functions | Variables
ImportersGlobals Namespace Reference

This namespace holds some global flags for project/workspace importers to inter-communicate. More...

Functions

DLLIMPORT void ResetDefaults ()
 

Variables

DLLIMPORT bool UseDefaultCompiler = false
 
DLLIMPORT bool ImportAllTargets = false
 

Detailed Description

This namespace holds some global flags for project/workspace importers to inter-communicate.


Basically, workspace importers set/unset these flags so that project importers know how to behave.

To explain this a bit further, imagine a MS Visual Studio solution (workspace) file containing 50 projects (yes, I have in mind one!). Without this class, for each project being imported, the user would be asked which compiler to use (one dialog) and which targets to import (another dialog). Imagine the user's frustration having to answer to 100 dialogs (50 x 2)!

Using these flags, the workspace importer can notify the project importer what to do, without asking the user each and every import.

After the workspace importer is done, it should call the ResetDefaults() function to revert everything to defaults.

Function Documentation

◆ ResetDefaults()

void ImportersGlobals::ResetDefaults ( )

Definition at line 20 of file importers_globals.cpp.

References ImportAllTargets, and UseDefaultCompiler.

Variable Documentation

◆ ImportAllTargets

bool ImportersGlobals::ImportAllTargets = false

Definition at line 17 of file importers_globals.cpp.

Referenced by ResetDefaults().

◆ UseDefaultCompiler

bool ImportersGlobals::UseDefaultCompiler = false

Definition at line 14 of file importers_globals.cpp.

Referenced by ResetDefaults().