annotate src/alarm/alarm.h @ 903:1820b4026fe2 trunk

[svn] - flac: when bitrate update is disabled, always display VBR instead of a useless value
author giacomo
date Fri, 30 Mar 2007 01:52:06 -0700
parents b59bca84e3cd
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
121
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1 /*
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
2 * $Id: alarm.h,v 1.2 2003/11/23 19:29:36 adamf Exp $
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
3 * alarm.h
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
4 *
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
5 * Adam Feakin
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
6 * adamf@snika.uklinux.net
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
7 *
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
8 * we need some struct to hold the info about the days
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
9 */
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
10 #ifndef __ALARM_H
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
11 #define __ALARM_H
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
12
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
13 #include "config.h"
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
14
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
15 #include <gtk/gtk.h>
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
16
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
17 /* flags */
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
18 #define ALARM_OFF (1 << 0)
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
19 #define ALARM_DEFAULT (1 << 1)
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
20
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
21 /* defaults */
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
22 #define DEFAULT_ALARM_HOUR 06
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
23 #define DEFAULT_ALARM_MIN 30
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
24 #define DEFAULT_STOP_HOURS 01
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
25 #define DEFAULT_STOP_MINS 00
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
26 #define DEFAULT_VOLUME 80
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
27 #define DEFAULT_FADING 60
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
28 #define DEFAULT_QUIET_VOL 25
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
29 #define DEFAULT_FLAGS ALARM_DEFAULT
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
30
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
31 /* debug ? */
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
32 #ifdef ENABLE_DEBUG
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
33 # define DEBUG( args... ) fprintf( stderr, args )
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
34 #else
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
35 # define DEBUG( args... )
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
36 #endif
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
37
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
38
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
39 typedef struct AlarmDay {
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
40 GtkCheckButton *cb;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
41 GtkCheckButton *cb_def;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
42 GtkSpinButton *spin_hr;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
43 GtkSpinButton *spin_min;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
44 int flags;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
45 int hour;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
46 int min;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
47 } alarmday;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
48
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
49
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
50 typedef struct Fader {
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
51 guint start, end;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
52 } fader;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
53
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
54
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
55 #endif /* __ALARM_H */
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
56 /*
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
57 * vi:ai:expandtab:ts=2 sts=2 shiftwidth=2:nowrap:
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
58 */