Commit 88011144 authored by claes's avatar claes

Confirm to delete

parent 703d6df3
/* /*
* Proview $Id: ge.cpp,v 1.31 2008-05-13 13:59:02 claes Exp $ * Proview $Id: ge.cpp,v 1.32 2008-10-16 08:54:31 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB. * Copyright (C) 2005 SSAB Oxelsund AB.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
...@@ -711,9 +711,19 @@ void Ge::activate_preview_stop() ...@@ -711,9 +711,19 @@ void Ge::activate_preview_stop()
set_title(); set_title();
} }
void Ge::delete_yes_cb( Ge *gectx)
{
gectx->graph->delete_select();
}
void Ge::delete_no_cb( Ge *gectx)
{
}
void Ge::activate_delete() void Ge::activate_delete()
{ {
graph->delete_select(); open_yesnodia( "Do you want to delete the selected objects", "Delete",
delete_yes_cb, delete_no_cb);
} }
void Ge::activate_cut() void Ge::activate_cut()
......
/* /*
* Proview $Id: ge.h,v 1.12 2008-05-13 13:59:02 claes Exp $ * Proview $Id: ge.h,v 1.13 2008-10-16 08:55:02 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB. * Copyright (C) 2005 SSAB Oxelsund AB.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
...@@ -261,6 +261,8 @@ class Ge { ...@@ -261,6 +261,8 @@ class Ge {
static void save_graph_and_close( Ge *gectx, char *name); static void save_graph_and_close( Ge *gectx, char *name);
static void ungroup_yes_cb( Ge *gectx); static void ungroup_yes_cb( Ge *gectx);
static void ungroup_no_cb( Ge *gectx); static void ungroup_no_cb( Ge *gectx);
static void delete_yes_cb( Ge *gectx);
static void delete_no_cb( Ge *gectx);
static void recover_dynprop_yes_cb( Ge *gectx); static void recover_dynprop_yes_cb( Ge *gectx);
static void recover_dynprop_no_cb( Ge *gectx); static void recover_dynprop_no_cb( Ge *gectx);
static void exit_save_cb( Ge *gectx); static void exit_save_cb( Ge *gectx);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment