Mercurial > hg > octave-lyh
comparison 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 |
comparison
equal
deleted
inserted
replaced
8051:36a485f7f335 | 8052:961d4c52ffae |
---|---|
1791 graphics_handle __myhandle__; | 1791 graphics_handle __myhandle__; |
1792 // FIXME: should this really be here? | 1792 // FIXME: should this really be here? |
1793 handle_property uicontextmenu; | 1793 handle_property uicontextmenu; |
1794 | 1794 |
1795 protected: | 1795 protected: |
1796 std::map<caseless_str, property> all_props; | 1796 struct cmp_caseless_str |
1797 { | |
1798 bool operator () (const caseless_str &a, const caseless_str &b) const | |
1799 { | |
1800 std::string a1 = a; | |
1801 std::transform (a1.begin (), a1.end (), a1.begin (), tolower); | |
1802 std::string b1 = b; | |
1803 std::transform (b1.begin (), b1.end (), b1.begin (), tolower); | |
1804 | |
1805 return a1 < b1; | |
1806 } | |
1807 }; | |
1808 | |
1809 std::map<caseless_str, property, cmp_caseless_str> all_props; | |
1797 | 1810 |
1798 protected: | 1811 protected: |
1799 void insert_static_property (const std::string& name, base_property& p) | 1812 void insert_static_property (const std::string& name, base_property& p) |
1800 { insert_property (name, property (&p, true)); } | 1813 { insert_property (name, property (&p, true)); } |
1801 | 1814 |