application-switcher.h File Reference

Definitions of Application Switcher. More...

#include <gtk/gtkbutton.h>
#include <libosso.h>
#include <gtk/gtkmenu.h>
#include "hn-wm-types.h"

Go to the source code of this file.

Classes

struct  ApplicationSwitcher
struct  container

Defines

#define ITEM_1_LIST_POS   2
#define ITEM_2_LIST_POS   3
#define ITEM_3_LIST_POS   4
#define ITEM_4_LIST_POS   5
#define STRING_HOME   _("tana_fi_home")
#define WORKAREA_ATOM   "_NET_WORKAREA"
#define AS_SWITCHER_BUTTON_ICON   "qgn_list_tasknavigator_appswitcher"
#define MENU_ITEM_DEFAULT_APP_ICON   "qgn_list_gene_default_app"
#define HOME_MENU_ITEM_ICON   "qgn_list_home"
#define SMALL_BUTTON1_NORMAL   "hildon-navigator-small-button1"
#define SMALL_BUTTON2_NORMAL   "hildon-navigator-small-button2"
#define SMALL_BUTTON3_NORMAL   "hildon-navigator-small-button3"
#define SMALL_BUTTON4_NORMAL   "hildon-navigator-small-button4"
#define SMALL_BUTTON1_PRESSED   "hildon-navigator-small-button1-pressed"
#define SMALL_BUTTON2_PRESSED   "hildon-navigator-small-button2-pressed"
#define SMALL_BUTTON3_PRESSED   "hildon-navigator-small-button3-pressed"
#define SMALL_BUTTON4_PRESSED   "hildon-navigator-small-button4-pressed"
#define NAME_SMALL_MENU_BUTTON_ITEM   "hildon-navigator-small-button5"
#define NAME_UPPER_SEPARATOR   "hildon-navigator-upper-separator"
#define NAME_LOWER_SEPARATOR   "hildon-navigator-lower-separator"
#define AS_MENUITEM_SAME_POSITION   0
#define AS_MENUITEM_TO_FIRST_POSITION   1
#define AS_MENUITEM_TO_LAST_POSITION   2
#define BUTTON_BORDER_WIDTH   0
#define MENU_BORDER_WIDTH   20
#define BIG_BUTTON_HEIGHT   90
#define SMALL_BUTTON_HEIGHT   38
#define ROW_HEIGHT   30
#define ICON_SIZE   26
#define MAX_AREA_WIDTH   360
#define SEPARATOR_HEIGHT   10
#define BUTTON_1_Y_POS   (BIG_BUTTON_HEIGHT * 3 + SEPARATOR_HEIGHT)
#define BUTTON_2_Y_POS   (BUTTON_1_Y_POS + SMALL_BUTTON_HEIGHT)
#define BUTTON_3_Y_POS   (BUTTON_2_Y_POS + SMALL_BUTTON_HEIGHT)
#define BUTTON_4_Y_POS   (BUTTON_3_Y_POS + SMALL_BUTTON_HEIGHT)
#define MCE_SERVICE   "com.nokia.mce"
#define MCE_SIGNAL_INTERFACE   "com.nokia.mce.signal"
#define MCE_SIGNAL_PATH   "/com/nokia/mce/signal"
#define HOME_LONG_PRESS   "sig_home_key_pressed_long_ind"
#define HOME_PRESS   "sig_home_key_pressed_ind"
#define SHUTDOWN_IND   "shutdown_ind"
#define LOWMEM_ON_SIGNAL_INTERFACE   "com.nokia.ke_recv.lowmem_on"
#define LOWMEM_ON_SIGNAL_PATH   "/com/nokia/ke_recv/lowmem_on"
#define LOWMEM_ON_SIGNAL_NAME   "lowmem_on"
#define LOWMEM_OFF_SIGNAL_INTERFACE   "com.nokia.ke_recv.lowmem_off"
#define LOWMEM_OFF_SIGNAL_PATH   "/com/nokia/ke_recv/lowmem_off"
#define LOWMEM_OFF_SIGNAL_NAME   "lowmem_off"
#define BGKILL_ON_SIGNAL_INTERFACE   "com.nokia.ke_recv.bgkill_on"
#define BGKILL_ON_SIGNAL_PATH   "/com/nokia/ke_recv/bgkill_on"
#define BGKILL_ON_SIGNAL_NAME   "bgkill_on"
#define BGKILL_OFF_SIGNAL_INTERFACE   "com.nokia.ke_recv.bgkill_off"
#define BGKILL_OFF_SIGNAL_PATH   "/com/nokia/ke_recv/bgkill_off"
#define BGKILL_OFF_SIGNAL_NAME   "bgkill_off"
#define HILDON_NAVIGATOR_WINDOW_OPEN_SOUND   DATADIR"/sounds/ui-window_open.wav"
#define HILDON_NAVIGATOR_WINDOW_CLOSE_SOUND   DATADIR"/sounds/ui-window_close.wav"
#define LAST_AS_BUTTON   4
#define TIMEOUT_HALF_SECOND   500
#define TIMEOUT_ONE_AND_HALF_SECOND   1500
#define TEMP_LABEL_BUFFER_SIZE   80

Typedefs

typedef ApplicationSwitcher ApplicationSwitcher_t
typedef void() _shutdown_callback (void)
typedef void() _lowmem_callback (gboolean is_on)
typedef void() _bgkill_callback (gboolean is_on)

Enumerations

enum  {
  AS_BUTTON_1 = 0, AS_BUTTON_2, AS_BUTTON_3, AS_BUTTON_4,
  AS_BUTTON_SWITCHER
}

Functions

ApplicationSwitcher_t * application_switcher_init (void)
GtkWidget * application_switcher_get_button (ApplicationSwitcher_t *as)
void application_switcher_initialize_menu (ApplicationSwitcher_t *as)
GtkWidget * application_switcher_get_killable_item (ApplicationSwitcher_t *as)
void application_switcher_deinit (ApplicationSwitcher_t *as)
GList * application_switcher_get_menuitems (ApplicationSwitcher_t *as)
void * application_switcher_get_dnotify_handler (ApplicationSwitcher_t *as)
void application_switcher_set_dnotify_handler (ApplicationSwitcher_t *as, gpointer update_cb_ptr)
void application_switcher_set_shutdown_handler (ApplicationSwitcher_t *as, gpointer shutdown_cb_ptr)
void application_switcher_set_lowmem_handler (ApplicationSwitcher_t *as, gpointer lowmem_cb_ptr)
void application_switcher_set_bgkill_handler (ApplicationSwitcher_t *as, gpointer bgkill_on_cb_ptr)
void application_switcher_add_menubutton (ApplicationSwitcher_t *as)
void application_switcher_update_lowmem_situation (ApplicationSwitcher_t *as, gboolean lowmem)
GtkWidget * app_switcher_add_new_item (ApplicationSwitcher_t *as, HNWMWatchedWindow *window, HNWMWatchedWindowView *view)
void app_switcher_remove_item (ApplicationSwitcher_t *as, GtkWidget *menuitem)
void app_switcher_update_item (ApplicationSwitcher_t *as, HNWMWatchedWindow *window, HNWMWatchedWindowView *view, guint position_change)
void app_switcher_top_desktop_item (ApplicationSwitcher_t *as)
void app_switcher_item_icon_sync (ApplicationSwitcher_t *as, HNWMWatchedWindow *window)
void app_switcher_system_inactivity_change (ApplicationSwitcher_t *as)


Detailed Description

Definitions of Application Switcher.


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