00001
00002
00003 #ifndef _LIBGNOMEDBMM_EDITOR_H
00004 #define _LIBGNOMEDBMM_EDITOR_H
00005
00006
00007 #include <glibmm.h>
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
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
00038
00039
00040 namespace Gnome
00041 {
00042
00043 namespace Db
00044 { class Editor_Class; }
00045
00046 }
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
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
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
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
00103 #ifdef GLIBMM_VFUNCS_ENABLED
00104 #endif //GLIBMM_VFUNCS_ENABLED
00105
00106 protected:
00107
00108 #ifdef GLIBMM_VFUNCS_ENABLED
00109 #endif //GLIBMM_VFUNCS_ENABLED
00110
00111
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 }
00186 }
00187
00188
00189 namespace Glib
00190 {
00196 Gnome::Db::Editor* wrap(GnomeDbEditor* object, bool take_copy = false);
00197 }
00198
00199
00200 #endif
00201