| 1 | # Vienna Stock Exchange setups. | ||
| 2 | |||
| 3 | # Copyright 2005, 2006, 2007, 2008, 2009, 2010 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::VI; | ||
| 20 | use strict; | ||
| 21 | use warnings; | ||
| 22 | use Locale::TextDomain 'App-Chart'; | ||
| 23 | |||
| 24 | use App::Chart::Glib::Ex::MoreUtils; | ||
| 25 | use App::Chart; | ||
| 26 | use App::Chart::Sympred; | ||
| 27 | use App::Chart::TZ; | ||
| 28 | use App::Chart::Weblink; | ||
| 29 | use App::Chart::Yahoo; | ||
| 30 | |||
| 31 | my $timezone_vienna = App::Chart::TZ->new | ||
| 32 | (name => __('Vienna'), | ||
| 33 | choose => [ 'Europe/Vienna' ], | ||
| 34 | fallback => 'CET-1'); | ||
| 35 | |||
| 36 | # Indexes: | ||
| 37 | # ^ATX | ||
| 38 | # and avoid ^ATLI and similar in AX.pm | ||
| 39 | # | ||
| 40 | my $pred_indexes = App::Chart::Sympred::Prefix->new ('^ATX'); | ||
| 41 | my $pred_shares = App::Chart::Sympred::Suffix->new ('.VI'); | ||
| 42 | |||
| 43 | my $pred_any = App::Chart::Sympred::Any->new ($pred_indexes, $pred_shares); | ||
| 44 | $timezone_vienna->setup_for_symbol ($pred_any); | ||
| 45 | |||
| 46 | |||
| 47 | #------------------------------------------------------------------------------ | ||
| 48 | # weblink - only the home page for now ... | ||
| 49 | # Info urls use isin, so would have to look that up somehow ... | ||
| 50 | |||
| 51 | App::Chart::Weblink->new | ||
| 52 | (pred => $pred_any, | ||
| 53 | name => __('_Vienna Stock Exchange Home Page'), | ||
| 54 | desc => __('Open web browser at the Vienna Stock Exchange home page'), | ||
| 55 | url => App::Chart::Glib::Ex::MoreUtils::lang_select | ||
| 56 | (de => 'http://www.wienerborse.at', | ||
| 57 | en => 'http://en.wienerborse.at')); | ||
| 58 | |||
| 59 | 1; | ||
| 60 | __END__ |