r1991 - in trunk/src/target/OM-2007/applications/openmoko-footer: . src
alphaone at sita.openmoko.org
alphaone at sita.openmoko.org
Thu May 17 04:22:24 CEST 2007
Author: alphaone
Date: 2007-05-17 04:22:23 +0200 (Thu, 17 May 2007)
New Revision: 1991
Added:
trunk/src/target/OM-2007/applications/openmoko-footer/src/taskmanager.c
trunk/src/target/OM-2007/applications/openmoko-footer/src/taskmanager.h
Modified:
trunk/src/target/OM-2007/applications/openmoko-footer/ChangeLog
trunk/src/target/OM-2007/applications/openmoko-footer/src/Makefile.am
trunk/src/target/OM-2007/applications/openmoko-footer/src/main.h
Log:
* src/Makefile.am, src/main.h, src/taskmanager.c, src/taskmanager.h:
Add initial taskmanager framework to footer (yet unused)
Modified: trunk/src/target/OM-2007/applications/openmoko-footer/ChangeLog
===================================================================
--- trunk/src/target/OM-2007/applications/openmoko-footer/ChangeLog 2007-05-17 02:10:31 UTC (rev 1990)
+++ trunk/src/target/OM-2007/applications/openmoko-footer/ChangeLog 2007-05-17 02:22:23 UTC (rev 1991)
@@ -1,5 +1,21 @@
+2007-05-17 Daniel Willmann <daniel at totalueberwachung.de>
+
+ * src/Makefile.am:
+ * src/main.h:
+ * src/taskmanager.c: Added.
+ * src/taskmanager.h: Added.
+ Add initial taskmanager framework to footer (yet unused)
+
2007-05-17 Daniel Willmann <daniel at totalueberwachung.de>
+ * src/callbacks.h:
+ * src/footer.h:
+ * src/main.h:
+ * src/misc.h:
+ Add proper #ifdefs around header files
+
+2007-05-17 Daniel Willmann <daniel at totalueberwachung.de>
+
* configure.ac:
* src/callbacks.c:
* src/callbacks.h:
Modified: trunk/src/target/OM-2007/applications/openmoko-footer/src/Makefile.am
===================================================================
--- trunk/src/target/OM-2007/applications/openmoko-footer/src/Makefile.am 2007-05-17 02:10:31 UTC (rev 1990)
+++ trunk/src/target/OM-2007/applications/openmoko-footer/src/Makefile.am 2007-05-17 02:22:23 UTC (rev 1991)
@@ -6,7 +6,7 @@
bin_PROGRAMS = openmoko-footer
-openmoko_footer_SOURCES = main.c footer.c callbacks.c misc.c
+openmoko_footer_SOURCES = main.c footer.c callbacks.c taskmanager.c misc.c
openmoko_footer_LDADD = @OPENMOKO_LIBS@
Modified: trunk/src/target/OM-2007/applications/openmoko-footer/src/main.h
===================================================================
--- trunk/src/target/OM-2007/applications/openmoko-footer/src/main.h 2007-05-17 02:10:31 UTC (rev 1990)
+++ trunk/src/target/OM-2007/applications/openmoko-footer/src/main.h 2007-05-17 02:22:23 UTC (rev 1991)
@@ -20,13 +20,16 @@
#ifndef _MAIN_H_
#define _MAIN_H_
-#include <gtk/gtk.h>
+#include "taskmanager.h"
#include "footer.h"
+#include <gtk/gtk.h>
+
typedef struct _MokoFooterApp
{
GtkWidget *toplevel_window;
GtkWidget *footer;
+ MokoTaskManager *taskmanager;
GdkWindow *target_window;
} MokoFooterApp;
Added: trunk/src/target/OM-2007/applications/openmoko-footer/src/taskmanager.c
===================================================================
--- trunk/src/target/OM-2007/applications/openmoko-footer/src/taskmanager.c 2007-05-17 02:10:31 UTC (rev 1990)
+++ trunk/src/target/OM-2007/applications/openmoko-footer/src/taskmanager.c 2007-05-17 02:22:23 UTC (rev 1991)
@@ -0,0 +1,69 @@
+/*
+ * Footer - Task manager application
+ *
+ * Authored by Daniel Willmann <daniel at totalueberwachung.de>
+ *
+ * Copyright (C) 2007 OpenMoko, Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Public License as published by
+ * the Free Software Foundation; version 2 of the license.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Public License for more details.
+ *
+ * Current Version: $Rev$ ($Date$) [$Author$]
+ */
+
+#include "taskmanager.h"
+#include "callbacks.h"
+
+#include <libmokoui/moko-application.h>
+#include <libmokoui/moko-finger-window.h>
+#include <libmokoui/moko-finger-wheel.h>
+#include <libmokoui/moko-finger-tool-box.h>
+#include <libmokoui/moko-pixmap-button.h>
+#include <gtk/gtk.h>
+#include <glib.h>
+
+void taskmanager_init (MokoTaskManager *tm)
+{
+ Display *dpy;
+ GtkWidget *image;
+
+ dpy = GDK_DISPLAY();
+
+ tm->app = MOKO_APPLICATION(moko_application_get_instance());
+ g_set_application_name( "Taskmanager" );
+
+
+ tm->window = moko_finger_window_new();
+ moko_application_set_main_window(tm->app, tm->window);
+
+ gtk_window_set_title(GTK_WINDOW (tm->window), "OpenMoko Tasks");
+
+ tm->wheel = moko_finger_window_get_wheel(tm->window);
+ tm->toolbox = moko_finger_window_get_toolbox(tm->window);
+
+ tm->go_to = moko_finger_tool_box_add_button_without_label(tm->toolbox);
+ image = gtk_image_new_from_file (PKGDATADIR"/active_task.png");
+ moko_pixmap_button_set_finger_toolbox_btn_center_image (tm->go_to, image);
+
+ tm->kill = moko_finger_tool_box_add_button_without_label(tm->toolbox);
+ image = gtk_image_new_from_file (PKGDATADIR"/close.png");
+ moko_pixmap_button_set_finger_toolbox_btn_center_image (tm->kill, image);
+
+ tm->kill_all = moko_finger_tool_box_add_button_without_label(tm->toolbox);
+ image = gtk_image_new_from_file (PKGDATADIR"/close_all.png");
+ moko_pixmap_button_set_finger_toolbox_btn_center_image (tm->kill_all, image);
+
+ tm->quit = moko_finger_tool_box_add_button_without_label(tm->toolbox);
+ image = gtk_image_new_from_file (PKGDATADIR"/exit.png");
+ moko_pixmap_button_set_finger_toolbox_btn_center_image (tm->quit, image);
+
+ tm->table = gtk_table_new( 3, 3, TRUE );
+
+ moko_finger_window_set_contents( tm->window, GTK_WIDGET(tm->table) );
+}
Added: trunk/src/target/OM-2007/applications/openmoko-footer/src/taskmanager.h
===================================================================
--- trunk/src/target/OM-2007/applications/openmoko-footer/src/taskmanager.h 2007-05-17 02:10:31 UTC (rev 1990)
+++ trunk/src/target/OM-2007/applications/openmoko-footer/src/taskmanager.h 2007-05-17 02:22:23 UTC (rev 1991)
@@ -0,0 +1,47 @@
+/*
+ * Footer - Task manager application
+ *
+ * Authored by Daniel Willmann <daniel at totalueberwachung.de>
+ *
+ * Copyright (C) 2007 OpenMoko, Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Public License as published by
+ * the Free Software Foundation; version 2 of the license.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Public License for more details.
+ *
+ * Current Version: $Rev$ ($Date$) [$Author$]
+ */
+
+#ifndef _TASKMANAGER_H_
+#define _TASKMANAGER_H_
+
+#include <libmokoui/moko-application.h>
+#include <libmokoui/moko-finger-window.h>
+#include <libmokoui/moko-finger-wheel.h>
+#include <libmokoui/moko-finger-tool-box.h>
+#include <libmokoui/moko-pixmap-button.h>
+
+#include <gtk/gtk.h>
+
+typedef struct _MokoTaskManager
+{
+ MokoApplication *app;
+ MokoFingerWindow *window;
+ MokoFingerWheel *wheel;
+ MokoFingerToolBox *toolbox;
+ GtkTable *table;
+ MokoPixmapButton *go_to;
+ MokoPixmapButton *kill;
+ MokoPixmapButton *kill_all;
+ MokoPixmapButton *quit;
+} MokoTaskManager;
+
+
+void taskmanager_init (MokoTaskManager *tm);
+
+#endif
More information about the commitlog
mailing list