Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

frmSums Class Reference

The application main window. More...

#include <frmSums.hpp>

Collaboration diagram for frmSums:

Collaboration graph
[legend]
List of all members.

Public Member Functions

bool closeAfterInitFromCmdLine (bool error, bool warning)
 Checks if the window should be closed after initialisation from the command line.

 frmSums (const wxChar *title)
 Creates a new frame.

 frmSums (const wxChar *title, int xpos, int ypos, int width, int height)
 Creates a new frame.

 frmSums ()
 Creates a new frame.

void initializeFromCmdLine (bool &error, bool &warning)
 Initializes some parameters from the command line.

virtual ~frmSums ()
 The class descructor.


Protected Types

enum  {
  STB_STATUS = wxID_HIGHEST + 1, LVW_SUMS, ITM_FILE_NEW, ITM_FILE_OPEN,
  MNU_FILE_OPENRECENT, ITM_FILE_OPENRECENT1, ITM_FILE_OPENRECENT2, ITM_FILE_OPENRECENT3,
  ITM_FILE_OPENRECENT4, ITM_FILE_OPENRECENT5, ITM_FILE_OPENRECENT6, ITM_FILE_OPENRECENT7,
  ITM_FILE_OPENRECENT8, ITM_FILE_OPENRECENT9, ITM_FILE_OPENRECENT10, ITM_FILE_OPENRECENT11,
  ITM_FILE_OPENRECENT12, ITM_FILE_OPENRECENT13, ITM_FILE_OPENRECENT14, ITM_FILE_OPENRECENT15,
  ITM_FILE_OPENRECENT16, ITM_FILE_SAVE, ITM_FILE_SAVEAS, ITM_FILE_CLOSE,
  ITM_FILE_QUIT, ITM_SUMS_ADDFILES, ITM_SUMS_ADDDIRECTORIES, ITM_SUMS_ADDMATCHINGFILES,
  ITM_SUMS_REMOVE, ITM_SUMS_CHECK, ITM_SUMS_RECOMPUTE, ITM_SUMS_SORTBY,
  ITM_SUMS_SORTBY_FILENAME, ITM_SUMS_SORTBY_DIRECTORY, ITM_SUMS_SORTBY_CHECKSUMVALUE, ITM_SUMS_SORTBY_STATE,
  ITM_SUMS_SORTBY_SEPARATOR1, ITM_SUMS_SORTBY_ASCENDING, ITM_SUMS_SORTBY_DESCENDING, ITM_SUMS_SORTBY_NONE,
  ITM_SUMS_SELECTALL, ITM_SUMS_INVERTSELECTION, ITM_TOOLS_CHECK_MULTIPLE, ITM_TOOLS_BATCH_CREATION,
  ITM_TOOLS_SHOW_TOOLBAR, ITM_TOOLS_SHOW_STATUSBAR, ITM_TOOLS_CONFIGURE, ITM_HELP_ABOUT
}
 Controls IDs. More...


Protected Member Functions

void addFileNameToOpenRecent (const wxString &fileName)
 Adds a name of file to the open recent submenu.

int checkFileBeforeClose ()
 Checks if the current checksums' file has been saved before closing it.

void createControls ()
 Creates and initializes the controls of the frame.

void createStatusbar ()
 Creates the status bar.

void createToolbar ()
 Creates the tools bar.

void FrameCharHook (wxKeyEvent &event)
 Event handler for a keypressed.

void FrameClose (wxCloseEvent &event)
 Event handler to respond to system close events.

wxString getOpenRecentFileName (const int id)
 Gets the name of the file corresponding to the given identifier.

void initializeOpenRecent ()
 Initializes the open recent files.

void itmFileCloseClick (wxCommandEvent &event)
 Processes menu File->Close.

void itmFileNewClick (wxCommandEvent &event)
 Processes menu File->New.

void itmFileOpenClick (wxCommandEvent &event)
 Processes menu File->Open.

void itmFileOpenRecentClick (wxCommandEvent &event)
 Processes menu File->Open recent.

void itmFileQuitClick (wxCommandEvent &event)
 Processes menu File->Quit.

void itmFileSaveAsClick (wxCommandEvent &event)
 Processes menu File->Save as.

void itmFileSaveClick (wxCommandEvent &event)
 Processes menu File->Save.

