[gtksourceviewmm] Change SourceMark to Mark.



commit a4f67b7abb241147faec305e3bde087cdd4e2b27
Author: Krzesimir Nowak <qdlacz gmail com>
Date:   Sun Mar 27 15:42:05 2011 +0200

    Change SourceMark to Mark.
    
    * gtksourceview/src/sourcemark.[hg|ccg]: Ran source_truncate.pl
    on these and renamed them to...
    * gtksourceview/src/mark.[hg|ccg]: ...these

 gtksourceview/src/{sourcemark.ccg => mark.ccg} |   24 ++++----
 gtksourceview/src/{sourcemark.hg => mark.hg}   |   76 ++++++++++++------------
 2 files changed, 50 insertions(+), 50 deletions(-)
---
diff --git a/gtksourceview/src/sourcemark.ccg b/gtksourceview/src/mark.ccg
similarity index 66%
rename from gtksourceview/src/sourcemark.ccg
rename to gtksourceview/src/mark.ccg
index 4bbc446..bbb7c70 100644
--- a/gtksourceview/src/sourcemark.ccg
+++ b/gtksourceview/src/mark.ccg
@@ -1,7 +1,7 @@
-/* sourcemark.cc
+/* mark.cc
  *
  * Copyright (C) 2008 Jonathon Jongsma
- * Copyright (C) 2010 Krzesimir Nowak
+ * Copyright (C) 2010, 2011 Krzesimir Nowak
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Library General Public
@@ -25,19 +25,19 @@ namespace Gsv
 
 // Both constructors are implemented by hand because the C _new() function
 // specifies an extra left-gravity property.
-SourceMark::SourceMark(const Glib::ustring& category)
+Mark::Mark(const Glib::ustring& category)
 :
   _CONSTRUCT("name", 0, "category", category.c_str(), "left-gravity", TRUE)
 {}
 
-SourceMark::SourceMark(const Glib::ustring& name, const Glib::ustring& category)
+Mark::Mark(const Glib::ustring& name, const Glib::ustring& category)
 :
   _CONSTRUCT("name", name.c_str(), "category", category.c_str(), "left-gravity", TRUE)
 {}
 
-Glib::RefPtr<SourceMark> SourceMark::next()
+Glib::RefPtr<Mark> Mark::next()
 {
-  Glib::RefPtr<SourceMark> result = Glib::wrap (gtk_source_mark_next(const_cast<GtkSourceMark*>(gobj()), 0));
+  Glib::RefPtr<Mark> result = Glib::wrap (gtk_source_mark_next(const_cast<GtkSourceMark*>(gobj()), 0));
   if (result)
   {
     result->reference();
@@ -45,9 +45,9 @@ Glib::RefPtr<SourceMark> SourceMark::next()
   return result;
 }
 
-Glib::RefPtr<const SourceMark> SourceMark::next() const
+Glib::RefPtr<const Mark> Mark::next() const
 {
-  Glib::RefPtr<const SourceMark> result = Glib::wrap (gtk_source_mark_next(const_cast<GtkSourceMark*>(gobj()), 0));
+  Glib::RefPtr<const Mark> result = Glib::wrap (gtk_source_mark_next(const_cast<GtkSourceMark*>(gobj()), 0));
   if (result)
   {
     result->reference();
@@ -55,9 +55,9 @@ Glib::RefPtr<const SourceMark> SourceMark::next() const
   return result;
 }
 
-Glib::RefPtr<SourceMark> SourceMark::prev()
+Glib::RefPtr<Mark> Mark::prev()
 {
-  Glib::RefPtr<SourceMark> result =  Glib::wrap (gtk_source_mark_prev(const_cast<GtkSourceMark*>(gobj()), 0));
+  Glib::RefPtr<Mark> result =  Glib::wrap (gtk_source_mark_prev(const_cast<GtkSourceMark*>(gobj()), 0));
   if (result)
   {
     result->reference();
@@ -65,9 +65,9 @@ Glib::RefPtr<SourceMark> SourceMark::prev()
   return result;
 }
 
-Glib::RefPtr<const SourceMark> SourceMark::prev() const
+Glib::RefPtr<const Mark> Mark::prev() const
 {
-  Glib::RefPtr<const SourceMark> result =  Glib::wrap (gtk_source_mark_prev(const_cast<GtkSourceMark*>(gobj()), 0));
+  Glib::RefPtr<const Mark> result =  Glib::wrap (gtk_source_mark_prev(const_cast<GtkSourceMark*>(gobj()), 0));
   if (result)
   {
     result->reference();
diff --git a/gtksourceview/src/sourcemark.hg b/gtksourceview/src/mark.hg
similarity index 59%
rename from gtksourceview/src/sourcemark.hg
rename to gtksourceview/src/mark.hg
index 2a4ad5c..d948497 100644
--- a/gtksourceview/src/sourcemark.hg
+++ b/gtksourceview/src/mark.hg
@@ -1,7 +1,7 @@
-/* sourcemark.h
+/* mark.h
  *
  * Copyright (C) 2008 Jonathon Jongsma
- * Copyright (C) 2010 Krzesimir Nowak
+ * Copyright (C) 2010, 2011 Krzesimir Nowak
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Library General Public
@@ -26,18 +26,18 @@ _PINCLUDE(gtkmm/private/textmark_p.h)
 namespace Gsv
 {
 
-/** Mark class for SourceBuffer.
+/** Mark class for Buffer.
  *
  * @newin{2,2}
  */
