00001 // -*- c++ -*- 00002 //------------------------------------------------------------------------------ 00003 // MergeDialog_ui.h 00004 //------------------------------------------------------------------------------ 00005 // $Id: MergeDialog_ui.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 _MERGEDIALOG_UI_H 00015 #define _MERGEDIALOG_UI_H 00016 00017 #include <stdlib.h> // atoi(3) 00018 #include <gtkmm/messagedialog.h> 00019 #include <gtkmm/button.h> 00020 #include <gtkmm/label.h> 00021 #include <gtkmm/entry.h> 00022 #include <gtkmm/progressbar.h> 00023 #include <gtkmm/checkbutton.h> 00024 00025 #include "gWavMerger-main.h" 00026 00027 class MergeDialog_ui : public Gtk::Dialog 00028 { 00029 protected: 00030 MergeDialog_ui(); 00031 ~MergeDialog_ui (); 00032 00033 bool make_cd_checked () const; 00034 int first_cd_track (); 00035 00036 protected: 00037 Gtk::Label* m_file_name_label; 00038 Gtk::ProgressBar* m_file_progress; 00039 Gtk::Label* m_total_label; 00040 Gtk::ProgressBar* m_total_progress; 00041 00042 Gtk::CheckButton* m_make_cd; // Lay out CD tracks? 00043 Gtk::Entry* m_first_cd_track; // First CD track starts at 00044 }; 00045 00046 00047 inline 00048 00049 MergeDialog_ui::~MergeDialog_ui () 00050 { 00051 trace ("MergeDialog_ui::~MergeDialog_ui"); 00052 } 00053 00054 inline bool 00055 00056 MergeDialog_ui::make_cd_checked () const 00057 { 00058 return m_make_cd->get_active (); 00059 } 00060 00061 inline int 00062 00063 MergeDialog_ui::first_cd_track () 00064 { 00065 return atoi (m_first_cd_track->get_text ().c_str ()); 00066 } 00067 00068 #endif // _MERGEDIALOG_UI_H