void itmHelpAboutClick (wxCommandEvent &event)
 Processes menu Help->About.

void itmSumsAddDirectoriesClick (wxCommandEvent &event)
 Processes menu Sums->Add directories...

void itmSumsAddFilesClick (wxCommandEvent &event)
 Processes menu Sums->Add files...

void itmSumsAddMatchingFilesClick (wxCommandEvent &event)
 Processes menu Sums->Add directories...

void itmSumsCheckClick (wxCommandEvent &event)
 Processes menu Sums->Check.

void itmSumsInvertSelectionClick (wxCommandEvent &event)
 Processes menu Sums->Invert selection.

void itmSumsRecomputeClick (wxCommandEvent &event)
 Processes menu Sums->Recompute.

void itmSumsRemoveClick (wxCommandEvent &event)
 Processes menu Sums->Remove...

void itmSumsSelectAllClick (wxCommandEvent &event)
 Processes menu Sums->Select all.

void itmSumsSortByClick (wxCommandEvent &event)
 Processes menu Sums->Sort by...

void itmSumsSortByUpdate ()
 Update the state of the Sort by...

void itmToolsBatchCreationClick (wxCommandEvent &event)
 Processes menu Tools->Batch creation of checksums' files.

void itmToolsCheckMultipleClick (wxCommandEvent &event)
 Processes menu Tools->Check multiple checksum's files.

void itmToolsConfigureClick (wxCommandEvent &event)
 Processes menu Tools->Configure.

void itmToolsShowStatusbarClick (wxCommandEvent &event)
 Processes menu Tools->Show statusbar.

void itmToolsShowToolbarClick (wxCommandEvent &event)
 Processes menu Tools->Show toolbar.

void lvwSumsColumnClick (wxListEvent &event)
 Processes a click on a header of a column of the list of checksums.

void OnOpenRecentAddFile (wxCommandEvent &event)
 Processes the EVENT_OPEN_RECENT_ADD_FILE event.

void OnUpdateStatusBar (wxCommandEvent &event)
 Processes the EVENT_UPDATE_SUMS_FRAME_STATUSBAR_COMMAND event.

void OnUpdateTitle (wxCommandEvent &event)
 Processes the EVENT_UPDATE_SUMS_FRAME_TITLE_COMMAND event.

bool saveChecksumFile (const wxString &fileName)
 Saves the current ckecksums file.

void updateTitle ()
 Sets the frame title.


Static Protected Member Functions

wxString getOpenRecentConfigKey (const int n)
 Gets the configuration key for the last files' names open recently.

int getOpenRecentHistoryMaxSize ()
 Gets the number of maximal files in the open recent history.


Protected Attributes

ChecksumsListViewlvwSums
 The listview which displays information about checksums.

wxMenu * mnuOpenRecent
 Open recent sub menu.

wxArrayString openRecent
 Open recent files.

wxStatusBar * stbStatus
 The status bar.

wxToolBar * tlbTools
 The tools bar.


Static Protected Attributes

const int TOOL_BITMAP_SIZE = 24
 The maximum size of a toolbar button.


Detailed Description

The application main window.

Definition at line 47 of file frmSums.hpp.


Member Enumeration Documentation

anonymous enum [protected]
 

Controls IDs.

Definition at line 181 of file frmSums.hpp.


Constructor & Destructor Documentation

frmSums::frmSums  ) 
 

Creates a new frame.

Definition at line 164 of file frmSums.cpp.

frmSums::frmSums const wxChar *  title,
int  xpos,
int  ypos,
int  width,
int  height
 

Creates a new frame.

Parameters:
title the window's title.
xpos the horizontal position of the window.
ypos the vertical position of the window.
width the witdh of the window.
height the height of the window.

Definition at line 180 of file frmSums.cpp.

References createControls(), and frmSUMS_STYLE.

frmSums::frmSums const wxChar *  title  ) 
 

Creates a new frame.

Use system defaults for the position and the size of the window.

Parameters:
title the window's title.

Definition at line 194 of file frmSums.cpp.

References createControls(), and frmSUMS_STYLE.

frmSums::~frmSums  )  [virtual]
 

The class descructor.

Definition at line 468 of file frmSums.cpp.


Member Function Documentation

