29 #include <wx/listimpl.cpp> 32 template<>
ToolsManager* Mgr<ToolsManager>::instance =
nullptr;
85 "Please allow for it to finish before launching another tool..."),
111 cmdline << term <<
_T(
" ");
112 #define CONSOLE_RUNNER "cb_console_runner" 114 #define CONSOLE_RUNNER "cb_console_runner.exe" 121 if (!cmdline.
Replace(
_T(
"$SCRIPT"), cmd <<
_T(
" ") << params))
132 #if wxCHECK_VERSION(3, 0, 0) 149 flags |= wxEXEC_NOHIDE;
216 for (ToolsList::iterator it =
m_Tools.begin(); it !=
m_Tools.end(); ++it)
230 for (ToolsList::iterator it =
m_Tools.begin(); it !=
m_Tools.end(); ++it)
242 for (ToolsList::iterator it =
m_Tools.begin(); it !=
m_Tools.end(); ++it)
256 for (
unsigned int i = 0; i < list.
GetCount(); ++i)
278 for (
unsigned int i = 0; i < list.
GetCount(); ++i)
284 for (ToolsList::iterator it =
m_Tools.begin(); it !=
m_Tools.end(); ++it)
291 tmp.
Printf(
_T(
"tool%2.2d"), count++);
293 elem <<
_T(
"/") << tmp <<
_T(
"/");
314 for (ToolsList::iterator it =
m_Tools.begin(); it !=
m_Tools.end(); ++it)
327 Connect(tool->
GetMenuId(), -1, wxEVT_COMMAND_MENU_SELECTED,
328 (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction)
wxString F(const wxChar *msg,...)
sprintf-like function
ConfigManager * GetConfigManager(const wxString &name_space) const
int ReadInt(const wxString &name, int defaultVal=0)
static Manager * Get()
Use Manager::Get() to get a pointer to its instance Manager::Get() is guaranteed to never return an i...
DLLIMPORT const wxString DEFAULT_CONSOLE_TERM
bool wxFileExists(const wxString &filename)
Event used to request from the main app to add a log.
A generic Code::Blocks event.
wxWindow * GetAppWindow() const
void Write(const wxString &name, const wxString &value, bool ignoreEmpty=false)
bool wxSetWorkingDirectory(const wxString &dir)
void RecalcVars(cbProject *project, EditorBase *editor, ProjectBuildTarget *target)
wxArrayString EnumerateSubPaths(const wxString &path)
#define EVT_PIPEDPROCESS_TERMINATED(id, fn)
size_t Replace(const wxString &strOld, const wxString &strNew, bool replaceAll=true)
LogManager * GetLogManager() const
EVTIMPORT const wxEventType cbEVT_SWITCH_TO_LOG_WINDOW
wxString Read(const wxString &key, const wxString &defaultVal=wxEmptyString)
const wxStringCharType * wx_str() const
MacrosManager * GetMacrosManager() const
const wxString & _(const wxString &string)
void ReplaceMacros(wxString &buffer, ProjectBuildTarget *target=nullptr, bool subrequest=false)
#define EVT_PIPEDPROCESS_STDERR(id, fn)
void DeleteSubPath(const wxString &strPath)
DLLIMPORT void PlaceWindow(wxTopLevelWindow *w, cbPlaceDialogMode mode=pdlBest, bool enforce=false)
void Log(const wxString &msg, int i=app_log, Logger::level lv=Logger::info)
static wxString GetExecutableFolder()
#define EVT_PIPEDPROCESS_STDOUT(id, fn)
bool ProcessEvent(CodeBlocksEvent &event)
int Printf(const wxString &pszFormat,...)
DLLIMPORT int cbMessageBox(const wxString &message, const wxString &caption=wxEmptyString, int style=wxOK, wxWindow *parent=NULL, int x=-1, int y=-1)
wxMessageBox wrapper.
long wxExecute(const wxString &command, int flags=wxEXEC_ASYNC, wxProcess *callback=NULL, const wxExecuteEnv *env=NULL)