Develop and Download Open Source Software

Browse Subversion Repository

Diff of /view.rb

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 7 by bluedwarf, Thu Apr 5 04:35:12 2007 UTC revision 9 by bluedwarf, Thu Apr 5 11:26:23 2007 UTC
# Line 18  module Edmaru Line 18  module Edmaru
18      #      #
19      #=== Return      #=== Return
20      #An initialized instance of View.      #An initialized instance of View.
21      def initialize(event_manager)      def initialize(event_manager, buffer_manager)
22        @event_manager = event_manager        @event_manager = event_manager
23          @buffer_manager = buffer_manager
24    
25        init_ui        init_ui
26    
27        #Show default windows.        #Show default windows.
28        @windows = Array.new        @windows = Array.new
29        @windows.push        @windows.push(Edmaru::window_class.new(self, 0, 0,
30          Edmaru::window_class.new(self, 0, 0,                                               allocated_column,
31                                   allocated_column, allocated_line - 1)                                               allocated_line - 1))
32          #Set the default buffer.
33          @windows[0].buffer = @buffer_manager.get("*scratch*")
34          @windows[0].buffer.append("OK")
35    
36        @mini_window =        @mini_window =
37          Edmaru::mini_window_class.new(self, 0,          Edmaru::mini_window_class.new(self, 0,
38                                        allocated_line - 1,                                        allocated_line - 1,

Legend:
Removed from v.7  
changed lines
  Added in v.9

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26