void frmSums::addFileNameToOpenRecent const wxString &  fileName  )  [protected]
 

Adds a name of file to the open recent submenu.

If the file is already in the list it is moved on the first position. If the list is full, the most older entry is erased.

Parameters:
fileName Name of the file to be added is the list of files recently opened.

Definition at line 776 of file frmSums.cpp.

References addFileNameToOpenRecent(), getOpenRecentHistoryMaxSize(), mnuOpenRecent, and openRecent.

Referenced by addFileNameToOpenRecent(), initializeFromCmdLine(), initializeOpenRecent(), OnOpenRecentAddFile(), and saveChecksumFile().

int frmSums::checkFileBeforeClose  )  [protected]
 

Checks if the current checksums' file has been saved before closing it.

Returns:
  • wxYES if the file wasn't modified or if the file has been saved successfully.
  • wxNO if the user doesn't want to save the file.
  • wxCANCEL if the user want to cancel the process (ex: closing the file, creating a new file, opening another file).

Definition at line 711 of file frmSums.cpp.

References APP_NAME, SumFile::getFileName(), SumFile::getModified(), ChecksumsListView::getSumFile(), lvwSums, and saveChecksumFile().

Referenced by FrameClose(), itmFileCloseClick(), itmFileNewClick(), itmFileOpenClick(), and itmFileOpenRecentClick().

bool frmSums::closeAfterInitFromCmdLine bool  error,
bool  warning
 

Checks if the window should be closed after initialisation from the command line.

Parameters:
error An error has occured during the initialisation from the command line parameters.
warning A warning has occured during the initialisation from the command line parameters.
Returns:
true if the window should be closed immediatly, false otherwise.

Definition at line 594 of file frmSums.cpp.

References closeAfterInitFromCmdLine(), DisplayGUI, AppPrefs::get(), ChecksumsListView::getStates(), lvwSums, AppPrefs::readBool(), and AppPrefs::readLong().

Referenced by closeAfterInitFromCmdLine(), and CkSumsApp::OnInit().

void frmSums::createControls  )  [protected]
 

Creates and initializes the controls of the frame.

Definition at line 205 of file frmSums.cpp.

References addMenuItemWithBitmap(), APP_NAME, createStatusbar(), createToolbar(), AppPrefs::get(), AppPrefs::getDefaultMainWindowRect(), initializeOpenRecent(), itmSumsSortByUpdate(), LVW_SUMS_NBCOLS, lvwSums, mnuOpenRecent, AppPrefs::readBool(), AppPrefs::readLong(), AppPrefs::readPoint(), AppPrefs::readSize(), ChecksumsListView::setColumns(), ChecksumsListView::setColumnToSort(), stbStatus, tlbTools, and updateTitle().

Referenced by frmSums().

void frmSums::createStatusbar  )  [protected]
 

Creates the status bar.

Definition at line 448 of file frmSums.cpp.

References stbStatus.

Referenced by createControls().

void frmSums::createToolbar  )  [protected]
 

Creates the tools bar.

Definition at line 413 of file frmSums.cpp.

References APP_NAME, tlbTools, and TOOL_BITMAP_SIZE.

Referenced by createControls().

void frmSums::FrameCharHook wxKeyEvent &  event  )  [protected]
 

Event handler for a keypressed.

Parameters:
event event parameters.

Definition at line 1611 of file frmSums.cpp.

References FrameCharHook().

Referenced by FrameCharHook().

void frmSums::FrameClose wxCloseEvent &  event  )  [protected]
 

Event handler to respond to system close events.

Parameters:
event event parameters.

Definition at line 1544 of file frmSums.cpp.

References APP_NAME, checkFileBeforeClose(), FrameClose(), AppPrefs::get(), ChecksumsListView::getColumns(), ChecksumsListView::getColumnToSort(), SumFile::getModified(), getOpenRecentConfigKey(), ChecksumsListView::getSortOrder(), ChecksumsListView::getSumFile(), LVW_SUMS_NBCOLS, lvwSums, openRecent, AppPrefs::readBool(), updateTitle(), and AppPrefs::write().

Referenced by FrameClose().

wxString frmSums::getOpenRecentConfigKey const int  n  )  [static, protected]
 

Gets the configuration key for the last files' names open recently.

