Enlightenment CVS committal

Author  : codewarrior
Project : e17
Module  : proto

Dir     : e17/proto/etk/src/lib


Modified Files:
        etk_progress_bar.c etk_progress_bar.h etk_types.h 


Log Message:
- some stubs for vertical progress bars.

===================================================================
RCS file: /cvsroot/enlightenment/e17/proto/etk/src/lib/etk_progress_bar.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- etk_progress_bar.c  19 Jan 2006 14:22:39 -0000      1.2
+++ etk_progress_bar.c  19 Jan 2006 23:09:24 -0000      1.3
@@ -210,6 +210,27 @@
    return progress_bar->pulse_step;
 }
 
+#if 0
+/* TODO: we cant allow this until we have vertical labels */
+/**
+ * @brief Set the orientation of the progress bar.
+ * @param progress_bar a progess bar
+ * @param orientation the new orientation
+ */
+void etk_progress_bar_pulse_step_set(Etk_Progress_Bar *progress_bar, 
Etk_Progress_Bar_Orientation orientation)
+{
+   Etk_Widget *widget;
+   
+   if (!(widget = ETK_WIDGET(progress_bar)))
+     return;
+ 
+   if(progress_bar->orientation == orientation)
+     return;
+   
+   progress_bar->orientation = orientation;
+}
+#endif 
+
 /**************************
  *
  * Etk specific functions
@@ -224,6 +245,7 @@
 
    progress_bar->activity_dir = ETK_PROGRESS_BAR_ACTIVITY_DIR_LEFT;
    progress_bar->pulse_step = 0.1;
+   progress_bar->orientation = ETK_PROGRESS_BAR_LEFT_TO_RIGHT;
    
    progress_bar->label = etk_label_new(NULL);
    etk_widget_visibility_locked_set(progress_bar->label, ETK_TRUE);
===================================================================
RCS file: /cvsroot/enlightenment/e17/proto/etk/src/lib/etk_progress_bar.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- etk_progress_bar.h  19 Jan 2006 14:26:59 -0000      1.3
+++ etk_progress_bar.h  19 Jan 2006 23:09:24 -0000      1.4
@@ -18,6 +18,12 @@
 /** @brief Checks if the object is an Etk_Progress_Bar */
 #define ETK_IS_PROGRESS_BAR(obj)    (ETK_OBJECT_CHECK_TYPE((obj), 
ETK_PROGRESS_BAR_TYPE))
 
+enum _Etk_Progress_Bar_Orientation
+{
+   ETK_PROGRESS_BAR_LEFT_TO_RIGHT,
+   ETK_PROGRESS_BAR_BOTTOM_TO_TOP
+};   
+
 struct _Etk_Progress_Bar
 {
    /* private: */
@@ -28,6 +34,7 @@
    
    unsigned char activity_dir : 1;
    double pulse_step;
+   Etk_Progress_Bar_Orientation orientation;
 };
 
 Etk_Type *etk_progress_bar_type_get();
===================================================================
RCS file: /cvsroot/enlightenment/e17/proto/etk/src/lib/etk_types.h,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -3 -r1.21 -r1.22
--- etk_types.h 19 Jan 2006 13:56:10 -0000      1.21
+++ etk_types.h 19 Jan 2006 23:09:24 -0000      1.22
@@ -104,6 +104,7 @@
 typedef struct _Etk_Filechooser_Widget Etk_Filechooser_Widget;
 typedef struct _Etk_Notebook Etk_Notebook;
 typedef struct _Etk_Progress_Bar Etk_Progress_Bar;
+typedef enum _Etk_Progress_Bar_Orientation Etk_Progress_Bar_Orientation;
 
 /**
  * @enum Etk_Fill_Policy_Flags




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to