~jfi/ubuntu/quantal/psensor/new-upstream

« back to all changes in this revision

Viewing changes to src/ui_sensorpref.h

  • Committer: Bazaar Package Importer
  • Author(s): Jean-Philippe Orsini
  • Date: 2011-02-20 15:15:30 UTC
  • Revision ID: james.westby@ubuntu.com-20110220151530-5xzhb3o39yaegrn0
Tags: upstream-0.6.1.5
ImportĀ upstreamĀ versionĀ 0.6.1.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
    Copyright (C) 2010-2011 wpitchoune@gmail.com
 
3
 
 
4
    This program is free software; you can redistribute it and/or modify
 
5
    it under the terms of the GNU General Public License as published by
 
6
    the Free Software Foundation; either version 2 of the License, or
 
7
    (at your option) any later version.
 
8
 
 
9
    This program is distributed in the hope that it will be useful,
 
10
    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
    GNU General Public License for more details.
 
13
 
 
14
    You should have received a copy of the GNU General Public License
 
15
    along with this program; if not, write to the Free Software
 
16
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 
17
    02110-1301 USA
 
18
*/
 
19
 
 
20
#ifndef _PSENSOR_UI_SENSORPREF_H_
 
21
#define _PSENSOR_UI_SENSORPREF_H_
 
22
 
 
23
#include "color.h"
 
24
#include "psensor.h"
 
25
#include "ui_sensorlist.h"
 
26
 
 
27
#include <gtk/gtk.h>
 
28
 
 
29
struct ui_sensorpref {
 
30
        /* Main container */
 
31
        GtkWidget *widget;
 
32
 
 
33
        GtkWidget *w_name;
 
34
        GtkWidget *w_enabled;
 
35
        GtkWidget *w_alarm_limit;
 
36
        GtkWidget *w_alarm_enabled;
 
37
        GtkWidget *w_color;
 
38
 
 
39
        /* Needed to change color/enabled in the list of sensors */
 
40
        struct ui_sensorlist *ui_sensorlist;
 
41
};
 
42
 
 
43
/*
 
44
  Create a gtk widget to edit preferences about a given sensor.
 
45
 
 
46
  The widget does not modify sensor struct.
 
47
*/
 
48
struct ui_sensorpref *ui_sensorpref_create(struct ui_sensorlist *,
 
49
                                           struct psensor *sensor);
 
50
 
 
51
#endif