Kevin Ryde > chart > App::Chart::Gtk2::WatchlistSymbolMenu

Download:
chart-249.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

New  16
Open  3
View/Report Bugs
Source  

NAME ^

App::Chart::Gtk2::WatchlistSymbolMenu -- menu for watchlist symbol

SYNOPSIS ^

 use App::Chart::Gtk2::WatchlistSymbolMenu;
 App::Chart::Gtk2::WatchlistSymbolMenu->popup_from_treeview ($event, $treeview);

WIDGET HIERARCHY ^

App::Chart::Gtk2::WatchlistSymbolMenu is a subclass of Gtk::Menu,

    Gtk2::Widget
      Gtk2::Container
        Gtk2::MenuShell
          Gtk2::Menu
            App::Chart::Gtk2::WatchlistSymbolMenu

DESCRIPTION ^

A App::Chart::Gtk2::WatchlistSymbolMenu shows the following things which can be done from a symbol in the Watchlist. It's split out from the main Watchlist code to keep the size there down and since it may not be needed at all if not used.

    +----------+
    | <SYMBOL> |
    +----------+
    | Chart    |    view the full chart
    | Refresh  |    get a new quote
    | Intraday |    view an intraday graph
    | Web >    |    web links from App::Chart::Gtk2::WeblinkMenu
    +----------+

FUNCTIONS ^

App::Chart::Gtk2::WatchlistSymbolMenu->new (key=>value,...)

Create and return a new App::Chart::Gtk2::WatchlistSymbolMenu object. Optional key/value pairs set initial properties as per Glib::Object->new.

App::Chart::Gtk2::WatchlistSymbolMenu->popup_from_treeview ($event, $treeview)
$wsmenu->popup_from_treeview ($event, $treeview)

Popup the given $wsmenu, or as a class method create and popup a new menu, in both cases for the symbol under the mouse pointer in $treeview.

$event should be a Gtk2::Gdk::Event giving the mouse position and the model in $treeview is expected to be a App::Chart::Gtk2::WatchlistModel.

PROPERTIES ^

symbol (App::Chart::Gtk2::Job, default undef)

The stock or commodity symbol string to be acted on by the menu. This is shown in a non-clickable entry in the menu.

symlist (App::Chart::Gtk2::Symlist object, default undef)

The symlist the symbol is from. This is only used for the "Chart" menu item to give a symlist to the main view so Next/Prev will go from within that symlist.

SEE ALSO ^

App::Chart::Gtk2::WatchlistDialog, App::Chart::Gtk2::Symlist

syntax highlighting: