Canorus
0.7
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
scripting
swigruby.h
Go to the documentation of this file.
1
8
#ifdef USE_RUBY
9
#ifndef SWIGRUBY_H_
10
#define SWIGRUBY_H_
11
12
#include <ruby.h>
13
14
#include <QString>
15
#include <QList>
16
17
class
CASwigRuby {
18
public
:
19
enum
CAClassType {
20
// Qt objects
21
String,
22
23
// Canorus objects
24
Document,
25
Sheet,
26
Context,
27
Staff,
28
Voice,
29
FunctionMarkContext,
30
MusElement,
31
Playable,
32
Note,
33
Rest,
34
KeySignature,
35
TimeSignature,
36
Clef,
37
Barline,
38
FunctionMark,
39
LyricsContext,
40
Syllable,
41
Mark,
42
Slur,
43
Tuplet,
44
45
// Console
46
PyConsoleInterface
47
};
48
49
static
void
init();
50
59
static
VALUE callFunction(QString fileName, QString
function
, QList<VALUE> args);
60
69
static
VALUE toRubyObject(
void
*
object
, CAClassType type);
//defined in scripting/canorusruby.i file
70
};
71
72
#endif
/*SWIGRUBY_H_*/
73
#endif
Generated on Fri Jan 11 2013 14:40:12 for Canorus by
1.8.3