]> git.donarmstrong.com Git - lilypond.git/commitdiff
rename
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Wed, 4 May 2005 10:11:32 +0000 (10:11 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Wed, 4 May 2005 10:11:32 +0000 (10:11 +0000)
Interpretation_context_handle to Context_handle.

ChangeLog
flower/include/interval.hh
lily/auto-change-iterator.cc
lily/context-handle.cc
lily/include/context.hh
lily/include/interpretation-context-handle.hh [deleted file]
lily/include/music-iterator.hh
lily/main.cc
lily/pango-font.cc
lily/part-combine-iterator.cc
lily/quote-iterator.cc

index e00226195fb132762e0bb857b0ae949eb4b874c9..3406001df9e0bac6fed611e286c2e13797246f2c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-05-04  Han-Wen Nienhuys  <hanwen@xs4all.nl>
+
+       * lily/include/interpretation-context-handle.hh: rename
+       Interpretation_context_handle to Context_handle.
+
 2005-05-04  Heikki Junes  <hjunes@cc.hut.fi>
 
        * input/regression/GNUmakefile (local_delete): use `find` together 
index 41f9c7887f543a6bf85f6632c41840976ed30a08..ddfdefd70b7d2a31b58a603258e5b578b82bf66d 100644 (file)
@@ -205,7 +205,6 @@ Interval_t<T>::center () const
   return (elem (LEFT) + elem (RIGHT)) / T (2);
 }
 
-// again? see flower-proto.hh
 typedef Interval_t<Real> Interval;
 typedef Interval_t<int> Slice; // weird name
 
index 05fadd5c486c0f265efa14ec9fe7749426621292..1d07d6a7de8c076b6b09bc992f4269466f461c52 100644 (file)
@@ -29,8 +29,8 @@ private:
   void change_to (Music_iterator *, SCM, String);
   Moment start_moment_;
 
-  Interpretation_context_handle up_;
-  Interpretation_context_handle down_;
+  Context_handle up_;
+  Context_handle down_;
 };
 
 void
index 2af07a4c5e73972e06630db1621de35c8fdd3ee5..1799db14614da9c09715fb5c557963d7a2b0cd12 100644 (file)
@@ -1,27 +1,27 @@
 /*
-  interpretation-context-handle.cc -- implement Interpretation_context_handle
+  context-handle.cc -- implement Context_handle
 
   source file of the GNU LilyPond music typesetter
 
   (c) 1999--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 */
 
-#include "interpretation-context-handle.hh"
+#include "context-handle.hh"
 #include "context.hh"
 
-Interpretation_context_handle::Interpretation_context_handle ()
+Context_handle::Context_handle ()
 {
   outlet_ = 0;
 }
 
-Interpretation_context_handle::Interpretation_context_handle (Interpretation_context_handle const &s)
+Context_handle::Context_handle (Context_handle const &s)
 {
   outlet_ = 0;
   if (s.outlet_)
     up (s.outlet_);
 }
 
