include/alp/catui.h

Go to the documentation of this file.
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  ******************************************************************************/
00013 /*Includes********************************************************************/
00014 
00015 #ifndef ALP_CATUI_H
00016 #define ALP_CATUI_H
00017 
00018 #include <alp/catmgr_dml.h>
00019 #include <alp/response_types.h>
00020 #include <gtk/gtk.h>
00021 /*Prototypes******************************************************************/
00022 
00023 #ifdef __cplusplus
00024 extern "C" {
00025 #endif
00026 
00053 typedef enum {
00055         alpCatEndRowMode                = 0,
00057         alpCatCategoryRowMode,
00059         alpCatAllRowMode,
00061         alpCatUnfiledRowMode,
00063         alpCatEditRowMode,
00065         alpCatSeparatorRowMode,
00067         alpCatFirstAppRowMode = 16
00068 } AlpCatUIModeType;
00069 
00071 typedef struct _AlpCatModelCreateType {
00073         int rowMode;
00075         char *name;
00076 } AlpCatModelCreateType;
00077 
00079 enum {
00081         alpCatColumnRowMode,
00083         alpCatColumnCategoryID,
00085         alpCatColumnName,
00087         alpCatNumColumns
00088 };
00089 
00102 extern alp_status_t alp_cat_categorize (GtkWindow *parent, char *recordDescription, 
00103                                                                                 AlpDmlH catH, AlpLuid recordID,
00104                                                                                 bool allowMultiple, bool allowEditing);
00105 
00106 
00119 extern alp_status_t alp_cat_categorize_by_popup (GtkWidget *widget, AlpDmlH catH, AlpLuid recordID,
00120                                                                                 bool allowMultiple, bool allowEditing, AlpLuid* catChosen );
00121 
00131 extern alp_status_t alp_cat_edit (      GtkWindow *parent, AlpDmlH catH);
00132 
00133 #define ALP_CAT_COMBO_BOX_WIDTH "alp-cat-combo-box-width"
00134 
00160 extern alp_status_t alp_cat_combo_box_set_model (       GtkComboBox *comboBox,
00161                                                                                                         AlpDmlH catH,
00162                                                                                                         AlpCatModelCreateType *modelCreateArray,
00163                                                                                                         bool includeReadOnlyCategories,
00164                                                                                                         bool createRenderer );
00165 
00166 
00180 extern alp_status_t alp_cat_combo_box_set_active (      GtkComboBox *comboBox,
00181                                                                                                         int32_t rowMode,
00182                                                                                                         AlpLuid categoryID );
00183 
00186 #ifdef __cplusplus
00187 }
00188 #endif
00189 
00190 #endif /* ALP_CATUI_H */

Generated on Wed Jul 30 07:06:39 2008 by Doxygen 1.4.6 for ALP SDK + Hiker Documentation

Copyright © 1999-2008 ACCESS CO., LTD. All rights reserved.