3 // Copyright 2010 Michael Cronenworth <mike@cchtml.com>
5 // This program is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation; either version 2 of the License, or
8 // (at your option) any later version.
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software
17 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
18 // MA 02110-1301, USA.
26 #define STOPISH_VERSION_NUM 0.9.3
27 #define STOPISH_VERSION_STR "0.9.3"
29 #define STOPISH_MODE_START 0
30 #define STOPISH_MODE_PAUSE 1
31 #define STOPISH_MODE_RESUME 2
33 #define STOPISH_TYPE_STOPWATCH 0
34 #define STOPISH_TYPE_COUNTDOWN 1
36 #define STOPISH_PORTRAIT 0
37 #define STOPISH_LANDSCAPE 1
39 #define TIMER_PRECISION_HOUR 0
40 #define TIMER_PRECISION_MINUTE 1
43 gint dbus_callback( const gchar *interface, const gchar *method,
44 GArray *arguments, gpointer data, osso_rpc_t *retval );
45 void stopish_about_cb( GtkButton* button, gpointer data );
46 int stopish_get_mode( void );
47 int stopish_get_type( void );
48 int stopish_get_orientation( void );
49 void stopish_set_mode( int newMode );
50 void stopish_set_type( int newType );
51 gboolean stopish_focus_in_cb( GtkWidget *widget, GdkEventFocus *event,
53 gboolean stopish_focus_out_cb( GtkWidget *widget, GdkEventFocus *event,
56 // stopish-countdown.c
57 void stopish_countdown_new( void );
58 void stopish_countdown_label_timer_landscape( void );
59 void stopish_countdown_label_timer_portrait( void );
61 // stopish-stopwatch.c
62 GtkWindow *stopish_stopwatch_new( void );
63 void stopish_stopwatch_reset( void );
64 void stopish_stopwatch_perf_timer_hour( GtkRadioButton* radio, GtkLabel *label );
65 void stopish_stopwatch_perf_timer_minute( GtkRadioButton* radio, GtkLabel *label );
66 void stopish_stopwatch_label_timer_landscape( void );
67 void stopish_stopwatch_label_timer_portrait( void );
70 char *stopish_get_time_string( void );
71 long int stopish_get_time_timer( void );
72 void stopish_set_time_start( long int time );
73 void stopish_timer_resume( void );
74 void stopish_timer_save( void );
75 long int stopish_current_time( void );
76 void stopish_timer_set_precision( int setting );
77 int stopish_timer_get_precision( void );