-Interpretation_context_handle::~Interpretation_context_handle ()
+Context_handle::~Context_handle ()
 {
   /*
     Don't do
@@ -34,33 +34,33 @@ Interpretation_context_handle::~Interpretation_context_handle ()
 }
 
 void
-Interpretation_context_handle::up (Context *t)
+Context_handle::up (Context *t)
 {
   outlet_ = t;
   t->iterator_count_++;
 }
 
 void
-Interpretation_context_handle::down ()
+Context_handle::down ()
 {
   outlet_->iterator_count_--;
   outlet_ = 0;
 }
 
 bool
-Interpretation_context_handle::try_music (Music *m)
+Context_handle::try_music (Music *m)
 {
   return outlet_->try_music (m);
 }
 
 void
-Interpretation_context_handle::operator = (Interpretation_context_handle const &s)
+Context_handle::operator = (Context_handle const &s)
 {
   set_context (s.outlet_);
 }
 
 void
-Interpretation_context_handle::set_context (Context *trans)
+Context_handle::set_context (Context *trans)
 {
   if (outlet_ == trans)
     return;
@@ -71,14 +71,14 @@ Interpretation_context_handle::set_context (Context *trans)
 }
 
 Context *
-Interpretation_context_handle::get_outlet () const
+Context_handle::get_outlet () const
 {
 
   return outlet_;
 }
 
 int
-Interpretation_context_handle::get_count () const
+Context_handle::get_count () const
 {
   return outlet_->iterator_count_;
 }
index db69518d271d07fe8ea258d2b284e2d881e9fd75..07299a166c735d70419328d7b0c0602d5737f177 100644 (file)
@@ -24,7 +24,7 @@ class Context
   void terminate ();
 
 private:
-  friend class Interpretation_context_handle;
+  friend class Context_handle;
   int iterator_count_;
   bool init_;
 
diff --git a/lily/include/interpretation-context-handle.hh b/lily/include/interpretation-context-handle.hh
deleted file mode 100644 (file)
index c2aa897..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
-  interpretation-context-handle.hh -- declare  Interpretation_context_handle
-
-  source file of the GNU LilyPond music typesetter
-
-  (c) 1999--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
-*/
-
-#ifndef INTERPRETATION_CONTEXT_HANDLE_HH
-#define INTERPRETATION_CONTEXT_HANDLE_HH
-#include "lily-proto.hh"
-
-/*
-  RENAME ME to Context_handle.
-*/
-
-class Interpretation_context_handle
-{
-public:
-  ~Interpretation_context_handle ();
-  Interpretation_context_handle ();
-
-  void set_context (Context *);
-  bool try_music (Music *);
-  void operator = (Interpretation_context_handle const &);
-  Interpretation_context_handle (Interpretation_context_handle const &);
-  Context *get_outlet () const;
-
-  int get_count () const;
-private:
-  Context *outlet_;
-  void down ();
-  void up (Context *);
-};
-
-#endif /* INTERPRETATION_CONTEXT_HANDLE_HH */
-
index 89619297dd1d219d3c389f8868f7e88beb3194f9..29d67bbeb885b762e7e7ce1230a087995599e822 100644 (file)
@@ -12,7 +12,7 @@
 #include "array.hh"
 #include "moment.hh"
 #include "virtual-methods.hh"
-#include "interpretation-context-handle.hh"
+#include "context-handle.hh"
 
 /**
    ---
@@ -85,7 +85,7 @@ protected:
   void descend_to_child (Context *);
 
 private:
-  Interpretation_context_handle handle_;
+  Context_handle handle_;
   Music *music_;
 };
 
index 535014510ddfb1ad1f02698c4acfa7430f135c5b..5a746d6fadbdcc9d5f32dacf32bb78ec332090af 100644 (file)
@@ -375,7 +375,7 @@ do_chroot_jail ()
 }
 #endif
 
-void test_pango ();
+
 
 static void
 main_with_guile (void *, int, char **)
index 35dd915ea178021a73b01b68c1c686de62a67329..5288a25b48df01a07b48a544b25988975fb931e2 100644 (file)
@@ -30,9 +30,9 @@ Pango_font::Pango_font (PangoFT2FontMap *fontmap,
     : PANGO_DIRECTION_RTL;
   context_
     = pango_ft2_get_context (PANGO_RESOLUTION, PANGO_RESOLUTION);
+  //  context_ = pango_ft2_font_map_create_context (fontmap);
 
   pango_description_ = pango_font_description_copy (description);
-  //  context_ = pango_ft2_font_map_create_context (fontmap);
   attribute_list_ = pango_attr_list_new ();
 
   /*
index 006e0024d1b2100b545ebc9a33703e50bcb472a1..fea8256ca16dda1710d80ebaec31d1a9440edc54 100644 (file)
@@ -60,11 +60,11 @@ private:
   /*
     TODO: this is getting of hand...
   */
-  Interpretation_context_handle one_;
-  Interpretation_context_handle two_;
-  Interpretation_context_handle null_;
-  Interpretation_context_handle shared_;
-  Interpretation_context_handle solo_;
+  Context_handle one_;
+  Context_handle two_;
+  Context_handle null_;
+  Context_handle shared_;
+  Context_handle solo_;
 
   void substitute_both (Context *to1,
                        Context *to2);
@@ -204,7 +204,7 @@ Part_combine_iterator::substitute_both (Context *to1,
 {
   Context *tos[] = {to1, to2};
   Music_iterator *mis[] = {first_iter_, second_iter_};
-  Interpretation_context_handle *hs[]
+  Context_handle *hs[]
     = {
     &null_,
     &one_, &two_,
index 61b2d025e9519d757a658cf59651836494c383b3..45e0f066a70d1dd8a1cc51e0aa81712a59f86aec 100644 (file)
@@ -18,7 +18,7 @@ class Quote_iterator : public Music_wrapper_iterator
 public:
   Quote_iterator ();
   Moment vector_moment (int idx) const;
-  Interpretation_context_handle quote_outlet_;
+  Context_handle quote_outlet_;
 
   Moment start_moment_;
   Moment stop_moment_;