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

dlgMultiCheckConf.cpp

Go to the documentation of this file.
00001 /* 00002 * wxChecksums 00003 * Copyright (C) 2003-2004 Julien Couot 00004 * 00005 * This program is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU General Public License 00007 * as published by the Free Software Foundation; either version 2 00008 * of the License, or (at your option) any later version. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with this program; if not, write to the Free Software 00017 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00018 */ 00019 00020 /** 00021 * \file dlgMultiCheckConf.cpp 00022 * Configuration dialog for checking multiple checksums' files. 00023 */ 00024 00025 00026 //--------------------------------------------------------------------------- 00027 // For compilers that support precompilation, includes "wx.h". 00028 #include <wx/wxprec.h> 00029 00030 #ifdef __BORLANDC__ 00031 #pragma hdrstop 00032 #endif 00033 00034 #ifndef WX_PRECOMP 00035 // Include your minimal set of headers here, or wx.h 00036 #include <wx/wx.h> 00037 #endif 00038 00039 #include "dlgMultiCheckConf.hpp" 00040 #include "fileutil.hpp" 00041 00042 #include "compat.hpp" 00043 //--------------------------------------------------------------------------- 00044 00045 00046 /// The C++ standard namespace. 00047 using namespace std; 00048 00049 00050 IMPLEMENT_DYNAMIC_CLASS(dlgMultiCheckConf, dlgFilesSelector) 00051 00052 00053 /** 00054 * Creates a new dialog. 00055 */ 00056 dlgMultiCheckConf::dlgMultiCheckConf() : dlgFilesSelector() 00057 { 00058 } 00059 //--------------------------------------------------------------------------- 00060 00061 00062 /** 00063 * Creates a new dialog. 00064 * 00065 * @param parent Parent of the dialog. 00066 */ 00067 dlgMultiCheckConf::dlgMultiCheckConf(wxWindow* parent) : 00068 dlgFilesSelector(parent) 00069 { 00070 } 00071 //--------------------------------------------------------------------------- 00072 00073 00074 /** 00075 * The class descructor. 00076 */ 00077 dlgMultiCheckConf::~dlgMultiCheckConf() 00078 { 00079 } 00080 //--------------------------------------------------------------------------- 00081 00082 00083 /** 00084 * Gets the root configuration key for parameters of this dialog. 00085 * 00086 * The returned string must be ended the a '<CODE>/</CODE>' character. 00087 * 00088 * @return The root configuration key for parameters of this dialog. 00089 */ 00090 wxString dlgMultiCheckConf::getRootConfigKey() 00091 { 00092 return wxT("GUI/MultiCheckConfigDlg/"); 00093 } 00094 //--------------------------------------------------------------------------- 00095 00096 00097 /** 00098 * Gets the string for the specified UI element. 00099 * 00100 * @param id Identifier of the wanted UI element. 00101 * @return The string for the specified UI element and an empty string if the 00102 * given UI element is invalid. 00103 */ 00104 wxString dlgMultiCheckConf::getUIString(UIStrings id) 00105 { 00106 wxString res; 00107 switch (id) 00108 { 00109 case uiDialogTitle : 00110 res = _("Check multiple checksums' files"); break; 00111 case uiBtnOK : 00112 res = _("&Check"); break; 00113 case uiFraFilesList : 00114 res = _("List of files to c&heck:"); break; 00115 case uiFraSearchFiles : 00116 res = _("Search &for some files to check:"); break; 00117 case uiOpenDlgAddFiles : 00118 res = _("Select the files to be checked"); break; 00119 case uiOpenDlgAddList : 00120 res = _("Add a list of checksums' files"); break; 00121 case uiOpenDlgLoadList : 00122 res = _("Load a list of checksums' files"); break; 00123 case uiSaveDlgAddList : 00124 res = _("Save a list of checksums' files"); break; 00125 }; 00126 00127 return res; 00128 } 00129 //--------------------------------------------------------------------------- 00130 00131 00132 /** 00133 * Returns a set of filters for the "Add files" dialog. 00134 * 00135 * @return A set of filters for the "Add files" dialog. 00136 */ 00137 wxFileDialogFilterMaker dlgMultiCheckConf::getFiltersForAddFilesDialog() 00138 { 00139 return ::getFilterForKnownTypesOfChecksumsFiles(); 00140 } 00141 //--------------------------------------------------------------------------- 00142 00143 00144 /* 00145 BEGIN_EVENT_TABLE(dlgMultiCheckConf, dlgFilesSelector) 00146 END_EVENT_TABLE() 00147 */ 00148 //--------------------------------------------------------------------------- 00149

Generated on Sun May 30 13:37:44 2004 for wxChecksums by doxygen 1.3.7