00001 /***************************************************************************** 00002 * Copyright (c) 1999-2008 ACCESS CO., LTD. All rights reserved. 00003 * Copyright (c) 2006 PalmSource, Inc (an ACCESS company). All rights reserved. 00004 *****************************************************************************/ 00010 #ifndef __ALP_MAX_H__ 00011 #define __ALP_MAX_H__ 00012 00013 #include <gtk/gtk.h> 00014 00015 #include <hiker/sysclass.h> 00016 00017 #ifdef __cplusplus 00018 extern "C" { 00019 #endif 00020 00033 #define ALP_STATUS_REGISTER_POPUP_ERROR ((alp_status_t)ALP_CLASS_MAX_WIDGETS | 0x00010000) 00034 #define ALP_STATUS_REGISTER_CALLBACK_ERROR ((alp_status_t)ALP_CLASS_MAX_WIDGETS | 0x00020000) 00035 #define ALP_STATUS_MAX_BAD_PARAMETER ((alp_status_t)ALP_CLASS_MAX_WIDGETS | 0x00030000) 00036 00037 typedef void (*AlpMaxWindowShownCallback)(gpointer data); 00038 00039 00041 00054 void alp_max_gtk_init(void); 00055 00057 00069 gint alp_max_dialog_run(GtkDialog *dialog); 00070 00071 00073 00078 void alp_max_dialog_cancel_all(void); 00079 00080 00082 00096 void 00097 alp_max_set_window_shown_callback(GtkWindow *window, 00098 AlpMaxWindowShownCallback func, 00099 gpointer data); 00100 00101 00105 typedef enum { 00107 ALP_MAX_ACTIVATE_DEFAULT = 0, 00108 00110 ALP_MAX_ACTIVATE_BY_SINGLE, 00111 00113 ALP_MAX_ACTIVATE_BY_DOUBLE 00114 } AlpMaxActivationMethodType; 00115 00121 void alp_widget_set_activation_method(GtkWidget *widget, 00122 AlpMaxActivationMethodType activation); 00123 00129 AlpMaxActivationMethodType alp_widget_get_activation_method(GtkWidget *widget); 00130 00149 alp_status_t 00150 alp_widget_register_long_press_popup(GtkWidget *widget, 00151 GtkMenu* popup); 00152 00153 typedef void (*AlpLongPressCallback)(gpointer data, gint x, gint y, gint x_root, gint y_root); 00154 00181 alp_status_t 00182 alp_widget_register_long_press_callback(GtkWidget *widget, 00183 AlpLongPressCallback func, 00184 gpointer data); 00185 00186 00213 alp_status_t alp_vol_set_strm_cls_vol_controlled(gchar *stream_type, gboolean vol_controlled); 00214 00215 00219 #ifdef __cplusplus 00220 } // extern "C" 00221 #endif 00222 00223 #endif /* __ALP_MAX_H__ */ 00224
Copyright © 1999-2008 ACCESS CO., LTD. All rights reserved.