00001 // -*- c++ -*- 00002 //------------------------------------------------------------------------------ 00003 // InfoMsgPopup.cpp 00004 //------------------------------------------------------------------------------ 00005 // $Id: InfoMsgPopup.cpp,v 1.4 2003/02/07 05:15:09 vlg Exp $ 00006 //------------------------------------------------------------------------------ 00007 // Copyright (c) 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 // 07/07/2002 VLG Created 00015 //------------------------------------------------------------------------------ 00016 00017 #ifdef HAVE_CONFIG_H 00018 # include "config.h" 00019 #endif 00020 00021 #include <gtkmm/button.h> 00022 00023 #include "InfoMsgPopup.h" 00024 #include "gWavMerger-main.h" 00025 00026 00027 InfoMsgPopup::InfoMsgPopup (const string& title_, const string& msg_) 00028 { 00029 trace ("InfoMsgPopup::InfoMsgPopup"); 00030 00031 set_title (title_); 00032 m_msg.add_label (msg_); 00033 set_position (Gtk::WIN_POS_CENTER); 00034 add (m_msg); 00035 m_msg.show (); 00036 } 00037 00038 00039 void 00040 00041 InfoMsgPopup::set_text (const string& title_, const string& msg_) 00042 { 00043 trace ("InfoMsgPopup::set_text"); 00044 00045 set_title (title_.c_str ()); 00046 m_msg.add_label (msg_); 00047 } 00048