LUMIERA.clone/src/gui/model/sequence.hpp

81 lines
1.9 KiB
C++
Raw Normal View History

2008-11-22 20:08:12 +01:00
/*
SEQUENCE.hpp - GUI-model: Sequence
2010-12-17 23:28:49 +01:00
2008-11-22 20:08:12 +01:00
Copyright (C) Lumiera.org
2008, Joel Holdsworth <joel@airwebreathe.org.uk>
2010-12-17 23:28:49 +01:00
2008-11-22 20:08:12 +01:00
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
2010-12-17 23:28:49 +01:00
published by the Free Software Foundation; either version 2 of
the License, or (at your option) any later version.
2008-11-22 20:08:12 +01:00
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
2010-12-17 23:28:49 +01:00
2008-11-22 20:08:12 +01:00
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
2010-12-17 23:28:49 +01:00
2008-11-22 20:08:12 +01:00
*/
2008-11-22 20:08:12 +01:00
/** @file sequence.hpp
** Preliminary UI-model: representation of an editable sequence.
** @warning as of 2016 this UI model is known to be a temporary workaround
** and will be replaced in entirety by UI-Bus and diff framework.
**
** @todo Currently (1/2014) this is a dummy placeholder, intention is
** to connect GUI-Model entities to the Session model eventually.
2008-11-22 20:08:12 +01:00
*/
2008-11-22 20:08:12 +01:00
#ifndef SEQUENCE_HPP
#define SEQUENCE_HPP
#include "gui/model/parent-track.hpp"
#include "lib/hash-indexed.hpp"
#include <string>
2008-11-22 20:08:12 +01:00
namespace gui {
namespace model {
2008-11-25 23:11:58 +01:00
class Track;
2008-11-22 20:08:12 +01:00
2009-01-24 13:30:07 +01:00
/**
* GUI-model representation of a sequence.
2009-01-24 13:30:07 +01:00
* @remarks Sequence objects are also the roots of track trees.
*/
class Sequence
: public ParentTrack
{
lib::hash::LuidH id_;
public:
Sequence()
: id_()
{
populateDummySequence();
};
operator lib::HashVal() const
{
return id_;
}
/** human readable debug string representation of this track. */
std::string print_track();
2008-11-22 20:08:12 +01:00
private:
void populateDummySequence();
};
2008-11-22 20:08:12 +01:00
} // namespace model
} // namespace gui
#endif // SEQUENCE_HPP