121 static int WorkspaceIconIndex(
bool read_only =
false);
125 static int ProjectIconIndex(
bool read_only =
false);
127 static int FolderIconIndex();
129 static int VirtualFolderIconIndex();
166 #define HL_AUTO _T(" ") 167 #define HL_NONE _T(" ") 207 const wxString& separator = DEFAULT_ARRAY_SEP,
208 bool trimSpaces =
true);
229 const wxString& message =
_(
"Select directory"),
232 bool askToMakeRelative =
false,
233 bool showCreateDirButton =
false);
348 int initialSelection = 0);
359 #if wxCHECK_VERSION(3, 0, 0) 363 #endif // wxCHECK_VERSION 366 const wxString &caption = cbGetTextFromUserPromptStr,
368 int x = wxDefaultCoord,
int y = wxDefaultCoord,
bool centre =
true);
373 msg.
Printf(
_T(
"The file %s could not be found.\nPlease check your installation."), name.
c_str());
415 #endif // SDK_GLOBALS_H FileVisualState
These are valid values for the state of each project file.
DLLIMPORT wxArrayString GetArrayFromString(const wxString &text, const wxString &separator=DEFAULT_ARRAY_SEP, bool trimSpaces=true)
DLLIMPORT wxStringVec GetVectorFromString(const wxString &text, const wxString &separator=DEFAULT_ARRAY_SEP, bool trimSpaces=true)
DLLIMPORT bool NeedQuotes(const wxString &str)
Just here for convenience, "categorise" + "use folders" ON.
DLLIMPORT wxString cbFindFileInPATH(const wxString &filename)
wxBitmap LoadPNGWindows2000Hack(const wxString &filename)
Current user has read-write access to the directory.
SettingsIconsStyle
Icons styles for settings dialogs.
DLLIMPORT const wxString DEFAULT_CONSOLE_TERM
DLLIMPORT bool cbResolveSymLinkedDirPath(wxString &dirpath)
If path is pointing to a symlink then the function will set dirpath parameter to the path the symlink...
DLLIMPORT const wxString cbDEFAULT_OPEN_FOLDER_CMD
DLLIMPORT wxFontEncoding DetectEncodingAndConvert(const char *strIn, wxString &strOut, wxFontEncoding possibleEncoding=wxFONTENCODING_SYSTEM)
Try converting a C-string from different encodings until a possible match is found.
Invalid directory (does not exist).
DLLIMPORT wxBitmap cbLoadBitmap(const wxString &filename, wxBitmapType bitmapType=wxBITMAP_TYPE_PNG)
This function loads a bitmap from disk.
DLLIMPORT wxString cbGetTextFromUser(const wxString &message, const wxString &caption=cbGetTextFromUserPromptStr, const wxString &default_value=wxEmptyString, wxWindow *parent=NULL, int x=wxDefaultCoord, int y=wxDefaultCoord, bool centre=true)
DLLIMPORT SettingsIconsStyle GetSettingsIconsStyle(wxListCtrl *lc)
Get the icons style set in environment-dialog.
DLLIMPORT wxRect cbGetMonitorRectForWindow(wxWindow *window)
DLLIMPORT wxString ChooseDirectory(wxWindow *parent, const wxString &message=_("Select directory"), const wxString &initialPath=_T(""), const wxString &basePath=_T(""), bool askToMakeRelative=false, bool showCreateDirButton=false)
DLLIMPORT bool NormalizePath(wxFileName &f, const wxString &base)
DLLIMPORT int cbGetSingleChoiceIndex(const wxString &message, const wxString &caption, const wxArrayString &choices, wxWindow *parent=NULL, const wxSize &size=wxSize(300, 300), int initialSelection=0)
FileType
Known file types.
DLLIMPORT wxString URLEncode(const wxString &str)
The default style: All "off".
DLLIMPORT wxString GetStringFromArray(const wxArrayString &array, const wxString &separator=DEFAULT_ARRAY_SEP, bool SeparatorAtEnd=true)
DLLIMPORT FileType FileTypeOf(const wxString &filename)
std::vector< wxString > wxStringVec
void NotifyMissingFile(const wxString &name)
DLLIMPORT DirAccessCheck cbDirAccessCheck(const wxString &dir)
Check what access the current user has in a directory.
wxString HighlightLanguage
DLLIMPORT const wxWX2MBbuf cbU2C(const wxString &str)
Return multibyte (C string) representation of the string.
template produces custom output (entirely up to the wizard used)
If true, create folders as needed. If false, the list is flat (not compatible with "hie folder name")...
wxUSE_UNICODE_dependent wxChar
PluginType
Known plugin types.
DLLIMPORT wxString cbReadFileContents(wxFile &file, wxFontEncoding encoding=wxFONTENCODING_SYSTEM)
Reads a wxString from a non-unicode file. File must be open. File is closed automatically.
DLLIMPORT bool UsesCommonControls6()
Check if CommonControls version is at least 6 (XP and up)
DLLIMPORT wxString UnixFilename(const wxString &filename, wxPathFormat format=wxPATH_NATIVE)
If true, the folder name will be hidden and only the file name will be shown (not compatible with "us...
DLLIMPORT const char * cbGetTextFromUserPromptStr
template outputs a new file (or files)
DLLIMPORT const wxString DEFAULT_CONSOLE_SHELL
ModuleType
The type of module offering a context menu.
DLLIMPORT wxString cbC2U(const char *str)
Return str as a proper unicode-compatible string.
DLLIMPORT bool CreateDir(const wxString &full_path, int perms=0755)
DLLIMPORT bool IsSuffixOfPath(wxFileName const &suffix, wxFileName const &path)
DirAccessCheck
Result values of cbDirAccessCheck()
DLLIMPORT wxString cbResolveSymLinkedDirPathRecursive(wxString dirpath)
Call cbResolveSymLinkedPath until the path is not a symlink.
DLLIMPORT bool IsWindowReallyShown(wxWindow *win)
Finds out if a window is really shown.
do not use this, it exists just to know the number of items...
DLLIMPORT wxArrayInt cbGetMultiChoiceDialog(const wxString &message, const wxString &caption, const wxArrayString &choices, wxWindow *parent=nullptr, const wxSize &size=wxSize(300, 300), const wxArrayInt &initialSelection=wxArrayInt())
wxMultiChoiceDialog wrapper.
DLLIMPORT bool cbWrite(wxFile &file, const wxString &buff, wxFontEncoding encoding=wxFONTENCODING_SYSTEM)
Writes a wxString to a non-unicode file. File must be open. File is closed automatically.
DLLIMPORT wxArrayString MakeUniqueArray(const wxArrayString &array, bool caseSens)
const wxString & _(const wxString &string)
DLLIMPORT void QuoteStringIfNeeded(wxString &str)
TemplateOutputType
Template output types.
wxArray< int > wxArrayInt
DLLIMPORT const wxString DEFAULT_ARRAY_SEP
DLLIMPORT void SaveTreeState(wxTreeCtrl *tree, const wxTreeItemId &parent, wxArrayString &nodePaths, wxArrayString &selectedItemPaths)
DLLIMPORT void PlaceWindow(wxTopLevelWindow *w, cbPlaceDialogMode mode=pdlBest, bool enforce=false)
DLLIMPORT void AppendArray(const wxArrayString &from, wxArrayString &to)
DLLIMPORT wxString GetEOLStr(int eolMode=-1)
Reads settings if eolMode is -1 Expected input (defined in sdk/wxscintilla/include/wx/wxscintilla.h) is: wxSCI_EOL_CRLF=0, wxSCI_EOL_CR=1, or wxSCI_EOL_LF=2.
DLLIMPORT bool cbRead(wxFile &file, wxString &st, wxFontEncoding encoding=wxFONTENCODING_SYSTEM)
Reads a wxString from a non-unicode file. File must be open. File is closed automatically.
DLLIMPORT const wxString DEFAULT_WORKSPACE
template adds a new target in a project
DLLIMPORT void SetSettingsIconsStyle(wxListCtrl *lc, SettingsIconsStyle style)
Set the icons style for the supplied list control.
DLLIMPORT bool cbSaveToFile(const wxString &filename, const wxString &contents, wxFontEncoding encoding=wxFONTENCODING_SYSTEM, bool bom=false)
Writes a wxString to a file.
DLLIMPORT wxString MakeUniqueString(const wxString &text, const wxString &separator=DEFAULT_ARRAY_SEP, bool caseSens=true)
template is a user-saved project template
template outputs a new project
DLLIMPORT bool CreateDirRecursively(const wxString &full_path, int perms=0755)
DLLIMPORT wxString ExpandBackticks(wxString &str)
DLLIMPORT wxString EscapeSpaces(const wxString &str)
Escapes spaces and tabs (NOT quoting the string)
int Printf(const wxString &pszFormat,...)
ProjectTreeVisualState
These are valid values for the visual style of the project tree.
DLLIMPORT void RestoreTreeState(wxTreeCtrl *tree, const wxTreeItemId &parent, wxArrayString &nodePaths, wxArrayString &selectedItemPaths)
DLLIMPORT bool cbSaveTinyXMLDocument(TiXmlDocument *doc, const wxString &filename)
Saves a TinyXML document correctly, even if the path contains unicode characters. ...
If true, use virtual folders like "Sources", "Headers", etc.
Current user has read-only access to the directory.
DLLIMPORT int cbMessageBox(const wxString &message, const wxString &caption=wxEmptyString, int style=wxOK, wxWindow *parent=NULL, int x=-1, int y=-1)
wxMessageBox wrapper.
DLLIMPORT wxString realpath(const wxString &path)