~ubuntu-branches/ubuntu/precise/nvidia-settings/precise-proposed

« back to all changes in this revision

Viewing changes to nvidia-settings-1.0/src/gtk+-2.x/ctkhelp.h

  • Committer: Bazaar Package Importer
  • Author(s): Randall Donald
  • Date: 2004-07-03 19:09:17 UTC
  • Revision ID: james.westby@ubuntu.com-20040703190917-rqkze2s58ux5pamy
Tags: upstream-1.0
ImportĀ upstreamĀ versionĀ 1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * nvidia-settings: A tool for configuring the NVIDIA X driver on Unix
 
3
 * and Linux systems.
 
4
 *
 
5
 * Copyright (C) 2004 NVIDIA Corporation.
 
6
 *
 
7
 * This program is free software; you can redistribute it and/or
 
8
 * modify it under the terms of Version 2 of the GNU General Public
 
9
 * License as published by the Free Software Foundation.
 
10
 *
 
11
 * This program is distributed in the hope that it will be useful, but
 
12
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See Version 2
 
14
 * of the GNU General Public License for more details.
 
15
 *
 
16
 * You should have received a copy of the GNU General Public License
 
17
 * along with this program; if not, write to the:
 
18
 *
 
19
 *           Free Software Foundation, Inc.
 
20
 *           59 Temple Place - Suite 330
 
21
 *           Boston, MA 02111-1307, USA
 
22
 *
 
23
 */
 
24
 
 
25
#ifndef __CTK_HELP_H__
 
26
#define __CTK_HELP_H__
 
27
 
 
28
#include <gtk/gtk.h>
 
29
 
 
30
 
 
31
G_BEGIN_DECLS
 
32
 
 
33
#define CTK_TYPE_HELP (ctk_help_get_type())
 
34
 
 
35
#define CTK_HELP(obj) \
 
36
    (G_TYPE_CHECK_INSTANCE_CAST ((obj), CTK_TYPE_HELP, CtkHelp))
 
37
 
 
38
#define CTK_HELP_CLASS(klass) \
 
39
    (G_TYPE_CHECK_CLASS_CAST ((klass), CTK_TYPE_HELP, CtkHelpClass))
 
40
 
 
41
#define CTK_IS_HELP(obj) \
 
42
    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CTK_TYPE_HELP))
 
43
 
 
44
#define CTK_IS_HELP_CLASS(class) \
 
45
    (G_TYPE_CHECK_CLASS_TYPE ((klass), CTK_TYPE_HELP))
 
46
 
 
47
#define CTK_HELP_GET_CLASS(obj) \
 
48
    (G_TYPE_INSTANCE_GET_CLASS ((obj), CTK_TYPE_HELP, CtkHelpClass))
 
49
 
 
50
 
 
51
typedef struct _CtkHelp       CtkHelp;
 
52
typedef struct _CtkHelpClass  CtkHelpClass;
 
53
 
 
54
struct _CtkHelp
 
55
{
 
56
    GtkWindow               parent;
 
57
    
 
58
    GtkWidget              *text_viewer;
 
59
    GtkTextBuffer          *default_help;
 
60
    GtkTextTagTable        *tag_table;
 
61
 
 
62
    GtkWidget              *toggle_button;
 
63
};
 
64
 
 
65
struct _CtkHelpClass
 
66
{
 
67
    GtkWindowClass parent_class;
 
68
};
 
69
 
 
70
GType            ctk_help_get_type     (void) G_GNUC_CONST;
 
71
GtkWidget       *ctk_help_new          (GtkWidget *);
 
72
void             ctk_help_set_page     (CtkHelp *, GtkTextBuffer *);
 
73
 
 
74
void ctk_help_title   (GtkTextBuffer *, GtkTextIter *, const gchar *, ...);
 
75
void ctk_help_para    (GtkTextBuffer *, GtkTextIter *, const gchar *, ...);
 
76
void ctk_help_heading (GtkTextBuffer *, GtkTextIter *, const gchar *, ...);
 
77
void ctk_help_term    (GtkTextBuffer *, GtkTextIter *, const gchar *, ...);
 
78
void ctk_help_finish  (GtkTextBuffer *);
 
79
 
 
80
#define CTK_HELP_TITLE_TAG                "title"
 
81
#define CTK_HELP_HEADING_TAG              "heading"
 
82
#define CTK_HELP_HEADING_NOT_EDITABLE_TAG "not_editable"
 
83
#define CTK_HELP_WORD_WRAP_TAG            "word_wrap"
 
84
#define CTK_HELP_MARGIN_TAG               "margin"
 
85
#define CTK_HELP_SINGLE_SPACE_TAG         "single-space"
 
86
#define CTK_HELP_BOLD_TAG                 "bold"
 
87
 
 
88
 
 
89
G_END_DECLS
 
90
 
 
91
#endif /* __CTK_HELP_H__ */