Kevin Ryde > chart-248 > App::Chart::RawDailyModel

Download:
chart-248.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

New  15
Open  3
View/Report Bugs
Source  

NAME ^

App::Chart::RawDailyModel -- raw daily data model

SYNOPSIS ^

 use App::Chart::RawDailyModel;
 my $model = App::Chart::RawDailyModel->new (symlist => $symlist);

OBJECT HIERARCHY ^

App::Chart::RawDailyModel is a subclass of Glib::Object,

    Glib::Object
      App::Chart::RawDailyModel

The following GInterfaces are implemented

    Gtk2::TreeModel
    Gtk2::Buildable (inherited)

DESCRIPTION ^

A App::Chart::RawDailyModel object presents database daily data in Gtk2::TreeModel form.

FUNCTIONS ^

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

Create and return a App::Chart::RawDailyModel object. Optional key/value pairs can be given to set initial properties as per Glib::Object->new.

$model->set_value ($iter, $col, $value)

Set the value in row $iter and column $col to $value. This updates the database (and emits the row-changed signal).

CONSTANTS ^

The following constants give column numbers in the model,

    App::Chart::RawDailyModel::COL_DATE
    App::Chart::RawDailyModel::COL_OPEN
    App::Chart::RawDailyModel::COL_HIGH
    App::Chart::RawDailyModel::COL_LOW
    App::Chart::RawDailyModel::COL_CLOSE
    App::Chart::RawDailyModel::COL_VOLUME
    App::Chart::RawDailyModel::COL_OPENINT

PROPERTIES ^

symbol (string, default empty "")

The symbol to present data for. Currently the intention is that this is "construct-only", ie. to be set only when first constructing the model.

Perhaps in the future something tricky can be done to update the data with updates for all rows and insert/deletes to try to keep date rows common to the new and old symbol. (But maintaining a date position is probably much more easily done by the view.)

SEE ALSO ^

App::Chart::Gtk2::RawDialog

syntax highlighting: