Code::Blocks  SVN r11506
Classes | Namespaces | Typedefs | Enumerations | Functions
configmanager.h File Reference
#include <wx/hashmap.h>
#include <wx/hashset.h>
#include "settings.h"
#include "globals.h"
#include <tinyxml.h>
#include "manager.h"
#include "base64.h"
#include <map>
#include <set>
Include dependency graph for configmanager.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ISerializable
 
class  ConfigManager
 
class  ConfigManagerWrapper
 Wrapper class for reading or writing config values, without the need for the full path. More...
 
class  CfgMgrBldr
 

Namespaces

 ConfigManagerContainer
 

Typedefs

typedef std::map< wxString, wxStringConfigManagerContainer::StringToStringMap
 
typedef std::map< int, wxStringConfigManagerContainer::IntToStringMap
 
typedef std::set< wxStringConfigManagerContainer::StringSet
 
typedef std::map< wxString, ISerializable * > ConfigManagerContainer::SerializableObjectMap
 

Enumerations

enum  SearchDirs {
  sdHome = 0x0001, sdBase = 0x0002, sdTemp = 0x0004, sdPath = 0x0008,
  sdConfig = 0x0010, sdCurrent = 0x0020, sdPluginsUser = 0x0100, sdScriptsUser = 0x0200,
  sdDataUser = 0x0400, sdAllUser = 0x0f00, sdPluginsGlobal = 0x1000, sdScriptsGlobal = 0x2000,
  sdDataGlobal = 0x4000, sdAllGlobal = 0xf000, sdAllKnown = 0xffff
}
 Search dirs values. More...
 

Functions

DLLIMPORT wxArrayString cbReadBatchBuildPlugins ()
 Read the list of batch build plugins and return them. More...
 
DLLIMPORT void cbWriteBatchBuildPlugins (wxArrayString bbplugins, wxWindow *messageBoxParent)
 Write the list of batch build plugins in the config. More...
 
 WX_DECLARE_STRING_HASH_MAP (ConfigManager *, NamespaceMap)
 

Enumeration Type Documentation

◆ SearchDirs

enum SearchDirs

Search dirs values.

Used as a bitmask in ConfigManager::LocateDataFile() and friends.

Enumerator
sdHome 

User's home directory.

sdBase 

Code::Blocks' installation base.

sdTemp 

System-wide temp folder.

sdPath 

All dirs in the PATH environment variable.

sdConfig 

Config folder.

sdCurrent 

Current working folder.

sdPluginsUser 

Plugins folder in user's dir.

sdScriptsUser 

Scripts folder in user's dir.

sdDataUser 

Data folder in user's dir.

sdAllUser 

Convenience value meaning "all sd*User values".

sdPluginsGlobal 

Plugins folder in base dir.

sdScriptsGlobal 

Scripts folder in base dir.

sdDataGlobal 

Data folder in base dir.

sdAllGlobal 

Convenience value meaning "all sd*Global values".

sdAllKnown 

All known dirs (i.e. all of the above)

Definition at line 64 of file configmanager.h.

Function Documentation

◆ cbReadBatchBuildPlugins()

DLLIMPORT wxArrayString cbReadBatchBuildPlugins ( )

Read the list of batch build plugins and return them.

The list won't be empty; at least the compiler plugin will be added to the to it. The list contain the library names of the plugins and differs on every OS.

Definition at line 1772 of file configmanager.cpp.

References _T, wxArrayString::Add(), Manager::Get(), getCompilerPluginFilename(), Manager::GetConfigManager(), wxArrayString::GetCount(), and ConfigManager::ReadArrayString().

Referenced by CompilerSettingsDlg::CompilerSettingsDlg(), and PluginManager::ScanForPlugins().

◆ cbWriteBatchBuildPlugins()

DLLIMPORT void cbWriteBatchBuildPlugins ( wxArrayString  bbplugins,
wxWindow messageBoxParent 
)

Write the list of batch build plugins in the config.

Parameters
bbpluignsList of library plugin names.
messageBoxParentSet as a parent to the message box that will be shown in case of errors.

Definition at line 1783 of file configmanager.cpp.

References _(), _T, wxArrayString::Add(), cbMessageBox(), Manager::Get(), getCompilerPluginFilename(), Manager::GetConfigManager(), wxArrayString::Index(), ConfigManager::Write(), wxICON_WARNING, and wxNOT_FOUND.

Referenced by CompilerSettingsDlg::EndModal().

◆ WX_DECLARE_STRING_HASH_MAP()

WX_DECLARE_STRING_HASH_MAP ( ConfigManager ,
NamespaceMap   
)