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
199a6d11
Commit
199a6d11
authored
Dec 03, 2018
by
Christoffer Ackelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed all GUI-exe files to select gui according to priority 1.QT 2.GTK 3.MOTIF
parent
9f0278a2
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
108 additions
and
72 deletions
+108
-72
wb/exe/wb/src/wb.cpp
wb/exe/wb/src/wb.cpp
+10
-12
wb/exe/wb_cmd/src/wb_cmd.cpp
wb/exe/wb_cmd/src/wb_cmd.cpp
+15
-16
xtt/exe/co_help/src/co_help.cpp
xtt/exe/co_help/src/co_help.cpp
+12
-8
xtt/exe/pwr_rtmon/src/pwr_rtmon.cpp
xtt/exe/pwr_rtmon/src/pwr_rtmon.cpp
+17
-6
xtt/exe/rt_statusmon/src/rt_statusmon.cpp
xtt/exe/rt_statusmon/src/rt_statusmon.cpp
+16
-5
xtt/exe/rt_xtt/src/rt_xtt.cpp
xtt/exe/rt_xtt/src/rt_xtt.cpp
+10
-12
xtt/exe/rt_xtt_cmd/src/rt_xtt_cmd.cpp
xtt/exe/rt_xtt_cmd/src/rt_xtt_cmd.cpp
+12
-8
xtt/exe/wb_ge/src/wb_ge.cpp
xtt/exe/wb_ge/src/wb_ge.cpp
+16
-5
No files found.
wb/exe/wb/src/wb.cpp
View file @
199a6d11
...
...
@@ -62,20 +62,18 @@ int main(int argc, char* argv[])
}
}
}
if
(
!
found
)
{
struct
stat
st
;
strcpy
(
file
,
"$pwr_exe/wb_qt"
);
dcli_translate_filename
(
file
,
file
);
if
(
stat
(
file
,
&
st
)
==
0
)
strcpy
(
wmg
,
"qt"
);
else
{
strcpy
(
file
,
"$pwr_exe/wb_gtk"
);
if
(
!
found
)
{
const
char
*
flavours
[]
=
{
"qt"
,
"gtk"
,
"motif"
};
for
(
int
i
=
0
;
i
<
3
;
i
++
)
{
strcpy
(
file
,
"$pwr_exe/wb_"
);
strcat
(
file
,
flavours
[
i
]);
dcli_translate_filename
(
file
,
file
);
if
(
stat
(
file
,
&
st
)
==
0
)
strcpy
(
wmg
,
"gtk"
);
else
strcpy
(
wmg
,
"motif"
);
struct
stat
st
;
if
(
stat
(
file
,
&
st
)
==
0
)
{
strcpy
(
wmg
,
flavours
[
i
]);
break
;
}
}
}
...
...
wb/exe/wb_cmd/src/wb_cmd.cpp
View file @
199a6d11
...
...
@@ -68,24 +68,23 @@ int main(int argc, char* argv[])
}
if
(
!
found
)
{
struct
stat
st
;
const
char
*
flavours
[]
=
{
"qt"
,
"gtk"
,
"motif"
};
for
(
int
i
=
0
;
i
<
3
;
i
++
)
{
strcpy
(
file
,
"$pwr_exe/wb_cmd_"
);
strcat
(
file
,
flavours
[
i
]);
dcli_translate_filename
(
file
,
file
);
struct
stat
st
;
if
(
stat
(
file
,
&
st
)
==
0
)
{
strcpy
(
wmg
,
flavours
[
i
]);
break
;
}
strcpy
(
file
,
"$pwr_exe/wb_cmd_qt"
);
dcli_translate_filename
(
file
,
file
);
if
(
stat
(
file
,
&
st
)
!=
0
)
{
strcpy
(
file
,
"$pwr_eexe/wb_cmd_qt"
);
strcpy
(
file
,
"$pwr_eexe/wb_cmd_"
);
strcat
(
file
,
flavours
[
i
]);
dcli_translate_filename
(
file
,
file
);
if
(
stat
(
file
,
&
st
)
!=
0
)
{
strcpy
(
file
,
"$pwr_exe/wb_cmd_gtk"
);
dcli_translate_filename
(
file
,
file
);
if
(
stat
(
file
,
&
st
)
!=
0
)
{
strcpy
(
file
,
"$pwr_eexe/wb_cmd_gtk"
);
dcli_translate_filename
(
file
,
file
);
if
(
stat
(
file
,
&
st
)
!=
0
)
{
printf
(
"** wb_cmd not found %s
\n
"
,
file
);
exit
(
0
);
}
}
if
(
stat
(
file
,
&
st
)
==
0
)
{
strcpy
(
wmg
,
flavours
[
i
]);
break
;
}
}
}
...
...
xtt/exe/co_help/src/co_help.cpp
View file @
199a6d11
...
...
@@ -62,15 +62,19 @@ int main(int argc, char* argv[])
}
}
}
if
(
!
found
)
{
struct
stat
st
;
strcpy
(
file
,
"$pwr_exe/co_help_gtk"
);
dcli_translate_filename
(
file
,
file
);
if
(
stat
(
file
,
&
st
)
==
0
)
strcpy
(
wmg
,
"gtk"
);
else
strcpy
(
wmg
,
"motif"
);
if
(
!
found
)
{
const
char
*
flavours
[]
=
{
"qt"
,
"gtk"
};
for
(
int
i
=
0
;
i
<
2
;
i
++
)
{
strcpy
(
file
,
"$pwr_exe/co_help_"
);
strcat
(
file
,
flavours
[
i
]);
dcli_translate_filename
(
file
,
file
);
struct
stat
st
;
if
(
stat
(
file
,
&
st
)
==
0
)
{
strcpy
(
wmg
,
flavours
[
i
]);
break
;
}
}
}
strcpy
(
file
,
argv
[
0
]);
...
...
xtt/exe/pwr_rtmon/src/pwr_rtmon.cpp
View file @
199a6d11
...
...
@@ -36,16 +36,15 @@
/* pwr_rtmonitor.cpp Runtime Monitor */
#include <stdio.h>
#include <unistd.h>
#include <sys/stat.h>
#include "pwr.h"
#include "co_dcli.h"
#include "co_string.h"
static
void
usage
()
{
printf
(
"
\n
Usage: pwr_rtmon
itor
[-f windowmgr]"
);
printf
(
"
\n
Usage: pwr_rtmon [-f windowmgr]"
);
}
int
main
(
int
argc
,
char
*
argv
[])
...
...
@@ -68,8 +67,20 @@ int main(int argc, char* argv[])
}
}
}
if
(
!
found
)
strcpy
(
wmg
,
"gtk"
);
if
(
!
found
)
{
const
char
*
flavours
[]
=
{
"qt"
,
"gtk"
};
for
(
int
i
=
0
;
i
<
2
;
i
++
)
{
strcpy
(
file
,
"$pwr_exe/pwr_rtmon_"
);
strcat
(
file
,
flavours
[
i
]);
dcli_translate_filename
(
file
,
file
);
struct
stat
st
;
if
(
stat
(
file
,
&
st
)
==
0
)
{
strcpy
(
wmg
,
flavours
[
i
]);
break
;
}
}
}
strcpy
(
file
,
argv
[
0
]);
strcat
(
file
,
"_"
);
...
...
xtt/exe/rt_statusmon/src/rt_statusmon.cpp
View file @
199a6d11
...
...
@@ -36,11 +36,10 @@
/* rt_statusmon.cpp Status Monitor */
#include <stdio.h>
#include <unistd.h>
#include <sys/stat.h>
#include "pwr.h"
#include "co_dcli.h"
#include "co_string.h"
static
void
usage
()
...
...
@@ -68,8 +67,20 @@ int main(int argc, char* argv[])
}
}
}
if
(
!
found
)
strcpy
(
wmg
,
"gtk"
);
if
(
!
found
)
{
const
char
*
flavours
[]
=
{
"qt"
,
"gtk"
};
for
(
int
i
=
0
;
i
<
2
;
i
++
)
{
strcpy
(
file
,
"$pwr_exe/rt_statusmon_"
);
strcat
(
file
,
flavours
[
i
]);
dcli_translate_filename
(
file
,
file
);
struct
stat
st
;
if
(
stat
(
file
,
&
st
)
==
0
)
{
strcpy
(
wmg
,
flavours
[
i
]);
break
;
}
}
}
strcpy
(
file
,
argv
[
0
]);
strcat
(
file
,
"_"
);
...
...
xtt/exe/rt_xtt/src/rt_xtt.cpp
View file @
199a6d11
...
...
@@ -62,20 +62,18 @@ int main(int argc, char* argv[])
}
}
}
if
(
!
found
)
{
struct
stat
st
;
strcpy
(
file
,
"$pwr_exe/rt_xtt_qt"
);
dcli_translate_filename
(
file
,
file
);
if
(
stat
(
file
,
&
st
)
==
0
)
strcpy
(
wmg
,
"qt"
);
else
{
strcpy
(
file
,
"$pwr_exe/rt_xtt_gtk"
);
if
(
!
found
)
{
const
char
*
flavours
[]
=
{
"qt"
,
"gtk"
,
"motif"
};
for
(
int
i
=
0
;
i
<
3
;
i
++
)
{
strcpy
(
file
,
"$pwr_exe/rt_xtt_"
);
strcat
(
file
,
flavours
[
i
]);
dcli_translate_filename
(
file
,
file
);
if
(
stat
(
file
,
&
st
)
==
0
)
strcpy
(
wmg
,
"gtk"
);
else
strcpy
(
wmg
,
"motif"
);
struct
stat
st
;
if
(
stat
(
file
,
&
st
)
==
0
)
{
strcpy
(
wmg
,
flavours
[
i
]);
break
;
}
}
}
...
...
xtt/exe/rt_xtt_cmd/src/rt_xtt_cmd.cpp
View file @
199a6d11
...
...
@@ -62,15 +62,19 @@ int main(int argc, char* argv[])
}
}
}
if
(
!
found
)
{
struct
stat
st
;
strcpy
(
file
,
"$pwr_exe/rt_xtt_cmd_gtk"
);
dcli_translate_filename
(
file
,
file
);
if
(
stat
(
file
,
&
st
)
==
0
)
strcpy
(
wmg
,
"gtk"
);
else
strcpy
(
wmg
,
"motif"
);
if
(
!
found
)
{
const
char
*
flavours
[]
=
{
"qt"
,
"gtk"
};
for
(
int
i
=
0
;
i
<
2
;
i
++
)
{
strcpy
(
file
,
"$pwr_exe/rt_xtt_cmd_"
);
strcat
(
file
,
flavours
[
i
]);
dcli_translate_filename
(
file
,
file
);
struct
stat
st
;
if
(
stat
(
file
,
&
st
)
==
0
)
{
strcpy
(
wmg
,
flavours
[
i
]);
break
;
}
}
}
strcpy
(
file
,
argv
[
0
]);
...
...
xtt/exe/wb_ge/src/wb_ge.cpp
View file @
199a6d11
...
...
@@ -36,11 +36,10 @@
/* wb_ge.c -- graphical editor */
#include <stdio.h>
#include <unistd.h>
#include <sys/stat.h>
#include "pwr.h"
#include "co_dcli.h"
#include "co_string.h"
static
void
usage
()
...
...
@@ -68,8 +67,20 @@ int main(int argc, char* argv[])
}
}
}
if
(
!
found
)
strcpy
(
wmg
,
"gtk"
);
if
(
!
found
)
{
const
char
*
flavours
[]
=
{
"qt"
,
"gtk"
,
"motif"
};
for
(
int
i
=
0
;
i
<
3
;
i
++
)
{
strcpy
(
file
,
"$pwr_exe/wb_ge_"
);
strcat
(
file
,
flavours
[
i
]);
dcli_translate_filename
(
file
,
file
);
struct
stat
st
;
if
(
stat
(
file
,
&
st
)
==
0
)
{
strcpy
(
wmg
,
flavours
[
i
]);
break
;
}
}
}
strcpy
(
file
,
argv
[
0
]);
strcat
(
file
,
"_"
);
...
...
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