Parameters:
n The nth history configuration key to get.
Returns:
The configuration key for the last files' names open recently or an empty string if n >= getOpenRecentHistoryMaxSize().

Definition at line 851 of file frmSums.cpp.

References getOpenRecentConfigKey(), and getOpenRecentHistoryMaxSize().

Referenced by FrameClose(), getOpenRecentConfigKey(), and initializeOpenRecent().

wxString frmSums::getOpenRecentFileName const int  id  )  [protected]
 

Gets the name of the file corresponding to the given identifier.

Parameters:
id Idenfier of the menu that contain the file name.
Returns:
The name of the file corresponding to the given identifier or an empty string if the identifier is invalid.

Definition at line 833 of file frmSums.cpp.

References getOpenRecentFileName(), and openRecent.

Referenced by getOpenRecentFileName(), and itmFileOpenRecentClick().

int frmSums::getOpenRecentHistoryMaxSize  )  [inline, static, protected]
 

Gets the number of maximal files in the open recent history.

Returns:
The number of maximal files in the open recent history.

Definition at line 867 of file frmSums.cpp.

Referenced by addFileNameToOpenRecent(), getOpenRecentConfigKey(), and initializeOpenRecent().

void frmSums::initializeFromCmdLine bool &  error,
bool &  warning
 

Initializes some parameters from the command line.

Open a file if one has been given in the command line.

Parameters:
error An error has occured during the initialisation from the command line parameters.
warning A warning has occured during the initialisation from the command line parameters.

Definition at line 484 of file frmSums.cpp.

References addFileNameToOpenRecent(), ChecksumsListView::addFiles(), APP_NAME, ChecksumsListView::check(), AppPrefs::get(), CmdLineOptions::getchecksumsFileType(), ChecksumsListView::getSumFile(), initializeFromCmdLine(), lvwSums, ChecksumsListView::openChecksumFile(), AppPrefs::readBool(), AppPrefs::readLong(), ChecksumsListView::reformat(), SumFile::setModified(), ChecksumsListView::setSumFile(), updateTitle(), and SumFile::write().

Referenced by initializeFromCmdLine(), and CkSumsApp::OnInit().

void frmSums::initializeOpenRecent  )  [protected]
 

Initializes the open recent files.

Loads the list from the preferences file and add the entries to the menu.

Definition at line 753 of file frmSums.cpp.

References addFileNameToOpenRecent(), getOpenRecentConfigKey(), and getOpenRecentHistoryMaxSize().

Referenced by createControls().

void frmSums::itmFileCloseClick wxCommandEvent &  event  )  [protected]
 

Processes menu File->Close.

Parameters:
event The event's parameters

Definition at line 1031 of file frmSums.cpp.

References checkFileBeforeClose(), ChecksumsListView::getSumFile(), itmFileCloseClick(), lvwSums, ChecksumsListView::setSumFile(), and updateTitle().

Referenced by itmFileCloseClick().

void frmSums::itmFileNewClick wxCommandEvent &  event  )  [protected]
 

Processes menu File->New.

Parameters:
event The event's parameters

Definition at line 879 of file frmSums.cpp.

References checkFileBeforeClose(), AppPrefs::get(), dlgNewFile::getFileName(), dlgNewFile::getFileType(), itmFileNewClick(), lvwSums, SumFile::setFileName(), ChecksumsListView::setSumFile(), updateTitle(), and AppPrefs::write().

Referenced by itmFileNewClick().

void frmSums::itmFileOpenClick wxCommandEvent &  event  )  [protected]
 

Processes menu File->Open.

Parameters:
event The event's parameters

Definition at line 914 of file frmSums.cpp.

References checkFileBeforeClose(), AppPrefs::get(), wxFileDialogFilterMaker::GetFilters(), itmFileOpenClick(), lvwSums, ChecksumsListView::openChecksumFile(), AppPrefs::readString(), and AppPrefs::write().

Referenced by itmFileOpenClick().

void frmSums::itmFileOpenRecentClick wxCommandEvent &  event  )  [protected]
 

Processes menu File->Open recent.

Parameters:
event The event's parameters

Definition at line 949 of file frmSums.cpp.

References APP_NAME, checkFileBeforeClose(), SumFile::getFileName(), getOpenRecentFileName(), ChecksumsListView::getSumFile(), itmFileOpenRecentClick(), lvwSums, and ChecksumsListView::openChecksumFile().

