Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
5631135e
Commit
5631135e
authored
Sep 21, 2007
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Focus input disabled before opening question dialog
parent
251b1344
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
4 deletions
+14
-4
wb/lib/wb/gtk/wb_wtt_gtk.cpp
wb/lib/wb/gtk/wb_wtt_gtk.cpp
+7
-1
wb/lib/wb/gtk/wb_wtt_gtk.h
wb/lib/wb/gtk/wb_wtt_gtk.h
+2
-1
wb/lib/wb/src/wb_c_object.cpp
wb/lib/wb/src/wb_c_object.cpp
+3
-1
wb/lib/wb/src/wb_wtt.h
wb/lib/wb/src/wb_wtt.h
+2
-1
No files found.
wb/lib/wb/gtk/wb_wtt_gtk.cpp
View file @
5631135e
/*
/*
* Proview $Id: wb_wtt_gtk.cpp,v 1.1
7 2007-09-19 15:10:33
claes Exp $
* Proview $Id: wb_wtt_gtk.cpp,v 1.1
8 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
();
}
wb/lib/wb/gtk/wb_wtt_gtk.h
View file @
5631135e
/*
/*
* 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
();
...
...
wb/lib/wb/src/wb_c_object.cpp
View file @
5631135e
/*
/*
* 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,
...
...
wb/lib/wb/src/wb_wtt.h
View file @
5631135e
/*
/*
* Proview $Id: wb_wtt.h,v 1.1
7 2007-01-04 07:29:04
claes Exp $
* Proview $Id: wb_wtt.h,v 1.1
8 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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment