Commit 5631135e authored by claes's avatar claes

Focus input disabled before opening question dialog

parent 251b1344
/* /*
* Proview $Id: wb_wtt_gtk.cpp,v 1.17 2007-09-19 15:10:33 claes Exp $ * Proview $Id: wb_wtt_gtk.cpp,v 1.18 2007-09-21 10:49:39 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
...@@ -2968,3 +2968,9 @@ void WttGtk::popup_button_cb( GtkWidget *w, gpointer data) ...@@ -2968,3 +2968,9 @@ void WttGtk::popup_button_cb( GtkWidget *w, gpointer data)
wtt->message( 'E', wnav_get_message(sts)); wtt->message( 'E', wnav_get_message(sts));
wtt->reset_cursor(); wtt->reset_cursor();
} }
void WttGtk::disable_focus()
{
focustimer.disable( 400);
focustimer.disabled();
}
/* /*
* Proview $Id: wb_wtt_gtk.h,v 1.5 2007-05-16 12:39:14 claes Exp $ * Proview $Id: wb_wtt_gtk.h,v 1.6 2007-09-21 10:49:39 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
...@@ -156,6 +156,7 @@ class WttGtk : public Wtt { ...@@ -156,6 +156,7 @@ class WttGtk : public Wtt {
virtual void update_options_form(); virtual void update_options_form();
virtual void set_options(); virtual void set_options();
virtual void pop(); virtual void pop();
virtual void disable_focus();
void create_options_dialog(); void create_options_dialog();
void create_confirm_dialog(); void create_confirm_dialog();
......
/* /*
* Proview $Id: wb_c_object.cpp,v 1.1 2007-01-04 07:29:03 claes Exp $ * Proview $Id: wb_c_object.cpp,v 1.2 2007-09-21 10:49:39 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
...@@ -319,6 +319,7 @@ static pwr_tStatus DeleteObject ( ...@@ -319,6 +319,7 @@ static pwr_tStatus DeleteObject (
mc = (ldh_sMenuCall *) malloc (sizeof(*mc)); mc = (ldh_sMenuCall *) malloc (sizeof(*mc));
*mc = *ip; *mc = *ip;
ip->wtt->disable_focus();
ip->wnav->wow->DisplayQuestion( ip->wnav, "Delete Object", msg, ip->wnav->wow->DisplayQuestion( ip->wnav, "Delete Object", msg,
DeleteObjectYesCb, DeleteObjectNoCb, (void *)mc); DeleteObjectYesCb, DeleteObjectNoCb, (void *)mc);
//dutl_MessageDialog (ip->WindowContext, dutl_eDialogType_Question, //dutl_MessageDialog (ip->WindowContext, dutl_eDialogType_Question,
...@@ -368,6 +369,7 @@ static pwr_tStatus DeleteObjects ( ...@@ -368,6 +369,7 @@ static pwr_tStatus DeleteObjects (
mc->Selected = (pwr_sAttrRef *)malloc((ip->SelectCount + 1) * sizeof(pwr_sAttrRef)); mc->Selected = (pwr_sAttrRef *)malloc((ip->SelectCount + 1) * sizeof(pwr_sAttrRef));
memcpy(mc->Selected, ip->Selected, (ip->SelectCount + 1) * sizeof(pwr_sAttrRef)); memcpy(mc->Selected, ip->Selected, (ip->SelectCount + 1) * sizeof(pwr_sAttrRef));
ip->wtt->disable_focus();
ip->wnav->wow->DisplayQuestion( ip->wnav, "Delete Selected Object", msg, ip->wnav->wow->DisplayQuestion( ip->wnav, "Delete Selected Object", msg,
DeleteObjectsYesCb, DeleteObjectsNoCb, (void *)mc); DeleteObjectsYesCb, DeleteObjectsNoCb, (void *)mc);
//dutl_MessageDialog (ip->WindowContext, dutl_eDialogType_Question, //dutl_MessageDialog (ip->WindowContext, dutl_eDialogType_Question,
......
/* /*
* Proview $Id: wb_wtt.h,v 1.17 2007-01-04 07:29:04 claes Exp $ * Proview $Id: wb_wtt.h,v 1.18 2007-09-21 10:49:39 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
...@@ -276,6 +276,7 @@ class Wtt : public WUtility { ...@@ -276,6 +276,7 @@ class Wtt : public WUtility {
virtual void update_options_form() {} virtual void update_options_form() {}
virtual void set_options() {} virtual void set_options() {}
virtual void pop() {} virtual void pop() {}
virtual void disable_focus() {}
static int format_selection( void *ctx, pwr_sAttrRef attrref, static int format_selection( void *ctx, pwr_sAttrRef attrref,
......
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