diff src/graphics.h.in @ 8052:961d4c52ffae

Convert stem and stem3 to use stem series objects * * * Use property inheritance and don't call drawnow in __stem__
author David Bateman <dbateman@free.fr>
date Mon, 25 Aug 2008 15:45:24 -0400
parents 0ff67bd96f8d
children ca39c21fa4b8
line wrap: on
line diff
--- a/src/graphics.h.in	Fri Aug 22 16:29:17 2008 -0400
+++ b/src/graphics.h.in	Mon Aug 25 15:45:24 2008 -0400
@@ -1793,7 +1793,20 @@
   handle_property uicontextmenu;
 
 protected:
-  std::map<caseless_str, property> all_props;
+  struct cmp_caseless_str 
+    {
+      bool operator () (const caseless_str &a, const caseless_str &b) const
+        {
+	  std::string a1 = a;
+	  std::transform (a1.begin (), a1.end (), a1.begin (), tolower);
+	  std::string b1 = b;
+	  std::transform (b1.begin (), b1.end (), b1.begin (), tolower);
+
+          return a1 < b1;
+        }
+    };
+
+  std::map<caseless_str, property, cmp_caseless_str> all_props;
 
 protected:
   void insert_static_property (const std::string& name, base_property& p)