401 |
ignoreColumnClicked = false; |
ignoreColumnClicked = false; |
402 |
return; |
return; |
403 |
} |
} |
404 |
|
#if (GTKMM_MAJOR_VERSION == 2 && GTKMM_MINOR_VERSION >= 18) || GTKMM_MAJOR_VERSION > 2 |
405 |
// prevents app to crash if this dialog is closed |
// prevents app to crash if this dialog is closed |
406 |
if (!get_visible()) |
if (!get_visible()) |
407 |
return; |
return; |
408 |
|
#else |
409 |
|
# warning Your GTKMM version is too old; dimension manager dialog might crash when changing a dimension type ! |
410 |
|
#endif |
411 |
|
|
412 |
|
#if (GTKMM_MAJOR_VERSION == 3 && GTKMM_MINOR_VERSION >= 8) || GTKMM_MAJOR_VERSION > 3 |
413 |
|
if (!is_visible()) return; |
414 |
|
#endif |
415 |
|
|
416 |
Gtk::TreeModel::Path path; |
Gtk::TreeModel::Path path; |
417 |
Gtk::TreeViewColumn* focus_column; |
Gtk::TreeViewColumn* focus_column; |
419 |
//const int row = path[0]; |
//const int row = path[0]; |
420 |
if (focus_column == treeView.get_column(0)) { |
if (focus_column == treeView.get_column(0)) { |
421 |
Gtk::TreeModel::iterator it = treeView.get_model()->get_iter(path); |
Gtk::TreeModel::iterator it = treeView.get_model()->get_iter(path); |
422 |
|
if (!it) return; |
423 |
Gtk::TreeModel::Row row = *it; |
Gtk::TreeModel::Row row = *it; |
424 |
gig::dimension_t oldType = row[tableModel.m_type]; |
gig::dimension_t oldType = row[tableModel.m_type]; |
425 |
|
|
521 |
msg.run(); |
msg.run(); |
522 |
} |
} |
523 |
} |
} |
524 |
|
} else if (focus_column == treeView.get_column(1) || focus_column == treeView.get_column(2)) { |
525 |
|
Glib::ustring txt = _("Right-click on a specific dimension zone of the dimension region selector to delete or split that particular dimension zone!"); |
526 |
|
Gtk::MessageDialog msg(*this, txt, false, Gtk::MESSAGE_INFO); |
527 |
|
msg.run(); |
528 |
} |
} |
529 |
} |
} |
530 |
|
|