[gtksourceviewmm] Change SourceView to View.



commit 4d621a0ef186b2109cf47a269f21a6eec89c80ad
Author: Krzesimir Nowak <qdlacz gmail com>
Date:   Sun Mar 27 15:44:17 2011 +0200

    Change SourceView to View.
    
    * gtksourceview/gtksourceviewmm/sourcemarkup.[hg|ccg]: Ran source_truncate.pl
    on these and renamed them to...
    * gtksourceview/gtksourceviewmm/markup.[hg|ccg]: ...these.

 .../gtksourceviewmm/{sourcemarkup.cc => markup.cc} |   22 +++---
 .../gtksourceviewmm/{sourcemarkup.h => markup.h}   |   88 ++++++++++----------
 2 files changed, 55 insertions(+), 55 deletions(-)
---
diff --git a/gtksourceview/gtksourceviewmm/sourcemarkup.cc b/gtksourceview/gtksourceviewmm/markup.cc
similarity index 69%
rename from gtksourceview/gtksourceviewmm/sourcemarkup.cc
rename to gtksourceview/gtksourceviewmm/markup.cc
index fa0f490..6346af1 100644
--- a/gtksourceview/gtksourceviewmm/sourcemarkup.cc
+++ b/gtksourceview/gtksourceviewmm/markup.cc
@@ -17,57 +17,57 @@
  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
