lp://qastaging/~bijanbina/ginn/GIR
New Version of GINN that port it to c++ and also make it more object oriented
the best feuture of GIR is can classify gesture to work on touchscreen or touchpad for more
information read "Define Gesture Run On Which Device" on here (just use ctrl + f to find)
our change is:
1. port GINN to c++
2. use string instead of char *
3. fix all error with c++ compiler
4. create Gwish class instead of wish struct
5. add Gwish Type (geusture Type) instead of config_attr[0] to make code more readable and replace it in all part of code
6. add Gwish TouchNum (Number of finger for gesture) instead of config_attr[1] to make code more readable and replace it to all part of code
5. create GINN object and create a dynamic callback for GINN object
6. use "new" instead of memloc
7. remove all global variable and embed all of them in class
8. create qt project file for ginn
9. use cout and cerr instead of fprintf
10. abstract the main file and create the code more functionally
11. test all new changes and check are they stable or not
12. create constractor for apps and make Gapps object instead it
13. create callback for device add , remove and change with object oriented concept
14. create GD_att struct to save and access device attributes
15. create device list vector
16. find device attribute with just having device ID!(perfectly useful)
17. make code more readable
18. add comment to code and use simple name for variable
19. add some option to wish.xml to define some gesture for only touchscreen
20. add some option to wish.xml to define some gesture for only touchpad
21. compatible fully with last GINN branch
-------
#######
1. open wish.xml
2. find what gesture you want to classify for example you select some thing like this:
<wish gesture="Drag" fingers="2">
<action name="action5" when="update">
<trigger prop="delta y" min="20" max="80"/>
</action>
</wish>
3. change <wish gesture="Drag" fingers="2"> to
<wish gesture="Drag" fingers="2" screen="true">
4. if you want to your gesture run only on touchpad change screen prop to false else now your
gesture only run on touch screen
-------
- Get this branch:
- bzr branch lp://qastaging/~bijanbina/ginn/GIR
Branch merges
- Chase Douglas (community): Disapprove
- Stephen M. Webb (community): Needs Fixing
-
Diff: 2447 lines (+1339/-977)18 files modified.directory (+6/-0)
configure.ac (+1/-0)
src/Makefile.am (+3/-2)
src/README (+5/-0)
src/bamf.c (+0/-48)
src/bamf.cpp (+48/-0)
src/config.c (+0/-200)
src/config.cpp (+202/-0)
src/config.h (+70/-27)
src/ginn.c (+0/-592)
src/ginn.cpp (+555/-0)
src/ginn.h (+60/-0)
src/gir.cpp (+47/-0)
src/gir.h (+70/-0)
src/header.h (+38/-0)
src/main.cpp (+137/-0)
src/xt.c (+0/-108)
src/xt.cpp (+97/-0)
Related bugs
Bug #740213: Ginn should subscribe only to gestures requested | Low | Triaged |
|
Bug #746756: Ginn should detect conflicting wishes | Undecided | Triaged |
|
Related blueprints
Branch information
Recent revisions
- 88. By Chase Douglas
-
Fix segfault if bamf returns empty name
Patch is from Martin Luder. Thanks Martin!
- 86. By Mohamed IKBEL Boulabiar
-
Fix styling issues in the man file,
Add an examples of using the accumulator and the firing time features. - 85. By Mohamed IKBEL Boulabiar
-
Added Stephen merge for .desktop file to allow ginn to run
once the session starts
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp://qastaging/ginn