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
42e318b1
Commit
42e318b1
authored
Apr 21, 2005
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed to wb_ge.cpp
parent
5fd7bae7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
119 deletions
+0
-119
xtt/exe/wb_ge/src/wb_ge.c
xtt/exe/wb_ge/src/wb_ge.c
+0
-119
No files found.
xtt/exe/wb_ge/src/wb_ge.c
deleted
100644 → 0
View file @
5fd7bae7
/* ge.c -- graphical editor
PROVIEW/R
Copyright (C) 1996 by Comator Process AB.
<Description>. */
#include <stdio.h>
#include <stdlib.h>
#include "pwr.h"
#include <Xm/Xm.h>
#include <Mrm/MrmPublic.h>
#include <X11/Intrinsic.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
typedef
void
*
ldh_tSesContext
;
#include "ge.h"
/* Fallback resources */
static
String
fbr
[]
=
{
NULL
};
static
Widget
toplevel
;
static
Widget
mainwindow
;
#if 0
static void ge_close_cb( void *gectx)
{
ge_del( gectx);
exit(0);
}
#endif
int
main
(
int
argc
,
char
*
argv
[])
{
char
uid_filename
[
120
]
=
{
"pwr_exe:wb.uid"
};
char
*
uid_filename_p
=
uid_filename
;
unsigned
long
sts
;
char
title
[
80
];
XtAppContext
app_ctx
;
MrmHierarchy
s_DRMh
;
MrmType
dclass
;
char
name
[]
=
"Proview/R Ge"
;
char
graph_name
[
80
];
#if !defined OS_VMS
{
char
*
s
;
if
(
(
s
=
getenv
(
"pwr_exe"
))
==
NULL
)
{
printf
(
"** pwr_exe is not defined
\n
"
);
exit
(
0
);
}
sprintf
(
uid_filename
,
"%s/wb.uid"
,
s
);
}
#endif
strcpy
(
title
,
"PROVIEW/R Ge "
);
MrmInitialize
();
toplevel
=
XtVaAppInitialize
(
&
app_ctx
,
"mainwindow"
,
NULL
,
0
,
&
argc
,
argv
,
fbr
,
XtNallowShellResize
,
True
,
XtNtitle
,
title
,
XmNmappedWhenManaged
,
False
,
NULL
);
sts
=
MrmOpenHierarchy
(
1
,
&
uid_filename_p
,
NULL
,
&
s_DRMh
);
if
(
sts
!=
MrmSUCCESS
)
printf
(
"can't open %s
\n
"
,
uid_filename
);
sts
=
MrmFetchWidgetOverride
(
s_DRMh
,
"mainwindow"
,
toplevel
,
name
,
NULL
,
0
,
&
mainwindow
,
&
dclass
);
if
(
sts
!=
MrmSUCCESS
)
printf
(
"can't fetch %s
\n
"
,
name
);
MrmCloseHierarchy
(
s_DRMh
);
XtManageChild
(
mainwindow
);
printf
(
"Argc: %d
\n
"
,
argc
);
if
(
argc
>
1
)
{
printf
(
"Arg: %s
\n
"
,
argv
[
1
]);
if
(
argv
[
1
][
0
]
==
'@'
)
{
// Execute script
void
*
gectx
;
pwr_tStatus
sts
;
gectx
=
ge_new
(
NULL
,
mainwindow
,
0
,
1
,
NULL
);
sts
=
ge_command
(
gectx
,
argv
[
1
]);
if
(
EVEN
(
sts
))
ge_message
(
gectx
,
sts
);
}
else
{
// Open graph
strcpy
(
graph_name
,
argv
[
1
]);
ge_new
(
NULL
,
mainwindow
,
0
,
1
,
graph_name
);
}
}
else
ge_new
(
NULL
,
mainwindow
,
0
,
1
,
NULL
);
XtRealizeWidget
(
toplevel
);
XtAppMainLoop
(
app_ctx
);
return
(
0
);
}
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