#include <wx/wxprec.h>
#include <wx/wx.h>
#include <wx/filename.h>
#include "bytedisp.hpp"
Include dependency graph for utils.hpp:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Functions | |
int | compareFileName (const wxString &fn1, const wxString &fn2) |
Compares two file names. | |
void | GetAllTokenCases (wxString token, wxArrayString &tk, size_t p=0) |
Get the given token with all the possible cases. | |
wxString | getAppName (bool addVersion=true) |
Gets the application's name. | |
bool | getFilesInSubdirectories (const wxArrayString &lFiles, wxArrayString &res, BytesDisplayer &filesSize, const wxString &matchPattern=wxEmptyString, unsigned int maxDepth=0) |
Find all the files in the subdirectories from a list of files and directories. | |
wxColour | longTowxColour (long value) |
Convert a long value to a wxColour value. | |
void | ToLower (wxString &s, size_t idx) |
Convert the specified character to the lower case. | |
void | ToUpper (wxString &s, size_t idx) |
Convert the specified character to the upper case. | |
long | wxColourToLong (const wxColour &value) |
Convert a wxColour value to a long value. |
Definition in file utils.hpp.
|
Compares two file names. Under Windows the comparison is case insensitive.
Definition at line 76 of file utils.cpp. Referenced by dlgFilesSelector::addFileNamesToListView(), dlgFilesSelector::addLineToComboBox(), dlgAddMatchFiles::addLineToComboBox(), removeFilesInListCompare(), and dlgFilesSelector::FilesListValidator::TransferToWindow(). |
|
Get the given token with all the possible cases. Result is added to tk.
Definition at line 392 of file utils.cpp. References ToLower(), and ToUpper(). Referenced by getFilesInSubdirectories(), and wxFileDialogFilterMaker::GetFilters(). |
|
Gets the application's name.
Definition at line 293 of file utils.cpp. References APP_MAJOR_VER, APP_MINOR_VER, APP_NAME, APP_SPECIAL, and APP_SUBVER. Referenced by dlgAddMatchFiles::btnSaveListClick(), dlgConfigure::createControls(), dlgAbout::createControls(), CmdLineOptions::init(), CkSumsApp::OnInitCmdLine(), and MD5File::write(). |
|
Find all the files in the subdirectories from a list of files and directories.
A matching pattern can be speficied. Wildcards are
The depth of recursion can be
Definition at line 247 of file utils.cpp. References GetAllTokenCases(), getFilesInSubdirectoriesRec(), dlgProgress::Update(), and UPDATE_PROGRESS_DLG. |
|
Convert a
Definition at line 336 of file utils.cpp. Referenced by dlgResultsProgress::getColour(). |
|
Convert the specified character to the lower case.
Definition at line 353 of file utils.cpp. Referenced by GetAllTokenCases(). |
|
Convert the specified character to the upper case.
Definition at line 372 of file utils.cpp. Referenced by GetAllTokenCases(). |
|
Convert a
Definition at line 318 of file utils.cpp. Referenced by frmSums::itmToolsConfigureClick(). |