From ec0ba5ac9f7c311611a835ec02bb5a3e29f85b7e Mon Sep 17 00:00:00 2001 From: JT Smith Date: Sat, 12 Apr 2003 03:22:22 +0000 Subject: [PATCH] updated to use the "title" attribute for tooltips. --- lib/WebGUI/Icon.pm | 51 ++++++++++------------------------------------ 1 file changed, 11 insertions(+), 40 deletions(-) diff --git a/lib/WebGUI/Icon.pm b/lib/WebGUI/Icon.pm index 55173fae4..b91907c0e 100644 --- a/lib/WebGUI/Icon.pm +++ b/lib/WebGUI/Icon.pm @@ -34,7 +34,6 @@ A package for generating user interface buttons. The subroutines found herein do =head1 SYNOPSIS use WebGUI::Icon; - $html = becomeIcon('op=something'); $html = copyIcon('op=something'); $html = cutIcon('op=something'); $html = deleteIcon('op=something'); @@ -56,34 +55,6 @@ These subroutines are available from this package: #------------------------------------------------------------------- -=head2 becomeIcon ( urlParameters [, pageURL ] ) - -Generates a button with the word "Become" printed on it. - -=over - -=item urlParameters - -Any URL parameters that need to be tacked on to the current URL to accomplish whatever function this button represents. - -=item pageURL - -The URL to any page. Defaults to the current page. - -=back - -=cut - -sub becomeIcon { - my ($output, $pageURL); - $pageURL = $_[1] || $session{page}{urlizedTitle}; - $output = ''; - $output .= 'Become'; - return $output; -} - -#------------------------------------------------------------------- - =head2 copyIcon ( urlParameters [, pageURL ] ) Generates a button with the word "Copy" printed on it. @@ -106,7 +77,7 @@ sub copyIcon { my ($output, $pageURL); $pageURL = $_[1] || $session{page}{urlizedTitle}; $output = ''; - $output .= 'Copy'; + $output .= 'Copy'; return $output; } @@ -134,7 +105,7 @@ sub cutIcon { my ($output, $pageURL); $pageURL = $_[1] || $session{page}{urlizedTitle}; $output = ''; - $output .= 'Cut'; + $output .= 'Cut'; return $output; } @@ -162,7 +133,7 @@ sub deleteIcon { my ($output, $pageURL); $pageURL = $_[1] || $session{page}{urlizedTitle}; $output = ''; - $output .= 'Delete'; + $output .= 'Delete'; return $output; } @@ -190,7 +161,7 @@ sub editIcon { my ($output, $pageURL); $pageURL = $_[1] || $session{page}{urlizedTitle}; $output = ''; - $output .= 'Edit'; + $output .= 'Edit'; return $output; } @@ -246,7 +217,7 @@ sub moveBottomIcon { my ($output, $pageURL); $pageURL = $_[1] || $session{page}{urlizedTitle}; $output = ''; - $output .= 'Move To Bottom'; + $output .= 'Move To Bottom'; return $output; } @@ -274,7 +245,7 @@ sub moveDownIcon { my ($output, $pageURL); $pageURL = $_[1] || $session{page}{urlizedTitle}; $output = ''; - $output .= 'Move Down'; + $output .= 'Move Down'; return $output; } @@ -302,7 +273,7 @@ sub moveTopIcon { my ($output, $pageURL); $pageURL = $_[1] || $session{page}{urlizedTitle}; $output = ''; - $output .= 'Move To Top'; + $output .= 'Move To Top'; return $output; } @@ -330,7 +301,7 @@ sub moveUpIcon { my ($output, $pageURL); $pageURL = $_[1] || $session{page}{urlizedTitle}; $output = ''; - $output .= 'Move Up'; + $output .= 'Move Up'; return $output; } @@ -343,7 +314,7 @@ Generates an icon that looks like a page. It's purpose is to represent whether y =cut sub pageIcon { - return 'Page Settings'; + return 'Page Settings'; } #------------------------------------------------------------------- @@ -370,7 +341,7 @@ sub viewIcon { my ($output, $pageURL); $pageURL = $_[1] || $session{page}{urlizedTitle}; $output = ''; - $output .= 'View'; + $output .= 'View'; return $output; } @@ -383,7 +354,7 @@ Generates an icon that looks like a wobject. It's purpose is to represent whethe =cut sub wobjectIcon { - return 'Wobject Settings'; + return 'Wobject Settings'; }