Enlightenment CVS committal
Author : fletch3k
Project : misc
Module : enotes
Dir : misc/enotes/src
Modified Files:
Makefile.am compile controlcentre.c controlcentre.h note.c
note.h
Log Message:
Esmart. :)
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/Makefile.am,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- Makefile.am 5 Feb 2004 17:03:41 -0000 1.1
+++ Makefile.am 7 Feb 2004 15:26:54 -0000 1.2
@@ -1,7 +1,7 @@
## Process this file with automake to produce Makefile.in
INCLUDES = \
- @ecore_cflags@ @evas_cflags@ @ewl_cflags@ @edje_cflags@ @edb_cflags@
@imlib2_cflags@ @libxml2_cflags@
+ @ecore_cflags@ @evas_cflags@ @ewl_cflags@ @edje_cflags@ @edb_cflags@
@imlib2_cflags@ @libxml2_cflags@ @esmart_cflags@
bin_PROGRAMS = enotes
@@ -31,4 +31,4 @@
debug.c \
debug.h
-enotes_LDADD = @ewl_libs@ @ecore_libs@ @evas_libs@ @edje_libs@ @edb_libs@
@imlib2_libs@ @libxml2_libs@
+enotes_LDADD = @ewl_libs@ @ecore_libs@ @evas_libs@ @edje_libs@ @edb_libs@
@imlib2_libs@ @libxml2_libs@ @esmart_libs@
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/compile,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- compile 5 Feb 2004 16:52:19 -0000 1.1
+++ compile 7 Feb 2004 15:26:54 -0000 1.2
@@ -12,4 +12,5 @@
`edje-config --cflags --libs` \
`edb-config --cflags --libs` \
`xml2-config --cflags --libs` \
+ `esmart-config --cflags --libs` \
-o enotes -O0 -g3
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/controlcentre.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- controlcentre.c 6 Feb 2004 07:36:30 -0000 1.2
+++ controlcentre.c 7 Feb 2004 15:26:54 -0000 1.3
@@ -1,23 +1,14 @@
-/**************************************************/
-
-/** E - N O T E S **/
-
-/** **/
-
-/** The contents of this file are released to **/
-
-/** the public under the General Public Licence **/
-
-/** Version 2. **/
-
-/** **/
-
-/** By Thomas Fletcher (www.fletch.vze.com) **/
-
-/** **/
-
-/**************************************************/
+/**************************************************
+ ** E - N O T E S **
+ ** **
+ ** The contents of this file are released to **
+ ** the public under the General Public Licence **
+ ** Version 2. **
+ ** **
+ ** By Thomas Fletcher (www.fletch.vze.com) **
+ ** **
+ **************************************************/
#include "controlcentre.h"
@@ -51,17 +42,28 @@
evas_font_path_append(cc->evas, fontpath);
free(fontpath);
+ /* Draggable Setup */
+ cc->dragger = esmart_draggies_new(cc->win);
+ evas_object_name_set(cc->dragger, "dragger");
+ evas_object_move(cc->dragger, 0, 0);
+ evas_object_resize(cc->dragger, main_config->cc->width,
+ main_config->cc->height);
+ evas_object_layer_set(cc->dragger, 999);
+ evas_object_color_set(cc->dragger, 255, 255, 255, 0);
+ esmart_draggies_button_set(cc->dragger, 1);
+ evas_object_show(cc->dragger);
+
/* Setup the EDJE */
cc->edje = edje_object_add(cc->evas);
snprintf(edjefn, PATH_MAX, CC_EDJE, PACKAGE_DATA_DIR,
main_config->theme);
edje_object_file_set(cc->edje, edjefn, CC_PART);
free(edjefn);
- evas_object_layer_set(cc->edje, 0);
evas_object_move(cc->edje, 0, 0);
evas_object_resize(cc->edje, main_config->cc->width,
main_config->cc->height);
evas_object_name_set(cc->edje, "edje");
+ evas_object_pass_events_set(cc->edje, 1);
evas_object_show(cc->edje);
/* Ecore Callbacks */
@@ -93,6 +95,8 @@
ecore_evas_geometry_get(ee, &x, &y, &w, &h);
evas_object_resize(evas_object_name_find
(ecore_evas_get(ee), "edje"), w, h);
+ evas_object_resize(evas_object_name_find(ecore_evas_get(ee), "dragger"),
+ w, h);
return;
}
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/controlcentre.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- controlcentre.h 6 Feb 2004 07:36:30 -0000 1.2
+++ controlcentre.h 7 Feb 2004 15:26:54 -0000 1.3
@@ -22,6 +22,8 @@
#include <Ecore.h>
#include <Ecore_Evas.h>
#include <Edje.h>
+#include <Esmart/container.h>
+#include <Esmart/dragable.h>
#include "debug.h"
#include "config.h"
@@ -44,6 +46,7 @@
typedef struct {
Ecore_Evas *win;
Evas *evas;
+ Evas_Object *dragger;
Evas_Object *edje;
} ControlCentre;
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/note.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- note.c 6 Feb 2004 07:36:30 -0000 1.2
+++ note.c 7 Feb 2004 15:26:54 -0000 1.3
@@ -98,6 +98,17 @@
snprintf(fontpath, PATH_MAX, "%s/data/fonts", PACKAGE_DATA_DIR);
evas_font_path_append(p->evas, fontpath);
+ /* Draggable Setup */
+ p->dragger = esmart_draggies_new(p->win);
+ evas_object_name_set(p->dragger, "dragger");
+ evas_object_move(p->dragger, 0, 0);
+ evas_object_resize(p->dragger, main_config->cc->width,
+ main_config->cc->height);
+ evas_object_layer_set(p->dragger, 999);
+ evas_object_color_set(p->dragger, 255, 255, 255, 0);
+ esmart_draggies_button_set(p->dragger, 1);
+ evas_object_show(p->dragger);
+
/* Setup the Edje */
p->edje = edje_object_add(p->evas);
snprintf(edjefn,
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/note.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- note.h 6 Feb 2004 07:36:30 -0000 1.2
+++ note.h 7 Feb 2004 15:26:54 -0000 1.3
@@ -39,6 +39,7 @@
Ecore_Evas *win;
Evas *evas;
Evas_Object *edje;
+ Evas_Object *dragger;
Evas_Object *eo;
Ewl_Widget *emb;
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs