Lumiera  0.pre.03
»edityourfreedom«
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
clip-track.cpp
Go to the documentation of this file.
1 /*
2  clip-track.cpp - Implementation of a clip containing track object
3 
4  Copyright (C) Lumiera.org
5  2008, Joel Holdsworth <joel@airwebreathe.org.uk>
6 
7  This program is free software; you can redistribute it and/or
8  modify it under the terms of the GNU General Public License as
9  published by the Free Software Foundation; either version 2 of
10  the License, or (at your option) any later version.
11 
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program; if not, write to the Free Software
19  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 
21 * *****************************************************/
22 
23 
30 #include "clip-track.hpp"
31 
32 #include "clip.hpp"
33 
34 
35 namespace gui {
36 namespace model {
37 
39  {
40  // TEST CODE: add a clip to the track
41 
42  shared_ptr<model::Clip> modelClip(new model::Clip());
43  modelClip->setName("Clip Name");
44  clips.push_back(modelClip);
45 
46  // END TEST CODE
47  }
48 
49  std::string
51  {
52  std::ostringstream os;
53 
54  os << "ClipTrack\t\"" << get_name() << "\"";
55 
56  return os.str();
57  }
58 
61  {
62  return clips;
63  }
64 
65 } // namespace model
66 } // namespace gui
Preliminary UI-model: a Proxy Clip object to base the GUI implementation on.
lumiera::observable_list< shared_ptr< Clip > > & getClipList(void)
Gets the list of clips associated with this track.
Definition: clip-track.cpp:60
An observable_list is an STL list with an inbuilt sigc++ signal that allows observers to be notified ...
Lumiera GTK UI implementation root.
Definition: guifacade.cpp:47
lumiera::observable_list< shared_ptr< Clip > > clips
Definition: clip-track.hpp:64
ClipTrack()
Constructor.
Definition: clip-track.cpp:38
Preliminary UI-model: Definition of timeline track objects which contain clips.
const std::string get_name() const
Gets the name of this track.
Definition: track.cpp:77
std::string print_track()
Gets a string representation of the track that is suitable for debugging.
Definition: clip-track.cpp:50