Code::Blocks
SVN r11506
|
#include "sdk_precomp.h"
#include "crc32.h"
#include <wx/url.h>
#include <wx/stream.h>
#include <wx/stdpaths.h>
#include <wx/filename.h>
#include <shlobj.h>
#include "annoyingdialog.h"
#include "tinywxuni.h"
#include <stdlib.h>
Go to the source code of this file.
Namespaces | |
CfgMgrConsts | |
Functions | |
static void | handleConfigError (TiXmlDocument &doc, const wxString &fileName, const wxString &additionalMessage) |
Print error message an allow the user to either discard the old config or close the application. More... | |
void | to_upper (wxString &s) |
void | to_lower (wxString &s) |
static wxString | getCompilerPluginFilename () |
wxArrayString | cbReadBatchBuildPlugins () |
Read the list of batch build plugins and return them. More... | |
void | cbWriteBatchBuildPlugins (wxArrayString bbplugins, wxWindow *messageBoxParent) |
Write the list of batch build plugins in the config. More... | |
Variables | |
const wxString | CfgMgrConsts::app_path (_T("app_path")) |
const wxString | CfgMgrConsts::data_path (_T("data_path")) |
const wxString | CfgMgrConsts::dotDot (_T("..")) |
const int | CfgMgrConsts::version = 1 |
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().
void cbWriteBatchBuildPlugins | ( | wxArrayString | bbplugins, |
wxWindow * | messageBoxParent | ||
) |
Write the list of batch build plugins in the config.
bbpluigns | List of library plugin names. |
messageBoxParent | Set 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().
|
static |
Definition at line 1762 of file configmanager.cpp.
References wxT.
Referenced by cbReadBatchBuildPlugins(), and cbWriteBatchBuildPlugins().
|
static |
Print error message an allow the user to either discard the old config or close the application.
Call this function when you've detected an error while reading the config.
Definition at line 227 of file configmanager.cpp.
References _(), cbC2U(), cbThrow, wxString::Format(), Manager::Get(), wxMessageDialog::SetYesNoLabels(), wxMessageDialog::ShowModal(), CfgMgrConsts::version, wxString::wx_str(), wxCENTRE, wxICON_ERROR, wxID_YES, wxNO, wxNO_DEFAULT, wxSTAY_ON_TOP, and wxYES.
Referenced by CfgMgrBldr::SwitchTo().
|
inline |
Definition at line 509 of file configmanager.cpp.
References wxString::c_str(), wxString::length(), and wxString::wx_str().
Referenced by ConfigManager::AssertPath(), and ConfigManager::DeleteSubPath().
|
inline |
Definition at line 491 of file configmanager.cpp.
References wxString::c_str(), wxString::length(), and wxString::wx_str().
Referenced by ConfigManager::AssertPath().