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
f45d78f7
Commit
f45d78f7
authored
Oct 06, 2017
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wb, view all toplevel in configurator menu
parent
4371075e
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
4 deletions
+38
-4
wb/lib/wb/gtk/wb_wtt_gtk.cpp
wb/lib/wb/gtk/wb_wtt_gtk.cpp
+19
-1
wb/lib/wb/gtk/wb_wtt_gtk.h
wb/lib/wb/gtk/wb_wtt_gtk.h
+3
-1
wb/lib/wb/src/wb_wtt.cpp
wb/lib/wb/src/wb_wtt.cpp
+14
-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 @
f45d78f7
...
@@ -1437,6 +1437,19 @@ void WttGtk::activate_twowindows( GtkWidget *w, gpointer data)
...
@@ -1437,6 +1437,19 @@ void WttGtk::activate_twowindows( GtkWidget *w, gpointer data)
wtt
->
activate_twowindows
();
wtt
->
activate_twowindows
();
}
}
void
WttGtk
::
activate_set_alltoplevel
(
GtkWidget
*
w
,
gpointer
data
)
{
Wtt
*
wtt
=
(
Wtt
*
)
data
;
int
set
=
(
int
)
gtk_check_menu_item_get_active
(
GTK_CHECK_MENU_ITEM
(
((
WttGtk
*
)
wtt
)
->
view_alltoplevel_w
));
if
(
w
!=
((
WttGtk
*
)
wtt
)
->
view_alltoplevel_w
)
{
set
=
!
set
;
gtk_check_menu_item_set_active
(
GTK_CHECK_MENU_ITEM
(
((
WttGtk
*
)
wtt
)
->
view_alltoplevel_w
),
set
?
TRUE
:
FALSE
);
}
wtt
->
activate_set_alltoplevel
(
set
);
}
void
WttGtk
::
activate_messages
(
GtkWidget
*
w
,
gpointer
data
)
void
WttGtk
::
activate_messages
(
GtkWidget
*
w
,
gpointer
data
)
{
{
Wtt
*
wtt
=
(
Wtt
*
)
data
;
Wtt
*
wtt
=
(
Wtt
*
)
data
;
...
@@ -2716,6 +2729,10 @@ WttGtk::WttGtk(
...
@@ -2716,6 +2729,10 @@ WttGtk::WttGtk(
't'
,
GdkModifierType
(
GDK_CONTROL_MASK
),
't'
,
GdkModifierType
(
GDK_CONTROL_MASK
),
GTK_ACCEL_VISIBLE
);
GTK_ACCEL_VISIBLE
);
view_alltoplevel_w
=
gtk_check_menu_item_new_with_mnemonic
(
"V_iew all toplevel"
);
g_signal_connect
(
view_alltoplevel_w
,
"activate"
,
G_CALLBACK
(
activate_set_alltoplevel
),
this
);
GtkWidget
*
view_messages
=
gtk_menu_item_new_with_mnemonic
(
"_Messages"
);
GtkWidget
*
view_messages
=
gtk_menu_item_new_with_mnemonic
(
"_Messages"
);
g_signal_connect
(
view_messages
,
"activate"
,
g_signal_connect
(
view_messages
,
"activate"
,
G_CALLBACK
(
WttGtk
::
activate_messages
),
this
);
G_CALLBACK
(
WttGtk
::
activate_messages
),
this
);
...
@@ -2726,6 +2743,7 @@ WttGtk::WttGtk(
...
@@ -2726,6 +2743,7 @@ WttGtk::WttGtk(
gtk_menu_shell_append
(
GTK_MENU_SHELL
(
view_menu
),
view_zoom_out
);
gtk_menu_shell_append
(
GTK_MENU_SHELL
(
view_menu
),
view_zoom_out
);
gtk_menu_shell_append
(
GTK_MENU_SHELL
(
view_menu
),
view_zoom_reset
);
gtk_menu_shell_append
(
GTK_MENU_SHELL
(
view_menu
),
view_zoom_reset
);
gtk_menu_shell_append
(
GTK_MENU_SHELL
(
view_menu
),
view_twowindows
);
gtk_menu_shell_append
(
GTK_MENU_SHELL
(
view_menu
),
view_twowindows
);
gtk_menu_shell_append
(
GTK_MENU_SHELL
(
view_menu
),
view_alltoplevel_w
);
gtk_menu_shell_append
(
GTK_MENU_SHELL
(
view_menu
),
view_messages
);
gtk_menu_shell_append
(
GTK_MENU_SHELL
(
view_menu
),
view_messages
);
GtkWidget
*
view
=
gtk_menu_item_new_with_mnemonic
(
"_View"
);
GtkWidget
*
view
=
gtk_menu_item_new_with_mnemonic
(
"_View"
);
...
...
wb/lib/wb/gtk/wb_wtt_gtk.h
View file @
f45d78f7
...
@@ -132,6 +132,7 @@ class WttGtk : public Wtt {
...
@@ -132,6 +132,7 @@ class WttGtk : public Wtt {
GtkWidget
*
tools_edit_w
;
GtkWidget
*
tools_edit_w
;
GtkWidget
*
tools_buildnode_w
;
GtkWidget
*
tools_buildnode_w
;
GtkWidget
*
tools_save_w
;
GtkWidget
*
tools_save_w
;
GtkWidget
*
view_alltoplevel_w
;
GtkAccelGroup
*
accel_g
;
GtkAccelGroup
*
accel_g
;
int
set_focus_disabled
;
int
set_focus_disabled
;
gint
disfocus_timerid
;
gint
disfocus_timerid
;
...
@@ -255,6 +256,7 @@ class WttGtk : public Wtt {
...
@@ -255,6 +256,7 @@ class WttGtk : public Wtt {
static
void
activate_zoom_out
(
GtkWidget
*
w
,
gpointer
data
);
static
void
activate_zoom_out
(
GtkWidget
*
w
,
gpointer
data
);
static
void
activate_zoom_reset
(
GtkWidget
*
w
,
gpointer
data
);
static
void
activate_zoom_reset
(
GtkWidget
*
w
,
gpointer
data
);
static
void
activate_twowindows
(
GtkWidget
*
w
,
gpointer
data
);
static
void
activate_twowindows
(
GtkWidget
*
w
,
gpointer
data
);
static
void
activate_set_alltoplevel
(
GtkWidget
*
w
,
gpointer
data
);
static
void
activate_messages
(
GtkWidget
*
w
,
gpointer
data
);
static
void
activate_messages
(
GtkWidget
*
w
,
gpointer
data
);
static
void
activate_view
(
GtkWidget
*
w
,
gpointer
data
);
static
void
activate_view
(
GtkWidget
*
w
,
gpointer
data
);
static
void
activate_savesettings
(
GtkWidget
*
w
,
gpointer
data
);
static
void
activate_savesettings
(
GtkWidget
*
w
,
gpointer
data
);
...
...
wb/lib/wb/src/wb_wtt.cpp
View file @
f45d78f7
...
@@ -2227,6 +2227,19 @@ void Wtt::activate_scriptbase()
...
@@ -2227,6 +2227,19 @@ void Wtt::activate_scriptbase()
focused_wnav
->
command
(
cmd
);
focused_wnav
->
command
(
cmd
);
}
}
void
Wtt
::
activate_set_alltoplevel
(
int
view
)
{
char
cmd
[
80
];
if
(
view
)
strcpy
(
cmd
,
"set alltoplevel"
);
else
strcpy
(
cmd
,
"set noalltoplevel"
);
wnav
->
command
(
cmd
);
wnavnode
->
command
(
cmd
);
}
void
Wtt
::
activate_help
()
void
Wtt
::
activate_help
()
{
{
char
cmd
[
80
]
=
"help overview /base"
;
char
cmd
[
80
]
=
"help overview /base"
;
...
...
wb/lib/wb/src/wb_wtt.h
View file @
f45d78f7
...
@@ -270,6 +270,7 @@ class Wtt : public WUtility {
...
@@ -270,6 +270,7 @@ class Wtt : public WUtility {
void
activate_messages
();
void
activate_messages
();
void
activate_scriptproj
();
void
activate_scriptproj
();
void
activate_scriptbase
();
void
activate_scriptbase
();
void
activate_set_alltoplevel
(
int
view
);
void
activate_help
();
void
activate_help
();
void
activate_help_project
();
void
activate_help_project
();
void
activate_help_proview
();
void
activate_help_proview
();
...
...
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