| 1 | # Kuala Lumpur Stock Exchange setups. | ||
| 2 | |||
| 3 | # Copyright 2005, 2006, 2007, 2008, 2009 Kevin Ryde | ||
| 4 | |||
| 5 | # This file is part of Chart. | ||
| 6 | # | ||
| 7 | # Chart is free software; you can redistribute it and/or modify it under the | ||
| 8 | # terms of the GNU General Public License as published by the Free Software | ||
| 9 | # Foundation; either version 3, or (at your option) any later version. | ||
| 10 | # | ||
| 11 | # Chart is distributed in the hope that it will be useful, but WITHOUT ANY | ||
| 12 | # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | ||
| 13 | # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more | ||
| 14 | # details. | ||
| 15 | # | ||
| 16 | # You should have received a copy of the GNU General Public License along | ||
| 17 | # with Chart. If not, see <http://www.gnu.org/licenses/>. | ||
| 18 | |||
| 19 | package App::Chart::Suffix::KL; | ||
| 20 | use strict; | ||
| 21 | use warnings; | ||
| 22 | use Locale::TextDomain 'App-Chart'; | ||
| 23 | |||
| 24 | use App::Chart; | ||
| 25 | use App::Chart::Sympred; | ||
| 26 | use App::Chart::TZ; | ||
| 27 | use App::Chart::Weblink; | ||
| 28 | use App::Chart::Yahoo; | ||
| 29 | |||
| 30 | my $timezone_kualalumpur = App::Chart::TZ->new | ||
| 31 | (name => __('Kuala Lumpur'), | ||
| 32 | choose => [ 'Asia/Kuala_Lumpur' ], | ||
| 33 | fallback => 'MYT-8'); | ||
| 34 | |||
| 35 | # ^KLSE composite | ||
| 36 | my $pred_indexes = App::Chart::Sympred::Prefix->new ('^KL'); | ||
| 37 | my $pred_shares = App::Chart::Sympred::Suffix->new ('.KL'); | ||
| 38 | |||
| 39 | my $pred_any = App::Chart::Sympred::Any->new ($pred_shares, $pred_indexes); | ||
| 40 | $timezone_kualalumpur->setup_for_symbol ($pred_any); | ||
| 41 | |||
| 42 | |||
| 43 | #------------------------------------------------------------------------------ | ||
| 44 | # weblink - only the home page for now ... | ||
| 45 | |||
| 46 | App::Chart::Weblink->new | ||
| 47 | (pred => $pred_any, | ||
| 48 | name => __('_Kuala Lumpur Stock Exchange Home Page'), | ||
| 49 | desc => __('Open web browser at the Kuala Lumpur Stock Exchange home page'), | ||
| 50 | url => 'http://www.klse.com.my'); | ||
| 51 | |||
| 52 | |||
| 53 | 1; | ||
| 54 | __END__ |