00001 // -*- c++ -*- 00002 // Generated by gtkmmproc -- DO NOT MODIFY! 00003 #ifndef _GTKSOURCEVIEWMM_SOURCESTYLESCHEMEMANAGER_H 00004 #define _GTKSOURCEVIEWMM_SOURCESTYLESCHEMEMANAGER_H 00005 00006 00007 #include <glibmm.h> 00008 00009 /* sourcestyleschememanager.hg 00010 * 00011 * Copyright (C)2008 Jonathon Jongsma 00012 * 00013 * This library is free software; you can redistribute it and/or 00014 * modify it under the terms of the GNU Library General Public 00015 * License as published by the Free Software Foundation; either 00016 * version 2 of the License, or (at your option) any later version. 00017 * 00018 * This library is distributed in the hope that it will be useful, 00019 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00020 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00021 * Library General Public License for more details. 00022 * 00023 * You should have received a copy of the GNU Library General Public 00024 * License along with this library; if not, write to the Free 00025 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00026 */ 00027 00030 00031 #include <gtksourceviewmm/sourcestylescheme.h> 00032 #include <gtksourceview/gtksourcestyleschememanager.h> 00033 00034 00035 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00036 typedef struct _GtkSourceStyleSchemeManager GtkSourceStyleSchemeManager; 00037 typedef struct _GtkSourceStyleSchemeManagerClass GtkSourceStyleSchemeManagerClass; 00038 #endif /* DOXYGEN_SHOULD_SKIP_THIS */ 00039 00040 00041 namespace gtksourceview 00042 { class SourceStyleSchemeManager_Class; } // namespace gtksourceview 00043 namespace gtksourceview 00044 { 00045 00046 00047 class SourceStyleSchemeManager : public Glib::Object 00048 { 00049 00050 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00051 00052 public: 00053 typedef SourceStyleSchemeManager CppObjectType; 00054 typedef SourceStyleSchemeManager_Class CppClassType; 00055 typedef GtkSourceStyleSchemeManager BaseObjectType; 00056 typedef GtkSourceStyleSchemeManagerClass BaseClassType; 00057 00058 private: friend class SourceStyleSchemeManager_Class; 00059 static CppClassType sourcestyleschememanager_class_; 00060 00061 private: 00062 // noncopyable 00063 SourceStyleSchemeManager(const SourceStyleSchemeManager&); 00064 SourceStyleSchemeManager& operator=(const SourceStyleSchemeManager&); 00065 00066 protected: 00067 explicit SourceStyleSchemeManager(const Glib::ConstructParams& construct_params); 00068 explicit SourceStyleSchemeManager(GtkSourceStyleSchemeManager* castitem); 00069 00070 #endif /* DOXYGEN_SHOULD_SKIP_THIS */ 00071 00072 public: 00073 virtual ~SourceStyleSchemeManager(); 00074 00075 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00076 static GType get_type() G_GNUC_CONST; 00077 static GType get_base_type() G_GNUC_CONST; 00078 #endif 00079 00081 GtkSourceStyleSchemeManager* gobj() { return reinterpret_cast<GtkSourceStyleSchemeManager*>(gobject_); } 00082 00084 const GtkSourceStyleSchemeManager* gobj() const { return reinterpret_cast<GtkSourceStyleSchemeManager*>(gobject_); } 00085 00087 GtkSourceStyleSchemeManager* gobj_copy(); 00088 00089 private: 00090 00091 00092 protected: 00093 SourceStyleSchemeManager(); 00094 00095 public: 00096 00097 static Glib::RefPtr<SourceStyleSchemeManager> create(); 00098 00099 00104 static Glib::RefPtr<SourceStyleSchemeManager> get_default();; 00105 00106 00112 void set_search_path(const Glib::StringArrayHandle& path); 00113 00116 void reset_search_path(); 00117 00118 00123 Glib::StringArrayHandle get_search_path() const; 00124 00125 00131 void append_search_path(const Glib::ustring& path); 00132 00138 void prepend_search_path(const Glib::ustring& path); 00139 00140 00146 Glib::RefPtr<SourceStyleScheme> get_scheme(const Glib::ustring& scheme_id); 00147 00153 Glib::RefPtr<const SourceStyleScheme> get_scheme(const Glib::ustring& scheme_id) const; 00154 00159 void force_rescan(); 00160 00161 00167 Glib::StringArrayHandle get_scheme_ids() const; 00168 00169 00170 public: 00171 00172 public: 00173 //C++ methods used to invoke GTK+ virtual functions: 00174 #ifdef GLIBMM_VFUNCS_ENABLED 00175 #endif //GLIBMM_VFUNCS_ENABLED 00176 00177 protected: 00178 //GTK+ Virtual Functions (override these to change behaviour): 00179 #ifdef GLIBMM_VFUNCS_ENABLED 00180 #endif //GLIBMM_VFUNCS_ENABLED 00181 00182 //Default Signal Handlers:: 00183 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED 00184 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED 00185 00186 00187 };//end class SourceStyleSchemeManager 00188 00189 }//end namespace gtksourceview 00190 00191 00192 namespace Glib 00193 { 00202 Glib::RefPtr<gtksourceview::SourceStyleSchemeManager> wrap(GtkSourceStyleSchemeManager* object, bool take_copy = false); 00203 } 00204 00205 00206 #endif /* _GTKSOURCEVIEWMM_SOURCESTYLESCHEMEMANAGER_H */ 00207