Enlightenment CVS committal

Author  : leviathan
Project : e17
Module  : libs/etk-perl

Dir     : e17/libs/etk-perl/lib/Etk


Modified Files:
        Constants.pm Simple.pm 


Log Message:
- Complete tree model implementation (now columns can have many models)
- Add alpha to colorpicker
- Add documentation to Etk::Simple

===================================================================
RCS file: /cvs/e/e17/libs/etk-perl/lib/Etk/Constants.pm,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -3 -r1.13 -r1.14
--- Constants.pm        14 Jan 2007 21:10:43 -0000      1.13
+++ Constants.pm        29 Jan 2007 13:55:45 -0000      1.14
@@ -23,8 +23,9 @@
 
 =head1 EXPORTABLE
 
-   combobox fillpolicy messagedialog progressbar scrolledview
-   toplevelwidget tree textblock colorpicker all
+   box combobox fillpolicy messagedialog progressbar scrolledview
+   toplevelwidget tree textblock table colorpicker mouse toolbar
+   button shadow image entry popupwindow window swallow all
  
 =cut
 
===================================================================
RCS file: /cvs/e/e17/libs/etk-perl/lib/Etk/Simple.pm,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- Simple.pm   14 Jan 2007 21:10:43 -0000      1.4
+++ Simple.pm   29 Jan 2007 13:55:45 -0000      1.5
@@ -220,3 +220,123 @@
 
 1;
 
+__END__
+
+=head1 NAME
+
+Etk::Simple - Simplified function calls for Etk
+
+=head1 SYNOPSIS
+
+  use Etk::Simple;
+  use Etk::Stock qw/:all/;
+
+  my $button = Etk::Button->new();
+  my $button_with_label = Etk::Button->new("This is a label");
+  my $button_from_stock = Etk::Button->new(DocumentNew);
+  
+=head1 DESCRIPTION
+
+Many widgets in Etk have different constructors and require different
+calls for each type of constructor.
+
+This module tries to simplify this process by providing a single "new"
+constructor that, depending on the number and type of arguments, calls
+the required C constructor.
+
+=head1 OVERLOADED WIDGETS
+
+The following are the widgets that have had their constructors overloaded.
+For each widget we list the type/number of arguments it accepts
+
+=head2 Etk::Button
+       
+       undef - creates an empty button
+       string - creates a button with a label
+       number - creates a button from stock
+
+=head2 Etk::CheckButton
+       
+       undef - creates an empty checkbutton
+       string - creates a checkbutton with a label
+
+=head2 Etk::Image
+       
+       undef - creates an empty image
+       number,number - creates an image from stock with a stock size
+       string,string - creates an image from edje with key
+       string - creates an image from file
+
+=head2 Etk::Menu::Item
+
+       undef - creates empty menu item
+       number - creates menu item from stock
+       string - creates menu item with label
+
+=head2 Etk::Menu::Item::Check
+
+       undef - creates empty menu item
+       string - creates menu item with label
+
+=head2 Etk::Menu::Item::Image
+
+       undef - creates empty menu item
+       number - creates menu item from stock
+       string - creates menu item with label
+
+=head2 Etk::Menu::Item::Radio
+
+       undef - creates empty menu item
+       object - creates menu item from the specified object
+       string - creates menu item with label
+       string,object - creates menu item with label from the specified object
+
+=head2 Etk::ProgressBar
+
+       undef - creates empty progressbar
+       string - creates a progressbar with text
+
+=head2 Etk::RadioButton
+
+       undef - creates empty radio button
+       object - creates radio button from the specified object
+       string - creates radio button with label
+       string,object - creates radio button with label from the specified 
object
+
+=head2 Etk::ToolButton
+
+       undef - creates empty tool button
+       number - creates tool button from stock
+       string - creates tool button with label
+
+=head2 Etk::ToolToggleButton
+
+       undef - creates empty tool togglebutton
+       number - creates tool togglebutton from stock
+       string - creates tool togglebutton with label
+
+=head2 Etk::ToggleButton
+
+       undef - creates empty togglebutton
+       number - creates togglebutton from stock
+       string - creates togglebutton with label
+
+=head1 NOTES
+
+Since this module redefines the new() subroutines, it includes a 
+`no warnings 'redefine'` to remove warnings.
+
+=head1 AUTHOR
+
+Chady 'Leviathan' Kassouf, E<lt>[EMAIL PROTECTED]<gt>
+
+=head1 COPYRIGHT AND LICENSE
+
+Copyright (C) 2007 by Chady Kassouf
+
+This library is free software; you can redistribute it and/or modify
+it under the same terms as Perl itself, either Perl version 5.8.7 or,
+at your option, any later version of Perl 5 you may have available.
+
+=cut
+



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to