Permalink
Browse files

Updated CHANGES and TODO files

  • Loading branch information...
1 parent 0f4e95d commit 1bb5a3df8a8a5527ac19e035c233a2aeabe76823 @stcrocco committed Oct 16, 2011
Showing with 31 additions and 29 deletions.
  1. +2 −1 CHANGES
  2. +0 −4 TODO
  3. +24 −24 lib/ruber/settings_dialog.rb
  4. +5 −0 ruber.ruprj
View
@@ -6,7 +6,8 @@ h3. Features
* Added a RI plugin. You can now insert the class or method name in the RI tool widget
and see the documentation in a nice HTML format inside the tool widget itself.
- This plugin requires RDoc version 3.x (maybe version 2.x will also work).
+ This plugin requires RDoc version 3.x (it isn't tested with version 2.x).
+* Added an IRB plugin
* The syntax checker plugin has been rewritten. Now other plugins can check the
syntax of a document
* Ruby and YAML syntax checker now are in their own plugin, rather than being part
View
@@ -121,10 +121,6 @@ h3. Quick Open File
h3. Quick open method/class plugin
-h3. ri plugin
-
-h3. irb plugin
-
h3. Konsole plugin
h3. File system browser plugin
@@ -51,34 +51,34 @@ module Ruber
a <tt>read_settings</tt>, a <tt>store_settings</tt> and a <tt>read_default_settings</tt>
method in your widget class like this:
- class MyWidget < Qt::Widget
+bc.. class MyWidget < Qt::Widget
- def initialize parent = nil
- super
- @default_dir_widget = KDE::LineEdit.new self
- @default_file_widget = KDE::LineEdit.new self
- end
-
- def read_settings
- path = @settings_dialog.settings_container[:general, :default_path]
- @default_dir_widget.text = File.dirname(path)
- @default_file_widget.text = File.basename(path)
- end
-
- def store_settings
- path = File.join @default_dir_widget.text, @default_file_widget.text
- @settings_dialog.settings_container[:general, :default_path] = path
- end
-
- def read_default_settings
- path = @settings_dialog.settings_container.default(:general, :default_path)
- @default_dir_widget.text = File.dirname(path)
- @default_file_widget.text = File.basename(path)
- end
+ def initialize parent = nil
+ super
+ @default_dir_widget = KDE::LineEdit.new self
+ @default_file_widget = KDE::LineEdit.new self
+ end
+ def read_settings
+ path = @settings_dialog.settings_container[:general, :default_path]
+ @default_dir_widget.text = File.dirname(path)
+ @default_file_widget.text = File.basename(path)
+ end
+
+ def store_settings
+ path = File.join @default_dir_widget.text, @default_file_widget.text
+ @settings_dialog.settings_container[:general, :default_path] = path
+ end
+
+ def read_default_settings
+ path = @settings_dialog.settings_container.default(:general, :default_path)
+ @default_dir_widget.text = File.dirname(path)
+ @default_file_widget.text = File.basename(path)
end
-Note that the <tt>@settings_dialog</tt> instance variable has been automatically
+end
+
+p. Note that the <tt>@settings_dialog</tt> instance variable has been automatically
created by the dialog when the widget has been created and contains a reference
to the dialog itself.
View
@@ -55,6 +55,11 @@
:ruby_options:
- -Ilib
:rspec:
+ :code_directory: .
+ :patterns:
+ - :code: "**/*.rb"
+ :spec: "%f_spec.rb"
+ :glob: 0
:full_backtraces: false
:ruby_options:
- -I.

0 comments on commit 1bb5a3d

Please sign in to comment.