Mercurial > xlib_App
changeset 7:713e3c5db1e1
just comments
author | Eris Caffee <discordia@eldalin.com> |
---|---|
date | Wed, 18 Apr 2012 00:53:10 -0500 |
parents | 1b73e60d53b4 |
children | c5c33bf5f1fb |
files | include/App.h src/App.cpp |
diffstat | 2 files changed, 17 insertions(+), 0 deletions(-) [+] |
line diff
1.1 --- a/include/App.h Tue Apr 17 01:56:49 2012 -0500 1.2 +++ b/include/App.h Wed Apr 18 00:53:10 2012 -0500 1.3 @@ -32,6 +32,16 @@ 1.4 1.5 ///////////////////////////////////// 1.6 // TODO: Need to be able to support child windows. 1.7 + // Thus, I need a tree and this class should be a node of the tree. 1.8 + // I could use an STL multimap container that maps child nodes onto parent nodes 1.9 + // The root node would need to be a bit special. Perhaps it would map to itself. 1.10 + // Use the equal_range() method to get the children of the specified node. 1.11 + // I would still need to implement my own tree walking methods: get root node, 1.12 + // for each child (get children and recurse). 1.13 + // 1.14 + // It may be more efficient to implement the tree directly instead of using 1.15 + // std::map as an intermediary. 1.16 + 1.17 class WindowData 1.18 { 1.19 public:
2.1 --- a/src/App.cpp Tue Apr 17 01:56:49 2012 -0500 2.2 +++ b/src/App.cpp Wed Apr 18 00:53:10 2012 -0500 2.3 @@ -213,6 +213,13 @@ 2.4 break; 2.5 case ButtonPress: 2.6 case KeyPress: 2.7 + // Doing the lookup like this, using XLookupString, means I get the modified 2.8 + // character back. Thus type shift+a gives me XK_A instead of XK_a 2.9 + // If I used XKeySym I'd instead get a sequence such as this: 2.10 + // XK_Shift_L followed by XK_a 2.11 + // 2.12 + // In the end, that might be a more useful way to go, but for now I'll keep 2.13 + // things simple. 2.14 XLookupString(&(e.xkey), key_buffer, 7, &k, &compose_status); 2.15 switch (k) 2.16 {