/usr/include/tse3/cmd/Song.h is in libtse3-dev 0.3.1-6.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 | /*
* @(#)cmd/Song.h 3.00 10 June 1999
*
* Copyright (c) 2000 Pete Goodliffe (pete@cthree.org)
*
* This file is part of TSE3 - the Trax Sequencer Engine version 3.00.
*
* This library is modifiable/redistributable under the terms of the GNU
* General Public License.
*
* You should have received a copy of the GNU General Public License along
* with this program; see the file COPYING. If not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*/
#ifndef TSE3_CMD_SONG_H
#define TSE3_CMD_SONG_H
#include "tse3/cmd/Command.h"
#include "tse3/Song.h"
#include <string>
#include <vector>
#include <cstddef>
namespace TSE3
{
class Part;
class Phrase;
namespace Cmd
{
/**
* Command to set a @ref Song's info (the title, author, copyright
* and date strings).
*
* @short Set Song info strings Command
* @author Pete Goodliffe
* @version 3.00
* @see Command
*/
class Song_SetInfo : public Command
{
public:
/**
* To create this command specify the @ref Song object to alter
* and the new information.
*/
Song_SetInfo(TSE3::Song *s,
const std::string &title,
const std::string &author,
const std::string ©right,
const std::string &date);
protected:
/**
* @reimplemented
*/
virtual void executeImpl();
/**
* @reimplemented
*/
virtual void undoImpl();
private:
TSE3::Song *song;
std::string newTitle, oldTitle;
std::string newAuthor, oldAuthor;
std::string newCopyright, oldCopyright;
std::string newDate, oldDate;
};
/**
* Command to set a @ref Song's title.
*
* @short Set Song title Command
* @author Pete Goodliffe
* @version 3.00
* @see Command
*/
class Song_SetTitle
: public VariableSetCommand<TSE3::Song, std::string,
const std::string &,
&TSE3::Song::title, &TSE3::Song::setTitle>
{
public:
/**
* To create this command specify the @ref Song object to alter
* and the new title.
*/
Song_SetTitle(TSE3::Song *s, const std::string &str)
: VariableSetCommand<TSE3::Song, std::string,
const std::string &,
&TSE3::Song::title, &TSE3::Song::setTitle>
(s, str, "song title") {}
};
/**
* Command to set a @ref Song's author.
*
* @short Set Song author Command
* @author Pete Goodliffe
* @version 3.00
* @see Command
*/
class Song_SetAuthor
: public VariableSetCommand<TSE3::Song, std::string,
const std::string &,
&TSE3::Song::author, &TSE3::Song::setAuthor>
{
public:
/**
* To create this command specify the @ref Song object to alter
* and the new author.
*/
Song_SetAuthor(TSE3::Song *s, const std::string &str)
: VariableSetCommand<TSE3::Song, std::string,
const std::string &,
&TSE3::Song::author, &TSE3::Song::setAuthor>
(s, str, "author") {}
};
/**
* Command to set a @ref Song's copyright.
*
* @short Set Song copyright Command
* @author Pete Goodliffe
* @version 3.00
* @see Command
*/
class Song_SetCopyright
: public VariableSetCommand<TSE3::Song, std::string,
const std::string &,
&TSE3::Song::copyright,
&TSE3::Song::setCopyright>
{
public:
/**
* To create this command specify the @ref Song object to alter
* and the new copyright message.
*/
Song_SetCopyright(TSE3::Song *s, const std::string &str)
: VariableSetCommand<TSE3::Song, std::string,
const std::string &,
&TSE3::Song::copyright,
&TSE3::Song::setCopyright>
(s, str, "copyright") {}
};
/**
* Command to set a @ref Song's date.
*
* @short Set Song date Command
* @author Pete Goodliffe
* @version 3.00
* @see Command
*/
class Song_SetDate
: public VariableSetCommand<TSE3::Song, std::string,
const std::string &,
&TSE3::Song::date, &TSE3::Song::setDate>
{
public:
/**
* To create this command specify the @ref Song object to alter
* and the new date.
*/
Song_SetDate(TSE3::Song *s, const std::string &str)
: VariableSetCommand<TSE3::Song, std::string,
const std::string &,
&TSE3::Song::date, &TSE3::Song::setDate>
(s, str, "song date") {}
};
/**
* Command to insert a new blank @ref Track into a @ref Song.
*
* @short Insert Track Command
* @author Pete Goodliffe
* @version 3.00
* @see Command
*/
class Song_InsertTrack : public Command
{
public:
/**
* Insert a new blank @ref TSE3::Track into the @ref TSE3::Song
* @p song at index @p track.
*
* @param song @ref TSE3::Song to insert @ref TSE3::Track into
* @param track Index at which to insert new @ref TSE3::Track
*/
Song_InsertTrack(TSE3::Song *song, size_t track);
protected:
/**
* @reimplemented
*/
virtual void executeImpl();
/**
* @reimplemented
*/
virtual void undoImpl();
private:
TSE3::Song *song;
int track;
};
/**
* Command to remove a @ref Track from a @ref Song.
*
* @short Remove Track Command
* @author Pete Goodliffe
* @version 3.00
* @see Command
*/
class Song_RemoveTrack : public Command
{
public:
/**
* Remove the specified @ref TSE3::Track from it's parent
* @ref TSE3::Song.
*
* @param track @ref TSE3:Track to remove
*/
Song_RemoveTrack(TSE3::Track *track);
/**
* Remove the @ref TSE3::Track specified by the index
* @p track in the @ref TSE3::Song @p song.
*
* @param song @ref TSE3::Song to remove @ref TSE3::Track from
* @param track Index of @ref TSE3::Track to remove
*/
Song_RemoveTrack(TSE3::Song *song, size_t track);
/**
* Remove the specified @ref TSE3::Track @p track from the
* @ref TSE3::Song @p song.
*
* @param song @ref TSE3::Song to remove @ref TSE3::Track from
* @param track @ref TSE3::Track to remove
*/
Song_RemoveTrack(TSE3::Song *song, Track *track);
virtual ~Song_RemoveTrack();
protected:
/**
* @reimplemented
*/
virtual void executeImpl();
/**
* @reimplemented
*/
virtual void undoImpl();
private:
TSE3::Song *song;
TSE3::Track *track;
int trackno;
};
/**
* Command to set the solo @ref Track in a @ref Song.
*
* @short Solo Track Command
* @author Pete Goodliffe
* @version 3.00
* @see Command
*/
class Song_SoloTrack : public Command
{
public:
Song_SoloTrack(TSE3::Song *song, int track);
protected:
/**
* @reimplemented
*/
virtual void executeImpl();
/**
* @reimplemented
*/
virtual void undoImpl();
private:
TSE3::Song *song;
int track;
int old;
};
}
}
#endif
|