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 3 by bluedwarf, Tue Apr 3 20:38:37 2007 UTC revision 4 by bluedwarf, Wed Apr 4 04:03:44 2007 UTC
# Line 1  Line 1 
1    
2    require "event_manager.rb"
3    require "window.rb"
4    require "modeline.rb"
5    
6  module Edmaru  module Edmaru
7    
8    #Abstract class to implement system specific view.    #Abstract class to implement system specific view.
# Line 17  module Edmaru Line 21  module Edmaru
21      #An initialized instance of View.      #An initialized instance of View.
22      def initialize(event_manager)      def initialize(event_manager)
23        @event_manager = event_manager        @event_manager = event_manager
24          @mini_window = Edmaru::window_class.new
25          @modeline_window = Edmaru::ModeLine.new
26          @windows = Array.new
27          @windows.push(Edmaru::window_class.new)
28        init_ui        init_ui
29      end      end
30    
# Line 27  module Edmaru Line 35  module Edmaru
35      def init_ui      def init_ui
36      end      end
37    
38        #The mini window displayed in the bottom of the screen.
39        #
40        #=== Warning
41        #This method *MUST* *NOT* be overrided in derived classes.
42        def mini_window
43          @mini_window
44        end
45    
46        #The modeline window displayed on the second line from the bottom.
47        #
48        #=== Warning
49        #This method *MUST* *NOT* be overrided in derived classes.
50        def modeline_window
51          @modeline_window
52        end
53    
54        #The main window.
55        #
56        #=== Warning
57        #This method *MUST* *NOT* be overrided in derived classes.
58        def main_window
59          @windows[0]
60        end
61    
62      #Main loop to catch all events.      #Main loop to catch all events.
63      #      #
64      #=== Warning      #=== Warning

Legend:
Removed from v.3  
changed lines
  Added in v.4

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