~ubuntu-branches/ubuntu/karmic/mergeant/karmic

« back to all changes in this revision

Viewing changes to libmergeant/mg-form.h

  • Committer: Bazaar Package Importer
  • Author(s): Gustavo R. Montesino
  • Date: 2007-11-29 08:44:48 UTC
  • mfrom: (2.1.4 hardy)
  • Revision ID: james.westby@ubuntu.com-20071129084448-6aon73d22bv6hzfw
Tags: 0.67-3
* Re-enable installation of the mime files in mergeant.install
* mergeant.dirs: create usr/share/mime/packages to make dh_installmime add
  the update-mime-database code snippets

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* mg-form.h
2
 
 *
3
 
 * Copyright (C) 2002 - 2004 Vivien Malerba
4
 
 *
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.
9
 
 *
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.
14
 
 *
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
18
 
 * USA
19
 
 */
20
 
 
21
 
#ifndef __MG_FORM__
22
 
#define __MG_FORM__
23
 
 
24
 
#include <gtk/gtk.h>
25
 
#include "mg-conf.h"
26
 
 
27
 
G_BEGIN_DECLS
28
 
 
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 ())
33
 
 
34
 
 
35
 
typedef struct _MgForm      MgForm;
36
 
typedef struct _MgFormClass MgFormClass;
37
 
typedef struct _MgFormPriv  MgFormPriv;
38
 
 
39
 
/* struct for the object's data */
40
 
struct _MgForm
41
 
{
42
 
        GtkVBox             object;
43
 
 
44
 
        MgFormPriv *priv;
45
 
};
46
 
 
47
 
/* struct for the object's class */
48
 
struct _MgFormClass
49
 
{
50
 
        GtkVBoxClass parent_class;
51
 
 
52
 
        /* signals */
53
 
        void       (*param_changed)         (MgForm *form, MgParameter *param, gboolean is_user_modif);
54
 
};
55
 
 
56
 
/* 
57
 
 * Generic widget's methods 
58
 
*/
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);
68
 
 
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);
74
 
 
75
 
G_END_DECLS
76
 
 
77
 
#endif
78
 
 
79
 
 
80