Enlightenment CVS committal
Author : chaos
Project : e17
Module : proto
Dir : e17/proto/entropy/src/include
Modified Files:
entropy.h gui_component.h plugin_base.h plugin_helper.h
Log Message:
* New API for layout instances
* When changing local viewer, emit event to repopulate files
===================================================================
RCS file: /cvs/e/e17/proto/entropy/src/include/entropy.h,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -3 -r1.30 -r1.31
--- entropy.h 5 Apr 2006 11:25:10 -0000 1.30
+++ entropy.h 11 Apr 2006 10:51:29 -0000 1.31
@@ -14,6 +14,8 @@
#include <unistd.h>
typedef struct entropy_gui_component_instance entropy_gui_component_instance;
+typedef struct entropy_gui_component_instance_layout
entropy_gui_component_instance_layout;
+
typedef struct entropy_plugin entropy_plugin; /*deprecated*/
typedef struct entropy_plugin Entropy_Plugin; /*New*/
typedef struct Entropy_Plugin_Gui Entropy_Plugin_Gui;
===================================================================
RCS file: /cvs/e/e17/proto/entropy/src/include/gui_component.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- gui_component.h 2 Apr 2006 05:47:38 -0000 1.3
+++ gui_component.h 11 Apr 2006 10:51:29 -0000 1.4
@@ -11,19 +11,26 @@
/*TODO when we absract this out, change this to a
reference to the layout container*/
entropy_gui_component_instance* layout_parent; /*A layout, or NULL if
we are a layout;*/
-
int active; /*Are we active or not? I.e. able to consume messages*/
void* gui_object; /*A reference to a structure of your choice
representing a viewable object.
In the case of the EWL components, this is the Root
widget that the container creates*/
-
void* data; /* A reference to a structure containing any additional
data we need */
+ entropy_plugin* plugin; /*The plugin that is responsible for handling
this component */
+};
+struct entropy_gui_component_instance_layout {
+ struct entropy_gui_component_instance base;
- entropy_plugin* plugin; /*The plugin that is responsible for handling
this component */
+ entropy_generic_file* current_folder;
};
entropy_gui_component_instance* entropy_gui_component_instance_new();
+entropy_gui_component_instance_layout*
entropy_gui_component_instance_layout_new();
+
+entropy_generic_file*
+entropy_gui_component_instance_layout_current_folder_get(
+entropy_gui_component_instance_layout* layout);
#endif
===================================================================
RCS file: /cvs/e/e17/proto/entropy/src/include/plugin_base.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- plugin_base.h 8 Apr 2006 08:13:36 -0000 1.7
+++ plugin_base.h 11 Apr 2006 10:51:29 -0000 1.8
@@ -47,7 +47,7 @@
#define ENTROPY_PLUGIN(plugin) ((entropy_plugin *) plugin)
struct Entropy_Plugin_Gui {
- entropy_plugin base;
+ Entropy_Plugin base;
char* toolkit;
struct {
@@ -56,6 +56,12 @@
void (*layout_main)();
} gui_functions;
+};
+
+struct Entropy_Plugin_Gui_Layout {
+ Entropy_Plugin_Gui base;
+
+ entropy_generic_file* current_folder;
};
struct Entropy_Plugin_File {
===================================================================
RCS file: /cvs/e/e17/proto/entropy/src/include/plugin_helper.h,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -3 -r1.14 -r1.15
--- plugin_helper.h 8 Apr 2006 08:13:36 -0000 1.14
+++ plugin_helper.h 11 Apr 2006 10:51:29 -0000 1.15
@@ -21,5 +21,5 @@
entropy_plugin* entropy_plugin_gui_get_by_name_toolkit(char* toolkit, char*
name);
void entropy_event_stat_request(Entropy_Generic_File* file,
entropy_gui_component_instance* instance);
-
+void entropy_event_action_file(Entropy_Generic_File* file,
entropy_gui_component_instance* instance);
#endif
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs