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

« back to all changes in this revision

Viewing changes to src/gtk+-2.x/ctkslimm.h

  • Committer: Bazaar Package Importer
  • Author(s): Alberto Milone (tseliot)
  • Date: 2008-10-08 18:24:16 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20081008182416-niiw9g1lmimlkg75
Tags: 177.78-0ubuntu1
* New upstream release
  - Do not add RgbPath to the Files section of xorg.conf
    (LP: #274866)
* debian/copyright:
  - Restore detailed version of the license (cf. debian #494388)

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_SLIMM_H__
 
26
#define __CTK_SLIMM_H__
 
27
 
 
28
#include <gtk/gtk.h>
 
29
 
 
30
#include "NvCtrlAttributes.h"
 
31
#include "ctkevent.h"
 
32
#include "ctkdisplaylayout.h"
 
33
#include "ctkconfig.h"
 
34
 
 
35
#include "XF86Config-parser/xf86Parser.h"
 
36
 
 
37
G_BEGIN_DECLS
 
38
 
 
39
#define CTK_TYPE_SLIMM (ctk_slimm_get_type())
 
40
 
 
41
#define CTK_SLIMM(obj) \
 
42
    (G_TYPE_CHECK_INSTANCE_CAST ((obj), CTK_TYPE_SLIMM, CtkSLIMM))
 
43
 
 
44
#define CTK_SLIMM_CLASS(klass) \
 
45
    (G_TYPE_CHECK_CLASS_CAST ((klass), CTK_TYPE_SLIMM, CtkSLIMMClass))
 
46
 
 
47
#define CTK_IS_SLIMM(obj) \
 
48
    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CTK_TYPE_SLIMM))
 
49
 
 
50
#define CTK_IS_SLIMM_CLASS(class) \
 
51
    (G_TYPE_CHECK_CLASS_TYPE ((klass), CTK_TYPE_SLIMM))
 
52
 
 
53
#define CTK_SLIMM_GET_CLASS(obj) \
 
54
    (G_TYPE_INSTANCE_GET_CLASS ((obj), CTK_TYPE_SLIMM, CtkSLIMMClass))
 
55
 
 
56
typedef struct _CtkSLIMM       CtkSLIMM;
 
57
typedef struct _CtkSLIMMClass  CtkSLIMMClass;
 
58
 
 
59
struct _CtkSLIMM
 
60
{
 
61
    GtkVBox parent;
 
62
 
 
63
    NvCtrlAttributeHandle *handle;
 
64
    CtkConfig *ctk_config;
 
65
 
 
66
    GtkWidget *mnu_display_config;
 
67
    GtkWidget *mnu_display_resolution;
 
68
    GtkWidget *mnu_display_refresh;
 
69
    GtkWidget *spbtn_hedge_overlap;
 
70
    GtkWidget *spbtn_vedge_overlap;
 
71
    GtkWidget *lbl_total_size;
 
72
    GtkWidget *box_total_size;
 
73
    GtkWidget *btn_save_config;
 
74
    GtkWidget *cbtn_slimm_enable;
 
75
    nvModeLinePtr *resolution_table;
 
76
    nvModeLinePtr *refresh_table;
 
77
    int resolution_table_len;
 
78
    int refresh_table_len;
 
79
    gboolean mnu_refresh_disabled;
 
80
    nvModeLinePtr modelines;
 
81
    nvModeLinePtr cur_modeline;
 
82
    gint num_modelines;
 
83
};
 
84
 
 
85
struct _CtkSLIMMClass
 
86
{
 
87
    GtkVBoxClass parent_class;
 
88
};
 
89
 
 
90
GType       ctk_slimm_get_type (void) G_GNUC_CONST;
 
91
GtkWidget*  ctk_slimm_new      (NvCtrlAttributeHandle *handle,
 
92
                                CtkEvent *ctk_event, CtkConfig *ctk_config);
 
93
 
 
94
GtkTextBuffer *ctk_slimm_create_help(GtkTextTagTable *, const gchar *);
 
95
 
 
96
G_END_DECLS
 
97
 
 
98
#endif /* __CTK_SLIMM_H__ */
 
99