Permalink
Browse files

v. 0.11.1

  • Loading branch information...
1 parent 2f6c49e commit 02dcfdd58e0a52d6ee2f9a383b8ceae11c2bc1c3 @angal committed Dec 10, 2011
Showing with 26 additions and 30 deletions.
  1. +5 −13 README
  2. +2 −2 arcadia.gemspec
  3. +19 −15 ext/ae-editor/ae-editor.rb
View
18 README
@@ -1,8 +1,8 @@
= Arcadia Ide
-version 0.11.0
+version 0.11.1
by Antonio Galeone
-on Nov 04, 2011
+on Dec 11, 2011
== About
@@ -16,19 +16,11 @@ Some of Arcadia ide project features include:
* Debugging support
* Highly extensibility architecture.
-== In this release 0.11.0
+== In this release 0.11.1
[Improvements]
- added some new features:
- - now you can open more than one instance of "Editor" and "Dir Project"
- by clicking on button with "plus" icon on the left side of title bar.
- This can be usefull if you want see 2 buffers at the same time.
- - now you can hide the tabs in Editor (for optimizing space) by menu item :
- "View->Show/Hide Editor Tabs" and recall a buffer by menubutton on right side
- of title bar
- - porting to new version of coderay
-
- A lot of bugs fixed !!!
+ - Bugs fixed
+ - Some aesthetic enhancement
== Dependencies
- rubygems
View
@@ -4,8 +4,8 @@
require 'rubygems'
SPEC = Gem::Specification.new do |s|
s.name = "arcadia"
- s.version = "0.11.0"
- s.date = "2011-11-04"
+ s.version = "0.11.1"
+ s.date = "2011-12-11"
s.author = "Antonio Galeone"
s.email = "antonio-galeone@rubyforge.org"
s.homepage = "http://arcadia.rubyforge.org"
View
@@ -834,6 +834,8 @@ def initialize(_controller)
else
sync_off
end
+ #Arcadia.console(self, "msg"=>"@sync=#{@sync}" )
+
}
@sync = false
@cb_sync.command(do_check)
@@ -843,6 +845,7 @@ def sync_on
@sync = true
e = @controller.active_instance.raised
if e
+ #Arcadia.console(self, "msg"=>"@sync=#{@sync} file=#{e.file}" )
e.outline.select_without_event(e.outline.last_row) if e.outline.last_row
end
end
@@ -896,6 +899,7 @@ def shure_select_node(_node)
parent = parent.parent
end
+
@tree_exp.close_tree(to_open) if to_open && !@opened
@tree_exp.see(_node.rif)
@@ -935,7 +939,6 @@ def initialize_tree(_frame)
build_tree(_line)
Tk.update
}
- #_line = _self.selection_get[0]
_line = _self.selected
_index =_line.to_s+'.0'
end
@@ -1027,7 +1030,7 @@ def build_tree(_sel=nil)
_txt = @editor.text.get('1.0','end')
if @editor.has_ctags?
- if @editor.file
+ if @editor.file && !@editor.modified?
@ss = CtagsSourceStructure.new(@editor.file, @editor.ctags_string)
else
tmp_file = @editor.create_temp_file
@@ -1113,6 +1116,12 @@ def modified_from_opening?
@modified_from_opening
end
+ def highlighted?
+ !@highlighting || (@last_line_end && @last_line_end > 0)
+ end
+
+
+
def show_line_numbers
if !@line_numbers_visible
#@fm1.hide_right
@@ -1258,7 +1267,7 @@ def create_temp_file_for_completion(_row)
#p "riga:#{j}"
break if j.to_i >= _row.to_i - 1
}
- Arcadia.console(self, 'msg'=>_custom_text)
+ #Arcadia.console(self, 'msg'=>_custom_text)
if @file
_file = "#{File.join(File.dirname(@file),'~~'+File.basename(@file))}"
@@ -3378,6 +3387,7 @@ def initialize(parent=nil, _usetabs=true)
@pages = {}
@page_binds = {}
@raised_page=nil
+ @raised_page_usetabs=@usetabs
end
def initialize_tabs
@@ -3560,7 +3570,7 @@ def raise(_page=nil)
else
if _page.nil?
@raised_page
- else
+ elsif @raised_page != _page || @raised_page_usetabs != @usetabs
if @raised_page
@pages[@raised_page]['frame'].unpack if @pages[@raised_page]
end
@@ -3569,6 +3579,7 @@ def raise(_page=nil)
@pages[_page]['raisecmd'].call
end
end
+ @raised_page_usetabs=@usetabs
@raised_page
end
@@ -4003,11 +4014,13 @@ def on_build(_event)
end
def on_activate_instance(_event)
+ return if defined?(@last_active_instance_name) && @last_active_instance_name == _event.name
if _event.name == @name
refresh_status
_e = raised
change_outline(_e, true) if _e
end
+ @last_active_instance_name = _event.name if _event.name == @name || exist_name?(_event.name)
end
def outline_bar
@@ -4459,7 +4472,7 @@ def on_buffer(_event)
end
else
_e = self.open_file(_event.file, _index, select_index)
- _e.do_line_update
+# _e.w
end
elsif _event.text
if _event.title
@@ -5070,7 +5083,7 @@ def open_file(_filename = nil, _text_index='1.0', _mark_selected=true, _exp=true
editor.text_see(_text_index)
editor.mark_selected(_text_index) if _mark_selected
end
-
+ editor.do_line_update if !editor.highlighted?
return editor
end
@@ -5083,7 +5096,6 @@ def open_buffer(_buffer_name = nil, _title = nil, _filename=nil, _lang=nil)
_buffer_name = tab_name(_title_new)
#_buffer_name = tab_name('new')
end
-
if _index != -1
_tab = @main_frame.page_frame(resolve_tab_name(_buffer_name))
@main_frame.raise(resolve_tab_name(_buffer_name)) if frame_visible?
@@ -5108,14 +5120,6 @@ def open_buffer(_buffer_name = nil, _title = nil, _filename=nil, _lang=nil)
_image = Arcadia.file_icon(_title)
end
_tab = @main_frame.add_page(_buffer_name, _filename, _title, _image, proc{do_buffer_raise(_buffer_name, _title)})
-# _tab = @main_frame.enb.insert('end', _buffer_name ,
-# 'text'=> _title,
-# 'image'=> _image,
-# # 'image'=> Arcadia.file_icon(lang_sign),
-# 'background'=> Arcadia.style("tabpanel")["background"],
-# 'foreground'=> Arcadia.style("tabpanel")["foreground"],
-# 'raisecmd'=>proc{do_buffer_raise(_buffer_name, _title)}
-# )
@raw_buffer_name[_buffer_name]=_buffer_name
if _filename
add_buffer_menu_item(_filename)

0 comments on commit 02dcfdd

Please sign in to comment.