comparison mde/menus.d @ 170:e45226d3deae

Context menu services not applicable to the current type can now be hidden. Added files missing from previous commits.
author Diggory Hardy <diggory.hardy@gmail.com>
date Mon, 29 Jun 2009 21:20:16 +0200
parents 2934fcacbb97
children
comparison
equal deleted inserted replaced
169:bc1cf73dc835 170:e45226d3deae
28 logger = Log.getLogger ("mde.menus"); 28 logger = Log.getLogger ("mde.menus");
29 } 29 }
30 30
31 static this () { 31 static this () {
32 auto quit = new EventContent("menus.main.quit"); 32 auto quit = new EventContent("menus.main.quit");
33 quit.addCallback ((Content){ 33 quit.addCallback ((IContent){
34 debug logger.trace ("Quit (from menu)"); 34 debug logger.trace ("Quit (from menu)");
35 run = false; 35 run = false;
36 }); 36 });
37 37
38 auto about = new EventContent("menus.help.about"); 38 auto about = new EventContent("menus.help.about");
39 about.addCallback ((Content){ 39 about.addCallback ((IContent){
40 //TODO: popup dialog box 40 //TODO: popup dialog box
41 logger.info ("MDE Copyright (C) 2007-2009 Diggory Hardy"); 41 logger.info ("MDE Copyright (C) 2007-2009 Diggory Hardy");
42 logger.info ("This program comes with ABSOLUTELY NO WARRANTY; for details see COPYING."); 42 logger.info ("This program comes with ABSOLUTELY NO WARRANTY; for details see COPYING.");
43 logger.info ("This is free software, and you are welcome to redistribute it under certain conditions; see COPYING for details."); 43 logger.info ("This is free software, and you are welcome to redistribute it under certain conditions; see COPYING for details.");
44 }); 44 });