Changeset 851
- Timestamp:
- 11/09/08 05:42:08 (3 years ago)
- File:
-
- 1 edited
-
trunk/lib/Padre/Document.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Padre/Document.pm
r849 r851 1 1 package Padre::Document; 2 2 3 # Provides a logical document abstraction, allowing Padre 4 # to associate several Wx elements with the one document. 3 =head1 NAME 4 5 Padre::Document - document abstraction layer 6 7 =head1 DESCRIPTION 8 9 This is an internal module of L<Padre> that provides a 10 logical document abstraction, allowing Padre to associate 11 several Wx elements with the one document. 12 13 The objective would be to allow the use of this module without 14 loading Wx. 15 16 Currently there are still interdependencies that need to be cleaned. 17 18 =head1 METHODS 19 20 =cut 5 21 6 22 use 5.008; … … 164 180 # Constructor and Accessors 165 181 182 =head2 new 183 184 my $doc = Padre::Document->new( 185 editor => $editor, 186 filename => $file, 187 ); 188 189 $editor is required and is a Padre::Wx::Editor object 190 191 $file is optional and if given it will be loaded in the document 192 193 mime-type is defined by the guess_mimetype function 194 195 =cut 196 166 197 sub new { 167 198 my $class = shift;
Note: See TracChangeset
for help on using the changeset viewer.
