aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/e_entry_dialog.h
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2006-08-12 12:49:52 +0000
committerCarsten Haitzler <raster@rasterman.com>2006-08-12 12:49:52 +0000
commitd104992051c696c6f514aa672124ce3ed0768cad (patch)
tree52c014d0619478bfd236e262d72d2bf832df63d5 /src/bin/e_entry_dialog.h
parent* Add password mode to the entry (diff)
downloadenlightenment-d104992051c696c6f514aa672124ce3ed0768cad.tar.gz
* border property patch - dont generate on moves
* entry dialog becomes object - supports initial text contents of the entry * fm2 gets menu patch (heavily worked so its safe) so u can delete and rename files (and dirs) that you have permission to do so with. * picutre importing disables or enables the scale and encoding stuff depending on what is selected * more widgets support enable/disable * importer detects duaplicate destination target filenames and tries alternate names. * fsel widget displays extensions by default. * test filemanager menu gone * pants on! SVN revision: 24589
Diffstat (limited to 'src/bin/e_entry_dialog.h')
-rw-r--r--src/bin/e_entry_dialog.h48
1 files changed, 33 insertions, 15 deletions
diff --git a/src/bin/e_entry_dialog.h b/src/bin/e_entry_dialog.h
index 3c03b1770..cae08b091 100644
--- a/src/bin/e_entry_dialog.h
+++ b/src/bin/e_entry_dialog.h
@@ -1,24 +1,42 @@
-#ifdef E_TYPEDEF
+/*
+ * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
+ */
+#ifdef E_TYPEDEFS
+
+typedef struct _E_Entry_Dialog E_Entry_Dialog;
#else
#ifndef E_ENTRY_DIALOG_H
#define E_ENTRY_DIALOG_H
-/*
- * @title - dialog title
- * @icon - dialog icon
- * @text - the text shown in the dialog
- * @button_text - "Ok" button text
- * @button2_text - "Cancel" button text
- * @func - the function to call if ok is pressed
- * @func2 - the function to call if cancel is pressed
- * @data - the pointer passed to func
-*/
+#define E_ENTRY_DIALOG_TYPE 0xE0b01025
+
+struct _E_Entry_Dialog
+{
+ E_Object e_obj_inherit;
+
+ E_Dialog *dia;
+ Evas_Object *entry;
+ char *text;
+ struct {
+ void (*func) (char *text, void *data);
+ void *data;
+ } ok;
+ struct {
+ void (*func) (void *data);
+ void *data;
+ } cancel;
+};
-EAPI void e_entry_dialog_show(const char *title, const char *icon, const char *text,
- const char *button_text, const char *button2_text,
- void (*func)(char *text, void *data),
- void (*func2)(void *data), void *data);
+EAPI E_Entry_Dialog *e_entry_dialog_show(const char *title,
+ const char *icon,
+ const char *text,
+ const char *initial_text,
+ const char *button_text,
+ const char *button2_text,
+ void (*func) (char *text, void *data),
+ void (*func2) (void *data),
+ void *data);
#endif
#endif