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
e242c482
Commit
e242c482
authored
Mar 03, 2008
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Java class menu in alpha order
parent
e2ec3b14
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
78 additions
and
18 deletions
+78
-18
src/exe/co_convert/src/cnv_wbltohtml.cpp
src/exe/co_convert/src/cnv_wbltohtml.cpp
+61
-16
src/exe/co_convert/src/cnv_wbltohtml.h
src/exe/co_convert/src/cnv_wbltohtml.h
+15
-1
src/exe/co_convert/src/co_convert.cpp
src/exe/co_convert/src/co_convert.cpp
+2
-1
No files found.
src/exe/co_convert/src/cnv_wbltohtml.cpp
View file @
e242c482
/*
* Proview $Id: cnv_wbltohtml.cpp,v 1.1
4 2007-09-25 11:15:50
claes Exp $
* Proview $Id: cnv_wbltohtml.cpp,v 1.1
5 2008-03-03 11:01:09
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -21,6 +21,7 @@
#include <iostream.h>
#include <fstream.h>
#include <vector.h>
#include <float.h>
#include <string.h>
#include <stdlib.h>
...
...
@@ -356,6 +357,8 @@ int CnvWblToHtml::close()
"</HTML>"
<<
endl
;
fp_html_index
.
close
();
print_all_menu
();
fp_js_all
<<
"])"
<<
endl
<<
"}"
<<
endl
;
...
...
@@ -463,14 +466,11 @@ int CnvWblToHtml::class_exec()
"<A HREF=
\"
"
<<
html_file_name
<<
".html
\"
TARGET=
\"
classFrame
\"
>"
<<
ctx
->
rw
->
class_name
<<
"</A>"
<<
endl
<<
"<BR>"
<<
endl
;
// Add into AllClasses js file
if
(
!
js_all_first
)
fp_js_all
<<
","
;
else
js_all_first
=
false
;
fp_js_all
<<
"[
\"
"
<<
ctx
->
rw
->
class_name
<<
"
\"
,
\"
"
<<
html_file_name
<<
".html
\"
]"
<<
endl
;
cnv_mentry
mentry
;
strcpy
(
mentry
.
name
,
ctx
->
rw
->
class_name
);
strcpy
(
mentry
.
file
,
html_file_name
);
strcat
(
mentry
.
file
,
".html"
);
all_classes
.
push_back
(
mentry
);
// Add into group file
for
(
int
i
=
0
;
i
<
ctx
->
rw
->
doc_group_cnt
;
i
++
)
{
...
...
@@ -1106,13 +1106,11 @@ int CnvWblToHtml::typedef_exec()
"<BR>"
<<
endl
;
// Add into AllClasses js file
if
(
!
js_all_first
)
fp_js_all
<<
","
;
else
js_all_first
=
false
;
fp_js_all
<<
"[
\"
"
<<
ctx
->
rw
->
class_name
<<
"
\"
,
\"
"
<<
html_file_name
<<
".html
\"
]"
<<
endl
;
cnv_mentry
mentry
;
strcpy
(
mentry
.
name
,
ctx
->
rw
->
class_name
);
strcpy
(
mentry
.
file
,
html_file_name
);
strcat
(
mentry
.
file
,
".html"
);
all_types
.
push_back
(
mentry
);
// Add into group file
for
(
int
i
=
0
;
i
<
ctx
->
rw
->
doc_group_cnt
;
i
++
)
{
...
...
@@ -1306,6 +1304,53 @@ int CnvWblToHtml::typedef_close()
void
CnvWblToHtml
::
print_all_menu
()
{
// Sort
for
(
unsigned
int
i
=
all_types
.
size
()
-
1
;
i
>
0
;
i
--
)
{
for
(
unsigned
int
j
=
0
;
j
<
i
;
j
++
)
{
if
(
!
(
all_types
[
j
]
<
all_types
[
j
+
1
]))
{
cnv_mentry
mi
=
all_types
[
j
+
1
];
all_types
[
j
+
1
]
=
all_types
[
j
];
all_types
[
j
]
=
mi
;
}
}
}
for
(
unsigned
int
i
=
all_classes
.
size
()
-
1
;
i
>
0
;
i
--
)
{
for
(
unsigned
int
j
=
0
;
j
<
i
;
j
++
)
{
if
(
!
(
all_classes
[
j
]
<
all_classes
[
j
+
1
]))
{
cnv_mentry
mi
=
all_classes
[
j
+
1
];
all_classes
[
j
+
1
]
=
all_classes
[
j
];
all_classes
[
j
]
=
mi
;
}
}
}
for
(
unsigned
int
i
=
0
;
i
<
all_types
.
size
();
i
++
)
{
// Add into AllClasses js file
if
(
!
js_all_first
)
fp_js_all
<<
","
;
else
js_all_first
=
false
;
fp_js_all
<<
"[
\"
"
<<
all_types
[
i
].
name
<<
"
\"
,
\"
"
<<
all_types
[
i
].
file
<<
"
\"
]"
<<
endl
;
}
for
(
unsigned
int
i
=
0
;
i
<
all_classes
.
size
();
i
++
)
{
// Add into AllClasses js file
if
(
!
js_all_first
)
fp_js_all
<<
","
;
else
js_all_first
=
false
;
fp_js_all
<<
"[
\"
"
<<
all_classes
[
i
].
name
<<
"
\"
,
\"
"
<<
all_classes
[
i
].
file
<<
"
\"
]"
<<
endl
;
}
}
src/exe/co_convert/src/cnv_wbltohtml.h
View file @
e242c482
/*
* Proview $Id: cnv_wbltohtml.h,v 1.
4 2005-11-14 16:11:23
claes Exp $
* Proview $Id: cnv_wbltohtml.h,v 1.
5 2008-03-03 11:01:09
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -24,6 +24,7 @@
extern
"C"
{
#endif
#include <vector.h>
#include "pwr.h"
#include "cnv_readwbl.h"
#include "cnv_wblto.h"
...
...
@@ -32,6 +33,16 @@ extern "C" {
using
namespace
std
;
class
CnvReadWbl
;
class
cnv_mentry
{
public:
cnv_mentry
()
{}
bool
operator
<
(
const
cnv_mentry
&
x
)
{
return
(
strcmp
(
name
,
x
.
name
)
<
0
);
}
char
name
[
32
];
pwr_tFileName
file
;
};
class
CnvWblToHtml
:
public
CnvWblTo
{
public:
...
...
@@ -53,6 +64,8 @@ class CnvWblToHtml : public CnvWblTo {
bool
js_all_first
;
bool
js_group_first
[
80
];
bool
cdp_created
;
vector
<
cnv_mentry
>
all_types
;
vector
<
cnv_mentry
>
all_classes
;
int
init
(
char
*
first
);
int
close
();
...
...
@@ -71,6 +84,7 @@ class CnvWblToHtml : public CnvWblTo {
int
class_open
()
{
return
html_class_open
;}
int
index_open
()
{
return
html_index_open
;}
void
create_cdp_file
(
char
*
volume_name
,
char
*
class_name
,
char
*
attr_typeref
);
void
print_all_menu
();
};
...
...
src/exe/co_convert/src/co_convert.cpp
View file @
e242c482
/*
* Proview $Id: co_convert.cpp,v 1.1
4 2007-06-29 10:01:06
claes Exp $
* Proview $Id: co_convert.cpp,v 1.1
5 2008-03-03 11:01:45
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -23,6 +23,7 @@
#include <stdlib.h>
#include <iostream.h>
#include <fstream.h>
#include <vector.h>
extern
"C"
{
#include "pwr.h"
...
...
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