Referenced by itmFileOpenRecentClick().

void frmSums::itmFileQuitClick wxCommandEvent &  event  )  [protected]
 

Processes menu File->Quit.

Parameters:
event The event's parameters

Definition at line 1052 of file frmSums.cpp.

References itmFileQuitClick().

Referenced by itmFileQuitClick().

void frmSums::itmFileSaveAsClick wxCommandEvent &  event  )  [protected]
 

Processes menu File->Save as.

Parameters:
event The event's parameters

Definition at line 988 of file frmSums.cpp.

References AppPrefs::get(), SumFile::getFileType(), wxFileDialogFilterMaker::GetFilters(), ChecksumsListView::getSumFile(), SumFileFactory::getSumFilesCount(), itmFileSaveAsClick(), lvwSums, AppPrefs::readString(), saveChecksumFile(), updateTitle(), and AppPrefs::write().

Referenced by itmFileSaveAsClick().

void frmSums::itmFileSaveClick wxCommandEvent &  event  )  [protected]
 

Processes menu File->Save.

Parameters:
event The event's parameters

Definition at line 974 of file frmSums.cpp.

References SumFile::getFileName(), SumFile::getModified(), ChecksumsListView::getSumFile(), itmFileSaveClick(), lvwSums, and saveChecksumFile().

Referenced by itmFileSaveClick().

void frmSums::itmHelpAboutClick wxCommandEvent &  event  )  [protected]
 

Processes menu Help->About.

Parameters:
event The event's parameters

Definition at line 1530 of file frmSums.cpp.

References itmHelpAboutClick().

Referenced by itmHelpAboutClick().

void frmSums::itmSumsAddDirectoriesClick wxCommandEvent &  event  )  [protected]
 

Processes menu Sums->Add directories...

Parameters:
event The event's parameters

Definition at line 1077 of file frmSums.cpp.

References itmSumsAddDirectoriesClick(), lvwSums, ChecksumsListView::selectDirectoriesToAdd(), and updateTitle().

Referenced by itmSumsAddDirectoriesClick().

void frmSums::itmSumsAddFilesClick wxCommandEvent &  event  )  [protected]
 

Processes menu Sums->Add files...

Parameters:
event The event's parameters

Definition at line 1064 of file frmSums.cpp.

References itmSumsAddFilesClick(), lvwSums, ChecksumsListView::selectFilesToAdd(), and updateTitle().

Referenced by itmSumsAddFilesClick().

void frmSums::itmSumsAddMatchingFilesClick wxCommandEvent &  event  )  [protected]
 

Processes menu Sums->Add directories...

Parameters:
event The event's parameters

Definition at line 1090 of file frmSums.cpp.

References itmSumsAddMatchingFilesClick(), lvwSums, ChecksumsListView::selectMatchingFilesToAdd(), and updateTitle().

Referenced by itmSumsAddMatchingFilesClick().

void frmSums::itmSumsCheckClick wxCommandEvent &  event  )  [protected]
 

Processes menu Sums->Check.

Parameters:
event The event's parameters

Definition at line 1116 of file frmSums.cpp.

References ChecksumsListView::check(), itmSumsCheckClick(), lvwSums, and updateTitle().

Referenced by itmSumsCheckClick().

void frmSums::itmSumsInvertSelectionClick wxCommandEvent &  event  )  [protected]
 

Processes menu Sums->Invert selection.

Parameters:
event The event's parameters

Definition at line 1262 of file frmSums.cpp.

References ChecksumsListView::invertSelection(), itmSumsInvertSelectionClick(), and lvwSums.

Referenced by itmSumsInvertSelectionClick().

void frmSums::itmSumsRecomputeClick wxCommandEvent &  event  )  [protected]
 

Processes menu Sums->Recompute.

Parameters:
event The event's parameters

Definition at line 1130 of file frmSums.cpp.

References itmSumsRecomputeClick(), lvwSums, ChecksumsListView::recompute(), and updateTitle().

Referenced by itmSumsRecomputeClick().

void frmSums::itmSumsRemoveClick wxCommandEvent &  event  )  [protected]
 

Processes menu Sums->Remove...

Parameters:
event The event's parameters

Definition at line 1103 of file frmSums.cpp.

