]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/key-item.hh
release: 1.3.98
[lilypond.git] / lily / include / key-item.hh
index d8a7f295a05f5f5948b0ce5d42ec51af045d46ae..0f2c4d14df36c0cb3a881179b95a809a9b93f25e 100644 (file)
@@ -7,31 +7,16 @@
 #ifndef KEYITEM_HH
 #define KEYITEM_HH
 
-#include "item.hh"
-#include "array.hh"
+#include "lily-guile.hh"
+#include "lily-proto.hh"
 
 
-/** An item which places accidentals at the start of the line
-
-    TODO: Schemify me.
- */
-class Key_item :public  Item
+struct Key_item
 {
-  Array<int> pitch_arr_;
-  Array<int> acc_arr_;
-  Array<int> old_pitch_arr_;
-  Array<int> old_acc_arr_;
-
-public:
-  VIRTUAL_COPY_CONS(Score_element);
-  Key_item ();
-  void add (int pitch, int acc);
-  void add_old (int pitch, int acc);
-
-  int calculate_position(int p, int a) const;
-
-protected:
-  virtual Molecule do_brew_molecule() const;
+  static int calculate_position(Score_element*,SCM pair) ;
+  static void set_interface (Score_element*);
+  static bool has_interface (Score_element*);
+  DECLARE_SCHEME_CALLBACK(brew_molecule, (SCM ));
 };
 
 #endif // KEYITEM_HH