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
4114ccaa
Commit
4114ccaa
authored
Jun 07, 2017
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master'
parents
73a393eb
9e32be4a
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
84 additions
and
4 deletions
+84
-4
wb/lib/wb/src/wb_build.cpp
wb/lib/wb/src/wb_build.cpp
+14
-0
wb/lib/wb/src/wb_expwnav.cpp
wb/lib/wb/src/wb_expwnav.cpp
+23
-3
xtt/lib/xtt/gtk/xtt_ge_gtk.cpp
xtt/lib/xtt/gtk/xtt_ge_gtk.cpp
+13
-0
xtt/lib/xtt/gtk/xtt_ge_gtk.h
xtt/lib/xtt/gtk/xtt_ge_gtk.h
+2
-0
xtt/lib/xtt/src/xtt_ge.h
xtt/lib/xtt/src/xtt_ge.h
+2
-0
xtt/lib/xtt/src/xtt_xnav_command.cpp
xtt/lib/xtt/src/xtt_xnav_command.cpp
+30
-1
No files found.
wb/lib/wb/src/wb_build.cpp
View file @
4114ccaa
...
...
@@ -1884,7 +1884,9 @@ void wb_build::directories( char *dir, bld_ePass pass)
// Check if file should be updated
int
update
=
0
;
pwr_tFileName
source
,
target
;
pwr_tFileName
target_dir
;
pwr_tTime
source_time
,
target_time
;
char
*
s
;
strncpy
(
source
,
found_file
,
sizeof
(
source
));
strncpy
(
target
,
line_item
[
3
],
sizeof
(
target
));
...
...
@@ -1911,6 +1913,18 @@ void wb_build::directories( char *dir, bld_ePass pass)
if
(
!
opt
.
force
&&
!
update
)
continue
;
if
(
EVEN
(
sts
))
{
// Check that directory exist, create if it doesn't
strcpy
(
target_dir
,
target
);
if
(
(
s
=
strrchr
(
target_dir
,
'/'
)))
{
*
s
=
0
;
sts
=
dcli_file_time
(
target_dir
,
&
target_time
);
if
(
EVEN
(
sts
))
{
sprintf
(
cmd
,
"mkdir -p %s"
,
target_dir
);
system
(
cmd
);
}
}
}
sprintf
(
cmd
,
"cp %s %s"
,
source
,
target
);
system
(
cmd
);
sprintf
(
cmd
,
"Build: copy %s %s -> %s"
,
line_item
[
1
],
source
,
target
);
...
...
wb/lib/wb/src/wb_expwnav.cpp
View file @
4114ccaa
...
...
@@ -1195,9 +1195,29 @@ pwr_tStatus WbExpWNav::exp()
printf
(
"%s
\n
"
,
cmd
);
sts
=
system
(
cmd
);
if
(
sts
!=
0
)
{
char
msg
[
250
];
snprintf
(
msg
,
sizeof
(
msg
),
"Build error %d, %s"
,
WEXITSTATUS
(
sts
),
cmd
);
MsgWindow
::
message
(
'E'
,
msg
,
msgw_ePop_Default
);
// Check that directory exist, create if it doesn't
pwr_tFileName
target_dir
;
pwr_tTime
target_time
;
char
*
s
;
strcpy
(
target_dir
,
cp
->
target
);
if
(
(
s
=
strrchr
(
target_dir
,
'/'
)))
{
*
s
=
0
;
sts
=
dcli_file_time
(
target_dir
,
&
target_time
);
if
(
EVEN
(
sts
))
{
sprintf
(
cmd
,
"mkdir -p %s"
,
target_dir
);
system
(
cmd
);
sprintf
(
cmd
,
"cp %s %s"
,
cp
->
source
,
cp
->
target
);
printf
(
"%s
\n
"
,
cmd
);
sts
=
system
(
cmd
);
}
}
if
(
sts
!=
0
)
{
char
msg
[
250
];
snprintf
(
msg
,
sizeof
(
msg
),
"Build error %d, %s"
,
WEXITSTATUS
(
sts
),
cmd
);
MsgWindow
::
message
(
'E'
,
msg
,
msgw_ePop_Default
);
}
}
}
}
...
...
xtt/lib/xtt/gtk/xtt_ge_gtk.cpp
View file @
4114ccaa
...
...
@@ -73,6 +73,19 @@ gboolean XttGeGtk::action_inputfocus( GtkWidget *w, GdkEvent *event, gpointer da
return
FALSE
;
}
void
XttGeGtk
::
iconify
(
int
val
)
{
if
(
val
)
gtk_window_iconify
(
GTK_WINDOW
(
toplevel
));
else
gtk_window_deiconify
(
GTK_WINDOW
(
toplevel
));
}
void
XttGeGtk
::
set_below
(
int
val
)
{
gtk_window_set_keep_below
(
GTK_WINDOW
(
toplevel
),
val
);
}
void
XttGeGtk
::
set_size
(
int
width
,
int
height
)
{
int
default_width
;
...
...
xtt/lib/xtt/gtk/xtt_ge_gtk.h
View file @
4114ccaa
...
...
@@ -80,6 +80,8 @@ class XttGeGtk : public XttGe {
void
confirm_reply
(
int
ok
);
void
*
get_widget
()
{
return
toplevel
;}
GtkWidget
*
get_graph_widget
()
{
return
graph_form
;}
void
iconify
(
int
val
);
void
set_below
(
int
val
);
static
void
ge_change_value_cb
(
void
*
ge_ctx
,
void
*
value_object
,
char
*
text
);
static
void
confirm_cb
(
void
*
ge_ctx
,
void
*
confirm_object
,
char
*
text
);
...
...
xtt/lib/xtt/src/xtt_ge.h
View file @
4114ccaa
...
...
@@ -90,6 +90,8 @@ class XttGe : XttUtility {
virtual
void
set_size
(
int
width
,
int
height
)
{}
virtual
void
confirm_reply
(
int
ok
)
{}
virtual
void
*
get_widget
()
{
return
0
;}
virtual
void
iconify
(
int
val
)
{}
virtual
void
set_below
(
int
val
)
{}
xtt_eUtility
get_type
()
{
return
xtt_eUtility_Graph
;}
void
message
(
char
severity
,
const
char
*
msg
);
...
...
xtt/lib/xtt/src/xtt_xnav_command.cpp
View file @
4114ccaa
...
...
@@ -373,7 +373,8 @@ dcli_tCmdTable xnav_command_table[] = {
&
xnav_set_func
,
{
"dcli_arg1"
,
"dcli_arg2"
,
"/NAME"
,
"/VALUE"
,
"/BYPASS"
,
"/PUBLICWRITE"
,
"/INDEX"
,
"/SOURCE"
,
"/OBJECT"
,
"/CONTINUE"
,
"/X0"
,
"/Y0"
,
"/X1"
,
"/Y1"
,
"/INSTANCE"
,
"/ESCAPESTORE"
,
"/FOCUS"
,
"/INPUTEMPTY"
,
"/X0"
,
"/Y0"
,
"/X1"
,
"/Y1"
,
"/INSTANCE"
,
"/ESCAPESTORE"
,
"/FOCUS"
,
"/INPUTEMPTY"
,
"/ICONIFY"
,
"/BELOW"
,
""
}
},
{
...
...
@@ -1234,6 +1235,8 @@ static int xnav_set_func( void *client_data,
pwr_tAName
instance_str
;
char
*
instance_p
=
0
;
char
name_str
[
200
];
char
iconify_str
[
20
];
char
below_str
[
20
];
XttGe
*
gectx
;
if
(
ODD
(
dcli_get_qualifier
(
"/INSTANCE"
,
instance_str
,
sizeof
(
instance_str
))))
...
...
@@ -1252,6 +1255,32 @@ static int xnav_set_func( void *client_data,
if
(
ODD
(
dcli_get_qualifier
(
"/ESCAPESTORE"
,
0
,
0
)))
{
gectx
->
set_object_focus
(
0
,
0
);
}
else
if
(
ODD
(
dcli_get_qualifier
(
"/ICONIFY"
,
iconify_str
,
sizeof
(
iconify_str
))))
{
int
iconify
;
if
(
strcmp
(
iconify_str
,
"1"
)
==
0
)
iconify
=
1
;
else
if
(
strcmp
(
iconify_str
,
"0"
)
==
0
)
iconify
=
0
;
else
{
xnav
->
message
(
'E'
,
"Syntax error"
);
return
XNAV__SUCCESS
;
}
gectx
->
iconify
(
iconify
);
}
else
if
(
ODD
(
dcli_get_qualifier
(
"/BELOW"
,
below_str
,
sizeof
(
below_str
))))
{
int
below
;
if
(
strcmp
(
below_str
,
"1"
)
==
0
)
below
=
1
;
else
if
(
strcmp
(
below_str
,
"0"
)
==
0
)
below
=
0
;
else
{
xnav
->
message
(
'E'
,
"Syntax error"
);
return
XNAV__SUCCESS
;
}
gectx
->
set_below
(
below
);
}
else
{
xnav
->
message
(
'E'
,
"Syntax error"
);
return
XNAV__SUCCESS
;
...
...
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