r53 - in trunk/src/target/OM-2007: . examples examples/openmoko-3partdemo
mickey at gta01.hmw-consulting.de
mickey at gta01.hmw-consulting.de
Mon Sep 25 19:47:17 CEST 2006
Author: mickey
Date: 2006-09-25 17:47:17 +0000 (Mon, 25 Sep 2006)
New Revision: 53
Added:
trunk/src/target/OM-2007/examples/
trunk/src/target/OM-2007/examples/openmoko-3partdemo/
trunk/src/target/OM-2007/examples/openmoko-3partdemo/.svnignore
trunk/src/target/OM-2007/examples/openmoko-3partdemo/README
trunk/src/target/OM-2007/examples/openmoko-3partdemo/demo-main.c
trunk/src/target/OM-2007/examples/openmoko-3partdemo/demo-main.h
trunk/src/target/OM-2007/examples/openmoko-3partdemo/openmoko-3partdemo.pro
Log:
skeleton for openmoko-3partdemo example application
Added: trunk/src/target/OM-2007/examples/openmoko-3partdemo/.svnignore
===================================================================
--- trunk/src/target/OM-2007/examples/openmoko-3partdemo/.svnignore 2006-09-25 14:19:09 UTC (rev 52)
+++ trunk/src/target/OM-2007/examples/openmoko-3partdemo/.svnignore 2006-09-25 17:47:17 UTC (rev 53)
@@ -0,0 +1,3 @@
+Makefile
+*~
+
Added: trunk/src/target/OM-2007/examples/openmoko-3partdemo/README
===================================================================
--- trunk/src/target/OM-2007/examples/openmoko-3partdemo/README 2006-09-25 14:19:09 UTC (rev 52)
+++ trunk/src/target/OM-2007/examples/openmoko-3partdemo/README 2006-09-25 17:47:17 UTC (rev 53)
@@ -0,0 +1,4 @@
+This is a typical example of an OpenMoko Stylus Application
+using the OpenMoko Application Framework.
+
+Feel free to use this as a template for your own stylus applications.
Added: trunk/src/target/OM-2007/examples/openmoko-3partdemo/demo-main.c
===================================================================
--- trunk/src/target/OM-2007/examples/openmoko-3partdemo/demo-main.c 2006-09-25 14:19:09 UTC (rev 52)
+++ trunk/src/target/OM-2007/examples/openmoko-3partdemo/demo-main.c 2006-09-25 17:47:17 UTC (rev 53)
@@ -0,0 +1,46 @@
+/*
+ * 3 Part Demo -- OpenMoko Demo Application
+ *
+ * Authored By Michael 'Mickey' Lauer <mlauer at vanille-media.de>
+ *
+ * Copyright (C) 2006 First International Computer 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.1 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 <mokoui/moko-application.h>
+#include <mokoui/moko-window.h>
+
+#include <gtk/gtkmain.h>
+#include <gtk/gtkbutton.h>
+
+int main( int argc, char** argv )
+{
+ /* Initialize GTK+ */
+ gtk_init( &argc, &argv );
+
+ MokoApplication* app = MOKO_APPLICATION( moko_application_get_instance() );
+ g_set_application_name( "Hello OpenMoko!" );
+
+ MokoWindow* window = MOKO_WINDOW( moko_window_new() );
+ // moko_application_set_main_window( window );
+
+ GtkButton* button = gtk_button_new_with_label( "Hello World!" );
+ gtk_container_add( GTK_CONTAINER(window), button );
+
+ g_signal_connect( G_OBJECT(window), "delete_event", G_CALLBACK( gtk_main_quit ), NULL );
+
+ gtk_widget_show_all( GTK_WIDGET(window) );
+ gtk_main();
+
+ return 0;
+}
Property changes on: trunk/src/target/OM-2007/examples/openmoko-3partdemo/demo-main.c
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/src/target/OM-2007/examples/openmoko-3partdemo/demo-main.h
===================================================================
--- trunk/src/target/OM-2007/examples/openmoko-3partdemo/demo-main.h 2006-09-25 14:19:09 UTC (rev 52)
+++ trunk/src/target/OM-2007/examples/openmoko-3partdemo/demo-main.h 2006-09-25 17:47:17 UTC (rev 53)
@@ -0,0 +1,19 @@
+/*
+ * 3 Part Demo -- OpenMoko Demo Application
+ *
+ * Authored By Michael 'Mickey' Lauer <mlauer at vanille-media.de>
+ *
+ * Copyright (C) 2006 First International Computer 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.1 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$]
+ */
+
Property changes on: trunk/src/target/OM-2007/examples/openmoko-3partdemo/demo-main.h
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/src/target/OM-2007/examples/openmoko-3partdemo/openmoko-3partdemo.pro
===================================================================
--- trunk/src/target/OM-2007/examples/openmoko-3partdemo/openmoko-3partdemo.pro 2006-09-25 14:19:09 UTC (rev 52)
+++ trunk/src/target/OM-2007/examples/openmoko-3partdemo/openmoko-3partdemo.pro 2006-09-25 17:47:17 UTC (rev 53)
@@ -0,0 +1,6 @@
+MOKOCONFIG = mokoui
+
+HEADERS = demo-main.h
+SOURCES = demo-main.c
+
+include ( ../../qmake/openmoko-include.pro )
More information about the commitlog
mailing list