~efargaspro/+junk/codeblocks-16.01-release

1 by damienlmoore at gmail
Code::Blocks 16.01
1
#ifndef IL_GLOBALS_H
2
#define IL_GLOBALS_H
3
4
#include <wx/wxprec.h>
5
6
#ifndef WX_PRECOMP
7
	#include <wx/wx.h>
8
#endif
9
10
#include <sdk.h>
11
#ifndef CB_PRECOMP
12
    #include <wx/dir.h>
13
    #include <wx/filename.h>
14
    #include <wx/txtstrm.h>
15
16
    #include <editorbase.h>
17
    #include <editormanager.h>
18
    #include <logmanager.h>
19
    #include <manager.h>
20
#endif
21
22
wxString GetParentDir(const wxString &path);
23
24
bool DirIsChildOf(const wxString &path, const wxString &child);
25
26
bool WildCardListMatch(wxString list, wxString name, bool strip=false);
27
28
bool PromptSaveOpenFile(wxString message, wxFileName path);
29
30
inline void LogMessage(const wxString &msg)
31
{ Manager::Get()->GetLogManager()->Log(msg); }
32
33
inline void LogErrorMessage(const wxString &msg)
34
{ Manager::Get()->GetLogManager()->LogError(msg); }
35
36
37
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);}
38
39
#endif //IL_GLOBALS_H