~ubuntu-branches/ubuntu/saucy/gnomescan/saucy

« back to all changes in this revision

Viewing changes to flegita/flegitaactionwidget.h

  • Committer: Bazaar Package Importer
  • Author(s): Devid Antonio Filoni
  • Date: 2009-06-29 21:59:52 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20090629215952-pkuzs5p6j0zewmvp
Tags: 0.6.2-0ubuntu1
* New upstream release 0.6.2 (0.7.1 seems to crash and still doesn't have
  all 0.6.2 features).
* Fix debhelper-but-no-misc-depends lintian warnings.
* Fix substvar-source-version-is-deprecated lintian warnings.
* Bump Standards-Version to 3.8.2.
* Fix binary-control-field-duplicates-source lintian infos.
* Fix duplicate-short-description lintian infos.
* debian/control: add libgegl-0.0-dev (>= 0.0.21) to Build-Depends field.
* Don't provide libgnomescanui* packages, upstream doesn't ship
  libgnomescanui files anymore.
* Update debian/watch file.
* debian/rules: do not include simple-patchsys.mk.
* debian/control: adjust dependencies.
* debian/control: add libglade2-dev (>= 2.6) to Build-Depends field.
* Update debian/copyright.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Flegita - Scanner Utility
2
 
 *
3
 
 * flegitaactionwidget.h
4
 
 *
5
 
 * Copyright © 2006 Étienne Bersac
6
 
 *
7
 
 * This library is free software; you can redistribute it and/or
8
 
 * modify it under the terms of the GNU Lesser General Public License
9
 
 * as published by the Free Software Foundation; either version 2 of
10
 
 * the License, or (at your option) any later version.
11
 
 * 
12
 
 * This library is distributed in the hope that it will be useful, but
13
 
 * WITHOUT ANY WARRANTY; without even the implied warranty of
14
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
 
 * Lesser General Public License for more details.
16
 
 * 
17
 
 * You should have received a copy of the GNU Lesser General Public
18
 
 * License along with this library; if not, write to the Free Software
19
 
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
20
 
 * USA
21
 
 */
22
 
 
23
 
/**
24
 
 * SECTION:flegitaactionwidget:
25
 
 * @short_description: A Widget that do something
26
 
 *
27
 
 * #FlegitaActionWidget do blah.
28
 
 */
29
 
 
30
 
#ifndef FLEGITA_ACTION_WIDGET_H
31
 
#define FLEGITA_ACTION_WIDGET_H
32
 
 
33
 
#include <glib.h>
34
 
#include <glib-object.h>
35
 
#include <gtk/gtk.h>
36
 
#include <gnomescan.h>
37
 
 
38
 
G_BEGIN_DECLS
39
 
 
40
 
#define FLEGITA_TYPE_ACTION_WIDGET                      (flegita_action_widget_get_type ())
41
 
#define FLEGITA_ACTION_WIDGET(obj)                      (G_TYPE_CHECK_INSTANCE_CAST ((obj), FLEGITA_TYPE_ACTION_WIDGET, FlegitaActionWidget))
42
 
#define FLEGITA_ACTION_WIDGET_CLASS(klass)              (G_TYPE_CHECK_CLASS_CAST ((klass), FLEGITA_TYPE_ACTION_WIDGET, FlegitaActionWidgetClass))
43
 
#define FLEGITA_IS_ACTION_WIDGET(obj)           (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FLEGITA_TYPE_ACTION_WIDGET))
44
 
#define FLEGITA_IS_ACTION_WIDGET_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), FLEGITA_TYPE_ACTION_WIDGET))
45
 
#define FLEGITA_ACTION_WIDGET_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), FLEGITA_TYPE_ACTION_WIDGET, FlegitaActionWidgetClass))
46
 
 
47
 
typedef struct _FlegitaActionWidget                     FlegitaActionWidget;
48
 
typedef struct _FlegitaActionWidgetClass                FlegitaActionWidgetClass;
49
 
 
50
 
struct _FlegitaActionWidget {
51
 
  GtkHBox                       parent;
52
 
 
53
 
  /*< public >*/
54
 
  GnomeScanContext      *context;
55
 
};
56
 
 
57
 
struct _FlegitaActionWidgetClass {
58
 
  GtkHBoxClass          parent;
59
 
 
60
 
  /* SIGNALS */
61
 
};
62
 
 
63
 
typedef enum {
64
 
  ACTION_SAVE,
65
 
  ACTION_MAIL,                  /*< skip >*/
66
 
  ACTION_PRINT,                 /*< skip >*/
67
 
  ACTION_FAX                    /*< skip >*/
68
 
} FlegitaAction;
69
 
 
70
 
typedef enum {
71
 
  FORMAT_PNG,
72
 
  FORMAT_JPEG,
73
 
  FORMAT_TIFF,
74
 
  FORMAT_PDF
75
 
} FlegitaFormat;
76
 
 
77
 
enum {
78
 
  FLEGITA_ACTION_WIDGET_ERROR_FAILED
79
 
};
80
 
 
81
 
/* GObject functions */
82
 
GType                   flegita_action_widget_get_type          (void)  G_GNUC_CONST;
83
 
 
84
 
/* Methods */
85
 
 
86
 
GtkWidget*              flegita_action_widget_new               (GnomeScanContext *context);
87
 
 
88
 
G_END_DECLS
89
 
 
90
 
#endif