// -*- c++ -*-
// Generated by gtkmmproc -- DO NOT MODIFY!
#ifndef _LIBGDA_UIMM_DATAPROXYINFO_H
#define _LIBGDA_UIMM_DATAPROXYINFO_H


#include <glibmm.h>

/* libgda-uimm - a C++ wrapper for libgda-ui
 *
 * Copyright (c) 2010 libgda-uimm Development Team
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free
 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */

#include <gtkmm/box.h>


#ifndef DOXYGEN_SHOULD_SKIP_THIS
typedef struct _GdauiDataProxyInfo GdauiDataProxyInfo;
typedef struct _GdauiDataProxyInfoClass GdauiDataProxyInfoClass;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */


namespace Gnome
{

namespace GdaUI
{ class DataProxyInfo_Class; } // namespace GdaUI

} // namespace Gnome
namespace Gnome
{

// Gnome::Gda class forward declartions.
namespace Gda
{

}

namespace GdaUI
{

/** @addtogroup libgda_uimmEnums Enums and Flags */

/**
 * @ingroup libgda_uimmEnums
 * @par Bitwise operators:
 * <tt>%DataProxyInfoFlag operator|(DataProxyInfoFlag, DataProxyInfoFlag)</tt><br>
 * <tt>%DataProxyInfoFlag operator&(DataProxyInfoFlag, DataProxyInfoFlag)</tt><br>
 * <tt>%DataProxyInfoFlag operator^(DataProxyInfoFlag, DataProxyInfoFlag)</tt><br>
 * <tt>%DataProxyInfoFlag operator~(DataProxyInfoFlag)</tt><br>
 * <tt>%DataProxyInfoFlag& operator|=(DataProxyInfoFlag&, DataProxyInfoFlag)</tt><br>
 * <tt>%DataProxyInfoFlag& operator&=(DataProxyInfoFlag&, DataProxyInfoFlag)</tt><br>
 * <tt>%DataProxyInfoFlag& operator^=(DataProxyInfoFlag&, DataProxyInfoFlag)</tt><br>
 */
enum DataProxyInfoFlag
{
  DATA_PROXY_INFO_NONE = 0,
  DATA_PROXY_INFO_CURRENT_ROW = 1 << 0,
  DATA_PROXY_INFO_ROW_MODIFY_BUTTONS = 1 << 2,
  DATA_PROXY_INFO_ROW_MOVE_BUTTONS = 1 << 3,
  DATA_PROXY_INFO_CHUNCK_CHANGE_BUTTONS = 1 << 4,
  DATA_PROXY_INFO_NO_FILTER = 1 << 5
};

/** @ingroup libgda_uimmEnums */
inline DataProxyInfoFlag operator|(DataProxyInfoFlag lhs, DataProxyInfoFlag rhs)
  { return static_cast<DataProxyInfoFlag>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs)); }

/** @ingroup libgda_uimmEnums */
inline DataProxyInfoFlag operator&(DataProxyInfoFlag lhs, DataProxyInfoFlag rhs)
  { return static_cast<DataProxyInfoFlag>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs)); }

/** @ingroup libgda_uimmEnums */
inline DataProxyInfoFlag operator^(DataProxyInfoFlag lhs, DataProxyInfoFlag rhs)
  { return static_cast<DataProxyInfoFlag>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs)); }

/** @ingroup libgda_uimmEnums */
inline DataProxyInfoFlag operator~(DataProxyInfoFlag flags)
  { return static_cast<DataProxyInfoFlag>(~static_cast<unsigned>(flags)); }

/** @ingroup libgda_uimmEnums */
inline DataProxyInfoFlag& operator|=(DataProxyInfoFlag& lhs, DataProxyInfoFlag rhs)
  { return (lhs = static_cast<DataProxyInfoFlag>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs))); }

/** @ingroup libgda_uimmEnums */
inline DataProxyInfoFlag& operator&=(DataProxyInfoFlag& lhs, DataProxyInfoFlag rhs)
  { return (lhs = static_cast<DataProxyInfoFlag>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs))); }

/** @ingroup libgda_uimmEnums */
inline DataProxyInfoFlag& operator^=(DataProxyInfoFlag& lhs, DataProxyInfoFlag rhs)
  { return (lhs = static_cast<DataProxyInfoFlag>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs))); }

} // namespace GdaUI

} // namespace Gnome


