// -*- c++ -*-
/*  Generated by gensig from progress.gen_h. DO NOT MODIFY!!! */
#ifndef GTKMM_PROGRESS_HEADER
#define GTKMM_PROGRESS_HEADER
/* $Id: progress.gen_h,v 1.15 1999/02/06 21:30:00 kenelson Exp $ */

/* progress.h
 * 
 * Copyright (C) 1998-1999 
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 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
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public
 * License along with this library; if not, write to the Free
 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */

#include <gtk--/widget.h>
#include <gtk--/adjustment.h>
#include <gtk/gtkprogress.h>

class Gtk_Progress_Class;
#line 26 "progress.gen_h"

class Gtk_Progress : public Gtk_Widget {

public:
protected:
  typedef Gtk_Progress_Class    CppClassType;
  typedef GtkProgress           BaseObjectType;
  typedef GtkProgressClass      BaseClassType;

  virtual void *get_parent_class();

private:
  friend CppClassType;
  static CppClassType progress_class; 
  GtkType get_type(); 

public:


  // Gtk_Progress(); No such constructor. It's a kind of handle class
  Gtk_Progress(GtkProgress *castitem);

  void set_show_text       (bool show_text);
  void set_text_alignment  (gfloat x_align, gfloat y_align);
  void set_format_string   (const string &format);
  void set_adjustment      (const Gtk_Adjustment &adjustment);
  void configure           (gfloat value, gfloat min, gfloat max);
  void set_percentage      (gfloat percentage);
  void set_value           (gfloat value);
  gfloat get_value         () const;
  void set_activity_mode   (bool activity_mode);

  string get_current_text  () const;
  string get_text_from_value (gfloat value) const;
  gfloat get_current_percentage () const;
  gfloat get_percentage_from_value (gfloat value) const;

  Signal_proxy0<BaseObjectType> paint;
  Signal_proxy0<BaseObjectType> update;
  Signal_proxy0<BaseObjectType> act_mode_enter;
  
protected:
  /* impl functions */
  virtual void paint_impl();
  virtual void update_impl();
  virtual void act_mode_enter_impl();
public:
  GtkProgress* gtkobj() { return GTK_PROGRESS(gtkobject); }
  const GtkProgress* gtkobj() const { return GTK_PROGRESS(gtkobject); }
  static bool isGtkProgress(Gtk_Object *checkcast);
#line 54 "progress.gen_h"

};

#endif
