1997-11-25 06:05:25 +08:00
|
|
|
/* The GIMP -- an image manipulation program
|
|
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program 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 General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
1998-04-13 13:44:11 +08:00
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
1997-11-25 06:05:25 +08:00
|
|
|
*/
|
2000-12-17 05:37:03 +08:00
|
|
|
|
1997-11-25 06:05:25 +08:00
|
|
|
#ifndef __PATTERN_SELECT_H__
|
|
|
|
#define __PATTERN_SELECT_H__
|
|
|
|
|
2000-12-17 05:37:03 +08:00
|
|
|
|
1999-10-27 02:27:27 +08:00
|
|
|
typedef struct _PatternSelect PatternSelect;
|
1997-11-25 06:05:25 +08:00
|
|
|
|
1999-10-27 02:27:27 +08:00
|
|
|
struct _PatternSelect
|
|
|
|
{
|
1999-04-23 22:47:50 +08:00
|
|
|
GtkWidget *shell;
|
|
|
|
|
2001-02-13 02:05:12 +08:00
|
|
|
GtkWidget *view;
|
1999-04-23 22:47:50 +08:00
|
|
|
|
2001-02-05 01:34:30 +08:00
|
|
|
GtkWidget *options_box;
|
|
|
|
GtkWidget *pattern_name;
|
|
|
|
GtkWidget *pattern_size;
|
1999-04-23 22:47:50 +08:00
|
|
|
|
1999-10-27 02:27:27 +08:00
|
|
|
/* Callback function name */
|
2001-02-05 01:34:30 +08:00
|
|
|
gchar *callback_name;
|
1999-04-23 22:47:50 +08:00
|
|
|
|
1999-10-27 02:27:27 +08:00
|
|
|
/* Context to store the current pattern */
|
2001-02-05 01:34:30 +08:00
|
|
|
GimpContext *context;
|
1999-04-23 22:47:50 +08:00
|
|
|
|
2001-02-05 01:34:30 +08:00
|
|
|
GQuark name_changed_handler_id;
|
1997-11-25 06:05:25 +08:00
|
|
|
};
|
|
|
|
|
2001-02-13 02:05:12 +08:00
|
|
|
|
1999-10-27 02:27:27 +08:00
|
|
|
/* list of active dialogs */
|
|
|
|
extern GSList *pattern_active_dialogs;
|
|
|
|
|
|
|
|
/* the main pattern dialog */
|
|
|
|
extern PatternSelect *pattern_select_dialog;
|
|
|
|
|
|
|
|
|
2001-02-13 02:05:12 +08:00
|
|
|
PatternSelect * pattern_select_new (gchar *title,
|
|
|
|
gchar *initial_pattern);
|
|
|
|
void pattern_select_free (PatternSelect *psp);
|
|
|
|
void pattern_select_dialogs_check (void);
|
2001-02-05 01:34:30 +08:00
|
|
|
|
1998-10-02 06:09:01 +08:00
|
|
|
|
1999-10-27 02:27:27 +08:00
|
|
|
/* the main pattern selection */
|
2001-02-13 02:05:12 +08:00
|
|
|
void pattern_dialog_create (void);
|
|
|
|
void pattern_dialog_free (void);
|
1997-11-25 06:05:25 +08:00
|
|
|
|
2000-12-29 23:22:01 +08:00
|
|
|
|
1997-11-25 06:05:25 +08:00
|
|
|
#endif /* __PATTERN_SELECT_H__ */
|