projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge master.
[dcpomatic.git]
/
src
/
wx
/
timeline.h
diff --git
a/src/wx/timeline.h
b/src/wx/timeline.h
index b3ee77fff84644a14eb2158ab38fd64778b19a6d..4ba1cc425f022b6fe11d634052f7915a5c012ee8 100644
(file)
--- a/
src/wx/timeline.h
+++ b/
src/wx/timeline.h
@@
-29,12
+29,12
@@
class Film;
class View;
class ContentView;
class FilmEditor;
class View;
class ContentView;
class FilmEditor;
-class
DCP
TimeAxisView;
+class TimeAxisView;
-class
DCP
Timeline : public wxPanel
+class Timeline : public wxPanel
{
public:
{
public:
-
DCP
Timeline (wxWindow *, FilmEditor *, boost::shared_ptr<Film>);
+ Timeline (wxWindow *, FilmEditor *, boost::shared_ptr<Film>);
boost::shared_ptr<const Film> film () const;
boost::shared_ptr<const Film> film () const;
@@
-52,8
+52,8
@@
public:
return 48;
}
return 48;
}
-
double pixels_per_time_unit
() const {
- return _pixels_per_
time_unit
;
+
boost::optional<double> pixels_per_second
() const {
+ return _pixels_per_
second
;
}
Position<int> tracks_position () const {
}
Position<int> tracks_position () const {
@@
-62,7
+62,7
@@
public:
int tracks () const;
int tracks () const;
- void setup_pixels_per_
time_unit
();
+ void setup_pixels_per_
second
();
void set_snap (bool s) {
_snap = s;
void set_snap (bool s) {
_snap = s;
@@
-94,9
+94,9
@@
private:
FilmEditor* _film_editor;
boost::weak_ptr<Film> _film;
ViewList _views;
FilmEditor* _film_editor;
boost::weak_ptr<Film> _film;
ViewList _views;
- boost::shared_ptr<
DCP
TimeAxisView> _time_axis_view;
+ boost::shared_ptr<TimeAxisView> _time_axis_view;
int _tracks;
int _tracks;
-
double _pixels_per_time_unit
;
+
boost::optional<double> _pixels_per_second
;
bool _left_down;
wxPoint _down_point;
boost::shared_ptr<ContentView> _down_view;
bool _left_down;
wxPoint _down_point;
boost::shared_ptr<ContentView> _down_view;