Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

/home/vlg/develop/gwavmerger/src/MergeMapPref.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 //------------------------------------------------------------------------------
00003 //                              MergeMapPref.h
00004 //------------------------------------------------------------------------------
00005 // $Id: MergeMapPref.h,v 1.4 2003/02/07 05:15:10 vlg Exp $
00006 //------------------------------------------------------------------------------
00007 //  Copyright (c) 2001,2002 by Vladislav Grinchenko
00008 //
00009 //  This program is free software; you can redistribute it and/or
00010 //  modify it under the terms of the GNU General Public License
00011 //  as published by the Free Software Foundation; either version
00012 //  2 of the License, or (at your option) any later version.
00013 //------------------------------------------------------------------------------
00014 #ifndef MERGE_MAP_PREF_H
00015 #define MERGE_MAP_PREF_H
00016 
00017 #include <gtkmm/box.h>
00018 #include <gtkmm/entry.h>
00019 
00020 #include <assa/Logger.h>
00021 
00022 class PrefWindow;
00023 
00024 class MergeMapPref : public SigC::Object
00025 {  
00026 public:
00027     MergeMapPref (PrefWindow& pf_);
00028     ~MergeMapPref ();
00029 
00030     Gtk::VBox& get_vbox () { return *m_vbox; }
00031     void show_all ();
00032 
00033     void changed_cb ();
00034 
00035     string get_pre_delay  () const;
00036     string get_post_delay () const;
00037 
00038     void set_pre_delay  (const char* d_);
00039     void set_post_delay (const char* d_);
00040 
00041     void dump () const;
00042 
00043 private:
00044     Gtk::VBox*   m_vbox;
00045     Gtk::Entry*  m_pre_delay_entry;
00046     Gtk::Entry*  m_post_delay_entry;
00047 
00048     PrefWindow&  m_pref_window;
00049 };
00050 
00051 inline
00052 
00053 MergeMapPref::~MergeMapPref ()
00054 {
00055     trace ("MergeMapPref::~MergeMapPref");
00056 }
00057 
00058 inline void 
00059 
00060 MergeMapPref::show_all ()       
00061 { 
00062     trace ("MergeMapPref::show_all");
00063     m_vbox->show_all (); 
00064 }
00065 
00066 inline string
00067 
00068 MergeMapPref::get_pre_delay () const 
00069 { 
00070     trace ("MergeMapPref::get_pre_delay");
00071     string s (m_pre_delay_entry->get_text ());
00072     DL((ASSA::TRACE,"m_pre_delay_entry : \"%s\"\n", s.c_str ()));
00073     return s;
00074 }
00075 
00076 inline string
00077 
00078 MergeMapPref::get_post_delay () const 
00079 { 
00080     return string (m_post_delay_entry->get_text ());
00081 }
00082 
00083 inline void 
00084 
00085 MergeMapPref::set_pre_delay (const char* s_) { m_pre_delay_entry->set_text (s_); }
00086 
00087 inline void
00088 
00089 MergeMapPref::set_post_delay (const char* s_) { m_post_delay_entry->set_text (s_); }
00090 
00091 #endif // MERGE_MAP_PREF_H

Generated on Tue Feb 11 23:05:19 2003 for gwavmerger by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002