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.
20
#ifndef __DEVICE_CONF_DIALOG_H
21
#define __DEVICE_CONF_DIALOG_H
28
class DeviceConfDialog : public Gtk::Window
37
void update(unsigned long level);
42
Gtk::TreeIter selectedRow_;
48
unsigned long options;
51
// ------------------------------------- Device TreeView
53
class ListColumns : public Gtk::TreeModel::ColumnRecord {
56
add(dev); add(vendor); add(model); add(status); add(data);
59
Gtk::TreeModelColumn<std::string> dev;
60
Gtk::TreeModelColumn<std::string> vendor;
61
Gtk::TreeModelColumn<std::string> model;
62
Gtk::TreeModelColumn<std::string> status;
63
Gtk::TreeModelColumn<DeviceData*> data;
66
Glib::RefPtr<Gtk::ListStore> listModel_;
67
ListColumns listColumns_;
69
Gtk::Frame listFrame_;
70
Gtk::Frame settingFrame_;
71
Gtk::Frame addDeviceFrame_;
73
Gtk::OptionMenu *driverMenu_;
74
Gtk::OptionMenu *devtypeMenu_;
77
Gtk::Entry vendorEntry_;
78
Gtk::Entry productEntry_;
79
Gtk::Entry driverOptionsEntry_;
81
const char *checkString(const std::string &str);
83
void setDriverId(int);
84
void setDeviceType(int);
86
void selectionChanged();
91
void addDeviceAction();
92
void deleteDeviceAction();
95
Gtk::TreeIter appendTableEntry(CdDevice *);
97
void importConfiguration(Gtk::TreeIter);
101
void exportConfiguration(Gtk::TreeIter);