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
ff017ce5
Commit
ff017ce5
authored
May 13, 2009
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Second window in wb navigator disabled in ProjectList and GblVolumeList
parent
b2393312
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
8 deletions
+24
-8
wb/lib/wb/gtk/wb_wtt_gtk.cpp
wb/lib/wb/gtk/wb_wtt_gtk.cpp
+22
-7
wb/lib/wb/src/wb_wtt.cpp
wb/lib/wb/src/wb_wtt.cpp
+1
-1
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 @
ff017ce5
...
...
@@ -532,6 +532,11 @@ void WttGtk::set_edit_show()
void
WttGtk
::
set_twowindows
(
int
two
,
int
display_wnav
,
int
display_wnavnode
)
{
if
(
disable_w2
)
{
display_wnav
=
1
;
display_wnavnode
=
0
;
two
=
0
;
}
if
(
display_wnav
||
display_wnavnode
)
{
if
(
display_wnav
&&
!
wnav_mapped
)
{
g_object_set
(
wnav_brow_widget
,
"visible"
,
TRUE
,
NULL
);
...
...
@@ -1808,8 +1813,8 @@ WttGtk::WttGtk(
set_focus_disabled
(
0
),
disfocus_timerid
(
0
),
selection_timerid
(
0
),
avoid_deadlock
(
0
),
clock_cursor
(
0
),
realized
(
0
)
{
const
int
window_width
=
900
;
const
int
window_height
=
800
;
int
window_width
=
900
;
int
window_height
=
800
;
// int palette_width = 220;
pwr_tStatus
sts
;
char
title
[
80
];
...
...
@@ -1821,7 +1826,6 @@ WttGtk::WttGtk(
char
layout_palette
[
80
];
char
title_w1
[
40
];
char
title_w2
[
40
];
int
hide_wnavnode
=
0
;
pwr_tFileName
fname
;
if
(
wbctx
&&
volid
)
{
...
...
@@ -1894,7 +1898,9 @@ WttGtk::WttGtk(
strcpy
(
title_w1
,
"Plant Configuration"
);
strcpy
(
title_w2
,
"Node Configuration"
);
sprintf
(
title
,
"PwR Navigator Buffer %s, %s"
,
volname
,
name
);
hide_wnavnode
=
1
;
window_width
=
500
;
window_height
=
400
;
disable_w2
=
1
;
break
;
case
pwr_eClass_ExternVolume
:
{
switch
(
volid
)
{
...
...
@@ -1906,7 +1912,9 @@ WttGtk::WttGtk(
strcpy
(
title_w1
,
"Project List"
);
strcpy
(
title_w2
,
""
);
sprintf
(
title
,
"PwR Project List"
);
hide_wnavnode
=
1
;
window_width
=
500
;
window_height
=
400
;
disable_w2
=
1
;
break
;
case
ldh_cGlobalVolumeListVolume
:
wb_type
=
wb_eType_ExternVolume
;
...
...
@@ -1916,7 +1924,9 @@ WttGtk::WttGtk(
strcpy
(
title_w1
,
"Global Volume List"
);
strcpy
(
title_w2
,
""
);
sprintf
(
title
,
"PwR Global Volume List"
);
hide_wnavnode
=
1
;
window_width
=
500
;
window_height
=
400
;
disable_w2
=
1
;
break
;
case
ldh_cUserDatabaseVolume
:
wb_type
=
wb_eType_ExternVolume
;
...
...
@@ -1926,7 +1936,9 @@ WttGtk::WttGtk(
strcpy
(
title_w1
,
"User Database"
);
strcpy
(
title_w2
,
""
);
sprintf
(
title
,
"PwR User Database"
);
hide_wnavnode
=
1
;
window_width
=
500
;
window_height
=
400
;
disable_w2
=
1
;
break
;
default:
wb_type
=
wb_eType_ExternVolume
;
...
...
@@ -2692,6 +2704,9 @@ WttGtk::WttGtk(
gtk_widget_show_all
(
toplevel
);
realized
=
1
;
if
(
disable_w2
)
wnavnode_mapped
=
0
;
if
(
!
wnav_mapped
)
g_object_set
(
wnav_brow_widget
,
"visible"
,
FALSE
,
NULL
);
if
(
!
wnavnode_mapped
)
...
...
wb/lib/wb/src/wb_wtt.cpp
View file @
ff017ce5
...
...
@@ -2080,7 +2080,7 @@ Wtt::Wtt(
select_attr
(
0
),
select_type
(
0
),
wnav_mapped
(
0
),
wnavnode_mapped
(
0
),
utedctx
(
0
),
wpkg
(
0
),
close_cb
(
0
),
open_volume_cb
(
0
),
open_project_volume_cb
(
0
),
time_to_exit_cb
(
0
),
mcp
(
0
)
mcp
(
0
)
,
disable_w2
(
0
)
{
strcpy
(
name
,
wt_name
);
*
status
=
1
;
...
...
wb/lib/wb/src/wb_wtt.h
View file @
ff017ce5
...
...
@@ -181,6 +181,7 @@ class Wtt : public WUtility {
void
(
*
open_project_volume_cb
)(
void
*
ctx
);
int
(
*
time_to_exit_cb
)(
void
*
ctx
);
ldh_sMenuCall
*
mcp
;
int
disable_w2
;
int
restore_settings
();
int
save_settings
();
...
...
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