~efargaspro/+junk/codeblocks-16.01-release

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
#ifndef IL_GLOBALS_H
#define IL_GLOBALS_H

#include <wx/wxprec.h>

#ifndef WX_PRECOMP
	#include <wx/wx.h>
#endif

#include <sdk.h>
#ifndef CB_PRECOMP
    #include <wx/dir.h>
    #include <wx/filename.h>
    #include <wx/txtstrm.h>

    #include <editorbase.h>
    #include <editormanager.h>
    #include <logmanager.h>
    #include <manager.h>
#endif

wxString GetParentDir(const wxString &path);

bool DirIsChildOf(const wxString &path, const wxString &child);

bool WildCardListMatch(wxString list, wxString name, bool strip=false);

bool PromptSaveOpenFile(wxString message, wxFileName path);

inline void LogMessage(const wxString &msg)
{ Manager::Get()->GetLogManager()->Log(msg); }

inline void LogErrorMessage(const wxString &msg)
{ Manager::Get()->GetLogManager()->LogError(msg); }


inline int MessageBox(wxWindow *parent, const wxString& message, const wxString& caption = wxEmptyString, int style = wxOK, int x = -1, int y = -1) { return cbMessageBox(message, caption, style, parent, x, y);}

#endif //IL_GLOBALS_H