Skip to content
This repository
Browse code

v. 0.11.1

  • Loading branch information...
commit 02dcfdd58e0a52d6ee2f9a383b8ceae11c2bc1c3 1 parent 2f6c49e
Antonio authored December 11, 2011
18  README
... ...
@@ -1,8 +1,8 @@
1 1
 = Arcadia Ide
2  
-version 0.11.0
  2
+version 0.11.1
3 3
 
4 4
 by Antonio Galeone
5  
-on Nov 04, 2011
  5
+on Dec 11, 2011
6 6
 
7 7
 
8 8
 == About
@@ -16,19 +16,11 @@ Some of Arcadia ide project features include:
16 16
 * Debugging support
17 17
 * Highly extensibility architecture.
18 18
 
19  
-== In this release 0.11.0
  19
+== In this release 0.11.1
20 20
     
21 21
 [Improvements]
22  
-  added some new features: 
23  
-  - now you can open more than one instance of "Editor" and "Dir Project"
24  
-    by clicking on button with "plus" icon on the left side of title bar.
25  
-    This can be usefull if you want see 2 buffers at the same time. 
26  
-  - now you can hide the tabs in Editor (for optimizing space) by menu item :
27  
-    "View->Show/Hide Editor Tabs" and recall a buffer by menubutton on right side 
28  
-    of title bar
29  
-  - porting to new version of coderay   
30  
-  
31  
-  A lot of bugs fixed !!!
  22
+ - Bugs fixed
  23
+ - Some aesthetic enhancement
32 24
   
33 25
 == Dependencies
34 26
   - rubygems
4  arcadia.gemspec
@@ -4,8 +4,8 @@
4 4
 require 'rubygems'
5 5
   SPEC = Gem::Specification.new do |s|
6 6
   s.name = "arcadia"
7  
-  s.version = "0.11.0"
8  
-  s.date = "2011-11-04"
  7
+  s.version = "0.11.1"
  8
+  s.date = "2011-12-11"
9 9
   s.author = "Antonio Galeone"
10 10
   s.email = "antonio-galeone@rubyforge.org"
11 11
   s.homepage = "http://arcadia.rubyforge.org"
34  ext/ae-editor/ae-editor.rb
@@ -834,6 +834,8 @@ def initialize(_controller)
834 834
       else
835 835
         sync_off
836 836
       end
  837
+      #Arcadia.console(self, "msg"=>"@sync=#{@sync}" )
  838
+
837 839
     }
838 840
     @sync = false
839 841
     @cb_sync.command(do_check)
@@ -843,6 +845,7 @@ def sync_on
843 845
     @sync = true
844 846
     e = @controller.active_instance.raised
845 847
     if e
  848
+      #Arcadia.console(self, "msg"=>"@sync=#{@sync} file=#{e.file}" )
846 849
       e.outline.select_without_event(e.outline.last_row) if e.outline.last_row
847 850
     end
848 851
   end
@@ -896,6 +899,7 @@ def shure_select_node(_node)
896 899
         parent = parent.parent
897 900
       end
898 901
 
  902
+
899 903
       @tree_exp.close_tree(to_open) if to_open && !@opened
900 904
 
901 905
       @tree_exp.see(_node.rif)
@@ -935,7 +939,6 @@ def initialize_tree(_frame)
935 939
             build_tree(_line)
936 940
             Tk.update
937 941
           }
938  
-          #_line = _self.selection_get[0]
939 942
           _line = _self.selected
940 943
           _index =_line.to_s+'.0'
941 944
         end
@@ -1027,7 +1030,7 @@ def build_tree(_sel=nil)
1027 1030
     
1028 1031
     _txt = @editor.text.get('1.0','end')
1029 1032
     if @editor.has_ctags?
1030  
-      if @editor.file
  1033
+      if @editor.file && !@editor.modified?
1031 1034
         @ss = CtagsSourceStructure.new(@editor.file, @editor.ctags_string)
1032 1035
       else
1033 1036
         tmp_file = @editor.create_temp_file
@@ -1113,6 +1116,12 @@ def modified_from_opening?
1113 1116
     @modified_from_opening
1114 1117
   end
1115 1118
   
  1119
+  def highlighted?
  1120
+    !@highlighting || (@last_line_end && @last_line_end > 0)
  1121
+  end
  1122
+  
  1123
+
  1124
+  
1116 1125
   def show_line_numbers
1117 1126
     if !@line_numbers_visible
1118 1127
       #@fm1.hide_right
