X-Git-Url: http://git.maemo.org/git/?p=stopish;a=blobdiff_plain;f=src%2Fstopish.h;h=d5d378cb1154c271d8745dc1ad01b9cbff5f92a8;hp=986e3ae830ed0cde049c9db00707712e47b09202;hb=HEAD;hpb=5474e4a2f6f2f455bdaedb7630ba7eef8ed21db1 diff --git a/src/stopish.h b/src/stopish.h index 986e3ae..d5d378c 100644 --- a/src/stopish.h +++ b/src/stopish.h @@ -1,6 +1,6 @@ // stopish.h // -// Copyright 2009 Michael Cronenworth +// Copyright 2010 Michael Cronenworth // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -21,22 +21,59 @@ #ifndef __STOPISH_H__ #define __STOPISH_H__ +#include + +#define STOPISH_VERSION_NUM 0.9.3 +#define STOPISH_VERSION_STR "0.9.3" + #define STOPISH_MODE_START 0 #define STOPISH_MODE_PAUSE 1 #define STOPISH_MODE_RESUME 2 +#define STOPISH_TYPE_STOPWATCH 0 +#define STOPISH_TYPE_COUNTDOWN 1 + +#define STOPISH_PORTRAIT 0 +#define STOPISH_LANDSCAPE 1 + +#define TIMER_PRECISION_HOUR 0 +#define TIMER_PRECISION_MINUTE 1 + // stopish.c gint dbus_callback( const gchar *interface, const gchar *method, GArray *arguments, gpointer data, osso_rpc_t *retval ); +void stopish_about_cb( GtkButton* button, gpointer data ); int stopish_get_mode( void ); +int stopish_get_type( void ); +int stopish_get_orientation( void ); +void stopish_set_mode( int newMode ); +void stopish_set_type( int newType ); +gboolean stopish_focus_in_cb( GtkWidget *widget, GdkEventFocus *event, + gpointer data ); +gboolean stopish_focus_out_cb( GtkWidget *widget, GdkEventFocus *event, + gpointer data ); + +// stopish-countdown.c +void stopish_countdown_new( void ); +void stopish_countdown_label_timer_landscape( void ); +void stopish_countdown_label_timer_portrait( void ); + +// stopish-stopwatch.c +GtkWindow *stopish_stopwatch_new( void ); +void stopish_stopwatch_reset( void ); +void stopish_stopwatch_perf_timer_hour( GtkRadioButton* radio, GtkLabel *label ); +void stopish_stopwatch_perf_timer_minute( GtkRadioButton* radio, GtkLabel *label ); +void stopish_stopwatch_label_timer_landscape( void ); +void stopish_stopwatch_label_timer_portrait( void ); // timer.c -gint stopish_timeout_cb( gpointer data ); char *stopish_get_time_string( void ); long int stopish_get_time_timer( void ); void stopish_set_time_start( long int time ); void stopish_timer_resume( void ); void stopish_timer_save( void ); long int stopish_current_time( void ); +void stopish_timer_set_precision( int setting ); +int stopish_timer_get_precision( void ); #endif