/[svn]/gigedit/trunk/src/gigedit/dimensionmanager.cpp
ViewVC logotype

Diff of /gigedit/trunk/src/gigedit/dimensionmanager.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1322 by schoenebeck, Tue Sep 4 11:04:56 2007 UTC revision 1623 by persson, Fri Jan 4 19:42:45 2008 UTC
# Line 1  Line 1 
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
# Line 186  addButton(Gtk::Stock::ADD), removeButton Line 186  addButton(Gtk::Stock::ADD), removeButton
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    
# Line 315  void DimensionManager::removeDimension() Line 315  void DimensionManager::removeDimension()
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);

Legend:
Removed from v.1322  
changed lines
  Added in v.1623

  ViewVC Help
Powered by ViewVC