-#include <gtksourceviewmm/sourcemarkup.h>
+#include <gtksourceviewmm/markup.h>
 
 
 namespace Gsv
 {
 
-SourceMarkup::SourceMarkup()
+Markup::Markup()
 :
   markup_ ("")
 {}
 
-SourceMarkup::SourceMarkup(const Glib::ustring& markup)
+Markup::Markup(const Glib::ustring& markup)
 :
   markup_ (markup)
 {}
 
-SourceMarkup::SourceMarkup(const char* markup)
+Markup::Markup(const char* markup)
 :
   markup_ ((markup) ? markup : "")
 {}
 
-SourceMarkup::~SourceMarkup()
+Markup::~Markup()
 {}
 
-SourceMarkup::SourceMarkup(const SourceMarkup& other)
+Markup::Markup(const Markup& other)
 :
   markup_ (other.markup_)
 {}
 
-SourceMarkup& SourceMarkup::operator=(const SourceMarkup& other)
+Markup& Markup::operator=(const Markup& other)
 {
   markup_ = other.markup_;
   return *this;
 }
 
-SourceMarkup::operator bool() const
+Markup::operator bool() const
 {
   return !(markup_.empty());
 }
 
-bool SourceMarkup::equal(const SourceMarkup& rhs) const
+bool Markup::equal(const Markup& rhs) const
 {
   return (markup_.raw() == rhs.markup_.raw());
 }
 
-Glib::ustring SourceMarkup::get_string() const
+Glib::ustring Markup::get_string() const
 {
   return markup_;
 }
 
-const char* SourceMarkup::get_c_str() const
+const char* Markup::get_c_str() const
 {
   return markup_.c_str();
 }
diff --git a/gtksourceview/gtksourceviewmm/sourcemarkup.h b/gtksourceview/gtksourceviewmm/markup.h
similarity index 52%
rename from gtksourceview/gtksourceviewmm/sourcemarkup.h
rename to gtksourceview/gtksourceviewmm/markup.h
index 5391886..df4aa3e 100644
--- a/gtksourceview/gtksourceviewmm/sourcemarkup.h
+++ b/gtksourceview/gtksourceviewmm/markup.h
@@ -34,78 +34,78 @@ namespace Gsv
  *
  * @newin{2,10}
  */
-class SourceMarkup
+class Markup
 {
 public:
-  /** Creates empty SourceMarkup.
+  /** Creates empty Markup.
    *
-   * @return A new SourceMarkup.
+   * @return A new Markup.
    *
    * @newin{2,10}
    */
-  SourceMarkup();
+  Markup();
 
-  /** Creates SourceMarkup containing text from @a markup.
+  /** Creates Markup containing text from @a markup.
    *
    * @param markup A markup string.
    *
-   * @return A new SourceMarkup.
+   * @return A new Markup.
    *
    * @newin{2,10}
    */
-  explicit SourceMarkup(const Glib::ustring& markup);
+  explicit Markup(const Glib::ustring& markup);
 
-  /** Creates SourceMarkup containing text from @a markup.
+  /** Creates Markup containing text from @a markup.
    *
    * @param markup A markup C string.
    *
-   * @return A new SourceMarkup.
+   * @return A new Markup.
    *
    * @newin{2,10}
    */
-  explicit SourceMarkup(const char* markup);
+  explicit Markup(const char* markup);
 
-  ~SourceMarkup();
+  ~Markup();
 
-  /** Creates SourceMarkup containing text from @a other SourceMarkup.
+  /** Creates Markup containing text from @a other Markup.
    *
-   * @param other Other SourceMarkup.
+   * @param other Other Markup.
    *
-   * @return A new SourceMarkup.
+   * @return A new Markup.
    *
    * @newin{2,10}
    */
-  SourceMarkup(const SourceMarkup& other);
+  Markup(const Markup& other);
 
-  /** Assigns contents of @a other SourceMarkup to this one.
+  /** Assigns contents of @a other Markup to this one.
    *
-   * @param other Other SourceMarkup.
+   * @param other Other Markup.
    *
-   * @return This SourceMarkup.
+   * @return This Markup.
    *
    * @newin{2,10}
    */
-  SourceMarkup& operator=(const SourceMarkup& other);
+  Markup& operator=(const Markup& other);
 
-  /** Checks if SourceMarkup is not empty.
+  /** Checks if Markup is not empty.
    *
-   * @return @c true if SourceMarkup is not empty, otherwise @c false.
+   * @return @c true if Markup is not empty, otherwise @c false.
    *
    * @newin{2,10}
    */
   operator bool() const;
 
-  /** Checks if @a other SourceMarkup is the same as this one.
+  /** Checks if @a other Markup is the same as this one.
    *
-   * @param other Other SourceMarkup.
+   * @param other Other Markup.
    *
-   * @return @c true if both this and @a other SourceMarkup are equal.
+   * @return @c true if both this and @a other Markup are equal.
    *
    * @newin{2,10}
    */
-  bool equal(const SourceMarkup& other) const;
+  bool equal(const Markup& other) const;
 
-  /** Get the string representation of the SourceMarkup.
+  /** Get the string representation of the Markup.
    *
    * @return A string holding markup.
    *
@@ -113,7 +113,7 @@ public:
    */
   Glib::ustring get_string() const;
 
-  /** Get the C string representation of the SourceMarkup.
+  /** Get the C string representation of the Markup.
    *
    * @return A C string holding markup.
    *
@@ -125,32 +125,32 @@ protected:
   Glib::ustring markup_;
 };
 
-/** See SourceMarkup::equal()
+/** See Markup::equal()
  *
- * @param lhs First SourceMarkup to compare.
- * @param rhs Second SourceMarkup to compare.
+ * @param lhs First Markup to compare.
+ * @param rhs Second Markup to compare.
  *
  * @return Whether @a lhs is different from @a rhs.
  *
- * @relates Gsv::SourceMarkup
+ * @relates Gsv::Markup
  *
  * @newin{2,10}
  */
-inline bool operator==(const SourceMarkup& lhs, const SourceMarkup& rhs)
+inline bool operator==(const Markup& lhs, const Markup& rhs)
   { return lhs.equal(rhs); }
 
-/** See SourceMarkup::equal()
+/** See Markup::equal()
  *
- * @param lhs First SourceMarkup to compare.
- * @param rhs Second SourceMarkup to compare.
+ * @param lhs First Markup to compare.
+ * @param rhs Second Markup to compare.
  *
  * @return Whether @a lhs is different from @a rhs.
  *
- * @relates Gsv::SourceMarkup
+ * @relates Gsv::Markup
  *
  * @newin{2,10}
  */
-inline bool operator!=(const SourceMarkup& lhs, const SourceMarkup& rhs)
+inline bool operator!=(const Markup& lhs, const Markup& rhs)
   { return !lhs.equal(rhs); }
 
 
@@ -158,10 +158,10 @@ inline bool operator!=(const SourceMarkup& lhs, const SourceMarkup& rhs)
 
 struct SourceMarkup_Traits : public Glib::Container_Helpers::TypeTraits<Glib::ustring>
 {
-  typedef Gsv::SourceMarkup CppType;
+  typedef Gsv::Markup CppType;
 
-  static const char* to_c_type(const SourceMarkup& markup) { return markup.get_c_str(); }
-  static SourceMarkup     to_cpp_type(const char* str)     { return SourceMarkup(str);   }
+  static const char* to_c_type(const Markup& markup) { return markup.get_c_str(); }
+  static Markup     to_cpp_type(const char* str)     { return Markup(str);   }
 };
 
 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
@@ -175,13 +175,13 @@ namespace Glib
 {
 
 template <>
-class Value<Gsv::SourceMarkup> : public Glib::ValueBase_String
+class Value<Gsv::Markup> : public Glib::ValueBase_String
 {
 public:
-  typedef Gsv::SourceMarkup CppType;
+  typedef Gsv::Markup CppType;
 
-  void set(const Gsv::SourceMarkup& data) { set_cstring(data.get_c_str());      }
-  Gsv::SourceMarkup get() const           { return Gsv::SourceMarkup(get_cstring()); }
+  void set(const Gsv::Markup& data) { set_cstring(data.get_c_str());      }
+  Gsv::Markup get() const           { return Gsv::Markup(get_cstring()); }
 };
 
 } // namespace Glib



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