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 static Glib::RefPtr<SourceStyleSchemeManager> get_default(); 00100 00101 // TODO: set_search_path() and get_search_path() 00102 00108 void append_search_path(const Glib::ustring& path); 00109 00115 void prepend_search_path(const Glib::ustring& path); 00116 // TODO: get_scheme_ids 00117 00123 Glib::RefPtr<SourceStyleScheme> get_scheme(const Glib::ustring& scheme_id); 00124 00130 Glib::RefPtr<const SourceStyleScheme> get_scheme(const Glib::ustring& scheme_id) const; 00131 00136 void force_rescan(); 00137 00138 00139 public: 00140 00141 public: 00142 //C++ methods used to invoke GTK+ virtual functions: 00143 #ifdef GLIBMM_VFUNCS_ENABLED 00144 #endif //GLIBMM_VFUNCS_ENABLED 00145 00146 protected: 00147 //GTK+ Virtual Functions (override these to change behaviour): 00148 #ifdef GLIBMM_VFUNCS_ENABLED 00149 #endif //GLIBMM_VFUNCS_ENABLED 00150 00151 //Default Signal Handlers:: 00152 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED 00153 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED 00154 00155 00156 };//end class SourceStyleSchemeManager 00157 00158 }//end namespace gtksourceview 00159 00160 00161 namespace Glib 00162 { 00171 Glib::RefPtr<gtksourceview::SourceStyleSchemeManager> wrap(GtkSourceStyleSchemeManager* object, bool take_copy = false); 00172 } 00173 00174 00175 #endif /* _GTKSOURCEVIEWMM_SOURCESTYLESCHEMEMANAGER_H */ 00176