extfilefilter.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // gvectors is a frontend to libgvectors using gtkmm.
00004 // Copyright (C) 2007  Rafael Ostertag
00005 //
00006 // This program is free software; you can redistribute it and/or
00007 // modify it under the terms of the GNU General Public License
00008 // as published by the Free Software Foundation; either version 2
00009 // of the License, or (at your option) any later version.
00010 //
00011 // This program is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014 // GNU General Public License for more details.
00015 //
00016 // You should have received a copy of the GNU General Public License
00017 // along with this program; if not, write to the Free Software
00018 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301,
00019 // USA.
00020 //
00021 // $Id: extfilefilter_8h-source.html,v 1.1 2007-09-10 23:31:15 rafi Exp $
00022 //
00023 // File:   extfilefilter.h
00024 // Author: Rafael Ostertag
00025 //
00026 // Created on August 18, 2007, 6:35 PM
00027 //
00028 
00031 
00032 #ifndef _EXTFILEFILTER_H
00033 #define _EXTFILEFILTER_H
00034 
00035 #include <string>
00036 #include <gtkmm.h>
00037 #include "enums.h"
00038 
00041 class ExtFileFilter : public Gtk::FileFilter {
00042 private:
00044     FileType filetype;
00046     std::string extension;
00047     
00048 public:
00049     inline ExtFileFilter() : FileFilter() { ; }
00054     inline void set_filetype(FileType ft) { filetype = ft; }
00058     inline FileType get_filetype() const { return filetype; }
00062     inline void set_extension(const std::string& ext) { extension = ext; }
00066     inline std::string get_extension() const { return extension; }
00067 };
00068 
00069 
00070 #endif  /* _EXTFILEFILTER_H */
00071 

Generated on Tue Sep 11 01:14:27 2007 for gvectors by  doxygen 1.4.7