aboutsummary'>refs'>log'>tree'>commit'>diffstats
diff options
context:
space:
mode:
authorPhilippe Caseiro <puppetmaster.e17@gmail.com>2006-02-02 21:42:20 +0100
committerPuppet_Master <puppetmaster.e17@gmail.com>2006-02-02 21:42:20 +0100
commit'>371bafecf071b8b93e6c8b2d3ccfdcb6dd829020 ( ('>patch)
tree0796229f54509d3af7eddad42fa2bba6676cd496
parentUpdate TODO list (diff)
downloadensorcel-371bafecf071b8b93e6c8b2d3ccfdcb6dd829020.tar.gz
Updates for Source Mage tools ;)
-rw-r--r--src/Makefile.am4
-rw-r--r--src/ensorcel.c5
-rw-r--r--src/ensorcel.h1
-rw-r--r--src/ensorcel_sourcemage_tools.c65
4 files changed, 74 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 70450e3..ecbef07 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -2,8 +2,10 @@
AM_CFLAGS = \
-g -W -Wall \
+ @ecore_cflags@ \
@etk_cflags@
+
ENSORCELHEADERS = \
ensorcel_config.h \
ensorcel.h
@@ -24,9 +26,11 @@ ensorcel_SOURCES = \
ensorcel_launch.c \
ensorcel_sorcery_actions.c \
ensorcel_error.c \
+ ensorcel_sourcemage_tools.c
$(ENSORCELHEADERS)
ensorcel_LDADD = \
+ @ecore_libs@ \
@etk_libs@
bintest_SOURCES = \
diff --git a/src/ensorcel.c b/src/ensorcel.c
index 57affba..b6dff35 100644
--- a/src/ensorcel.c
+++ b/src/ensorcel.c
@@ -1,6 +1,6 @@
#include "ensorcel.h"
-static void _ensorcel_main_quit_cb ();
+static void _ensorcel_main_quit_cb ();
static Ensorcel_Button_Set tests[] = {
{
@@ -21,6 +21,9 @@ static Ensorcel_Button_Set tests[] = {
{
"Install Root",
ensorcel_install_window_create},
+ {
+ "Tools Box",
+ ensorcel_sorcery_tools_window_create },
};
static int num_tests = sizeof (tests) / sizeof (tests[0]);
diff --git a/src/ensorcel.h b/src/ensorcel.h
index 6df69ae..ef744cc 100644
--- a/src/ensorcel.h
+++ b/src/ensorcel.h
@@ -97,6 +97,7 @@ void ensorcel_install_window_create (void *data);
void ensorcel_progress_window_create (void *data);
void ensorcel_spell_window_create (void *data);
void ensorcel_error_popup (void *data);
+void ensorcel_sorcery_tools_window_create (void *data);
Ensorcel_Tree_Skel *ensorcel_tree_initialise (int tree_w, int tree_h, const char *name_col1,
const char *name_col2, const char *name_col3,
diff --git a/src/ensorcel_sourcemage_tools.c b/src/ensorcel_sourcemage_tools.c
new file mode 100644
index 0000000..1f915ef
--- /dev/null
+++ b/src/ensorcel_sourcemage_tools.c
@@ -0,0 +1,65 @@
+#include "ensorcel.h"
+
+static Etk_Bool _ensorcel_sorcery_tools_window_deleted_cb (void *data)
+{
+ Etk_Window *win = data;
+
+ etk_widget_hide (ETK_WIDGET (win));
+ return 1;
+}
+
+void ensorcel_sorcery_tools_window_create (void *data _UNUSED_)
+{
+ static Etk_Widget *win = NULL;
+ Etk_Widget *lb_info;
+ Etk_Widget *vbox;
+ Etk_Widget *hbox;
+ Etk_Widget *bt_ok;
+ Etk_Widget *fm_main;
+ Etk_Widget *note_book;
+
+ /*Etk_Widget *image; */
+
+
+ win = etk_window_new ();
+ etk_window_title_set (ETK_WINDOW (win), "Ensorcel About");
+ etk_signal_connect ("delete_event", ETK_OBJECT (win),
+ ETK_CALLBACK (_ensorcel_sorcery_tools_window_deleted_cb), win);
+
+ vbox = etk_vbox_new (FALSE, 0);
+ hbox = etk_hbox_new (FALSE, 0);
+ fm_main = etk_frame_new (_("About"));
+
+ lb_info = etk_label_new
+ ("<center>This Application is an frontend<br></center>"
+ "<center>for <h3>SourceMage</h3>'s <h2>Sorcery</h2><br></center>"
+ "<br><center>Writen by Philippe \"Puppet_Master\" Caseiro </center><br>"
+ "<center>With the help (for heavy debugging) of :</center><br>"
+ "<br><center> Bertrand \"GuYgUy\" Jacquin (Beber) </center><br>"
+ "<center> and </center><br>"
+ "<center> Vincent \"Caro\" Torri </center><br>"
+ "<center>Ensorcel is under <hilight>HEAVY DEVELOPMENT</hilight> and it</center><br>"
+ "<center>is not stable. Many features are incomplete or even non-existant</center><br>"
+ "<center>yet and may have many bugs.You have been <hilight>WARNED!</hilight></center>"
+ "<br>" "<center><h2>License</h2></center><br><center><h2>GPLv2</h2></center><br>");
+
+ note_book = etk_notebook_new ();
+ etk_widget_size_request_set (ETK_WIDGET (note_book), 500, 600);
+ etk_notebook_page_append (ETK_NOTEBOOK (note_book), "Gaze", lb_info);
+ etk_notebook_page_append (ETK_NOTEBOOK (note_book), "NetConf", lb_info);
+ etk_notebook_page_append (ETK_NOTEBOOK (note_book), "Ohter", lb_info);
+
+ bt_ok = ensorcel_button_create ("I'm Warned", "clicked", IMGOKENSORCEL,
+ ETK_CALLBACK (_ensorcel_sorcery_tools_window_deleted_cb), win);
+
+ etk_box_pack_start (ETK_BOX (vbox), note_book, FALSE, FALSE, 0);
+ /* etk_box_pack_start(ETK_BOX(vbox), etk_image_edje_file_get("images/sorcery_tools.edj"), FALSE, FALSE, 0); */
+ etk_box_pack_end (ETK_BOX (vbox), hbox, FALSE, FALSE, 0);
+ etk_box_pack_end (ETK_BOX (hbox), bt_ok, FALSE, FALSE, 0);
+
+ etk_container_add (ETK_CONTAINER (fm_main), vbox);
+ etk_container_add (ETK_CONTAINER (win), fm_main);
+
+ etk_widget_show_all (win);
+
+}