00001 // -*- c++ -*- 00002 //------------------------------------------------------------------------------ 00003 // FileOpen.h 00004 //------------------------------------------------------------------------------ 00005 // $Id: FileOpen.h,v 1.6 2003/02/07 05:15:09 vlg Exp $ 00006 //------------------------------------------------------------------------------ 00007 // Copyright (c) 2001 by Vladislav Grinchenko 00008 // 00009 // 00010 // This program is free software; you can redistribute it and/or 00011 // modify it under the terms of the GNU General Public License 00012 // as published by the Free Software Foundation; either version 00013 // 2 of the License, or (at your option) any later version. 00014 //------------------------------------------------------------------------------ 00015 #ifndef FILE_OPEN_H 00016 #define FILE_OPEN_H 00017 00018 #include <string> 00019 #include <gtkmm/fileselection.h> 00020 #include "Config.h" 00021 00022 class FileOpen : public Gtk::FileSelection 00023 { 00024 public: 00025 FileOpen (Config& cfg_); 00026 00027 protected: 00028 void ok_cb (); 00029 void cancel_cb (); 00030 00031 private: 00032 FileOpen (const FileOpen&); // cloning is forbidden 00033 FileOpen& operator= (const FileOpen&); 00034 00035 private: 00036 Config& m_config; 00037 }; 00038 00039 00040 #endif /* FILE_OPEN_H */