References itmSumsRemoveClick(), lvwSums, ChecksumsListView::removeSelectedChecksums(), and updateTitle().

Referenced by itmSumsRemoveClick().

void frmSums::itmSumsSelectAllClick wxCommandEvent &  event  )  [protected]
 

Processes menu Sums->Select all.

Parameters:
event The event's parameters

Definition at line 1250 of file frmSums.cpp.

References itmSumsSelectAllClick(), lvwSums, and ChecksumsListView::selectAll().

Referenced by itmSumsSelectAllClick().

void frmSums::itmSumsSortByClick wxCommandEvent &  event  )  [protected]
 

Processes menu Sums->Sort by...

Parameters:
event The event's parameters

Definition at line 1143 of file frmSums.cpp.

References ChecksumsListView::getColumns(), itmSumsSortByClick(), LVW_SUMS_NBCOLS, lvwSums, ChecksumsListView::setColumnToSort(), ChecksumsListView::setSortOrder(), and ChecksumsListView::sort().

Referenced by itmSumsSortByClick().

void frmSums::itmSumsSortByUpdate  )  [protected]
 

Update the state of the Sort by...

submenu.

Checks the menus items corresponding to the new sort order and column.

Definition at line 1200 of file frmSums.cpp.

References ChecksumsListView::getColumns(), ChecksumsListView::getColumnToSort(), ChecksumsListView::getSortOrder(), LVW_SUMS_NBCOLS, and lvwSums.

Referenced by createControls(), and lvwSumsColumnClick().

void frmSums::itmToolsBatchCreationClick wxCommandEvent &  event  )  [protected]
 

Processes menu Tools->Batch creation of checksums' files.

Parameters:
event The event's parameters

Definition at line 1296 of file frmSums.cpp.

References dlgBatchCreationConf::getChecksumsFileTypeToCreate(), dlgFilesSelector::getFileNames(), dlgBatchCreationConf::getOptions(), dlgBatchCreationConf::initialize(), and itmToolsBatchCreationClick().

Referenced by itmToolsBatchCreationClick().

void frmSums::itmToolsCheckMultipleClick wxCommandEvent &  event  )  [protected]
 

Processes menu Tools->Check multiple checksum's files.

Parameters:
event The event's parameters

Definition at line 1274 of file frmSums.cpp.

References dlgFilesSelector::getFileNames(), dlgFilesSelector::initialize(), and itmToolsCheckMultipleClick().

Referenced by itmToolsCheckMultipleClick().

void frmSums::itmToolsConfigureClick wxCommandEvent &  event  )  [protected]
 

Processes menu Tools->Configure.

Parameters:
event The event's parameters

Definition at line 1368 of file frmSums.cpp.

