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
a822b1e1
Commit
a822b1e1
authored
Sep 03, 2015
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wb, backup utility added to menu
parent
e5332cc1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
5 deletions
+34
-5
wb/lib/wb/gtk/wb_wtt_gtk.cpp
wb/lib/wb/gtk/wb_wtt_gtk.cpp
+24
-5
wb/lib/wb/gtk/wb_wtt_gtk.h
wb/lib/wb/gtk/wb_wtt_gtk.h
+1
-0
wb/lib/wb/src/wb_wtt.cpp
wb/lib/wb/src/wb_wtt.cpp
+8
-0
wb/lib/wb/src/wb_wtt.h
wb/lib/wb/src/wb_wtt.h
+1
-0
No files found.
wb/lib/wb/gtk/wb_wtt_gtk.cpp
View file @
a822b1e1
...
...
@@ -1395,6 +1395,12 @@ void WttGtk::activate_clonevolume( GtkWidget *w, gpointer data)
wtt
->
activate_clonevolume
();
}
void
WttGtk
::
activate_backupfile
(
GtkWidget
*
w
,
gpointer
data
)
{
Wtt
*
wtt
=
(
Wtt
*
)
data
;
wtt
->
activate_backupfile
();
}
void
WttGtk
::
activate_zoom_in
(
GtkWidget
*
w
,
gpointer
data
)
{
Wtt
*
wtt
=
(
Wtt
*
)
data
;
...
...
@@ -2601,10 +2607,6 @@ WttGtk::WttGtk(
g_signal_connect
(
menu_updateclasses_w
,
"activate"
,
G_CALLBACK
(
WttGtk
::
activate_updateclasses
),
this
);
menu_clonevolume_w
=
gtk_menu_item_new_with_mnemonic
(
"C_lone Volume"
);
g_signal_connect
(
menu_clonevolume_w
,
"activate"
,
G_CALLBACK
(
WttGtk
::
activate_clonevolume
),
this
);
GtkWidget
*
functions_showcrossref
=
gtk_menu_item_new_with_mnemonic
(
"Show C_rossreferences"
);
g_signal_connect
(
functions_showcrossref
,
"activate"
,
G_CALLBACK
(
WttGtk
::
activate_showcrossref
),
this
);
...
...
@@ -2629,6 +2631,23 @@ WttGtk::WttGtk(
'b'
,
GdkModifierType
(
GDK_CONTROL_MASK
),
GTK_ACCEL_VISIBLE
);
// More submenu
menu_clonevolume_w
=
gtk_menu_item_new_with_mnemonic
(
"C_lone Volume"
);
g_signal_connect
(
menu_clonevolume_w
,
"activate"
,
G_CALLBACK
(
WttGtk
::
activate_clonevolume
),
this
);
GtkWidget
*
functions_backupfile
=
gtk_menu_item_new_with_mnemonic
(
"_Backupfile Utility"
);
g_signal_connect
(
functions_backupfile
,
"activate"
,
G_CALLBACK
(
WttGtk
::
activate_backupfile
),
this
);
GtkWidget
*
functions_more
=
gtk_menu_item_new_with_mnemonic
(
"_More"
);
GtkMenu
*
functions_more_menu
=
(
GtkMenu
*
)
g_object_new
(
GTK_TYPE_MENU
,
NULL
);
gtk_menu_shell_append
(
GTK_MENU_SHELL
(
functions_more_menu
),
menu_clonevolume_w
);
gtk_menu_shell_append
(
GTK_MENU_SHELL
(
functions_more_menu
),
functions_backupfile
);
gtk_menu_item_set_submenu
(
GTK_MENU_ITEM
(
functions_more
),
GTK_WIDGET
(
functions_more_menu
));
GtkMenu
*
functions_menu
=
(
GtkMenu
*
)
g_object_new
(
GTK_TYPE_MENU
,
NULL
);
gtk_menu_shell_append
(
GTK_MENU_SHELL
(
functions_menu
),
functions_build
);
gtk_menu_shell_append
(
GTK_MENU_SHELL
(
functions_menu
),
menu_utilities_w
);
...
...
@@ -2639,11 +2658,11 @@ WttGtk::WttGtk(
gtk_menu_shell_append
(
GTK_MENU_SHELL
(
functions_menu
),
functions_openge
);
gtk_menu_shell_append
(
GTK_MENU_SHELL
(
functions_menu
),
menu_classeditor_w
);
gtk_menu_shell_append
(
GTK_MENU_SHELL
(
functions_menu
),
menu_updateclasses_w
);
gtk_menu_shell_append
(
GTK_MENU_SHELL
(
functions_menu
),
menu_clonevolume_w
);
gtk_menu_shell_append
(
GTK_MENU_SHELL
(
functions_menu
),
functions_showcrossref
);
gtk_menu_shell_append
(
GTK_MENU_SHELL
(
functions_menu
),
functions_syntax
);
gtk_menu_shell_append
(
GTK_MENU_SHELL
(
functions_menu
),
menu_change_value_w
);
gtk_menu_shell_append
(
GTK_MENU_SHELL
(
functions_menu
),
functions_command
);
gtk_menu_shell_append
(
GTK_MENU_SHELL
(
functions_menu
),
functions_more
);
GtkWidget
*
functions
=
gtk_menu_item_new_with_mnemonic
(
"F_unctions"
);
gtk_menu_shell_append
(
GTK_MENU_SHELL
(
menu_bar
),
functions
);
...
...
wb/lib/wb/gtk/wb_wtt_gtk.h
View file @
a822b1e1
...
...
@@ -248,6 +248,7 @@ class WttGtk : public Wtt {
static
void
activate_showcrossref
(
GtkWidget
*
w
,
gpointer
data
);
static
void
activate_updateclasses
(
GtkWidget
*
w
,
gpointer
data
);
static
void
activate_clonevolume
(
GtkWidget
*
w
,
gpointer
data
);
static
void
activate_backupfile
(
GtkWidget
*
w
,
gpointer
data
);
static
void
activate_zoom_in
(
GtkWidget
*
w
,
gpointer
data
);
static
void
activate_zoom_out
(
GtkWidget
*
w
,
gpointer
data
);
static
void
activate_zoom_reset
(
GtkWidget
*
w
,
gpointer
data
);
...
...
wb/lib/wb/src/wb_wtt.cpp
View file @
a822b1e1
...
...
@@ -2158,6 +2158,14 @@ void Wtt::activate_clonevolume()
reset_cursor
();
}
void
Wtt
::
activate_backupfile
()
{
char
cmd
[
80
]
=
"backup show"
;
if
(
!
focused_wnav
)
set_focus_default
();
focused_wnav
->
command
(
cmd
);
}
void
Wtt
::
activate_zoom_in
()
{
double
zoom_factor
;
...
...
wb/lib/wb/src/wb_wtt.h
View file @
a822b1e1
...
...
@@ -260,6 +260,7 @@ class Wtt : public WUtility {
void
activate_showcrossref
();
void
activate_updateclasses
();
void
activate_clonevolume
();
void
activate_backupfile
();
void
activate_zoom_in
();
void
activate_zoom_out
();
void
activate_zoom_reset
();
...
...
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