1 |
/* -*- c++ -*- |
/* -*- c++ -*- |
2 |
* Copyright (C) 2006, 2007 Andreas Persson |
* Copyright (C) 2006-2008 Andreas Persson |
3 |
* |
* |
4 |
* This program is free software; you can redistribute it and/or |
* This program is free software; you can redistribute it and/or |
5 |
* modify it under the terms of the GNU General Public License as |
* modify it under the terms of the GNU General Public License as |
186 |
scrolledWindow.add(treeView); |
scrolledWindow.add(treeView); |
187 |
vbox.pack_start(scrolledWindow); |
vbox.pack_start(scrolledWindow); |
188 |
scrolledWindow.show(); |
scrolledWindow.show(); |
189 |
vbox.pack_start(buttonBox); |
vbox.pack_start(buttonBox, Gtk::PACK_SHRINK); |
190 |
buttonBox.set_layout(Gtk::BUTTONBOX_END); |
buttonBox.set_layout(Gtk::BUTTONBOX_END); |
191 |
buttonBox.set_border_width(5); |
buttonBox.set_border_width(5); |
192 |
buttonBox.show(); |
buttonBox.show(); |
193 |
buttonBox.pack_start(addButton); |
buttonBox.pack_start(addButton, Gtk::PACK_SHRINK); |
194 |
buttonBox.pack_start(removeButton); |
buttonBox.pack_start(removeButton, Gtk::PACK_SHRINK); |
195 |
addButton.show(); |
addButton.show(); |
196 |
removeButton.show(); |
removeButton.show(); |
197 |
|
|
315 |
Gtk::TreeModel::Row row = *it; |
Gtk::TreeModel::Row row = *it; |
316 |
gig::dimension_def_t* dim = row[tableModel.m_definition]; |
gig::dimension_def_t* dim = row[tableModel.m_definition]; |
317 |
region->DeleteDimension(dim); |
region->DeleteDimension(dim); |
|
// remove respective row from table |
|
|
refTableModel->erase(it); |
|
318 |
// let everybody know there was a change |
// let everybody know there was a change |
319 |
region_changed_signal.emit(region); |
region_changed_signal.emit(region); |
320 |
|
// update all GUI elements |
321 |
|
refreshManager(); |
322 |
} catch (RIFF::Exception e) { |
} catch (RIFF::Exception e) { |
323 |
// notify that the changes are over (i.e. to avoid dead locks) |
// notify that the changes are over (i.e. to avoid dead locks) |
324 |
region_changed_signal.emit(region); |
region_changed_signal.emit(region); |