References dlgConfigure::BCErrorColour, dlgConfigure::BCNormalColour, dlgConfigure::BCSuccessColour, dlgConfigure::BCWarningColour, dlgConfigure::cboBCVerbosityLevel, dlgConfigure::cboSFVIdentifyAs, dlgConfigure::chkAutoCheckOnOpen, dlgConfigure::chkCLnVerifyDontShowGUI, dlgConfigure::chkDlgSumUpCheck, dlgConfigure::chkMCChecksumsFileSummary, dlgConfigure::chkMCFileState, dlgConfigure::chkMCGlobalSummary, dlgConfigure::chkMCNoCorrectFileState, dlgConfigure::chkMD5SaveFilesInfo, dlgConfigure::chkMD5SaveGenerator, dlgConfigure::chkSFVSaveFilesInfo, dlgConfigure::chkSFVSaveGenerator, dlgConfigure::chkSumsDirInAbsolutePath, dlgConfigure::chkSumsHRules, dlgConfigure::chkSumsSaveColumnsWidths, dlgConfigure::chkSumsSaveColumnToSort, dlgConfigure::chkSumsVRules, dlgConfigure::chkWarnOnInvalidWhenSaving, dlgConfigure::chkWindowSavePosition, dlgConfigure::chkWindowSaveSize, AppPrefs::get(), ChecksumsListView::getColumns(), Languages::getLanguageShortName(), dlgConfigure::getSFVGeneratorIdentifierConfigKey(), dlgConfigure::getSFVGeneratorIdentifierHistoryMaxSize(), itmToolsConfigureClick(), dlgConfigure::lstLanguages, dlgConfigure::lstSumsHeaders, LVW_SUMS_NBCOLS, lvwSums, dlgConfigure::MCErrorColour, dlgConfigure::MCNormalColour, dlgConfigure::MCSuccessColour, dlgConfigure::MCWarningColour, dlgConfigure::rbtSumsValuesCaseUpper, dlgConfigure::rbxBCOverwriteExistingCkFile, dlgConfigure::rbxBCReplaceFileExtension, dlgConfigure::rbxCLnAppendNeverShowGUI, dlgConfigure::rbxCLnAppendShowGUIOnError, dlgConfigure::rbxCLnAppendShowGUIOnWarning, dlgConfigure::rbxCLnCreateNeverShowGUI, dlgConfigure::rbxCLnCreateShowGUIOnError, dlgConfigure::rbxCLnCreateShowGUIOnWarning, dlgConfigure::rbxMD5EOLWriteMAC, dlgConfigure::rbxMD5EOLWriteUnix, dlgConfigure::rbxMD5EOLWriteWindows, dlgConfigure::rbxMD5PathSepReadAuto, dlgConfigure::rbxMD5PathSepReadUnix, dlgConfigure::rbxMD5PathSepReadWindows, dlgConfigure::rbxMD5PathSepWriteSystem, dlgConfigure::rbxMD5PathSepWriteUnix, dlgConfigure::rbxMD5PathSepWriteWindows, dlgConfigure::rbxSFVEOLWriteMAC, dlgConfigure::rbxSFVEOLWriteUnix, dlgConfigure::rbxSFVEOLWriteWindows, dlgConfigure::rbxSFVPathSepReadAuto, dlgConfigure::rbxSFVPathSepReadUnix, dlgConfigure::rbxSFVPathSepReadWindows, dlgConfigure::rbxSFVPathSepWriteSystem, dlgConfigure::rbxSFVPathSepWriteUnix, dlgConfigure::rbxSFVPathSepWriteWindows, ChecksumsListView::reformat(), ChecksumsListView::setColumns(), dlgConfigure::sptConfigure, AppPrefs::write(), and wxColourToLong().

Referenced by itmToolsConfigureClick().

void frmSums::itmToolsShowStatusbarClick wxCommandEvent &  event  )  [protected]
 

Processes menu Tools->Show statusbar.

Parameters:
event The event's parameters

Definition at line 1346 of file frmSums.cpp.

References AppPrefs::get(), itmToolsShowStatusbarClick(), stbStatus, and AppPrefs::write().

Referenced by itmToolsShowStatusbarClick().

void frmSums::itmToolsShowToolbarClick wxCommandEvent &  event  )  [protected]
 

Processes menu Tools->Show toolbar.

Parameters:
event The event's parameters

Definition at line 1324 of file frmSums.cpp.

References AppPrefs::get(), itmToolsShowToolbarClick(), tlbTools, and AppPrefs::write().

Referenced by itmToolsShowToolbarClick().

void frmSums::lvwSumsColumnClick wxListEvent &  event  )  [protected]
 

Processes a click on a header of a column of the list of checksums.

Parameters:
event event parameters.

Definition at line 1639 of file frmSums.cpp.

References ChecksumsListView::getColumnToSort(), ChecksumsListView::getSortOrder(), itmSumsSortByUpdate(), lvwSums, lvwSumsColumnClick(), ChecksumsListView::setColumnToSort(), ChecksumsListView::setSortOrder(), and ChecksumsListView::sort().

Referenced by lvwSumsColumnClick().

void frmSums::OnOpenRecentAddFile wxCommandEvent &  event  )  [protected]
 

Processes the EVENT_OPEN_RECENT_ADD_FILE event.

The m_commandString member of the event contains the message to display.

Parameters:
event event parameters.

Definition at line 1699 of file frmSums.cpp.

References addFileNameToOpenRecent(), and OnOpenRecentAddFile().

Referenced by OnOpenRecentAddFile().

void frmSums::OnUpdateStatusBar wxCommandEvent &  event  )  [protected]
 

Processes the EVENT_UPDATE_SUMS_FRAME_STATUSBAR_COMMAND event.

The m_commandString member of the event contains the message to display. The m_commandInt member of the event contains the status field (starting from zero) to set.

