~ubuntu-branches/ubuntu/vivid/gnome-color-manager/vivid

« back to all changes in this revision

Viewing changes to src/gcm-calibrate-dialog.h

  • Committer: Bazaar Package Importer
  • Author(s): Rodrigo Moya, Rodrigo Moya, Martin Pitt
  • Date: 2011-08-19 16:23:48 UTC
  • mfrom: (1.3.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20110819162348-p0unefdt677j5ttj
Tags: 3.1.2-0ubuntu1
[ Rodrigo Moya ]
* New upstream release.
* debian/control:
  - Use GTK3 version build dependencies
* debian/rules:
  - Add autoreconf to the rules
* debian/patches/02-fix_build.patch:
  - Add upstream patch to fix build

[ Martin Pitt ]
* Drop 01-libnotify_0.7.patch, obsolete with new upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
2
 
 *
3
 
 * Copyright (C) 2010 Richard Hughes <richard@hughsie.com>
4
 
 *
5
 
 * Licensed under the GNU General Public License Version 2
6
 
 *
7
 
 * This program is free software; you can redistribute it and/or modify
8
 
 * it under the terms of the GNU General Public License as published by
9
 
 * the Free Software Foundation; either version 2 of the License, or
10
 
 * (at your option) any later version.
11
 
 *
12
 
 * This program is distributed in the hope that it will be useful,
13
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
 
 * GNU General Public License for more details.
16
 
 *
17
 
 * You should have received a copy of the GNU General Public License
18
 
 * along with this program; if not, write to the Free Software
19
 
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20
 
 */
21
 
 
22
 
#ifndef __GCM_CALIBRATE_DIALOG_H
23
 
#define __GCM_CALIBRATE_DIALOG_H
24
 
 
25
 
#include <glib-object.h>
26
 
#include <gtk/gtk.h>
27
 
 
28
 
#include "gcm-device.h"
29
 
 
30
 
G_BEGIN_DECLS
31
 
 
32
 
#define GCM_TYPE_CALIBRATE_DIALOG               (gcm_calibrate_dialog_get_type ())
33
 
#define GCM_CALIBRATE_DIALOG(o)                 (G_TYPE_CHECK_INSTANCE_CAST ((o), GCM_TYPE_CALIBRATE_DIALOG, GcmCalibrateDialog))
34
 
#define GCM_CALIBRATE_DIALOG_CLASS(k)           (G_TYPE_CHECK_CLASS_CAST((k), GCM_TYPE_CALIBRATE_DIALOG, GcmCalibrateDialogClass))
35
 
#define GCM_IS_CALIBRATE_DIALOG(o)              (G_TYPE_CHECK_INSTANCE_TYPE ((o), GCM_TYPE_CALIBRATE_DIALOG))
36
 
#define GCM_IS_CALIBRATE_DIALOG_CLASS(k)        (G_TYPE_CHECK_CLASS_TYPE ((k), GCM_TYPE_CALIBRATE_DIALOG))
37
 
#define GCM_CALIBRATE_DIALOG_GET_CLASS(o)       (G_TYPE_INSTANCE_GET_CLASS ((o), GCM_TYPE_CALIBRATE_DIALOG, GcmCalibrateDialogClass))
38
 
 
39
 
typedef struct _GcmCalibrateDialogPrivate       GcmCalibrateDialogPrivate;
40
 
typedef struct _GcmCalibrateDialog              GcmCalibrateDialog;
41
 
typedef struct _GcmCalibrateDialogClass         GcmCalibrateDialogClass;
42
 
 
43
 
struct _GcmCalibrateDialog
44
 
{
45
 
         GObject                                 parent;
46
 
         GcmCalibrateDialogPrivate              *priv;
47
 
};
48
 
 
49
 
struct _GcmCalibrateDialogClass
50
 
{
51
 
        GObjectClass    parent_class;
52
 
        void            (* response)                            (GcmCalibrateDialog     *calibrate_dialog,
53
 
                                                                 GtkResponseType                 response);
54
 
};
55
 
 
56
 
typedef enum {
57
 
        GCM_CALIBRATE_DIALOG_TAB_DISPLAY_TYPE,
58
 
        GCM_CALIBRATE_DIALOG_TAB_TARGET_TYPE,
59
 
        GCM_CALIBRATE_DIALOG_TAB_MANUAL,
60
 
        GCM_CALIBRATE_DIALOG_TAB_GENERIC,
61
 
        GCM_CALIBRATE_DIALOG_TAB_PRINT_MODE,
62
 
        GCM_CALIBRATE_DIALOG_TAB_PRECISION,
63
 
        GCM_CALIBRATE_DIALOG_TAB_LAST
64
 
} GcmCalibrateDialogTab;
65
 
 
66
 
GType                    gcm_calibrate_dialog_get_type          (void);
67
 
GcmCalibrateDialog      *gcm_calibrate_dialog_new               (void);
68
 
 
69
 
void                     gcm_calibrate_dialog_set_window        (GcmCalibrateDialog     *calibrate_dialog,
70
 
                                                                 GtkWindow              *window);
71
 
void                     gcm_calibrate_dialog_show              (GcmCalibrateDialog     *calibrate_dialog,
72
 
                                                                 GcmCalibrateDialogTab   tab,
73
 
                                                                 const gchar            *title,
74
 
                                                                 const gchar            *message);
75
 
void                     gcm_calibrate_dialog_set_move_window   (GcmCalibrateDialog     *calibrate_dialog,
76
 
                                                                 gboolean                move_window);
77
 
void                     gcm_calibrate_dialog_set_show_expander (GcmCalibrateDialog     *calibrate_dialog,
78
 
                                                                 gboolean                visible);
79
 
void                     gcm_calibrate_dialog_set_show_button_ok (GcmCalibrateDialog    *calibrate_dialog,
80
 
                                                                 gboolean                visible);
81
 
void                     gcm_calibrate_dialog_set_button_ok_id  (GcmCalibrateDialog     *calibrate_dialog,
82
 
                                                                 const gchar            *button_id);
83
 
void                     gcm_calibrate_dialog_set_image_filename (GcmCalibrateDialog    *calibrate_dialog,
84
 
                                                                 const gchar            *image_filename);
85
 
void                     gcm_calibrate_dialog_pop               (GcmCalibrateDialog     *calibrate_dialog);
86
 
void                     gcm_calibrate_dialog_hide              (GcmCalibrateDialog     *calibrate_dialog);
87
 
GtkResponseType          gcm_calibrate_dialog_run               (GcmCalibrateDialog     *calibrate_dialog);
88
 
GtkWindow               *gcm_calibrate_dialog_get_window        (GcmCalibrateDialog     *calibrate_dialog);
89
 
void                     gcm_calibrate_dialog_pack_details      (GcmCalibrateDialog     *calibrate_dialog,
90
 
                                                                 GtkWidget              *widget);
91
 
 
92
 
G_END_DECLS
93
 
 
94
 
#endif /* __GCM_CALIBRATE_DIALOG_H */
95