2005-01-22 06:59:51 +08:00
|
|
|
/* LIBGIMP - The GIMP Library
|
|
|
|
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
2004-04-18 09:20:26 +08:00
|
|
|
*
|
2005-01-22 06:59:51 +08:00
|
|
|
* gimpintstore.c
|
2004-04-18 09:20:26 +08:00
|
|
|
* Copyright (C) 2004 Sven Neumann <sven@gimp.org>
|
|
|
|
*
|
2005-01-22 06:59:51 +08:00
|
|
|
* 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 of the License, or (at your option) any later version.
|
2004-04-18 09:20:26 +08:00
|
|
|
*
|
2005-01-22 06:59:51 +08:00
|
|
|
* This library is distributed in the hope that it will be useful,
|
2004-04-18 09:20:26 +08:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2005-01-22 06:59:51 +08:00
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
2004-04-18 09:20:26 +08:00
|
|
|
*
|
2005-01-22 06:59:51 +08:00
|
|
|
* 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., 59 Temple Place - Suite 330,
|
|
|
|
* Boston, MA 02111-1307, USA.
|
2004-04-18 09:20:26 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GIMP_ENUM_STORE_H__
|
|
|
|
#define __GIMP_ENUM_STORE_H__
|
|
|
|
|
2004-04-21 03:06:37 +08:00
|
|
|
#include <libgimpwidgets/gimpintstore.h>
|
2004-04-18 09:20:26 +08:00
|
|
|
|
|
|
|
|
|
|
|
#define GIMP_TYPE_ENUM_STORE (gimp_enum_store_get_type ())
|
|
|
|
#define GIMP_ENUM_STORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_ENUM_STORE, GimpEnumStore))
|
|
|
|
#define GIMP_ENUM_STORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_ENUM_STORE, GimpEnumStoreClass))
|
|
|
|
#define GIMP_IS_ENUM_STORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_ENUM_STORE))
|
|
|
|
#define GIMP_IS_ENUM_STORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_ENUM_STORE))
|
|
|
|
#define GIMP_ENUM_STORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_ENUM_STORE, GimpEnumStoreClass))
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct _GimpEnumStoreClass GimpEnumStoreClass;
|
|
|
|
|
|
|
|
struct _GimpEnumStoreClass
|
|
|
|
{
|
2004-04-21 03:06:37 +08:00
|
|
|
GimpIntStoreClass parent_instance;
|
2004-04-18 09:20:26 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
struct _GimpEnumStore
|
|
|
|
{
|
2004-04-21 03:06:37 +08:00
|
|
|
GimpIntStore parent_instance;
|
2004-04-18 09:20:26 +08:00
|
|
|
|
2004-04-21 03:06:37 +08:00
|
|
|
GEnumClass *enum_class;
|
2004-04-18 09:20:26 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2004-04-18 23:12:42 +08:00
|
|
|
GType gimp_enum_store_get_type (void) G_GNUC_CONST;
|
2004-04-18 09:20:26 +08:00
|
|
|
|
2004-11-27 20:09:13 +08:00
|
|
|
GtkListStore * gimp_enum_store_new (GType enum_type);
|
2004-04-18 09:20:26 +08:00
|
|
|
GtkListStore * gimp_enum_store_new_with_range (GType enum_type,
|
|
|
|
gint minimum,
|
|
|
|
gint maximum);
|
|
|
|
GtkListStore * gimp_enum_store_new_with_values (GType enum_type,
|
|
|
|
gint n_values,
|
|
|
|
...);
|
|
|
|
GtkListStore * gimp_enum_store_new_with_values_valist (GType enum_type,
|
|
|
|
gint n_values,
|
|
|
|
va_list args);
|
|
|
|
|
2004-04-21 01:51:49 +08:00
|
|
|
void gimp_enum_store_set_stock_prefix (GimpEnumStore *store,
|
|
|
|
const gchar *stock_prefix);
|
2004-04-18 09:20:26 +08:00
|
|
|
|
2004-04-18 23:12:42 +08:00
|
|
|
|
2004-04-18 09:20:26 +08:00
|
|
|
#endif /* __GIMP_ENUM_STORE_H__ */
|