Main Page | Directories | File List | File Members

hildon-navigator-window.h

00001 /*
00002  * This file is part of maemo-af-desktop
00003  *
00004  * Copyright (C) 2006 Nokia Corporation.
00005  *
00006  * Author:  Moises Martinez <moises.martinez@nokia.com>
00007  * Contact: Karoliina Salminen <karoliina.t.salminen@nokia.com>
00008  *
00009  * This library is free software; you can redistribute it and/or
00010  * modify it under the terms of the GNU Lesser General Public License
00011  * version 2.1 as published by the Free Software Foundation.
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 
00025 #ifndef HILDON_NAVIGATOR_WINDOW_H
00026 #define HILDON_NAVIGATOR_WINDOW_H
00027 
00028 #include <gtk/gtkwindow.h>
00029 
00030 
00031 G_BEGIN_DECLS
00032 
00033 #define CFG_FNAME                       "plugins.conf"
00034 #define NAVIGATOR_FACTORY_PLUGINS       "/etc/hildon-navigator/" CFG_FNAME
00035 #define NAVIGATOR_USER_DIR              "/.osso/hildon-navigator/"
00036 #define NAVIGATOR_USER_PLUGINS          NAVIGATOR_USER_DIR CFG_FNAME
00037 
00038 #define HILDON_NAVIGATOR_WINDOW_TYPE ( hildon_navigator_window_get_type() )
00039 #define HILDON_NAVIGATOR_WINDOW(obj) (GTK_CHECK_CAST (obj, \
00040             HILDON_NAVIGATOR_WINDOW_TYPE, \
00041             HildonNavigatorWindow))
00042 #define HILDON_NAVIGATOR_WINDOW_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), \
00043             HILDON_NAVIGATOR_WINDOW_TYPE, HildonNavigatorWindowClass))
00044 #define HILDON_IS_NAVIGATOR_WINDOW(obj) (GTK_CHECK_TYPE (obj, \
00045             HILDON_NAVIGATOR_WINDOW_TYPE))
00046 #define HILDON_IS_NAVIGATOR_WINDOW_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), \
00047             HILDON_NAVIGATOR_WINDOW_TYPE))
00048 #define HILDON_NAVIGATOR_WINDOW_GET_PRIVATE(obj) \
00049         (G_TYPE_INSTANCE_GET_PRIVATE ((obj), \
00050         HILDON_NAVIGATOR_WINDOW_TYPE, HildonNavigatorWindowPrivate));
00051 
00052 
00053 typedef struct _HildonNavigatorWindow HildonNavigatorWindow;
00054 typedef struct _HildonNavigatorWindowClass HildonNavigatorWindowClass;
00055 
00056 struct _HildonNavigatorWindow
00057 {
00058     GtkWindow parent;
00059 
00060 };
00061 
00062 struct _HildonNavigatorWindowClass
00063 {
00064     GtkWindowClass parent_class;
00065 
00066     void (*set_sensitive) (HildonNavigatorWindow *window,
00067                gboolean sensitive);
00068     
00069     void (*set_focus)     (HildonNavigatorWindow *window,
00070                gboolean focus);
00071 
00072     GtkWidget *(*get_others_menu) (HildonNavigatorWindow *window);
00073 };
00074 
00075 GType hildon_navigator_window_get_type (void);
00076 
00077 HildonNavigatorWindow *hildon_navigator_window_new (void);
00078 
00079 void hn_window_set_sensitive (HildonNavigatorWindow *window, 
00080                               gboolean sensitive);
00081 
00082 void hn_window_set_focus (HildonNavigatorWindow *window, 
00083                           gboolean focus);
00084 
00085 GtkWidget *hn_window_get_others_menu (HildonNavigatorWindow *window);
00086 
00087 void hn_window_close_others_menu (HildonNavigatorWindow *window);
00088 
00089 GtkWidget *hn_window_get_button_focus (HildonNavigatorWindow *window,
00090                        gint);
00091 
00092 /* Configuration options
00093  */
00094 
00095 /* When CONFIG_DO_BGKILL is TRUE, applications are killed when they
00096    are in the background and we are in the 'bgkill' situation.
00097 */
00098 extern gboolean config_do_bgkill;
00099 
00100 /* When CONFIG_LOWMEM_DIM is TRUE, all buttons that can start new
00101    applications are dimmed when we are in the 'lowmem' situation.
00102 */
00103 extern gboolean config_lowmem_dim;
00104 
00105 /* When CONFIG_LOWMEM_NOTIFY_ENTER is TRUE, notify this information to the
00106  * user upon entering the 'lowmem' situation.
00107  */
00108 extern gboolean config_lowmem_notify_enter;
00109 
00110 /* When CONFIG_LOWMEM_NOTIFY_LEAVE is TRUE, notify this information to the
00111  * user upon leaving the 'lowmem' situation.
00112  */
00113 extern gboolean config_lowmem_notify_leave;
00114 
00115 /* When CONFIG_LOWMEM_PAVLOV_DIALOG is TRUE, display a dialog instead of
00116    an infoprint upon entering the 'lowmem' situation.
00117 */
00118 extern gboolean config_lowmem_pavlov_dialog;
00119 
00120 G_END_DECLS
00121 
00122 #endif

Generated on Thu Dec 21 11:26:51 2006 for maemo-af-desktop-documentation by  doxygen 1.4.2