summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Redfern <tim@eclectronics.org>2013-11-15 14:43:47 +0000
committerTim Redfern <tim@eclectronics.org>2013-11-15 14:43:47 +0000
commit6c5ba0ff0a4301b932c70aee6b4c87b2092d8bff (patch)
tree08ee69e65c9bfa6174d40439b683596b3200e4a4
parentfddf215e9ddbfc803d902d4a74f49e2186b4a4da (diff)
making lyrics node
-rw-r--r--rotord/src/nodes_drawing.h10
-rw-r--r--rotord/src/rotor.cpp1
2 files changed, 6 insertions, 5 deletions
diff --git a/rotord/src/nodes_drawing.h b/rotord/src/nodes_drawing.h
index 84c9122..c2d79e6 100644
--- a/rotord/src/nodes_drawing.h
+++ b/rotord/src/nodes_drawing.h
@@ -111,19 +111,19 @@ namespace Rotor {
}
private:
};
- class Lyrics_text: public Text_base {
+ class Lyrics: public Text_base {
public:
- Lyrics_text(){
+ Lyrics(){
title="Lyrics text";
description="Draws lyrics text";
create_attribute("lyrics","Lyrics to draw","Lyrics","hello, world!");
NODEID="ac4318b8-4de9-11e3-b2eb-74d02b29f6a6";
};
- Lyrics_text(map<string,string> &settings):Lyrics_text() {
+ Lyrics(map<string,string> &settings):Lyrics() {
base_settings(settings);
};
- ~Lyrics_text(){};
- Lyrics_text* clone(map<string,string> &_settings) { return new Lyrics_text(_settings);};
+ ~Lyrics(){};
+ Lyrics* clone(map<string,string> &_settings) { return new Lyrics(_settings);};
string select_text(const Frame_spec &frame){
return "Hello, world!";
}
diff --git a/rotord/src/rotor.cpp b/rotord/src/rotor.cpp
index e9f8595..0bb9341 100644
--- a/rotord/src/rotor.cpp
+++ b/rotord/src/rotor.cpp
@@ -42,6 +42,7 @@ Node_factory::Node_factory(){
add_type("signal_greyscale",new Signal_greyscale(),category["Source"]);
add_type("shape",new Shape(),category["Source"]);
add_type("text",new Text(),category["Source"]);
+ add_type("lyrics",new Lyrics(),category["Source"]);
add_type("waves",new Waves(),category["Source"]);
add_type("still_image",new Still_image(),category["Source"]);
add_type("video_loader",new Video_loader(),category["Source"]);