2
* Copyright (C) 2010 Stefan Walter
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU Lesser General Public License as
6
* published by the Free Software Foundation; either version 2.1 of
7
* the License, or (at your option) any later version.
9
* This program is distributed in the hope that it will be useful, but
10
* WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
* Lesser General Public License for more details.
14
* You should have received a copy of the GNU Lesser General Public
15
* License along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
20
#ifndef __GCR_DISPLAY_VIEW_H__
21
#define __GCR_DISPLAY_VIEW_H__
23
#include <glib-object.h>
26
#include "gcr-certificate.h"
27
#include "gcr-types.h"
28
#include "gcr-viewer.h"
32
#define GCR_TYPE_DISPLAY_VIEW (_gcr_display_view_get_type ())
33
#define GCR_DISPLAY_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GCR_TYPE_DISPLAY_VIEW, GcrDisplayView))
34
#define GCR_DISPLAY_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GCR_TYPE_DISPLAY_VIEW, GcrDisplayViewClass))
35
#define GCR_IS_DISPLAY_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GCR_TYPE_DISPLAY_VIEW))
36
#define GCR_IS_DISPLAY_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GCR_TYPE_DISPLAY_VIEW))
37
#define GCR_DISPLAY_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GCR_TYPE_DISPLAY_VIEW, GcrDisplayViewClass))
39
typedef struct _GcrDisplayView GcrDisplayView;
40
typedef struct _GcrDisplayViewClass GcrDisplayViewClass;
41
typedef struct _GcrDisplayViewPrivate GcrDisplayViewPrivate;
43
struct _GcrDisplayView {
45
GcrDisplayViewPrivate *pv;
48
struct _GcrDisplayViewClass {
49
GtkTextViewClass parent_class;
52
GType _gcr_display_view_get_type (void);
54
GcrDisplayView* _gcr_display_view_new (void);
56
void _gcr_display_view_clear (GcrDisplayView *self,
57
GcrRenderer *renderer);
59
void _gcr_display_view_append_value (GcrDisplayView *self,
60
GcrRenderer *renderer,
65
void _gcr_display_view_append_title (GcrDisplayView *self,
66
GcrRenderer *renderer,
69
void _gcr_display_view_append_content (GcrDisplayView *self,
70
GcrRenderer *renderer,
72
const gchar *details);
74
void _gcr_display_view_start_details (GcrDisplayView *self,
75
GcrRenderer *renderer);
77
void _gcr_display_view_append_heading (GcrDisplayView *self,
78
GcrRenderer *renderer,
79
const gchar *heading);
81
void _gcr_display_view_append_fingerprint (GcrDisplayView *self,
82
GcrRenderer *renderer,
88
void _gcr_display_view_set_stock_image (GcrDisplayView *self,
89
GcrRenderer *renderer,
90
const gchar *stock_id);
94
#endif /* __GCR_DISPLAY_VIEW_H__ */