Enlightenment CVS committal

Author  : balony
Project : e17
Module  : proto

Dir     : e17/proto/exhibit/src/bin


Modified Files:
        exhibit.h exhibit_options.c 


Log Message:


- Gui part of "Open in ..." options.

===================================================================
RCS file: /cvs/e/e17/proto/exhibit/src/bin/exhibit.h,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -3 -r1.27 -r1.28
--- exhibit.h   11 Aug 2006 02:30:57 -0000      1.27
+++ exhibit.h   11 Aug 2006 17:06:03 -0000      1.28
@@ -111,6 +111,15 @@
    Etk_Combobox_Item *sort_size;
    Etk_Combobox_Item *sort_name;
    Etk_Combobox_Item *sort_resolution;
+
+   Etk_Widget *app1;
+   Etk_Widget *app2;
+   Etk_Widget *app3;
+   Etk_Widget *app4;
+   Etk_Widget *app1_cmd;
+   Etk_Widget *app2_cmd;
+   Etk_Widget *app3_cmd;
+   Etk_Widget *app4_cmd;
 };
 
 struct _Ex_Tab
===================================================================
RCS file: /cvs/e/e17/proto/exhibit/src/bin/exhibit_options.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- exhibit_options.c   11 Aug 2006 02:30:57 -0000      1.9
+++ exhibit_options.c   11 Aug 2006 17:06:03 -0000      1.10
@@ -651,7 +651,7 @@
    
    etk_signal_connect("active_item_changed", ETK_OBJECT(dialog->default_sort), 
         ETK_CALLBACK(_ex_options_combobox_active_item_changed_cb), NULL);
-
+   
    if (e->options->default_sort == EX_SORT_BY_DATE)
       etk_combobox_active_item_set(ETK_COMBOBOX(dialog->default_sort), 
dialog->sort_date);
    else if (e->options->default_sort == EX_SORT_BY_SIZE)
@@ -668,10 +668,72 @@
 static Etk_Widget *
 _ex_options_page_4_create()
 {
-   Etk_Widget *vbox;
+   Etk_Widget *vbox, *vbox2;
+   Etk_Widget *frame, *table;
+   Etk_Widget *label;
+   Ex_Options_Dialog *dialog = e->opt_dialog;
 
    vbox = etk_vbox_new(ETK_FALSE, 3);
-
+   
+   frame = etk_frame_new("Open in ...");
+   etk_box_pack_start(ETK_BOX(vbox), frame, ETK_FALSE, ETK_FALSE, 5);
+   vbox2 = etk_vbox_new(ETK_FALSE, 0);
+   etk_container_add(ETK_CONTAINER(frame), vbox2);
+   
+   label = etk_label_new("Hint: application command has %s as file 
argument."); 
+   etk_box_pack_start(ETK_BOX(vbox2), label, ETK_FALSE, ETK_FALSE, 5);
+   etk_box_pack_start(ETK_BOX(vbox2), etk_hseparator_new(), ETK_FALSE, 
ETK_FALSE, 5);
+
+   table = etk_table_new(3, 5, ETK_FALSE);
+   etk_box_pack_start(ETK_BOX(vbox2), table, ETK_FALSE, ETK_FALSE, 0);
+   
+   label = etk_label_new("Menu display"); 
+   etk_table_attach(ETK_TABLE(table), label, 1, 1, 0, 0, 0, 0, 
+        ETK_FILL_POLICY_NONE);
+   label = etk_label_new("Command"); 
+   etk_table_attach(ETK_TABLE(table), label, 2, 2, 0, 0, 0, 0, 
+        ETK_FILL_POLICY_NONE);
+
+   label = etk_label_new("Application 1"); 
+   etk_table_attach(ETK_TABLE(table), label, 0, 0, 1, 1, 5, 0, 
+        ETK_FILL_POLICY_NONE);
+   dialog->app1 = etk_entry_new();
+   etk_table_attach(ETK_TABLE(table), dialog->app1, 1, 1, 1, 1, 0, 0, 
+        ETK_FILL_POLICY_NONE);
+   dialog->app1_cmd = etk_entry_new();
+   etk_table_attach(ETK_TABLE(table), dialog->app1_cmd, 2, 2, 1, 1, 0, 0, 
+        ETK_FILL_POLICY_NONE);
+   
+   label = etk_label_new("Application 2"); 
+   etk_table_attach(ETK_TABLE(table), label, 0, 0, 2, 2, 0, 0, 
+        ETK_FILL_POLICY_NONE);
+   dialog->app2 = etk_entry_new();
+   etk_table_attach(ETK_TABLE(table), dialog->app2, 1, 1, 2, 2, 0, 0, 
+        ETK_FILL_POLICY_NONE);
+   dialog->app2_cmd = etk_entry_new();
+   etk_table_attach(ETK_TABLE(table), dialog->app2_cmd, 2, 2, 2, 2, 0, 0, 
+        ETK_FILL_POLICY_NONE);
+   
+   label = etk_label_new("Application 3"); 
+   etk_table_attach(ETK_TABLE(table), label, 0, 0, 3, 3, 0, 0, 
+        ETK_FILL_POLICY_NONE);
+   dialog->app3 = etk_entry_new();
+   etk_table_attach(ETK_TABLE(table), dialog->app3, 1, 1, 3, 3, 0, 0, 
+        ETK_FILL_POLICY_NONE);
+   dialog->app3_cmd = etk_entry_new();
+   etk_table_attach(ETK_TABLE(table), dialog->app3_cmd, 2, 2, 3, 3, 0, 0, 
+        ETK_FILL_POLICY_NONE);
+
+   label = etk_label_new("Application 4"); 
+   etk_table_attach(ETK_TABLE(table), label, 0, 0, 4, 4, 0, 0, 
+        ETK_FILL_POLICY_NONE);
+   dialog->app4 = etk_entry_new();
+   etk_table_attach(ETK_TABLE(table), dialog->app4, 1, 1, 4, 4, 0, 0, 
+        ETK_FILL_POLICY_NONE);
+   dialog->app4_cmd = etk_entry_new();
+   etk_table_attach(ETK_TABLE(table), dialog->app4_cmd, 2, 2, 4, 4, 0, 0, 
+        ETK_FILL_POLICY_NONE);
+   
    return vbox;
 }
 



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to