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
eb605802
Commit
eb605802
authored
Jun 24, 2008
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
parent
9fea5e9b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
14 deletions
+32
-14
xtt/lib/ge/src/pwr_trafficlight.pwg
xtt/lib/ge/src/pwr_trafficlight.pwg
+8
-6
xtt/lib/ge/src/pwr_trafficlight.pwsg
xtt/lib/ge/src/pwr_trafficlight.pwsg
+1
-0
xtt/lib/xtt/gtk/xtt_fileview_gtk.cpp
xtt/lib/xtt/gtk/xtt_fileview_gtk.cpp
+20
-6
xtt/lib/xtt/gtk/xtt_fileview_gtk.h
xtt/lib/xtt/gtk/xtt_fileview_gtk.h
+3
-2
No files found.
xtt/lib/ge/src/pwr_trafficlight.pwg
View file @
eb605802
...
...
@@ -13,6 +13,7 @@
! DigLowColor <link>GeDynDigLowColor, ,$pwr_lang/man_geref.dat
! DigWarning <link>GeDynDigWarning, ,$pwr_lang/man_geref.dat
! DigError <link>GeDynDigError, ,$pwr_lang/man_geref.dat
!
!*/
1
100 128.017
...
...
@@ -20,19 +21,19 @@
101 20
102 -143
103 -93
104
45.4767
136
45.4767
104
26.0966
136
26.0966
105 100
106 -
50
107 -
33
106 -
29
107 -
18
108 2
109 0
110 2
111 0
116 0
117 0
118 1
99
119 1
55
118 1
38
119 1
26
120 1
121 Claes context
122 0
...
...
@@ -127,6 +128,7 @@ pwr_exe:
1914 0
1918 0
1919 1
1920 0
1917 0
1907 0
1906
...
...
xtt/lib/ge/src/pwr_trafficlight.pwsg
View file @
eb605802
...
...
@@ -20,6 +20,7 @@
1914 0
1918 0
1919 1
1920 0
1917 0
1907 0
1906
...
...
xtt/lib/xtt/gtk/xtt_fileview_gtk.cpp
View file @
eb605802
/*
* Proview $Id: xtt_fileview_gtk.cpp,v 1.
1 2008-04-25 11:08:06
claes Exp $
* Proview $Id: xtt_fileview_gtk.cpp,v 1.
2 2008-06-24 08:09:22
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -128,13 +128,21 @@ void XttFileviewGtk::list_ok_cb ( GtkWidget *w,
// Get value from text entry
char
*
text
,
*
textutf8
;
bool
file_exist
=
false
;
char
input_text
[
200
];
textutf8
=
gtk_editable_get_chars
(
GTK_EDITABLE
(
fileview
->
input_text
),
0
,
-
1
);
text
=
g_convert
(
textutf8
,
-
1
,
"ISO8859-1"
,
"UTF-8"
,
NULL
,
NULL
,
NULL
);
g_free
(
textutf8
);
strncpy
(
input_text
,
text
,
sizeof
(
input_text
));
g_free
(
text
);
if
(
strcmp
(
fileview
->
filetype
,
""
)
!=
0
)
{
if
(
strchr
(
input_text
,
'.'
)
==
0
)
strcat
(
input_text
,
fileview
->
filetype
);
}
for
(
int
i
=
0
;
i
<
fileview
->
filecnt
;
i
++
)
{
if
(
strcmp
(
fileview
->
filelist
[
i
],
text
)
==
0
)
{
if
(
strcmp
(
fileview
->
filelist
[
i
],
input_
text
)
==
0
)
{
file_exist
=
true
;
break
;
}
...
...
@@ -142,9 +150,9 @@ void XttFileviewGtk::list_ok_cb ( GtkWidget *w,
if
(
file_exist
)
{
char
msg
[
200
];
strcpy
(
fileview
->
selected_file
,
text
);
strcpy
(
fileview
->
selected_file
,
input_
text
);
sprintf
(
msg
,
"%s %s
\n
"
,
text
,
Lng
::
translate
(
"already exists"
));
input_
text
,
Lng
::
translate
(
"already exists"
));
sprintf
(
&
msg
[
strlen
(
msg
)],
"%s"
,
Lng
::
translate
(
"Do you want to replace it"
));
((
XNav
*
)
fileview
->
parent_ctx
)
->
wow
->
DisplayQuestion
(
fileview
,
...
...
@@ -152,7 +160,7 @@ void XttFileviewGtk::list_ok_cb ( GtkWidget *w,
msg
,
list_save_cb
,
0
,
0
);
return
;
}
fileview
->
execute
(
text
);
fileview
->
execute
(
input_
text
);
}
gtk_widget_destroy
(
fileview
->
toplevel
);
...
...
@@ -191,7 +199,7 @@ static gboolean list_action_inputfocus( GtkWidget *w, GdkEvent *event, gpointer
XttFileviewGtk
::
XttFileviewGtk
(
void
*
xn_parent_ctx
,
GtkWidget
*
xn_parent_wid
,
pwr_tOid
xn_oid
,
char
*
xn_title
,
char
*
xn_dir
,
char
*
xn_pattern
,
int
xn_type
,
char
*
xn_target_attr
,
char
*
xn_trigger_attr
)
:
char
*
xn_target_attr
,
char
*
xn_trigger_attr
,
char
*
xn_filetype
)
:
filelist
(
0
),
parent_ctx
(
xn_parent_ctx
),
oid
(
xn_oid
),
type
(
xn_type
)
{
pwr_tStatus
sts
;
...
...
@@ -205,6 +213,12 @@ XttFileviewGtk::XttFileviewGtk( void *xn_parent_ctx, GtkWidget *xn_parent_wid, p
strncpy
(
pattern
,
xn_pattern
,
sizeof
(
pattern
));
strncpy
(
target_attr
,
xn_target_attr
,
sizeof
(
target_attr
));
strncpy
(
trigger_attr
,
xn_trigger_attr
,
sizeof
(
trigger_attr
));
if
(
xn_filetype
)
{
strcpy
(
filetype
,
"."
);
strncat
(
filetype
,
xn_filetype
,
sizeof
(
filetype
)
-
1
);
}
else
strcpy
(
filetype
,
""
);
strcpy
(
selected_file
,
""
);
sts
=
gdh_SearchFile
(
oid
,
dir
,
pattern
,
&
filelist
,
&
filecnt
);
...
...
xtt/lib/xtt/gtk/xtt_fileview_gtk.h
View file @
eb605802
/**
* Proview $Id: xtt_fileview_gtk.h,v 1.
1 2008-04-25 11:08:06
claes Exp $
* Proview $Id: xtt_fileview_gtk.h,v 1.
2 2008-06-24 08:09:22
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -28,7 +28,7 @@ class XttFileviewGtk : public XttFileview {
public:
XttFileviewGtk
(
void
*
xn_parent_ctx
,
GtkWidget
*
xn_parent_wid
,
pwr_tOid
xn_oid
,
char
*
xn_title
,
char
*
xn_dir
,
char
*
xn_pattern
,
int
xn_type
,
char
*
xn_target_attr
,
char
*
xn_trigger_attr
);
char
*
xn_target_attr
,
char
*
xn_trigger_attr
,
char
*
xn_filetype
);
~
XttFileviewGtk
()
{}
GtkWidget
*
toplevel
;
...
...
@@ -40,6 +40,7 @@ class XttFileviewGtk : public XttFileview {
pwr_tAName
trigger_attr
;
pwr_tString40
*
filelist
;
pwr_tString40
selected_file
;
pwr_tString40
filetype
;
int
filecnt
;
void
*
parent_ctx
;
pwr_tOid
oid
;
...
...
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