-class SourceMark : public Gtk::TextMark
+class Mark : public Gtk::TextMark
 {
-  _CLASS_GOBJECT(SourceMark, GtkSourceMark, GTK_SOURCE_MARK, Gtk::TextMark, GtkTextMark)
+  _CLASS_GOBJECT(Mark, GtkSourceMark, GTK_SOURCE_MARK, Gtk::TextMark, GtkTextMark)
 
 protected:
 
-  explicit SourceMark(const Glib::ustring& category);
-  explicit SourceMark(const Glib::ustring& name, const Glib::ustring& category);
+  explicit Mark(const Glib::ustring& category);
+  explicit Mark(const Glib::ustring& name, const Glib::ustring& category);
   _IGNORE(gtk_source_mark_new)
 
 public:
@@ -46,14 +46,14 @@ public:
    * Add it to a buffer using Gtk::TextBuffer::add_mark(). Note that such marks
    * cannot be retrieved by using Gtk::TextBuffer::get_mark(). Normally marks
    * are created using the utility function
-   * Gsv::SourceBuffer::create_source_mark().
+   * Gsv::Buffer::create_source_mark().
    *
    * @param category Is used to classify marks according to common
    * characteristics (e.g. all the marks representing a bookmark could belong to
    * the "bookmark" category, or all the marks representing a compilation error
    * could belong to "error" category).
    *
-   * @return A new anonymous SourceMark that can be added using
+   * @return A new anonymous Mark that can be added using
    * GtkTextBuffer::add_mark().
    */
   _WRAP_CREATE(const Glib::ustring& category)
@@ -62,117 +62,117 @@ public:
    *
    * Add it to a buffer using Gtk::TextBuffer::add_mark(). The mark can be
    * retrieved by name by using Gtk::TextBuffer::get_mark(). Normally marks are
-   * created using the utility function SourceBuffer::create_source_mark().
+   * created using the utility function Buffer::create_source_mark().
    *
    * @param category Is used to classify marks according to common
    * characteristics (e.g. all the marks representing a bookmark could belong to
    * the "bookmark" category, or all the marks representing a compilation error
    * could belong to "error" category).
-   * @param name Name of the SourceMark.
+   * @param name Name of the Mark.
    *
-   * @return A new SourceMark that can be added using GtkTextBuffer::add_mark().
+   * @return A new Mark that can be added using GtkTextBuffer::add_mark().
    */
   _WRAP_CREATE(const Glib::ustring& name, const Glib::ustring& category)
 
   /** Returns the mark category.
    *
-   * @return The category of the SourceMark.
+   * @return The category of the Mark.
    *
    * @newin{2,2}
    */
   _WRAP_METHOD(Glib::ustring get_category() const, gtk_source_mark_get_category)
 
-  /** Returns the next SourceMark in the buffer.
+  /** Returns the next Mark in the buffer.
    *
    * If there is no next mark, empty refptr will be returned.
    *
    * @param category A string specifying the mark category.
    *
-   * @return The next SourceMark or empty Glib::RefPtr.
+   * @return The next Mark or empty Glib::RefPtr.
    *
    * @newin{2,2}
    */
-  _WRAP_METHOD(Glib::RefPtr<SourceMark> next(const Glib::ustring& category), gtk_source_mark_next, refreturn)
+  _WRAP_METHOD(Glib::RefPtr<Gsv::Mark> next(const Glib::ustring& category), gtk_source_mark_next, refreturn)
 
-  /** Returns the next SourceMark in the buffer.
+  /** Returns the next Mark in the buffer.
    *
    * If there is no next mark, empty refptr will be returned.
    *
    * @param category A string specifying the mark category.
    *
-   * @return The next SourceMark or empty Glib::RefPtr.
+   * @return The next Mark or empty Glib::RefPtr.
    *
    * @newin{2,2}
    */
-  _WRAP_METHOD(Glib::RefPtr<const SourceMark> next(const Glib::ustring& category) const, gtk_source_mark_next, refreturn, constversion)
+  _WRAP_METHOD(Glib::RefPtr<const Gsv::Mark> next(const Glib::ustring& category) const, gtk_source_mark_next, refreturn, constversion)
 
-  /** Returns the next SourceMark of any category in the buffer.
+  /** Returns the next Mark of any category in the buffer.
    *
    * If there is no next mark, empty refptr will be returned.
    *
-   * @return The next SourceMark or empty Glib::RefPtr.
+   * @return The next Mark or empty Glib::RefPtr.
    *
    * @newin{2,2}
    */
-  Glib::RefPtr<SourceMark> next();
+  Glib::RefPtr<Gsv::Mark> next();
 
-  /** Returns the next SourceMark of any category in the buffer.
+  /** Returns the next Mark of any category in the buffer.
    *
    * If there is no next mark, empty refptr will be returned.
    *
-   * @return The next SourceMark or empty Glib::RefPtr.
+   * @return The next Mark or empty Glib::RefPtr.
    *
    * @newin{2,2}
    */
-  Glib::RefPtr<const SourceMark> next() const;
+  Glib::RefPtr<const Gsv::Mark> next() const;
 
-  /** Returns the previous SourceMark in the buffer.
+  /** Returns the previous Mark in the buffer.
    *
    * If there is no previous mark, empty refptr will be returned.
    *
    * @param category A string specifying the mark category.
    *
-   * @return The previous SourceMark or empty Glib::RefPtr.
+   * @return The previous Mark or empty Glib::RefPtr.
    *
    * @newin{2,2}
    */
-  _WRAP_METHOD(Glib::RefPtr<SourceMark> prev(const Glib::ustring& category), gtk_source_mark_prev, refreturn)
+  _WRAP_METHOD(Glib::RefPtr<Gsv::Mark> prev(const Glib::ustring& category), gtk_source_mark_prev, refreturn)
 
-  /** Returns the previous SourceMark in the buffer.
+  /** Returns the previous Mark in the buffer.
    *
    * If there is no previous mark, empty refptr will be returned.
    *
    * @param category A string specifying the mark category.
    *
-   * @return The previous SourceMark or empty Glib::RefPtr.
+   * @return The previous Mark or empty Glib::RefPtr.
    *
    * @newin{2,2}
    */
-  _WRAP_METHOD(Glib::RefPtr<const SourceMark> prev(const Glib::ustring& category) const, gtk_source_mark_prev, refreturn, constversion)
+  _WRAP_METHOD(Glib::RefPtr<const Gsv::Mark> prev(const Glib::ustring& category) const, gtk_source_mark_prev, refreturn, constversion)
 
-  /** Returns the previous SourceMark of any category in the buffer.
+  /** Returns the previous Mark of any category in the buffer.
    *
    * If there is no previous mark, empty refptr will be returned.
    *
-   * @return The previous SourceMark or empty Glib::RefPtr.
+   * @return The previous Mark or empty Glib::RefPtr.
    *
    * @newin{2,2}
    */
-  Glib::RefPtr<SourceMark> prev();
+  Glib::RefPtr<Gsv::Mark> prev();
 
-  /** Returns the previous SourceMark of any category in the buffer.
+  /** Returns the previous Mark of any category in the buffer.
    *
    * If there is no previous mark, empty refptr will be returned.
    *
-   * @return The previous SourceMark or empty Glib::RefPtr.
+   * @return The previous Mark or empty Glib::RefPtr.
    *
    * @newin{2,2}
    */
-  Glib::RefPtr<const SourceMark> prev() const;
+  Glib::RefPtr<const Gsv::Mark> prev() const;
 
   _WRAP_PROPERTY("category", Glib::ustring)
 
-};//end class SourceMark
+};//end class Mark
 
 }//end namespace Gsv
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]