]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/note-column.hh
release: 1.3.107
[lilypond.git] / lily / include / note-column.hh
index 960349f403c46c333658018ae0eb80b67c158d4c..65dd50c2ab07189ffc837283e0742bd0f0e562da 100644 (file)
@@ -3,7 +3,7 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c)  1997--1998 Han-Wen Nienhuys <hanwen@stack.nl>
+  (c)  1997--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 */
 
 
 #define NOTE_COLUMN_HH
 
 #include "item.hh"
-#include "script-column.hh"
 
 /** a struct for treating a group of noteheads (noteheads, stem
-  (chord) and scripts) as a single entity.  */
-class Note_column : public Script_column {
-protected:
-  virtual void do_pre_processing();
-  virtual void do_print () const;
-  virtual void do_substitute_dependency (Score_elem*,Score_elem*);
+  (chord) and scripts) as a single entity.
+
+  UGR. Junkme.  refpoint should be the notehead, dir should come from stem.
+
+*/
+class Note_column
+{
 public:
+  static int shift_compare (Score_element *const &, Score_element*const&);
+  
   /** The relative position of the "voice" containing this
     chord. Normally this would be the same as the stem direction,
-    but rests do not have stems.  
+
+    JUNKME.
     */
-  Direction dir_;
-  bool h_shift_b_;
-  Stem* stem_l_;
-
-
-  Link_array<Note_head> head_l_arr_;
-  Link_array<Rest> rest_l_arr_;
-    
-  Interval_t<int> head_positions_interval() const;
-  void translate_rests(int dy);
-        
-  DECLARE_MY_RUNTIME_TYPEINFO;
-  Note_column ();
-  void set (Stem*);
-  void set (Dot_column*);
-  void add (Rhythmic_head*);
-  bool rest_b () const;
-  virtual void add (Script*s);
-  void sort ();
+
+  static Direction dir (Score_element*me);
+  static Slice head_positions_interval(Score_element* me);
+  static Direction static_dir (Score_element*);
+  static void translate_rests(Score_element*me,int dy);
+  static Score_element * first_head (Score_element*me);
+  static void set_stem (Score_element*me,Score_element*);
+  static void set_dotcol (Score_element*me,Score_element*);
+  static void add_head (Score_element*me,Score_element*);
+  static bool rest_b (Score_element*me);
+  static bool has_interface (Score_element*);
+  static void set_interface (Score_element*);
+  static Item *stem_l(Score_element*);
 };
 
 #endif // NOTE_COLUMN_HH