CardView: organize cards in groups

Signed-off-by: Christophe Chapuis <chris.chapuis@gmail.com>
Use a singleton for the WindowModel test stub

Signed-off-by: Christophe Chapuis <chris.chapuis@gmail.com>
CardView: be more resiliant to a card destruction

Signed-off-by: Christophe Chapuis <chris.chapuis@gmail.com>
Reorganize CardView objects, and add a concept of active card within a group of cards

Signed-off-by: Christophe Chapuis <chris.chapuis@gmail.com>
CardView: focus last inserted window

Signed-off-by: Christophe Chapuis <chris.chapuis@gmail.com>
CardView: introduce possibility to go to drag mode with a longpress on a card.

Signed-off-by: Christophe Chapuis <chris.chapuis@gmail.com>
Move the corners card dressup to card wrapper so that it survives a drag

Signed-off-by: Christophe Chapuis <chris.chapuis@gmail.com>
CardView: make it possible to drop a card on top of an existing card stack

It is not yet possible to drop a card between two existing cards (inside a stack or between stacks)

Signed-off-by: Christophe Chapuis <chris.chapuis@gmail.com>
CardView: refine swipe-up treshold

Signed-off-by: Christophe Chapuis <chris.chapuis@gmail.com>
CardView: grey out the card being dragged

Signed-off-by: Christophe Chapuis <chris.chapuis@gmail.com>
Tests: moved dumpObject utility debug function to js utility file

Signed-off-by: Christophe Chapuis <chris.chapuis@gmail.com>
CardView: disable drag'n'drop functionality by default.

Signed-off-by: Christophe Chapuis <chris.chapuis@gmail.com>
SwipeArea: fixed a bug were an unwanted clic event is sent

Signed-off-by: Christophe Chapuis <chris.chapuis@gmail.com>
SlidingItemArea: do not anchor the SwipeArea's position to the swiped item, only use initial positionning to prevent interfering with swipe computation

Signed-off-by: Christophe Chapuis <chris.chapuis@gmail.com>
CardGroupModel: make it possible to create a new group at any wanted index

Signed-off-by: Christophe Chapuis <chris.chapuis@gmail.com>
Dragging: partial fix of the drag long-press event; however, the drag mode is only enabled when the mouse button is released, which is not intuitive.

Signed-off-by: Christophe Chapuis <chris.chapuis@gmail.com>
CardView: make it possible to drop a card between two groups, and create a new group in this case.

Signed-off-by: Christophe Chapuis <chris.chapuis@gmail.com>
Fix merge mistake

Signed-off-by: Christophe Chapuis <chris.chapuis@gmail.com>
CardView: don't rotate the card if maximized or fullscreen

Signed-off-by: Christophe Chapuis <chris.chapuis@gmail.com>
CardView: don't go in drag mode if there is only one card

Signed-off-by: Christophe Chapuis <chris.chapuis@gmail.com>