#ifndef DOXYGEN_SHOULD_SKIP_THIS
namespace Glib
{

template <>
class Value<Gnome::GdaUI::DataProxyInfoFlag> : public Glib::Value_Flags<Gnome::GdaUI::DataProxyInfoFlag>
{
public:
  static GType value_type() G_GNUC_CONST;
};

} // namespace Glib
#endif /* DOXYGEN_SHOULD_SKIP_THIS */


namespace Gnome
{

namespace GdaUI
{


class DataProxy;

/** DataProxyInfo - Shows information and actions about a DataProxy  widget.
 * The DataProxyInfo widget is a container widget which, depending on how it
 * is configured:
 *
 *   - Proposes action buttons to change the currently displayed row, add new
 *   row, ...
 *   - Displays information about the number of rows in a DataProxy.
 */

class DataProxyInfo :
  public Gtk::HBox
{
  public:
#ifndef DOXYGEN_SHOULD_SKIP_THIS
  typedef DataProxyInfo CppObjectType;
  typedef DataProxyInfo_Class CppClassType;
  typedef GdauiDataProxyInfo BaseObjectType;
  typedef GdauiDataProxyInfoClass BaseClassType;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */

  virtual ~DataProxyInfo();

#ifndef DOXYGEN_SHOULD_SKIP_THIS

private:
  friend class DataProxyInfo_Class;
  static CppClassType dataproxyinfo_class_;

  // noncopyable
  DataProxyInfo(const DataProxyInfo&);
  DataProxyInfo& operator=(const DataProxyInfo&);

protected:
  explicit DataProxyInfo(const Glib::ConstructParams& construct_params);
  explicit DataProxyInfo(GdauiDataProxyInfo* castitem);

#endif /* DOXYGEN_SHOULD_SKIP_THIS */

public:
#ifndef DOXYGEN_SHOULD_SKIP_THIS
  static GType get_type()      G_GNUC_CONST;


  static GType get_base_type() G_GNUC_CONST;
#endif

  ///Provides access to the underlying C GtkObject.
  GdauiDataProxyInfo*       gobj()       { return reinterpret_cast<GdauiDataProxyInfo*>(gobject_); }

  ///Provides access to the underlying C GtkObject.
  const GdauiDataProxyInfo* gobj() const { return reinterpret_cast<GdauiDataProxyInfo*>(gobject_); }


public:
  //C++ methods used to invoke GTK+ virtual functions:
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED

protected:
  //GTK+ Virtual Functions (override these to change behaviour):
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED

  //Default Signal Handlers::
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED


private:


public:
  
  /** Creates a new Gdaui::DataProxyInfo widget suitable to display information about @a data_proxy
   * @param flags OR'ed values, specifying what to display in the new widget.
   * @return The new widget
   * 
   * @newin{4,2}.
   */

  explicit DataProxyInfo(const Glib::RefPtr<DataProxy>& proxy,
    DataProxyInfoFlag flags);

public:
  #ifdef GLIBMM_PROPERTIES_ENABLED
/** 
   *
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
   * the value of the property changes.
   */
  Glib::PropertyProxy< Glib::RefPtr<DataProxy> > property_data_proxy() ;
#endif //#GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
/** 
   *
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
   * the value of the property changes.
   */
  Glib::PropertyProxy_ReadOnly< Glib::RefPtr<DataProxy> > property_data_proxy() const;
#endif //#GLIBMM_PROPERTIES_ENABLED

  #ifdef GLIBMM_PROPERTIES_ENABLED
/** 
   *
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
   * the value of the property changes.
   */
  Glib::PropertyProxy<DataProxyInfoFlag> property_flags() ;
#endif //#GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
/** 
   *
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
   * the value of the property changes.
   */
  Glib::PropertyProxy_ReadOnly<DataProxyInfoFlag> property_flags() const;
#endif //#GLIBMM_PROPERTIES_ENABLED


};

} // namespace GdaUI

} // namespace Gnome


namespace Glib
{
  /** A Glib::wrap() method for this object.
   * 
   * @param object The C instance.
   * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
   * @result A C++ instance that wraps this C instance.
   *
   * @relates Gnome::GdaUI::DataProxyInfo
   */
  Gnome::GdaUI::DataProxyInfo* wrap(GdauiDataProxyInfo* object, bool take_copy = false);
} //namespace Glib


#endif /* _LIBGDA_UIMM_DATAPROXYINFO_H */

