editor.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // Generated by gtkmmproc -- DO NOT MODIFY!
00003 #ifndef _LIBGNOMEDBMM_EDITOR_H
00004 #define _LIBGNOMEDBMM_EDITOR_H
00005 
00006 
00007 #include <glibmm.h>
00008 
00009 // -*- C++ -*- // 
00010 
00011 /* editor.hg
00012  * 
00013  * Copyright 2006 libgnomedbmm Development Team
00014  *
00015  * This library is free software; you can redistribute it and/or
00016  * modify it under the terms of the GNU Library General Public
00017  * License as published by the Free Software Foundation; either
00018  * version 2 of the License, or (at your option) any later version.
00019  *
00020  * This library is distributed in the hope that it will be useful,
00021  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00022  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00023  * Library General Public License for more details.
00024  *
00025  * You should have received a copy of the GNU Library General Public
00026  * License along with this library; if not, write to the Free
00027  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00028  */
00029 
00030 #include <gtkmm/box.h>
00031 #include <libgdamm/dict.h>
00032 
00033 
00034 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00035 typedef struct _GnomeDbEditor GnomeDbEditor;
00036 typedef struct _GnomeDbEditorClass GnomeDbEditorClass;
00037 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00038 
00039 
00040 namespace Gnome
00041 {
00042 
00043 namespace Db
00044 { class Editor_Class; } // namespace Db
00045 
00046 } // namespace Gnome
00047 namespace Gnome
00048 {
00049 
00050 namespace Db
00051 {
00052 
00060 class Editor : public Gtk::VBox
00061 {
00062   public:
00063 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00064   typedef Editor CppObjectType;
00065   typedef Editor_Class CppClassType;
00066   typedef GnomeDbEditor BaseObjectType;
00067   typedef GnomeDbEditorClass BaseClassType;
00068 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00069 
00070   virtual ~Editor();
00071 
00072 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00073 
00074 private:
00075   friend class Editor_Class;
00076   static CppClassType editor_class_;
00077 
00078   // noncopyable
00079   Editor(const Editor&);
00080   Editor& operator=(const Editor&);
00081 
00082 protected:
00083   explicit Editor(const Glib::ConstructParams& construct_params);
00084   explicit Editor(GnomeDbEditor* castitem);
00085 
00086 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00087 
00088 public:
00089 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00090   static GType get_type()      G_GNUC_CONST;
00091   static GType get_base_type() G_GNUC_CONST;
00092 #endif
00093 
00095   GnomeDbEditor*       gobj()       { return reinterpret_cast<GnomeDbEditor*>(gobject_); }
00096 
00098   const GnomeDbEditor* gobj() const { return reinterpret_cast<GnomeDbEditor*>(gobject_); }
00099 
00100 
00101 public:
00102   //C++ methods used to invoke GTK+ virtual functions:
00103 #ifdef GLIBMM_VFUNCS_ENABLED
00104 #endif //GLIBMM_VFUNCS_ENABLED
00105 
00106 protected:
00107   //GTK+ Virtual Functions (override these to change behaviour):
00108 #ifdef GLIBMM_VFUNCS_ENABLED
00109 #endif //GLIBMM_VFUNCS_ENABLED
00110 
00111   //Default Signal Handlers::
00112 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00113 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00114 
00115 
00116 private:
00117 
00118 public:
00119   Editor();
00120   
00121   
00125   void set_editable(bool editable = true);
00126   
00130   bool get_editable() const;
00131   
00132   
00136   void set_highlight(bool highlight = true);
00137   
00141   bool get_highlight() const;
00142   
00143   
00148   void set_text(const Glib::ustring& text);
00149   
00154   Glib::ustring get_all_text() const;
00155   
00156   
00161   bool load_from_file(const std::string& filename);
00162   
00167   bool save_to_file(const std::string& filename);
00168   
00169   
00172   void copy_clipboard();
00173   
00176   void cut_clipboard();
00177   
00180   void paste_clipboard();
00181    
00182 
00183 };
00184 
00185 } // namespace Db
00186 } // namespace Gnome
00187 
00188 
00189 namespace Glib
00190 {
00196   Gnome::Db::Editor* wrap(GnomeDbEditor* object, bool take_copy = false);
00197 } //namespace Glib
00198 
00199 
00200 #endif /* _LIBGNOMEDBMM_EDITOR_H */
00201 

Generated on Mon Feb 12 16:48:59 2007 for libgnomedbmm by  doxygen 1.4.7