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

fdftlmk.hpp

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 fdftlmk.hpp 00022 * Files dialog filter maker class. 00023 */ 00024 00025 #ifndef INC_FDFTLMK_HPP 00026 #define INC_FDFTLMK_HPP 00027 00028 //--------------------------------------------------------------------------- 00029 // For compilers that support precompilation, includes "wx.h". 00030 #include <wx/wxprec.h> 00031 00032 #ifdef __BORLANDC__ 00033 #pragma hdrstop 00034 #endif 00035 00036 #ifndef WX_PRECOMP 00037 // Include your minimal set of headers here, or wx.h 00038 #include <wx/wx.h> 00039 #endif 00040 #include <wx/filename.h> 00041 //--------------------------------------------------------------------------- 00042 00043 00044 /** 00045 * Creates filters for the <CODE>wxFileDialog</CODE> class. 00046 * 00047 * - Add the filters with the AddFilter() method. 00048 * - Get the filter string with the GetFilters() method. 00049 */ 00050 class wxFileDialogFilterMaker 00051 { 00052 protected: 00053 wxArrayString descrs; ///< Descriptions of the files types 00054 wxArrayString filters; ///< Filters 00055 00056 // Clones the source instance in this instance. 00057 void clone(const wxFileDialogFilterMaker& source); 00058 00059 public: 00060 // Constructor. 00061 wxFileDialogFilterMaker(); 00062 00063 // Copy constructor. 00064 wxFileDialogFilterMaker(const wxFileDialogFilterMaker& source); 00065 00066 // Assignment operator. 00067 wxFileDialogFilterMaker& operator=(const wxFileDialogFilterMaker& source); 00068 00069 // Adds a filter. 00070 void AddFilter(const wxString& descr, const wxString& filter); 00071 00072 // Gets a string that contains the filters for a wxFileDialog instance. 00073 wxString GetFilters(const wxPathFormat format = wxPATH_NATIVE, 00074 const bool addFiltersInDescriptions = true) const; 00075 }; 00076 //--------------------------------------------------------------------------- 00077 00078 #endif // INC_FDFTLMK_HPP

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