3
* Copyright (C) 2002 - 2004 Vivien Malerba
5
* This program is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU General Public License as
7
* published by the Free Software Foundation; either version 2 of the
8
* License, or (at your option) any later version.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
29
#define MG_FORM_TYPE (mg_form_get_type())
30
#define MG_FORM(obj) G_TYPE_CHECK_INSTANCE_CAST (obj, mg_form_get_type(), MgForm)
31
#define MG_FORM_CLASS(klass) G_TYPE_CHECK_CLASS_CAST (klass, mg_form_get_type (), MgFormClass)
32
#define IS_MG_FORM(obj) G_TYPE_CHECK_INSTANCE_TYPE (obj, mg_form_get_type ())
35
typedef struct _MgForm MgForm;
36
typedef struct _MgFormClass MgFormClass;
37
typedef struct _MgFormPriv MgFormPriv;
39
/* struct for the object's data */
47
/* struct for the object's class */
50
GtkVBoxClass parent_class;
53
void (*param_changed) (MgForm *form, MgParameter *param, gboolean is_user_modif);
57
* Generic widget's methods
59
guint mg_form_get_type (void);
60
GtkWidget *mg_form_new (MgConf *conf, MgContext *context);
61
GtkWidget *mg_form_new_in_layout (MgConf *conf, MgContext *context, GtkWidget *layout, GHashTable *box_widgets);
62
GtkWidget *mg_form_new_in_dialog (MgConf *conf, MgContext *context, GtkWindow *parent,
63
const gchar *title, const gchar *header);
64
gboolean mg_form_is_valid (MgForm *form);
65
gboolean mg_form_has_been_changed (MgForm *form);
66
void mg_form_reset (MgForm *form);
67
void mg_form_set_current_as_orig (MgForm *form);
69
void mg_form_show_entries_actions (MgForm *form, gboolean show_actions);
70
void mg_form_entry_show (MgForm *form, MgParameter *param, gboolean show);
71
void mg_form_entry_set_sensitive (MgForm *form, MgParameter *param, gboolean sensitive);
72
void mg_form_set_entries_auto_default (MgForm *form, gboolean auto_default);
73
void mg_form_set_entries_default (MgForm *form);