/usr/include/codeblocks/filefilters.h is in codeblocks-dev 10.05-2.1.
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 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 | /*
* 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 FILEFILTERS_H
#define FILEFILTERS_H
#include <wx/string.h>
#include "settings.h"
/** Provides functions and constants regarding
* file extension filters present in file dialogs
* throughout Code::Blocks.
*/
namespace FileFilters
{
/** @brief Adds file filters for various supported projects and workspaces. */
DLLIMPORT void AddDefaultFileFilters();
/** @brief Add a new extension filter.
* @param name The filter's name.
* @param mask The extension masks comma-separated string (i.e. "*.cpp,*.c").
* @return True if added sucessfully, false if not (i.e. empty arguments).
*/
DLLIMPORT bool Add(const wxString& name, const wxString& mask);
/** @brief Generates and returns the filter string for use
* in file dialogs.
* @param ext If not empty, only filters matching this extension will be returned.
* Note that @c ext *must* include the separating dot. It can be a full filename
* if you want, but it *cannot* be just the extension (without the separating dot).
* @return The filter string.
*/
DLLIMPORT wxString GetFilterString(const wxString& ext = wxEmptyString);
/** @brief Generates a simple special filter "All files". No other filters are added.
* @return the "All files" filter.
*/
DLLIMPORT wxString GetFilterAll();
/** @brief Get the filter index for the special "All files" filter.
* @return the "All files" filter index.
*/
DLLIMPORT size_t GetIndexForFilterAll();
/** @brief Get the Filter name for the Index-th filter in the FiltersList
* @param FiltersList The list of Filters
* @param Index The index in the FiltersList of the filter we want to know the name of
* @param FilterName Receives the filters name if found
* @return filter found : yes/no.
*/
DLLIMPORT bool GetFilterNameFromIndex(const wxString& FiltersList, int Index, wxString& FilterName);
/** @brief Get the index of the filter 'FilterName' in the FiltersList
* @param FiltersList The list of Filters
* @param FilterName Name of the filter we want to know the index of
* @param Index Receives the index of the filter if found
* @return filter found : yes/no.
*/
DLLIMPORT bool GetFilterIndexFromName(const wxString& FiltersList, const wxString& FilterName, int& Index);
// file extension constants
// *just* the extension, e.g. "exe"
extern const DLLIMPORT wxString WORKSPACE_EXT;
extern const DLLIMPORT wxString CODEBLOCKS_EXT;
extern const DLLIMPORT wxString DEVCPP_EXT;
extern const DLLIMPORT wxString MSVC6_EXT;
extern const DLLIMPORT wxString MSVC6_WORKSPACE_EXT;
extern const DLLIMPORT wxString MSVC7_EXT;
extern const DLLIMPORT wxString MSVC7_WORKSPACE_EXT;
extern const DLLIMPORT wxString XCODE1_EXT;
extern const DLLIMPORT wxString XCODE2_EXT;
extern const DLLIMPORT wxString ASM_EXT;
extern const DLLIMPORT wxString D_EXT;
extern const DLLIMPORT wxString F_EXT;
extern const DLLIMPORT wxString F77_EXT;
extern const DLLIMPORT wxString F90_EXT;
extern const DLLIMPORT wxString F95_EXT;
extern const DLLIMPORT wxString JAVA_EXT;
extern const DLLIMPORT wxString C_EXT;
extern const DLLIMPORT wxString CC_EXT;
extern const DLLIMPORT wxString CPP_EXT;
extern const DLLIMPORT wxString CXX_EXT;
extern const DLLIMPORT wxString INL_EXT;
extern const DLLIMPORT wxString H_EXT;
extern const DLLIMPORT wxString HH_EXT;
extern const DLLIMPORT wxString HPP_EXT;
extern const DLLIMPORT wxString HXX_EXT;
extern const DLLIMPORT wxString S_EXT;
extern const DLLIMPORT wxString SS_EXT;
extern const DLLIMPORT wxString S62_EXT;
extern const DLLIMPORT wxString OBJECT_EXT;
extern const DLLIMPORT wxString XRCRESOURCE_EXT;
extern const DLLIMPORT wxString STATICLIB_EXT;
extern const DLLIMPORT wxString DYNAMICLIB_EXT;
extern const DLLIMPORT wxString EXECUTABLE_EXT;
extern const DLLIMPORT wxString NATIVE_EXT;
extern const DLLIMPORT wxString RESOURCE_EXT;
extern const DLLIMPORT wxString RESOURCEBIN_EXT;
extern const DLLIMPORT wxString XML_EXT;
extern const DLLIMPORT wxString SCRIPT_EXT;
// a dot *and* the extension, e.g. ".exe"
extern const DLLIMPORT wxString WORKSPACE_DOT_EXT;
extern const DLLIMPORT wxString CODEBLOCKS_DOT_EXT;
extern const DLLIMPORT wxString DEVCPP_DOT_EXT;
extern const DLLIMPORT wxString MSVC6_DOT_EXT;
extern const DLLIMPORT wxString MSVC6_WORKSPACE_DOT_EXT;
extern const DLLIMPORT wxString MSVC7_DOT_EXT;
extern const DLLIMPORT wxString MSVC7_WORKSPACE_DOT_EXT;
extern const DLLIMPORT wxString XCODE1_DOT_EXT;
extern const DLLIMPORT wxString XCODE2_DOT_EXT;
extern const DLLIMPORT wxString ASM_DOT_EXT;
extern const DLLIMPORT wxString D_DOT_EXT;
extern const DLLIMPORT wxString F_DOT_EXT;
extern const DLLIMPORT wxString F77_DOT_EXT;
extern const DLLIMPORT wxString F90_DOT_EXT;
extern const DLLIMPORT wxString F95_DOT_EXT;
extern const DLLIMPORT wxString JAVA_DOT_EXT;
extern const DLLIMPORT wxString C_DOT_EXT;
extern const DLLIMPORT wxString CC_DOT_EXT;
extern const DLLIMPORT wxString CPP_DOT_EXT;
extern const DLLIMPORT wxString CXX_DOT_EXT;
extern const DLLIMPORT wxString INL_DOT_EXT;
extern const DLLIMPORT wxString H_DOT_EXT;
extern const DLLIMPORT wxString HH_DOT_EXT;
extern const DLLIMPORT wxString HPP_DOT_EXT;
extern const DLLIMPORT wxString HXX_DOT_EXT;
extern const DLLIMPORT wxString S_DOT_EXT;
extern const DLLIMPORT wxString SS_DOT_EXT;
extern const DLLIMPORT wxString S62_DOT_EXT;
extern const DLLIMPORT wxString OBJECT_DOT_EXT;
extern const DLLIMPORT wxString XRCRESOURCE_DOT_EXT;
extern const DLLIMPORT wxString STATICLIB_DOT_EXT;
extern const DLLIMPORT wxString DYNAMICLIB_DOT_EXT;
extern const DLLIMPORT wxString EXECUTABLE_DOT_EXT;
extern const DLLIMPORT wxString NATIVE_DOT_EXT;
extern const DLLIMPORT wxString RESOURCE_DOT_EXT;
extern const DLLIMPORT wxString RESOURCEBIN_DOT_EXT;
extern const DLLIMPORT wxString XML_DOT_EXT;
extern const DLLIMPORT wxString SCRIPT_DOT_EXT;
};
#endif // FILEFILTERS_H
|