#include <wx/wxprec.h>
#include <wx/wx.h>
#include <wx/datetime.h>
#include <wx/dir.h>
#include <wx/filename.h>
#include <wx/tokenzr.h>
#include <climits>
#include "utils.hpp"
#include "comdefs.hpp"
#include "dlgProgress.hpp"
#include "osdep.hpp"
#include "compat.hpp"
Include dependency graph for utils.cpp:

Go to the source code of this file.
Functions | |
| int | compareFileName (const wxString &fn1, const wxString &fn2) | 
| Compares two file names.   | |
| int | FilesInSubdirectoriesCounterConverter (const double pc, const int mn, const int mx) | 
| Convert progress bar counter values.   | |
| void | GetAllTokenCases (wxString token, wxArrayString &tk, size_t p) | 
| Get the given token with all the possible cases.   | |
| wxString | getAppName (bool addVersion) | 
| Gets the application's name.   | |
| bool | getFilesInSubdirectories (const wxArrayString &lFiles, wxArrayString &res, BytesDisplayer &filesSize, const wxString &matchPattern, unsigned int maxDepth) | 
| Find all the files in the subdirectories from a list of files and directories.   | |
| bool | getFilesInSubdirectoriesRec (const wxArrayString &lFiles, wxArrayString &res, BytesDisplayer &filesSize, const wxArrayString &matchPatterns, const unsigned int depth, wxDateTime <, dlgProgress &dlgProgress, double cp, double cpMax) | 
| 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.cpp.
      
  | 
  ||||||||||||
| 
 Compares two file names. Under Windows the comparison is case insensitive. 
 
 
 Definition at line 76 of file utils.cpp. Referenced by dlgFilesSelector::addFileNamesToListView(), dlgAddMatchFiles::addLineToComboBox(), dlgFilesSelector::addLineToComboBox(), removeFilesInListCompare(), and dlgFilesSelector::FilesListValidator::TransferToWindow().  | 
  
      
  | 
  ||||||||||||||||
| 
 Convert progress bar counter values. For getFilesInSubdirectories() and getFilesInSubdirectoriesRec() internal usage only. 
 
 Definition at line 100 of file utils.cpp. Referenced by getFilesInSubdirectoriesRec().  | 
  
      
  | 
  ||||||||||||||||
| 
 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(), dlgAbout::createControls(), dlgConfigure::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.  | 
  
      
  | 
  ||||||||||||||||||||||||||||||||||||||||
| 
 Find all the files in the subdirectories from a list of files and directories. For internal usage only. 
 
 
 Definition at line 130 of file utils.cpp. References FilesInSubdirectoriesCounterConverter(), dlgProgress::isPaused(), dlgProgress::Update(), UPDATE_PROGRESS_DLG, wxCGetFileLength, and wxCOff_t. Referenced by getFilesInSubdirectories().  | 
  
      
  | 
  
| 
 
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().  | 
  
 1.3.7