Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
doxverilog
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
doxverilog
Commits
1e870492
Commit
1e870492
authored
Dec 24, 2013
by
Dimitri van Heesch
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:doxygen/doxygen
parents
31527356
b834da5a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
14 deletions
+44
-14
htmldocvisitor.cpp
src/htmldocvisitor.cpp
+6
-2
msc.cpp
src/msc.cpp
+34
-10
msc.h
src/msc.h
+4
-2
No files found.
src/htmldocvisitor.cpp
View file @
1e870492
...
...
@@ -2031,8 +2031,12 @@ void HtmlDocVisitor::writeMscFile(const QCString &fileName,
}
baseName
.
prepend
(
"msc_"
);
QCString
outDir
=
Config_getString
(
"HTML_OUTPUT"
);
writeMscGraphFromFile
(
fileName
,
outDir
,
baseName
,
MSC_BITMAP
);
writeMscImageMapFromFile
(
m_t
,
fileName
,
outDir
,
relPath
,
baseName
,
context
);
QCString
imgExt
=
Config_getEnum
(
"DOT_IMAGE_FORMAT"
);
MscOutputFormat
mscFormat
=
MSC_BITMAP
;
if
(
"svg"
==
imgExt
)
mscFormat
=
MSC_SVG
;
writeMscGraphFromFile
(
fileName
,
outDir
,
baseName
,
mscFormat
);
writeMscImageMapFromFile
(
m_t
,
fileName
,
outDir
,
relPath
,
baseName
,
context
,
mscFormat
);
}
void
HtmlDocVisitor
::
writeDiaFile
(
const
QCString
&
fileName
,
...
...
src/msc.cpp
View file @
1e870492
...
...
@@ -103,15 +103,22 @@ void writeMscGraphFromFile(const char *inFile,const char *outDir,
QCString
mscExe
=
Config_getString
(
"MSCGEN_PATH"
)
+
"mscgen"
+
portable_commandExtension
();
QCString
mscArgs
;
QCString
extension
;
if
(
format
==
MSC_BITMAP
)
switch
(
format
)
{
mscArgs
+=
"-T png"
;
extension
=
".png"
;
}
else
if
(
format
==
MSC_EPS
)
{
mscArgs
+=
"-T eps"
;
extension
=
".eps"
;
case
MSC_BITMAP
:
mscArgs
+=
"-T png"
;
extension
=
".png"
;
break
;
case
MSC_EPS
:
mscArgs
+=
"-T eps"
;
extension
=
".eps"
;
break
;
case
MSC_SVG
:
mscArgs
+=
"-T svg"
;
extension
=
".svg"
;
break
;
default:
goto
error
;
// I am not very fond of goto statements, but when in Rome...
}
mscArgs
+=
" -i
\"
"
;
mscArgs
+=
inFile
;
...
...
@@ -188,11 +195,28 @@ void writeMscImageMapFromFile(FTextStream &t,const QCString &inFile,
const
QCString
&
outDir
,
const
QCString
&
relPath
,
const
QCString
&
baseName
,
const
QCString
&
context
)
const
QCString
&
context
,
MscOutputFormat
format
)
{
QCString
mapName
=
baseName
+
".map"
;
QCString
mapFile
=
inFile
+
".map"
;
t
<<
"<img src=
\"
"
<<
relPath
<<
baseName
<<
".png
\"
alt=
\"
"
t
<<
"<img src=
\"
"
<<
relPath
<<
baseName
<<
"."
;
switch
(
format
)
{
case
MSC_BITMAP
:
t
<<
"png"
;
break
;
case
MSC_EPS
:
t
<<
"eps"
;
break
;
case
MSC_SVG
:
t
<<
"svg"
;
break
;
default:
t
<<
"unknown"
;
}
t
<<
"
\"
alt=
\"
"
<<
baseName
<<
"
\"
border=
\"
0
\"
usemap=
\"
#"
<<
mapName
<<
"
\"
/>"
<<
endl
;
QCString
imap
=
getMscImageMapFromFile
(
inFile
,
outDir
,
relPath
,
context
);
t
<<
"<map name=
\"
"
<<
mapName
<<
"
\"
id=
\"
"
<<
mapName
<<
"
\"
>"
<<
imap
<<
"</map>"
<<
endl
;
...
...
src/msc.h
View file @
1e870492
...
...
@@ -21,7 +21,7 @@
class
QCString
;
class
FTextStream
;
enum
MscOutputFormat
{
MSC_BITMAP
,
MSC_EPS
};
enum
MscOutputFormat
{
MSC_BITMAP
,
MSC_EPS
,
MSC_SVG
};
void
writeMscGraphFromFile
(
const
char
*
inFile
,
const
char
*
outDir
,
const
char
*
outFile
,
MscOutputFormat
format
);
...
...
@@ -31,7 +31,9 @@ QCString getMscImageMapFromFile(const QCString& inFile, const QCString& outDir,
void
writeMscImageMapFromFile
(
FTextStream
&
t
,
const
QCString
&
inFile
,
const
QCString
&
outDir
,
const
QCString
&
relPath
,
const
QCString
&
baseName
,
const
QCString
&
context
);
const
QCString
&
baseName
,
const
QCString
&
context
,
MscOutputFormat
format
);
#endif
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