1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
3
* Copyright (C) 2010 Richard Hughes <richard@hughsie.com>
5
* Licensed under the GNU General Public License Version 2
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.
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.
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.
22
#ifndef __GCM_CALIBRATE_DIALOG_H
23
#define __GCM_CALIBRATE_DIALOG_H
25
#include <glib-object.h>
28
#include "gcm-device.h"
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))
39
typedef struct _GcmCalibrateDialogPrivate GcmCalibrateDialogPrivate;
40
typedef struct _GcmCalibrateDialog GcmCalibrateDialog;
41
typedef struct _GcmCalibrateDialogClass GcmCalibrateDialogClass;
43
struct _GcmCalibrateDialog
46
GcmCalibrateDialogPrivate *priv;
49
struct _GcmCalibrateDialogClass
51
GObjectClass parent_class;
52
void (* response) (GcmCalibrateDialog *calibrate_dialog,
53
GtkResponseType response);
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;
66
GType gcm_calibrate_dialog_get_type (void);
67
GcmCalibrateDialog *gcm_calibrate_dialog_new (void);
69
void gcm_calibrate_dialog_set_window (GcmCalibrateDialog *calibrate_dialog,
71
void gcm_calibrate_dialog_show (GcmCalibrateDialog *calibrate_dialog,
72
GcmCalibrateDialogTab tab,
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,
79
void gcm_calibrate_dialog_set_show_button_ok (GcmCalibrateDialog *calibrate_dialog,
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,
94
#endif /* __GCM_CALIBRATE_DIALOG_H */