Changeset 10218 for trunk/gsdl/perllib/classify/Collage.pm
- Timestamp:
- 2005-07-06T15:27:45+12:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/classify/Collage.pm
r9142 r10218 106 106 107 107 sub new { 108 my $class = shift (@_); 109 my $self = new BasClas($class, @_); 110 111 my $option_list = $self->{'option_list'}; 112 push( @{$option_list}, $options ); 113 114 if ($self->{'info_only'}) { 115 # created from classinfo.pl - don't need to parse the arguments 116 return bless $self, $class; 117 } 118 119 my ($title, $geometry, $verbosity, $maxDepth, $imageType, $bgcolor, $refreshDelay, $isJava2, $caption, $maxDisplay, $maxDownloads, $list); 120 121 if (!parsargv::parse(\@_, 122 q^buttonname/.*/Collage^, \$title, 123 q^geometry/.*/600x300^, \$geometry, 124 q^verbosity/.*/3^, \$verbosity, 125 q^maxDepth/.*/500^, \$maxDepth, 126 # q^maxDownloads/.*/^, \$maxDownloads, 127 q^maxDisplay/.*/25^, \$maxDisplay, 128 q^imageType/.*/.jpg%.png^, \$imageType, 129 q^bgcolor/.*/\#96c29a^, \$bgcolor, 130 q^refreshDelay/.*/1200^, \$refreshDelay, 131 q^isJava2/.*/auto^, \$isJava2, 132 q^imageMustNotHave/.*/hl=\%x=\%gt=\%gc=\%.pr^, \$imageMustNotHave, 133 q^caption/.*/ ^, \$caption, 134 "allow_extra_options")) { 135 136 print STDERR "\nIncorrect options passed to $class, check your collect.cfg file\n"; 137 $self->print_txt_usage(""); # Use default resource bundle 138 die "\n"; 139 } 140 141 if (!$title) { 142 $title = 'Collage'; 143 } 144 145 $self->{'list'} = $list; 146 $self->{'title'} = $title; 147 $self->{'geometry'} = $geometry; 148 $self->{'verbosity'} = $verbosity; 149 $self->{'maxDepth'} = $maxDepth; 150 $self->{'maxDownloads'} = $maxDownloads; 151 $self->{'maxDisplay'} = $maxDisplay; 152 $self->{'imageType'} = $imageType; 153 $self->{'bgcolor'} = $bgcolor; 154 $self->{'refreshDelay'} = $refreshDelay; 155 $self->{'isJava2'} = $isJava2; 156 # $self->{'imageMustNotHave'} = $imageMustNotHave; 157 $self->{'caption'} = $caption; 108 my ($class) = shift (@_); 109 my ($classifierslist,$inputargs,$hashArgOptLists) = @_; 110 push(@$classifierslist, $class); 111 112 if(defined $arguments){ push(@{$hashArgOptLists->{"ArgList"}},@{$arguments});} 113 if(defined $options) { push(@{$hashArgOptLists->{"OptList"}},$options)}; 114 115 my $self = (defined $hashArgOptLists)? new BasClas($classifierslist,$inputargs,$hashArgOptLists): new BasClas($classifierslist,$inputargs); 116 117 # Manually set $self parameters. 118 $self->{'list'} = {}; 119 print STDERR "buttonnmae = $buttonname\n"; 120 $self->{'buttonname'} = 'Collage' unless ($self->{'buttonname'}); 121 158 122 return bless $self, $class; 159 123 } … … 206 170 207 171 if ($verbosity>1) { 208 print $outhandle ("$self->{' title'}\n");209 } 210 211 my $collage_head = $self->get_entry ($self->{' title'}, "Collage", "Invisible");172 print $outhandle ("$self->{'buttonname'}\n"); 173 } 174 175 my $collage_head = $self->get_entry ($self->{'buttonname'}, "Collage", "Invisible"); 212 176 my $collage_curr = $self->get_entry("Collage","VList"); 213 177 push (@{$collage_head->{'contains'}},$collage_curr);
Note:
See TracChangeset
for help on using the changeset viewer.