Code::Blocks  SVN r11506
filefilters.h
Go to the documentation of this file.
1 /*
2  * This file is part of the Code::Blocks IDE and licensed under the GNU Lesser General Public License, version 3
3  * http://www.gnu.org/licenses/lgpl-3.0.html
4  */
5 
6 #ifndef FILEFILTERS_H
7 #define FILEFILTERS_H
8 
9 #include <wx/string.h>
10 #include "settings.h"
11 
16 namespace FileFilters
17 {
20 
26  DLLIMPORT bool Add(const wxString& name, const wxString& mask);
27 
36 
41 
46 
47 
54  DLLIMPORT bool GetFilterNameFromIndex(const wxString& FiltersList, int Index, wxString& FilterName);
55 
62  DLLIMPORT bool GetFilterIndexFromName(const wxString& FiltersList, const wxString& FilterName, int& Index);
63 
64  // file extension constants
65  // *just* the extension, e.g. "exe"
66  extern const DLLIMPORT wxString WORKSPACE_EXT;
67  extern const DLLIMPORT wxString CODEBLOCKS_EXT;
68  extern const DLLIMPORT wxString DEVCPP_EXT;
69  extern const DLLIMPORT wxString MSVC6_EXT;
71  extern const DLLIMPORT wxString MSVC7_EXT;
73  extern const DLLIMPORT wxString MSVC10_EXT;
74  extern const DLLIMPORT wxString XCODE1_EXT;
75  extern const DLLIMPORT wxString XCODE2_EXT;
76  extern const DLLIMPORT wxString ASM_EXT;
77  extern const DLLIMPORT wxString D_EXT;
78  extern const DLLIMPORT wxString F_EXT;
79  extern const DLLIMPORT wxString F77_EXT;
80  extern const DLLIMPORT wxString F90_EXT;
81  extern const DLLIMPORT wxString F95_EXT;
82  extern const DLLIMPORT wxString FOR_EXT;
83  extern const DLLIMPORT wxString FPP_EXT;
84  extern const DLLIMPORT wxString F03_EXT;
85  extern const DLLIMPORT wxString F08_EXT;
86  extern const DLLIMPORT wxString JAVA_EXT;
87  extern const DLLIMPORT wxString C_EXT;
88  extern const DLLIMPORT wxString CC_EXT;
89  extern const DLLIMPORT wxString CPP_EXT;
90  extern const DLLIMPORT wxString CXX_EXT;
91  extern const DLLIMPORT wxString CPLPL_EXT;
92  extern const DLLIMPORT wxString INL_EXT;
93  extern const DLLIMPORT wxString TPP_EXT;
94  extern const DLLIMPORT wxString TCC_EXT;
95  extern const DLLIMPORT wxString H_EXT;
96  extern const DLLIMPORT wxString HH_EXT;
97  extern const DLLIMPORT wxString HPP_EXT;
98  extern const DLLIMPORT wxString HXX_EXT;
99  extern const DLLIMPORT wxString HPLPL_EXT;
100  extern const DLLIMPORT wxString S_EXT;
101  extern const DLLIMPORT wxString SS_EXT;
102  extern const DLLIMPORT wxString S62_EXT;
103  extern const DLLIMPORT wxString OBJECT_EXT;
104  extern const DLLIMPORT wxString XRCRESOURCE_EXT;
105  extern const DLLIMPORT wxString STATICLIB_EXT;
106  extern const DLLIMPORT wxString DYNAMICLIB_EXT;
107  extern const DLLIMPORT wxString EXECUTABLE_EXT;
108  extern const DLLIMPORT wxString NATIVE_EXT;
109  extern const DLLIMPORT wxString RESOURCE_EXT;
110  extern const DLLIMPORT wxString RESOURCEBIN_EXT;
111  extern const DLLIMPORT wxString XML_EXT;
112  extern const DLLIMPORT wxString SCRIPT_EXT;
113 
114  // a dot *and* the extension, e.g. ".exe"
115  extern const DLLIMPORT wxString WORKSPACE_DOT_EXT;
117  extern const DLLIMPORT wxString DEVCPP_DOT_EXT;
118  extern const DLLIMPORT wxString MSVC6_DOT_EXT;
120  extern const DLLIMPORT wxString MSVC7_DOT_EXT;
122  extern const DLLIMPORT wxString MSVC10_DOT_EXT;
123  extern const DLLIMPORT wxString XCODE1_DOT_EXT;
124  extern const DLLIMPORT wxString XCODE2_DOT_EXT;
125  extern const DLLIMPORT wxString ASM_DOT_EXT;
126  extern const DLLIMPORT wxString D_DOT_EXT;
127  extern const DLLIMPORT wxString F_DOT_EXT;
128  extern const DLLIMPORT wxString F77_DOT_EXT;
129  extern const DLLIMPORT wxString F90_DOT_EXT;
130  extern const DLLIMPORT wxString F95_DOT_EXT;
131  extern const DLLIMPORT wxString FOR_DOT_EXT;
132  extern const DLLIMPORT wxString FPP_DOT_EXT;
133  extern const DLLIMPORT wxString F03_DOT_EXT;
134  extern const DLLIMPORT wxString F08_DOT_EXT;
135  extern const DLLIMPORT wxString JAVA_DOT_EXT;
136  extern const DLLIMPORT wxString C_DOT_EXT;
137  extern const DLLIMPORT wxString CC_DOT_EXT;
138  extern const DLLIMPORT wxString CPP_DOT_EXT;
139  extern const DLLIMPORT wxString CXX_DOT_EXT;
140  extern const DLLIMPORT wxString CPLPL_DOT_EXT;
141  extern const DLLIMPORT wxString INL_DOT_EXT;
142  extern const DLLIMPORT wxString TPP_DOT_EXT;
143  extern const DLLIMPORT wxString TCC_DOT_EXT;
144  extern const DLLIMPORT wxString H_DOT_EXT;
145  extern const DLLIMPORT wxString HH_DOT_EXT;
146  extern const DLLIMPORT wxString HPP_DOT_EXT;
147  extern const DLLIMPORT wxString HXX_DOT_EXT;
148  extern const DLLIMPORT wxString HPLPL_DOT_EXT;
149  extern const DLLIMPORT wxString S_DOT_EXT;
150  extern const DLLIMPORT wxString SS_DOT_EXT;
151  extern const DLLIMPORT wxString S62_DOT_EXT;
152  extern const DLLIMPORT wxString OBJECT_DOT_EXT;
154  extern const DLLIMPORT wxString STATICLIB_DOT_EXT;
157  extern const DLLIMPORT wxString NATIVE_DOT_EXT;
158  extern const DLLIMPORT wxString RESOURCE_DOT_EXT;
160  extern const DLLIMPORT wxString XML_DOT_EXT;
161  extern const DLLIMPORT wxString SCRIPT_DOT_EXT;
162 }
163 
164 #endif // FILEFILTERS_H
const DLLIMPORT wxString F90_DOT_EXT
DLLIMPORT bool Add(const wxString &name, const wxString &mask)
Add a new extension filter.
Definition: filefilters.cpp:41
const DLLIMPORT wxString S62_DOT_EXT
const DLLIMPORT wxString TCC_EXT
const DLLIMPORT wxString MSVC10_DOT_EXT
const DLLIMPORT wxString FPP_EXT
const DLLIMPORT wxString CODEBLOCKS_EXT
const DLLIMPORT wxString S_DOT_EXT
const DLLIMPORT wxString MSVC7_WORKSPACE_DOT_EXT
const DLLIMPORT wxString F95_EXT
const DLLIMPORT wxString SCRIPT_EXT
const DLLIMPORT wxString OBJECT_DOT_EXT
const DLLIMPORT wxString SCRIPT_DOT_EXT
const DLLIMPORT wxString MSVC10_EXT
const DLLIMPORT wxString CPLPL_DOT_EXT
const DLLIMPORT wxString D_DOT_EXT
const DLLIMPORT wxString H_EXT
const DLLIMPORT wxString XML_DOT_EXT
const DLLIMPORT wxString INL_EXT
const DLLIMPORT wxString XCODE1_EXT
const DLLIMPORT wxString DEVCPP_EXT
Provides functions and constants regarding file extension filters present in file dialogs throughout ...
Definition: filefilters.h:16
const DLLIMPORT wxString NATIVE_DOT_EXT
const DLLIMPORT wxString HPP_DOT_EXT
const DLLIMPORT wxString HPP_EXT
const DLLIMPORT wxString JAVA_EXT
DLLIMPORT bool GetFilterIndexFromName(const wxString &FiltersList, const wxString &FilterName, int &Index)
Get the index of the filter &#39;FilterName&#39; in the FiltersList.
const DLLIMPORT wxString JAVA_DOT_EXT
const DLLIMPORT wxString S62_EXT
const DLLIMPORT wxString RESOURCEBIN_EXT
const DLLIMPORT wxString HXX_EXT
const DLLIMPORT wxString C_EXT
const DLLIMPORT wxString MSVC6_EXT
DLLIMPORT wxString GetFilterAll()
Generates a simple special filter "All files".
Definition: filefilters.cpp:98
const DLLIMPORT wxString F77_EXT
const DLLIMPORT wxString DYNAMICLIB_DOT_EXT
const DLLIMPORT wxString INL_DOT_EXT
const DLLIMPORT wxString TPP_EXT
const DLLIMPORT wxString RESOURCEBIN_DOT_EXT
const DLLIMPORT wxString WORKSPACE_DOT_EXT
const DLLIMPORT wxString ASM_DOT_EXT
const DLLIMPORT wxString CPLPL_EXT
const DLLIMPORT wxString F_EXT
const DLLIMPORT wxString FPP_DOT_EXT
DLLIMPORT bool GetFilterNameFromIndex(const wxString &FiltersList, int Index, wxString &FilterName)
Get the Filter name for the Index-th filter in the FiltersList.
const DLLIMPORT wxString DYNAMICLIB_EXT
#define DLLIMPORT
Definition: settings.h:16
const DLLIMPORT wxString XRCRESOURCE_DOT_EXT
const DLLIMPORT wxString D_EXT
const DLLIMPORT wxString CXX_DOT_EXT
const DLLIMPORT wxString MSVC6_WORKSPACE_EXT
const DLLIMPORT wxString CC_DOT_EXT
const DLLIMPORT wxString MSVC6_DOT_EXT
const DLLIMPORT wxString SS_EXT
const DLLIMPORT wxString XML_EXT
const DLLIMPORT wxString F90_EXT
const DLLIMPORT wxString WORKSPACE_EXT
const DLLIMPORT wxString CPP_DOT_EXT
const DLLIMPORT wxString STATICLIB_EXT
const DLLIMPORT wxString MSVC7_DOT_EXT
const DLLIMPORT wxString MSVC7_WORKSPACE_EXT
const DLLIMPORT wxString CC_EXT
const DLLIMPORT wxString F_DOT_EXT
const DLLIMPORT wxString S_EXT
DLLIMPORT size_t GetIndexForFilterAll()
Get the filter index for the special "All files" filter.
const DLLIMPORT wxString C_DOT_EXT
const DLLIMPORT wxString XCODE2_EXT
wxString wxEmptyString
const DLLIMPORT wxString F77_DOT_EXT
const DLLIMPORT wxString NATIVE_EXT
const DLLIMPORT wxString FOR_DOT_EXT
const DLLIMPORT wxString CXX_EXT
const DLLIMPORT wxString F08_EXT
const DLLIMPORT wxString DEVCPP_DOT_EXT
DLLIMPORT wxString GetFilterString(const wxString &ext=wxEmptyString)
Generates and returns the filter string for use in file dialogs.
Definition: filefilters.cpp:60
const DLLIMPORT wxString EXECUTABLE_EXT
const DLLIMPORT wxString HPLPL_DOT_EXT
const DLLIMPORT wxString HXX_DOT_EXT
const DLLIMPORT wxString H_DOT_EXT
const DLLIMPORT wxString XCODE2_DOT_EXT
const DLLIMPORT wxString STATICLIB_DOT_EXT
const DLLIMPORT wxString HH_DOT_EXT
const DLLIMPORT wxString RESOURCE_DOT_EXT
const DLLIMPORT wxString XCODE1_DOT_EXT
const DLLIMPORT wxString XRCRESOURCE_EXT
const DLLIMPORT wxString HPLPL_EXT
const DLLIMPORT wxString HH_EXT
const DLLIMPORT wxString F03_EXT
const DLLIMPORT wxString CPP_EXT
const DLLIMPORT wxString TCC_DOT_EXT
const DLLIMPORT wxString OBJECT_EXT
DLLIMPORT void AddDefaultFileFilters()
Adds file filters for various supported projects and workspaces.
Definition: filefilters.cpp:23
const DLLIMPORT wxString SS_DOT_EXT
const DLLIMPORT wxString F95_DOT_EXT
const DLLIMPORT wxString MSVC6_WORKSPACE_DOT_EXT
const DLLIMPORT wxString ASM_EXT
const DLLIMPORT wxString CODEBLOCKS_DOT_EXT
const DLLIMPORT wxString EXECUTABLE_DOT_EXT
const DLLIMPORT wxString RESOURCE_EXT
const DLLIMPORT wxString F08_DOT_EXT
const DLLIMPORT wxString TPP_DOT_EXT
const DLLIMPORT wxString FOR_EXT
const DLLIMPORT wxString F03_DOT_EXT
const DLLIMPORT wxString MSVC7_EXT