Commit 3dcb87eb authored by Scott Lembcke's avatar Scott Lembcke Committed by Scott Lembcke

Added the Drawable class and made Layer and Channel inherit from it.

2006-07-28  Scott Lembcke <lemb0029@gnome.org>

        * gimp-lib/gimp_oo.rb: Added the Drawable class and made Layer and
          Channel inherit from it.

        * gimp-lib/pdb.rb: Changed the PDBException to inherit from
          RuntimeException.
parent 29b37cc9
2006-07-28 Scott Lembcke <lemb0029@gnome.org>
* gimp-lib/gimp_oo.rb: Added the Drawable class and made Layer and
Channel inherit from it.
* gimp-lib/pdb.rb: Changed the PDBException to inherit from
RuntimeException.
2006-07-21 Kevin Cozens <kcozens@cvs.gnome.org>
* ext/rbgimp.h
......
......@@ -58,8 +58,8 @@ module Gimp
end
end
def template(prefix, class_prefix)
klass = Class.new(self)
def template(prefix, class_prefix, super_class = self)
klass = Class.new(super_class)
klass.add_methods(prefix, class_prefix)
return klass
......@@ -96,12 +96,13 @@ module Gimp
end
end
Gimp::Drawable = ClassTemplate.template('gimp-drawable-', nil)
Gimp::Brush = ClassTemplate.template('gimp-brush-', 'gimp-brushes-')
Gimp::Channel = ClassTemplate.template('gimp-channel-', nil)
Gimp::Display = ClassTemplate.template('gimp-display-', nil)
Gimp::Channel = ClassTemplate.template('gimp-channel-', nil, Gimp::Drawable)
Gimp::Display = ClassTemplate.template('gimp-display-', 'gimp-displays-')
Gimp::Gradient = ClassTemplate.template('gimp-gradient-', 'gimp-gradients-')
Gimp::Image = ClassTemplate.template('gimp-image-', nil)
Gimp::Layer = ClassTemplate.template('gimp-layer-', nil)
Gimp::Layer = ClassTemplate.template('gimp-layer-', nil, Gimp::Drawable)
Gimp::Palette = ClassTemplate.template('gimp-palette-', 'gimp-palettes-')
Gimp::Vectors = ClassTemplate.template('gimp-vectors-', nil)
......@@ -114,6 +115,8 @@ module Gimp
end
class Image
add_class_method('list', 'gimp-image-list')
alias_method :old_undo_group_start, :undo_group_start
def undo_group
old_undo_group_start
......
module PDB
class PDBException < Exception
class PDBException < RuntimeError
end
class NoProcedure < PDBException
......
Make sure all the useful parts of the C API were wrapped.
Weird crash occurs in the call test. Is this something that I'm doing?
Weird crash occurs in the call test when testing the incoming arguments?
The color code has turned out to be sub-par, lots of room for improvment.
Signal handlers might need to be backed up. (see how the old one did this. Is it still necessary? Seems not.)
Figure out how the brush selection should really work.
Add a list type parameter.
Add a list type parameter for the dialog.
Add a reset button to the interactive dialog.
Get widget resizing under control.
Add more control to widget resizing for the dialog.
Console mode.
Localization issues?
\ No newline at end of file
gettext support for dialogs.
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment