home-select-applets-dialog.h

Go to the documentation of this file.
00001 /*
00002  * This file is part of maemo-af-desktop
00003  *
00004  * Copyright (C) 2006 Nokia Corporation.
00005  *
00006  * Contact: Karoliina Salminen <karoliina.t.salminen@nokia.com>
00007  *
00008  * This library is free software; you can redistribute it and/or
00009  * modify it under the terms of the GNU Lesser General Public License
00010  * as published by the Free Software Foundation; either version 2.1 of
00011  * the License, or (at your option) any later version.
00012  *
00013  * This library is distributed in the hope that it will be useful, but
00014  * WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
00016  * Lesser General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU Lesser General Public
00019  * License along with this library; if not, write to the Free Software
00020  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
00021  * 02110-1301 USA
00022  *
00023  **/
00024 
00030 #ifndef HOME_SELECT_APPLETS_DIALOG_H
00031 #define HOME_SELECT_APPLETS_DIALOG_H
00032 
00033 #include "hildon-base-lib/hildon-base-dnotify.h"
00034 #include <gtk/gtk.h>
00035 
00036 #include <libosso.h>
00037 
00038 G_BEGIN_DECLS
00039 
00040 /* generic values */
00041 #define _(a) gettext(a)
00042 
00043 /* 'Select Applets'-dialog constants */
00044 #define HOME_APPLETS_MAXIMUM_VISIBLE_ROWS 8
00045 #define HOME_APPLETS_MARGIN_DEFAULT 6
00046 /* a long time ago 30 was speced to be a text height */
00047 #define HOME_APPLETS_DIALOG_HEIGHT  (HOME_APPLETS_MAXIMUM_VISIBLE_ROWS * 30 + 2 * HOME_APPLETS_MARGIN_DEFAULT)  
00048 #define HOME_APPLETS_DESKTOP_SUFFIX    ".desktop"
00049 #define HOME_APPLETS_DESKTOP_DIR       "/usr/share/applications/hildon-home/"
00050 #define HOME_APPLETS_DESKTOP_GROUP     "Desktop Entry"
00051 #define HOME_APPLETS_DESKTOP_NAME_KEY  "Name"
00052 #define HOME_APPLETS_SELECT_TITLE      _("home_ti_select_applets")
00053 #define HOME_APPLETS_SELECT_OK         _("home_bd_select_applets_ok")
00054 #define HOME_APPLETS_SELECT_CANCEL     _("home_bd_select_applets_cancel")
00055 
00056 
00057 /* Select Applets-dialog columns in TreeViewModel */
00058 enum {
00059     CHECKBOX_COL = 0,     /* Checkbox */
00060     APPLET_NAME_COL,      /* Applet name string */
00061     DESKTOP_FILE_COL,     /* Desktop file string */
00062     APPLETS_LIST_COLUMNS  /* Number of columns */
00063 };
00064 
00065 typedef struct {
00066     GList* list_data;
00067     GtkTreeModel* model_data; 
00068 } SelectAppletsData;
00069 
00070 
00071 /* Public function declarations */
00072 void show_select_applets_dialog(GList *applets, 
00073                                 GList **added_list, 
00074                                 GList **removed_list);
00075 
00076 void select_applets_selected(GtkEventBox *home_event_box,
00077                              GtkFixed *home_fixed,
00078                              GtkWidget *titlebar_label);
00079 
00080 G_END_DECLS
00081 
00082 #endif

Generated on Fri Jun 9 16:23:05 2006 for maemo-af-desktop-documentation by  doxygen 1.4.6