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
943d2968
Commit
943d2968
authored
Nov 07, 2013
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ge graph list save confirm options added
parent
68d8758d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
8 deletions
+25
-8
xtt/lib/ge/gtk/ge_gtk.cpp
xtt/lib/ge/gtk/ge_gtk.cpp
+4
-3
xtt/lib/ge/gtk/ge_item_view_gtk.cpp
xtt/lib/ge/gtk/ge_item_view_gtk.cpp
+21
-5
No files found.
xtt/lib/ge/gtk/ge_gtk.cpp
View file @
943d2968
...
@@ -3023,7 +3023,6 @@ GeGtk::GeGtk( void *x_parent_ctx,
...
@@ -3023,7 +3023,6 @@ GeGtk::GeGtk( void *x_parent_ctx,
gtk_paned_pack2
(
GTK_PANED
(
vpaned2
),
((
GraphGtk
*
)
graph
)
->
nav_widget
,
FALSE
,
TRUE
);
gtk_paned_pack2
(
GTK_PANED
(
vpaned2
),
((
GraphGtk
*
)
graph
)
->
nav_widget
,
FALSE
,
TRUE
);
gtk_widget_show
(
((
GraphGtk
*
)
graph
)
->
nav_widget
);
gtk_widget_show
(
((
GraphGtk
*
)
graph
)
->
nav_widget
);
// Horizontal pane
// Horizontal pane
GtkWidget
*
hpaned
=
gtk_hpaned_new
();
GtkWidget
*
hpaned
=
gtk_hpaned_new
();
gtk_paned_pack1
(
GTK_PANED
(
hpaned
),
grow_widget
,
TRUE
,
TRUE
);
gtk_paned_pack1
(
GTK_PANED
(
hpaned
),
grow_widget
,
TRUE
,
TRUE
);
...
@@ -3049,7 +3048,10 @@ GeGtk::GeGtk( void *x_parent_ctx,
...
@@ -3049,7 +3048,10 @@ GeGtk::GeGtk( void *x_parent_ctx,
gtk_widget_show_all
(
toplevel
);
gtk_widget_show_all
(
toplevel
);
gtk_paned_set_position
(
GTK_PANED
(
hpaned
),
window_width
-
palette_width
);
g_object_set
(
graph_list
,
"visible"
,
FALSE
,
NULL
);
gtk_paned_set_position
(
GTK_PANED
(
hpaned2
),
150
);
gtk_paned_set_position
(
GTK_PANED
(
hpaned
),
window_width
-
palette_width
-
45
);
gtk_paned_set_position
(
GTK_PANED
(
vpaned1
),
window_height
-
380
);
gtk_paned_set_position
(
GTK_PANED
(
vpaned1
),
window_height
-
380
);
gtk_paned_set_position
(
GTK_PANED
(
vpaned2
),
window_height
-
290
);
gtk_paned_set_position
(
GTK_PANED
(
vpaned2
),
window_height
-
290
);
...
@@ -3059,7 +3061,6 @@ GeGtk::GeGtk( void *x_parent_ctx,
...
@@ -3059,7 +3061,6 @@ GeGtk::GeGtk( void *x_parent_ctx,
#endif
#endif
g_object_set
(
cmd_prompt
,
"visible"
,
FALSE
,
NULL
);
g_object_set
(
cmd_prompt
,
"visible"
,
FALSE
,
NULL
);
g_object_set
(
cmd_input
,
"visible"
,
FALSE
,
NULL
);
g_object_set
(
cmd_input
,
"visible"
,
FALSE
,
NULL
);
g_object_set
(
graph_list
,
"visible"
,
FALSE
,
NULL
);
subpalette
->
get_path
(
&
path_cnt
,
&
path
);
subpalette
->
get_path
(
&
path_cnt
,
&
path
);
graph
->
set_subgraph_path
(
path_cnt
,
path
);
graph
->
set_subgraph_path
(
path_cnt
,
path
);
...
...
xtt/lib/ge/gtk/ge_item_view_gtk.cpp
View file @
943d2968
...
@@ -213,12 +213,20 @@ void GeItemViewGtk::activate_menu_open( GtkWidget *w, gpointer data)
...
@@ -213,12 +213,20 @@ void GeItemViewGtk::activate_menu_open( GtkWidget *w, gpointer data)
char
message
[
64
];
char
message
[
64
];
sprintf
(
message
,
"Your changes will be lost. Do you want to save?"
);
sprintf
(
message
,
"Your changes will be lost. Do you want to save?"
);
rv
=
ge
->
create_modal_dialog
(
title
,
message
,
"Yes"
,
"No"
,
NULL
,
NULL
);
rv
=
ge
->
create_modal_dialog
(
title
,
message
,
"Yes"
,
"Discard"
,
"Cancel"
,
NULL
);
if
(
rv
==
wow_eModalDialogReturn_Button1
)
{
switch
(
rv
)
{
case
wow_eModalDialogReturn_Button1
:
// Yes
GeGtk
::
activate_save
(
NULL
,
item_view
->
ge_ctx
);
GeGtk
::
activate_save
(
NULL
,
item_view
->
ge_ctx
);
break
;
case
wow_eModalDialogReturn_Button2
:
// Discard
break
;
default:
// Cancel
return
;
}
}
}
}
activate_tree_widget
(
GTK_TREE_VIEW
(
item_view
->
tree_widget
),
NULL
,
NULL
,
ge
);
activate_tree_widget
(
GTK_TREE_VIEW
(
item_view
->
tree_widget
),
NULL
,
NULL
,
ge
);
}
}
...
@@ -385,9 +393,17 @@ void GeItemViewGtk::activate_tree_widget( GtkTreeView *tree_widget, GtkTreePath
...
@@ -385,9 +393,17 @@ void GeItemViewGtk::activate_tree_widget( GtkTreeView *tree_widget, GtkTreePath
char
message
[
64
];
char
message
[
64
];
sprintf
(
message
,
"Your changes will be lost.
\n
Do you want to save?"
);
sprintf
(
message
,
"Your changes will be lost.
\n
Do you want to save?"
);
rv
=
ge
->
create_modal_dialog
(
title
,
message
,
"Yes"
,
"No"
,
NULL
,
NULL
);
rv
=
ge
->
create_modal_dialog
(
title
,
message
,
"Yes"
,
"Discard"
,
"Cancel"
,
NULL
);
if
(
rv
==
wow_eModalDialogReturn_Button1
)
{
switch
(
rv
)
{
case
wow_eModalDialogReturn_Button1
:
// Yes
GeGtk
::
activate_save
(
NULL
,
item_view
->
ge_ctx
);
GeGtk
::
activate_save
(
NULL
,
item_view
->
ge_ctx
);
break
;
case
wow_eModalDialogReturn_Button2
:
// Discard
break
;
default:
return
;
}
}
}
}
}
}
...
...
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