88 */
99var CacheUMLExplorer = function ( treeViewContainer , classViewContainer ) {
1010
11+ var id = function ( e ) { return document . getElementById ( e ) ; } ;
12+
1113 this . elements = {
12- className : document . getElementById ( "className" ) ,
14+ uiBody : id ( "ui-body" ) ,
15+ className : id ( "className" ) ,
1316 treeViewContainer : treeViewContainer ,
1417 classViewContainer : classViewContainer ,
15- zoomInButton : document . getElementById ( "button.zoomIn" ) ,
16- zoomOutButton : document . getElementById ( "button.zoomOut" ) ,
17- zoomNormalButton : document . getElementById ( "button.zoomNormal" )
18+ zoomInButton : id ( "button.zoomIn" ) ,
19+ zoomOutButton : id ( "button.zoomOut" ) ,
20+ zoomNormalButton : id ( "button.zoomNormal" ) ,
21+ infoButton : id ( "button.showInfo" )
1822 } ;
1923
24+ this . UI = new UI ( this ) ;
2025 this . source = new Source ( ) ;
2126 this . classTree = new ClassTree ( this , treeViewContainer ) ;
2227 this . classView = new ClassView ( this , classViewContainer ) ;
@@ -43,6 +48,19 @@ CacheUMLExplorer.prototype.init = function () {
4348 }
4449 }
4550
51+ this . elements . infoButton . addEventListener ( "click" , function ( ) {
52+ self . UI . displayMessage (
53+ "Caché UML explorer v"
54+ + "[NOT-BUILT]" /*build.replace:"pkg.version"*/
55+ + "<br/>for InterSystems Caché"
56+ + "<br/>By Nikita Savchenko"
57+ + "<br/><a target=\"_blank\" href=\"https://github.com/intersystems-ru/UMLExplorer\">"
58+ + "Project page</a> / <a target=\"_blank\" "
59+ + "href=\"https://github.com/intersystems-ru/UMLExplorer/issues\">Bug tracker</a>"
60+ + "<br/><br/>Enjoy!"
61+ ) ;
62+ } ) ;
63+
4664 enableSVGDownload ( this . classTree ) ;
4765
4866} ;
0 commit comments