Interpretation_context_handle to Context_handle.
+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
return (elem (LEFT) + elem (RIGHT)) / T (2);
}
-// again? see flower-proto.hh
typedef Interval_t<Real> Interval;
typedef Interval_t<int> Slice; // weird name
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
/*
- 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
}
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;
}
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_;
}
void terminate ();
private:
- friend class Interpretation_context_handle;
+ friend class Context_handle;
int iterator_count_;
bool init_;
+++ /dev/null
-/*
- 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 */
-
#include "array.hh"
#include "moment.hh"
#include "virtual-methods.hh"
-#include "interpretation-context-handle.hh"
+#include "context-handle.hh"
/**
---
void descend_to_child (Context *);
private:
- Interpretation_context_handle handle_;
+ Context_handle handle_;
Music *music_;
};
}
#endif
-void test_pango ();
+
static void
main_with_guile (void *, int, char **)
: 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 ();
/*
/*
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);
{
Context *tos[] = {to1, to2};
Music_iterator *mis[] = {first_iter_, second_iter_};
- Interpretation_context_handle *hs[]
+ Context_handle *hs[]
= {
&null_,
&one_, &two_,
public:
Quote_iterator ();
Moment vector_moment (int idx) const;
- Interpretation_context_handle quote_outlet_;
+ Context_handle quote_outlet_;
Moment start_moment_;
Moment stop_moment_;