Browse Subversion Repository
Diff of /view.rb
Parent Directory
| Revision Log
| Patch
| 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 |
|
|
| |