diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-01-09 23:18:28 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-01-09 23:18:28 +0000 |
| commit | 6bfdd0f45927a4dfecf10e851b1902a899de5aa2 (patch) | |
| tree | 3e079a097f8a7d4ff3fb11020aaacca563fd09b5 /src/wx/kdm_dialog.cc | |
| parent | 914849f57d4979d537fe4215576bc6e05d2f8795 (diff) | |
Some more KDM hacking.
Diffstat (limited to 'src/wx/kdm_dialog.cc')
| -rw-r--r-- | src/wx/kdm_dialog.cc | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/wx/kdm_dialog.cc b/src/wx/kdm_dialog.cc index 34004902b..43d904d90 100644 --- a/src/wx/kdm_dialog.cc +++ b/src/wx/kdm_dialog.cc @@ -321,3 +321,44 @@ KDMDialog::remove_screen_clicked (wxCommandEvent &) Config::instance()->write (); } + +list<shared_ptr<Screen> > +KDMDialog::screens () const +{ + list<shared_ptr<Screen> > s; + + list<pair<wxTreeItemId, shared_ptr<Cinema> > > cinemas = selected_cinemas (); + for (list<pair<wxTreeItemId, shared_ptr<Cinema> > >::iterator i = cinemas.begin(); i != cinemas.end(); ++i) { + for (list<Screen>::iterator j = i->second->screens.begin(); j != i->second->screens.end(); ++j) { + s.push_back (*j); + } + } + + list<pair<wxTreeItemId, shared_ptr<Screen> > > screens = selected_screens (); + for (list<pair<wxTreeItemId, shared_ptr<Screen> > >::iterator i = screens.begin(); i != screens.end(); ++i) { + s.push_back (i->second); + } + + s.sort (); + s.uniq (); + + return s; +} + +boost::locale::date_time +KDMDialog::from () const +{ + +} + +boost::locale::date_time +KDMDialog::until () const +{ + +} + +string +KDMDialog::directory () const +{ + return wx_to_std (_folder->GetPath ()); +} |
