App::Chart::RawDailyModel -- raw daily data model
use App::Chart::RawDailyModel; my $model = App::Chart::RawDailyModel->new (symlist => $symlist);
App::Chart::RawDailyModel is a subclass of Glib::Object,
App::Chart::RawDailyModel
Glib::Object
Glib::Object App::Chart::RawDailyModel
The following GInterfaces are implemented
Gtk2::TreeModel Gtk2::Buildable (inherited)
A App::Chart::RawDailyModel object presents database daily data in Gtk2::TreeModel form.
Gtk2::TreeModel
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.
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).
$iter
$col
$value
row-changed
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
symbol
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.)
App::Chart::Gtk2::RawDialog
To install App::Chart, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Chart
CPAN shell
perl -MCPAN -e shell install App::Chart
For more information on module installation, please visit the detailed CPAN module installation guide.