gtksourceviewmm r59 - in trunk: . gtksourceview/gtksourceviewmm gtksourceview/gtksourceviewmm/private gtksourceview/src



Author: jjongsma
Date: Sat Jan 12 20:42:15 2008
New Revision: 59
URL: http://svn.gnome.org/viewvc/gtksourceviewmm?rev=59&view=rev

Log:
2008-01-12  Jonathon Jongsma  <jjongsma gnome org>

	* AUTHORS: may as well add myself here
	* gtksourceview/src/Makefile_list_of_hg.am_fragment:
	* gtksourceview/src/sourcestyleschememanager.ccg:
	* gtksourceview/src/sourcestyleschememanager.hg: add the
	SourceStyleSchemeManager class, though not fully wrapped


Added:
   trunk/gtksourceview/src/sourcestyleschememanager.ccg
   trunk/gtksourceview/src/sourcestyleschememanager.hg
Modified:
   trunk/AUTHORS
   trunk/ChangeLog
   trunk/gtksourceview/gtksourceviewmm/   (props changed)
   trunk/gtksourceview/gtksourceviewmm/private/   (props changed)
   trunk/gtksourceview/src/Makefile_list_of_hg.am_fragment

Modified: trunk/AUTHORS
==============================================================================
--- trunk/AUTHORS	(original)
+++ trunk/AUTHORS	Sat Jan 12 20:42:15 2008
@@ -1,5 +1,6 @@
 Dodji Seketeli <dodji gnome org>
 Rob Page <page rob gmail com>
+Jonathon Jongsma <jjongsma gnome org>
 
 Large parts of this wrapper (ie: the tools and scripts directories)
 are taken from the glibmm and gtkmm projects.

Modified: trunk/gtksourceview/src/Makefile_list_of_hg.am_fragment
==============================================================================
--- trunk/gtksourceview/src/Makefile_list_of_hg.am_fragment	(original)
+++ trunk/gtksourceview/src/Makefile_list_of_hg.am_fragment	Sat Jan 12 20:42:15 2008
@@ -12,7 +12,8 @@
 sourceview.hg \
 sourcebuffer.hg \
 sourceiter.hg \
-sourcemark.hg
+sourcemark.hg \
+sourcestyleschememanager.hg
 
 files_general_deprecated_hg =
 

Added: trunk/gtksourceview/src/sourcestyleschememanager.ccg
==============================================================================
--- (empty file)
+++ trunk/gtksourceview/src/sourcestyleschememanager.ccg	Sat Jan 12 20:42:15 2008
@@ -0,0 +1,28 @@
+/* sourcestylescheme.hg
+ *
+ * Copyright (C) 2004-2005 Jae Jang
+ * Copyright (C) 2005-2006 Rob Page
+ * Copyright (C)2006 Dodji Seketeli
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+namespace gtksourceview
+{
+    Glib::RefPtr<SourceStyleSchemeManager> SourceStyleSchemeManager::get_default()
+    {
+        return Glib::wrap(gtk_source_style_scheme_manager_get_default());
+    }
+}

Added: trunk/gtksourceview/src/sourcestyleschememanager.hg
==============================================================================
--- (empty file)
+++ trunk/gtksourceview/src/sourcestyleschememanager.hg	Sat Jan 12 20:42:15 2008
@@ -0,0 +1,55 @@
+/* sourcestyleschememanager.hg
+ * 
+ * Copyright (C)2008 Jonathon Jongsma
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+/// \file
+/// \brief SourceStyleSchemeManager class
+
+#include <gtksourceviewmm/sourcestylescheme.h>
+#include <gtksourceview/gtksourcestyleschememanager.h>
+
+_DEFS(gtksourceviewmm,gtksourceview)
+_PINCLUDE(glibmm/private/object_p.h)
+
+namespace gtksourceview
+{
+
+class SourceStyleSchemeManager : public Glib::Object
+{
+
+    _CLASS_GOBJECT(SourceStyleSchemeManager, GtkSourceStyleSchemeManager, GTK_SOURCE_STYLE_SCHEME_MANAGER, Glib::Object, GObject)
+
+protected:
+    _CTOR_DEFAULT
+
+public:
+    _WRAP_CREATE()
+    static Glib::RefPtr<SourceStyleSchemeManager> get_default();
+
+  // TODO: set_search_path() and get_search_path()
+  _WRAP_METHOD(void append_search_path(const Glib::ustring& path), gtk_source_style_scheme_manager_append_search_path)
+  _WRAP_METHOD(void prepend_search_path(const Glib::ustring& path), gtk_source_style_scheme_manager_prepend_search_path)
+  // TODO: get_scheme_ids
+  _WRAP_METHOD(Glib::RefPtr<SourceStyleScheme> get_scheme(const Glib::ustring& scheme_id) const, gtk_source_style_scheme_manager_get_scheme)
+  _WRAP_METHOD(void force_rescan(), gtk_source_style_scheme_manager_force_rescan)
+
+};//end class SourceStyleSchemeManager
+
+}//end namespace gtksourceview
+
+



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