sqlconsole.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // Generated by gtkmmproc -- DO NOT MODIFY!
00003 #ifndef _LIBGNOMEDBMM_SQLCONSOLE_H
00004 #define _LIBGNOMEDBMM_SQLCONSOLE_H
00005 
00006 
00007 #include <glibmm.h>
00008 
00009 // -*- C++ -*- // 
00010 
00011 /* sqlconsole.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/textview.h>
00031 #include <libgdamm/dict.h>
00032 
00033 
00034 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00035 typedef struct _GnomeDbSqlConsole GnomeDbSqlConsole;
00036 typedef struct _GnomeDbSqlConsoleClass GnomeDbSqlConsoleClass;
00037 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00038 
00039 
00040 namespace Gnome
00041 {
00042 
00043 namespace Db
00044 { class SqlConsole_Class; } // namespace Db
00045 
00046 } // namespace Gnome
00047 namespace Gnome
00048 {
00049 
00050 namespace Db
00051 {
00052 
00057 class SqlConsole : public Gtk::TextView
00058 {
00059   public:
00060 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00061   typedef SqlConsole CppObjectType;
00062   typedef SqlConsole_Class CppClassType;
00063   typedef GnomeDbSqlConsole BaseObjectType;
00064   typedef GnomeDbSqlConsoleClass BaseClassType;
00065 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00066 
00067   virtual ~SqlConsole();
00068 
00069 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00070 
00071 private:
00072   friend class SqlConsole_Class;
00073   static CppClassType sqlconsole_class_;
00074 
00075   // noncopyable
00076   SqlConsole(const SqlConsole&);
00077   SqlConsole& operator=(const SqlConsole&);
00078 
00079 protected:
00080   explicit SqlConsole(const Glib::ConstructParams& construct_params);
00081   explicit SqlConsole(GnomeDbSqlConsole* castitem);
00082 
00083 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00084 
00085 public:
00086 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00087   static GType get_type()      G_GNUC_CONST;
00088   static GType get_base_type() G_GNUC_CONST;
00089 #endif
00090 
00092   GnomeDbSqlConsole*       gobj()       { return reinterpret_cast<GnomeDbSqlConsole*>(gobject_); }
00093 
00095   const GnomeDbSqlConsole* gobj() const { return reinterpret_cast<GnomeDbSqlConsole*>(gobject_); }
00096 
00097 
00098 public:
00099   //C++ methods used to invoke GTK+ virtual functions:
00100 #ifdef GLIBMM_VFUNCS_ENABLED
00101 #endif //GLIBMM_VFUNCS_ENABLED
00102 
00103 protected:
00104   //GTK+ Virtual Functions (override these to change behaviour):
00105 #ifdef GLIBMM_VFUNCS_ENABLED
00106 #endif //GLIBMM_VFUNCS_ENABLED
00107 
00108   //Default Signal Handlers::
00109 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00110   virtual Glib::ustring on_sql_entered(const Glib::ustring& sql);
00111 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00112 
00113 
00114 private:
00115 
00116 public:
00117   explicit SqlConsole(const Glib::RefPtr<Gda::Dict>& dict, const Glib::ustring& message);
00118   
00119   
00122   void clear();
00123   
00126   void clear_history();
00127 
00128   #ifdef GLIBMM_PROPERTIES_ENABLED
00129 
00135   Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gda::Dict> > property_dict() const;
00136 #endif //#GLIBMM_PROPERTIES_ENABLED
00137 
00138 
00139   #ifdef GLIBMM_PROPERTIES_ENABLED
00140 
00146   Glib::PropertyProxy_ReadOnly<Glib::ustring> property_message() const;
00147 #endif //#GLIBMM_PROPERTIES_ENABLED
00148 
00149 
00155   Glib::SignalProxy1< Glib::ustring,const Glib::ustring& > signal_sql_entered();
00156 ;
00157 
00158 
00159 };
00160 
00161 } // namespace Db
00162 } // namespace Gnome
00163 
00164 
00165 namespace Glib
00166 {
00172   Gnome::Db::SqlConsole* wrap(GnomeDbSqlConsole* object, bool take_copy = false);
00173 } //namespace Glib
00174 
00175 
00176 #endif /* _LIBGNOMEDBMM_SQLCONSOLE_H */
00177 

Generated on Mon Feb 12 16:49:00 2007 for libgnomedbmm by  doxygen 1.4.7