source: extensions/pLoader/trunk/src/Uploader/GUI/wxHtmlWindow.pm @ 4118

Last change on this file since 4118 was 3357, checked in by ronosman, 15 years ago

Feature 1012 and 1013 : improved Getting started and Preview panel.

  • Property svn:eol-style set to LF
File size: 1.9 KB
Line 
1# +-----------------------------------------------------------------------+
2# | pLoader - a Perl photo uploader for Piwigo                            |
3# +-----------------------------------------------------------------------+
4# | Copyright(C) 2008      Piwigo Team                  http://piwigo.org |
5# +-----------------------------------------------------------------------+
6# | This program is free software; you can redistribute it and/or modify  |
7# | it under the terms of the GNU General Public License as published by  |
8# | the Free Software Foundation                                          |
9# |                                                                       |
10# | This program is distributed in the hope that it will be useful, but   |
11# | WITHOUT ANY WARRANTY; without even the implied warranty of            |
12# | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
13# | General Public License for more details.                              |
14# |                                                                       |
15# | You should have received a copy of the GNU General Public License     |
16# | along with this program; if not, write to the Free Software           |
17# | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
18# | USA.                                                                  |
19# +-----------------------------------------------------------------------+
20package Uploader::GUI::wxHtmlWindow;
21
22use strict;
23use Wx::Html;
24use base qw(Wx::HtmlWindow);
25
26sub new {
27  my $class = shift;
28  my $this = $class->SUPER::new( @_ );
29
30  return $this;
31}
32
33sub InitHrefCallbacks {
34    my ( $self, $callbacks ) = @_;
35   
36    $callbacks ||={};
37    $self->{HrefCallbacks} = $callbacks ;       
38}
39
40sub OnLinkClicked {
41  my( $this, $link ) = @_;
42
43  my $href = $link->GetHref();
44
45  $this->{HrefCallbacks}->{$href}->() if exists $this->{HrefCallbacks}->{$href};
46
47}
48
491;
Note: See TracBrowser for help on using the repository browser.