1
/* cdrdao - write audio CD-Rs in disc-at-once mode
3
* Copyright (C) 1998, 1999 Andreas Mueller <mueller@daneb.ping.de>
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 2 of the License, or
8
* (at your option) any later version.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
28
#include "RecordHDTarget.h"
29
#include "MessageBox.h"
34
#include "guiUpdate.h"
37
RecordHDTarget::RecordHDTarget()
47
Gtk::Frame *recordOptionsFrame =
48
manage(new Gtk::Frame(_(" Record Options ")));
50
table = manage(new Gtk::Table(2, 2, false));
51
table->set_row_spacings(2);
52
table->set_col_spacings(10);
53
table->set_border_width(5);
55
recordOptionsFrame->add(*table);
56
recordOptionsFrame->show_all();
57
pack_start(*recordOptionsFrame, Gtk::PACK_SHRINK);
59
label = manage(new Gtk::Label(_("Directory: ")));
60
table->attach(*label, 0, 1, 0, 1, Gtk::FILL);
62
dirEntry_ = manage(new Gnome::UI::FileEntry(_("record_hd_target_dir_entry"),
63
_("Select Directory for Image")));
64
dirEntry_->set_directory_entry(true);
66
table->attach(*dirEntry_, 1, 2, 0, 1);
68
label = manage(new Gtk::Label(_("Name: ")));
69
table->attach(*label, 0, 1, 1, 2, Gtk::FILL);
71
fileNameEntry_ = manage(new Gtk::Entry);
72
table->attach(*fileNameEntry_, 1, 2, 1, 2);
75
void RecordHDTarget::start()
82
void RecordHDTarget::stop()
90
void RecordHDTarget::update(unsigned long level)
96
void RecordHDTarget::cancelAction()
101
std::string RecordHDTarget::getFilename()
103
return fileNameEntry_->get_text();
106
std::string RecordHDTarget::getPath()
108
Gtk::Entry *entry = static_cast<Gtk::Entry *>(dirEntry_->gtk_entry());
109
return entry->get_text();