@@ -1258,7 +1267,7 @@ def create_temp_file_for_completion(_row)
1258 1267
       #p "riga:#{j}"
1259 1268
       break if j.to_i >= _row.to_i - 1
1260 1269
     }
1261  
-    Arcadia.console(self, 'msg'=>_custom_text)
  1270
+    #Arcadia.console(self, 'msg'=>_custom_text)
1262 1271
 
1263 1272
     if @file
1264 1273
       _file = "#{File.join(File.dirname(@file),'~~'+File.basename(@file))}"
@@ -3378,6 +3387,7 @@ def initialize(parent=nil, _usetabs=true)
3378 3387
     @pages = {}
3379 3388
     @page_binds = {}
3380 3389
     @raised_page=nil
  3390
+    @raised_page_usetabs=@usetabs
3381 3391
   end
3382 3392
   
3383 3393
   def initialize_tabs
@@ -3560,7 +3570,7 @@ def raise(_page=nil)
3560 3570
     else
3561 3571
       if _page.nil?
3562 3572
         @raised_page
3563  
-      else
  3573
+      elsif @raised_page != _page || @raised_page_usetabs != @usetabs 
3564 3574
         if @raised_page
3565 3575
           @pages[@raised_page]['frame'].unpack if @pages[@raised_page]
3566 3576
         end
@@ -3569,6 +3579,7 @@ def raise(_page=nil)
3569 3579
         @pages[_page]['raisecmd'].call
3570 3580
       end
3571 3581
     end
  3582
+    @raised_page_usetabs=@usetabs
3572 3583
     @raised_page
3573 3584
   end
3574 3585
   
@@ -4003,11 +4014,13 @@ def on_build(_event)
4003 4014
   end
4004 4015
 
4005 4016
   def on_activate_instance(_event)
  4017
+    return if defined?(@last_active_instance_name) && @last_active_instance_name == _event.name
4006 4018
     if _event.name == @name
4007 4019
       refresh_status
4008 4020
       _e = raised
4009 4021
       change_outline(_e, true) if  _e      
4010 4022
     end
  4023
+    @last_active_instance_name = _event.name if _event.name == @name || exist_name?(_event.name)
4011 4024
   end
4012 4025
 
4013 4026
   def outline_bar
@@ -4459,7 +4472,7 @@ def on_buffer(_event)
4459 4472
             end   
4460 4473
           else
4461 4474
             _e = self.open_file(_event.file, _index, select_index)
4462  
-            _e.do_line_update
  4475
+#            _e.w
4463 4476
           end
4464 4477
         elsif _event.text
4465 4478
           if _event.title 
@@ -5070,7 +5083,7 @@ def open_file(_filename = nil, _text_index='1.0', _mark_selected=true, _exp=true
5070 5083
       editor.text_see(_text_index)
5071 5084
       editor.mark_selected(_text_index) if _mark_selected 
5072 5085
     end
5073  
-
  5086
+    editor.do_line_update if !editor.highlighted?
5074 5087
     return editor
5075 5088
   end
5076 5089
 
@@ -5083,7 +5096,6 @@ def open_buffer(_buffer_name = nil, _title = nil, _filename=nil, _lang=nil)
5083 5096
     		_buffer_name = tab_name(_title_new)
5084 5097
     		#_buffer_name = tab_name('new')
5085 5098
     end
5086  
-    
5087 5099
     if _index != -1
5088 5100
       _tab = @main_frame.page_frame(resolve_tab_name(_buffer_name))
5089 5101
       @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)
5108 5120
         _image = Arcadia.file_icon(_title)
5109 5121
       end
5110 5122
       _tab = @main_frame.add_page(_buffer_name, _filename, _title, _image, proc{do_buffer_raise(_buffer_name, _title)})
5111  
-#      _tab = @main_frame.enb.insert('end', _buffer_name ,
5112  
-#        'text'=> _title,
5113  
-#        'image'=> _image,
5114  
-# #       'image'=> Arcadia.file_icon(lang_sign),
5115  
-#        'background'=> Arcadia.style("tabpanel")["background"],
5116  
-#        'foreground'=> Arcadia.style("tabpanel")["foreground"],
5117  
-#        'raisecmd'=>proc{do_buffer_raise(_buffer_name, _title)}
5118  
-#      )
5119 5123
       @raw_buffer_name[_buffer_name]=_buffer_name
5120 5124
       if _filename
5121 5125
         add_buffer_menu_item(_filename)

0 notes on commit 02dcfdd

Please sign in to comment.
Something went wrong with that request. Please try again.