[Synopsis-changes] Synopsis/Synopsis/Synopsis/Formatters/HTML Formatter.py,1.4,1.5
Stefan Seefeld stefan at synopsis.fresco.orgFri Nov 14 17:39:06 UTC 2003
- Previous message: [Synopsis-changes] Synopsis/Synopsis/Synopsis/Formatters Dot.py,1.36,1.37 TOC.py,1.6,1.7
- Next message: [Synopsis-changes] Synopsis/Synopsis/Synopsis/Formatters/HTML/Pages DirBrowse.py,1.10,1.11 FileDetails.py,1.5,1.6 FileIndexer.py,1.5,1.6 FileListing.py,1.4,1.5 FileSource.py,1.6,1.7
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Update of /cvs/synopsis/Synopsis/Synopsis/Formatters/HTML
In directory frida:/tmp/cvs-serv32357/Synopsis/Formatters/HTML
Modified Files:
Formatter.py
Log Message:
more work to eliminate the config object
Index: Formatter.py
===================================================================
RCS file: /cvs/synopsis/Synopsis/Synopsis/Formatters/HTML/Formatter.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -p -d -r1.4 -r1.5
--- Formatter.py 14 Nov 2003 14:51:09 -0000 1.4
+++ Formatter.py 14 Nov 2003 17:39:04 -0000 1.5
@@ -118,14 +118,15 @@ class Formatter(Processor):
config.decl_style = DeclStyle()
for f in self.comment_formatters:
f.init(self)
- config.comments = CommentFormatter(self)
+
+ self.comments = CommentFormatter(self)
# Create the Class Tree (TODO: only if needed...)
- config.classTree = ClassTree.ClassTree()
+ self.classTree = ClassTree.ClassTree()
# Create the File Tree (TODO: only if needed...)
- config.fileTree = FileTree()
- config.fileTree.set_ast(ast)
+ self.fileTree = FileTree()
+ self.fileTree.set_ast(ast)
# Build class tree
for d in declarations:
@@ -194,6 +195,28 @@ class Formatter(Processor):
### FIXME : how should this work ?
### We need to point to one of the pages...
return self.pages[1].get_toc(start)
+
+ def set_main_page(self, page):
+ """Call this method to set the main index.html page. First come first served
+ -- whatever module the user puts first in the list that sets this is
+ it."""
+
+ if not self.main_page:
+ self.main_page = page
+
+ def set_contents_page(self, page):
+ """Call this method to set the contents page. First come first served
+ -- whatever module the user puts first in the list that sets this is
+ it. This is the frame in the top-left if you use the default frameset."""
+
+ if not self.contents_page: self.contents_page = page
+
+ def set_index_page(self, page):
+ """Call this method to set the index page. First come first served
+ -- whatever module the user puts first in the list that sets this is
+ it. This is the frame on the left if you use the default frameset."""
+
+ if not self.index_page: self.index_page = page
def globalScope(self):
"Return the global scope"
- Previous message: [Synopsis-changes] Synopsis/Synopsis/Synopsis/Formatters Dot.py,1.36,1.37 TOC.py,1.6,1.7
- Next message: [Synopsis-changes] Synopsis/Synopsis/Synopsis/Formatters/HTML/Pages DirBrowse.py,1.10,1.11 FileDetails.py,1.5,1.6 FileIndexer.py,1.5,1.6 FileListing.py,1.4,1.5 FileSource.py,1.6,1.7
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Synopsis-changes mailing list