Parameters:
event event parameters.

Definition at line 1684 of file frmSums.cpp.

References OnUpdateStatusBar().

Referenced by OnUpdateStatusBar().

void frmSums::OnUpdateTitle wxCommandEvent &  event  )  [protected]
 

Processes the EVENT_UPDATE_SUMS_FRAME_TITLE_COMMAND event.

Parameters:
event event parameters.

Definition at line 1667 of file frmSums.cpp.

References OnUpdateTitle(), and updateTitle().

Referenced by OnUpdateTitle().

bool frmSums::saveChecksumFile const wxString &  fileName  )  [protected]
 

Saves the current ckecksums file.

Parameters:
fileName Name of the file where the checksums will be saved. fileName must have an absolute path (not verified by this function).
Returns:
true if the file has been saved successfully in fileName, false otherwise.

Definition at line 662 of file frmSums.cpp.

References addFileNameToOpenRecent(), APP_NAME, AppPrefs::get(), ChecksumsListView::getStates(), ChecksumsListView::getSumFile(), lvwSums, AppPrefs::readBool(), ChecksumsListView::reformat(), saveChecksumFile(), updateTitle(), and SumFile::write().

Referenced by checkFileBeforeClose(), itmFileSaveAsClick(), itmFileSaveClick(), and saveChecksumFile().

void frmSums::updateTitle  )  [protected]
 

Sets the frame title.

Definition at line 627 of file frmSums.cpp.

References APP_NAME, SumFile::getFileName(), SumFile::getFileType(), SumFile::getModified(), ChecksumsListView::getSumFile(), lvwSums, and stbStatus.

Referenced by createControls(), FrameClose(), initializeFromCmdLine(), itmFileCloseClick(), itmFileNewClick(), itmFileSaveAsClick(), itmSumsAddDirectoriesClick(), itmSumsAddFilesClick(), itmSumsAddMatchingFilesClick(), itmSumsCheckClick(), itmSumsRecomputeClick(), itmSumsRemoveClick(), OnUpdateTitle(), and saveChecksumFile().


Member Data Documentation

ChecksumsListView* frmSums::lvwSums [protected]
 

The listview which displays information about checksums.

Definition at line 105 of file frmSums.hpp.

Referenced by checkFileBeforeClose(), closeAfterInitFromCmdLine(), createControls(), FrameClose(), initializeFromCmdLine(), itmFileCloseClick(), itmFileNewClick(), itmFileOpenClick(), itmFileOpenRecentClick(), itmFileSaveAsClick(), itmFileSaveClick(), itmSumsAddDirectoriesClick(), itmSumsAddFilesClick(), itmSumsAddMatchingFilesClick(), itmSumsCheckClick(), itmSumsInvertSelectionClick(), itmSumsRecomputeClick(), itmSumsRemoveClick(), itmSumsSelectAllClick(), itmSumsSortByClick(), itmSumsSortByUpdate(), itmToolsConfigureClick(), lvwSumsColumnClick(), saveChecksumFile(), and updateTitle().

wxMenu* frmSums::mnuOpenRecent [protected]
 

Open recent sub menu.

Definition at line 108 of file frmSums.hpp.

Referenced by addFileNameToOpenRecent(), and createControls().

wxArrayString frmSums::openRecent [protected]
 

Open recent files.

Definition at line 109 of file frmSums.hpp.

Referenced by addFileNameToOpenRecent(), FrameClose(), and getOpenRecentFileName().

wxStatusBar* frmSums::stbStatus [protected]
 

The status bar.

Definition at line 107 of file frmSums.hpp.

Referenced by createControls(), createStatusbar(), itmToolsShowStatusbarClick(), and updateTitle().

wxToolBar* frmSums::tlbTools [protected]
 

The tools bar.

Definition at line 106 of file frmSums.hpp.

Referenced by createControls(), createToolbar(), and itmToolsShowToolbarClick().

const int frmSums::TOOL_BITMAP_SIZE = 24 [static, protected]
 

The maximum size of a toolbar button.

Definition at line 158 of file frmSums.cpp.

Referenced by createToolbar().


The documentation for this class was generated from the following files:
Generated on Sun May 30 13:38:05 2004 for wxChecksums by doxygen 1.3.7