Mercurial > projects > doodle
diff gui.d @ 7:936feb16eed4
Checkpoint
author | "David Bryant <bagnose@gmail.com>" |
---|---|
date | Sat, 11 Jul 2009 21:29:03 +0930 |
parents | 7d57cae10805 |
children | bf7903435f58 |
line wrap: on
line diff
--- a/gui.d Sat Jul 11 20:44:14 2009 +0930 +++ b/gui.d Sat Jul 11 21:29:03 2009 +0930 @@ -2,6 +2,8 @@ import canvas; import tool_stack; +import tool; +import standard_tools; import gtk.Main; import gtk.MainWindow; @@ -16,7 +18,10 @@ void main(string[] args) { Main.init(args); auto window = new MainWindow("Title"); - auto event_handler = new ToolStack(); + Tool[] tools; + tools ~= new PanTool; + tools ~= new ZoomTool; + auto event_handler = new ToolStack(tools); auto canvas = new Canvas(event_handler); window.add(canvas); window.showAll();