/usr/include/codeblocks/macrosmanager.h is in codeblocks-dev 10.05-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 | /*
* This file is part of the Code::Blocks IDE and licensed under the GNU Lesser General Public License, version 3
* http://www.gnu.org/licenses/lgpl-3.0.html
*/
#ifndef MACROSMANAGER_H
#define MACROSMANAGER_H
#include "settings.h"
#include "manager.h"
#include <wx/regex.h>
#include <wx/filename.h>
// forward decls;
class wxMenuBar;
class cbProject;
class ProjectBuildTarget;
class EditorBase;
class UserVariableManager;
WX_DECLARE_STRING_HASH_MAP( wxString, MacrosMap );
class DLLIMPORT MacrosManager : public Mgr<MacrosManager>
{
public:
friend class Manager;
friend class Mgr<MacrosManager>;
void CreateMenu(wxMenuBar* menuBar);
void ReleaseMenu(wxMenuBar* menuBar);
void ReplaceMacros(wxString& buffer, ProjectBuildTarget* target = 0, bool subrequest = false);
wxString ReplaceMacros(const wxString& buffer, ProjectBuildTarget* target = 0);
void ReplaceEnvVars(wxString& buffer) { ReplaceMacros(buffer); } /* misnomer, should be ReplaceVariables */;
void RecalcVars(cbProject* project, EditorBase* editor, ProjectBuildTarget* target);
void ClearProjectKeys();
void Reset();
protected:
ProjectBuildTarget* m_LastTarget;
cbProject* m_LastProject;
wxFileName m_ProjectWxFileName;
wxFileName m_WorkspaceWxFileName;
wxString m_AppPath;
wxString m_DataPath;
wxString m_Plugins;
wxString m_ActiveEditorFilename;
int m_ActiveEditorLine;
int m_ActiveEditorColumn;
wxString m_WorkspaceFilename;
wxString m_WorkspaceName;
wxString m_WorkspaceDir;
wxString m_ProjectFilename;
wxString m_ProjectName;
wxString m_ProjectDir;
wxString m_ProjectTopDir;
wxString m_ProjectFiles;
wxString m_Makefile;
wxString m_TargetOutputDir;
wxString m_TargetName;
wxString m_TargetOutputBaseName;
wxString m_TargetFilename;
MacrosMap m_Macros;
wxRegEx m_RE_Unix;
wxRegEx m_RE_DOS;
wxRegEx m_RE_If;
wxRegEx m_RE_IfSp;
wxRegEx m_RE_Script;
UserVariableManager *m_UserVarMan;
private:
MacrosManager();
~MacrosManager();
wxString EvalCondition(const wxString& cond, const wxString& true_clause, const wxString& false_clause, ProjectBuildTarget* target);
};
#endif // MACROSMANAGER_H
|