Commit Graph

448 Commits

Author SHA1 Message Date
Romain Goyet
eb3273d785 Escher: Use a scrollview
Change-Id: I24c754a7ea860b79d1d660adfbf143ed0e42c8a5
2016-05-31 11:12:02 +02:00
Romain Goyet
4ed72f60df Escher: Add the App and Responder classes
Change-Id: Ia11d13132b3bd5aa085787556b8e198089bcb0fa
2016-05-30 14:05:23 +02:00
Romain Goyet
97be08027f Escher: Add more attributes when logging views
Change-Id: Ic8632e7fbfcaba143f7ff0ea4965f6a34948f041
2016-05-27 12:17:51 +02:00
Romain Goyet
8f30223aab Escher: Add ESCHER_VIEW_LOGGING
Change-Id: Id0b588069839f9b1d2330eae55a7fd345740cf1b
2016-05-27 12:08:00 +02:00
Romain Goyet
5f2f39d0d9 Escher: const-correctness for View
Change-Id: I78efaeff9911413716e669b92affa7ae4f388776
2016-05-26 18:34:18 +02:00
Romain Goyet
095901a7ca Escher: TabViewController is working!
Change-Id: I4aa730abbf1d7034d2fcbc40416dcb84076a347b
2016-05-26 12:44:41 +02:00
Romain Goyet
b79b7b5133 Escher: Adding Window, ViewController and TabViewController
Change-Id: I6a13fe95e846cfcc43f783e8b4d88ea4ad9ee585
2016-05-26 12:42:23 +02:00
Romain Goyet
da93ac6dfb View don't explicitely store their subviews
Change-Id: I54c1d60982d51d6fb35517fabde4d7b6056f4ea3
2016-05-26 12:30:50 +02:00
Romain Goyet
0b6382620d Merge "Poincare: Remove a warning" 2016-04-25 18:12:39 +02:00
Romain Goyet
9247ad43ef Merge "Kandinsky: Fix the default drawing area" 2016-04-25 18:12:34 +02:00
Romain Goyet
61010b74ed Merge "libaxx: remove a warning" 2016-04-25 18:12:24 +02:00
Félix Raimundo
99ed9458dc Merge "Add guardians to expression_debug." 2016-04-25 17:48:35 +02:00
Félix Raimundo
3b85ec28d0 Merge "Fix comments in rules." 2016-04-25 17:48:30 +02:00
Romain Goyet
4f3a062bb8 libaxx: remove a warning
Change-Id: I0d59ee19258e63d92adc870bb068f733adf39376
2016-04-25 16:53:34 +02:00
Romain Goyet
0bdaed49c1 Poincare: Remove a warning
Change-Id: I222c2209530b61e56eac2868fcfb0fbf036ec782
2016-04-25 15:02:24 +02:00
Felix Raimundo
10f69db5bb Add guardians to expression_debug.
Change-Id: Ib26af781c2bd18b394bf5ebc46085a03523140ef
2016-04-25 14:09:21 +02:00
Felix Raimundo
ff275170cb Fix comments in rules.
Change-Id: I86c9699a52ee287b8f488dcc4531f624fd8771e0
2016-04-25 14:09:09 +02:00
Romain Goyet
3c3c890179 Kandinsky: Fix the default drawing area
Change-Id: I194d8cc3055810b6dd8fd59d7ccd402eb1a97cab
2016-04-25 14:05:51 +02:00
Romain Goyet
979a728417 Merge "Kandinsky: Introduce KDSetDrawingArea" 2016-04-25 14:05:09 +02:00
Romain Goyet
40bd023132 Merge "Escher: Redrawing should be done with redraw." 2016-04-25 14:04:22 +02:00
Romain Goyet
74c3f74003 Kandinsky: Introduce KDSetDrawingArea
This restricts the drawing area and sets the drawing origin

Change-Id: I7911338ade6665a8be3b180912339da2430b0672
2016-04-25 14:04:14 +02:00
Romain Goyet
e1dca80947 Escher: Redrawing should be done with redraw.
Change-Id: I7aee77886f1b7362b06e7aca3abab9c93803eed0
2016-04-25 14:02:24 +02:00
Romain Goyet
61854d118e Kandinsky: Add KDRectIntersect and update KDRectIntersection
One gives a boolean, the other the actual KDRect

Change-Id: I5a2e6d1110f0ad111ac2f3a46dcd072e72ea786d
2016-04-25 14:01:51 +02:00
Romain Goyet
0332aba48f Merge "Escher: Add a simple TextView" 2016-04-25 14:01:35 +02:00
Romain Goyet
8464a417e7 Escher: Add a simple TextView
Change-Id: I61aae49414b722ee71e02ed29d8ca26d14472dad
2016-04-25 13:59:45 +02:00
Romain Goyet
f35a93198d Escher: Improve the View logic and add some comments
Change-Id: I9d6f0b1b8652ef10ea4395dccb45785f3e1a0737
2016-04-25 13:59:13 +02:00
Romain Goyet
ff0a91286c Merge "Kandinsky: Add KDRect intersection" 2016-04-25 13:57:05 +02:00
Romain Goyet
cf17758081 Kandinsky: Add KDRect intersection
Change-Id: I61e28dcf742fad65c88d470305e5a6e33c8cad6b
2016-04-25 12:06:41 +02:00
Felix Raimundo
9ea68bb66b Remove useless line jumps from the generated rules.
Change-Id: Ib60fd280afc972c7948a8aa47b4a6bcc9128cb40
2016-04-22 16:52:45 +02:00
Felix Raimundo
0732de0cd4 Remove former simplification rules system.
Change-Id: Ib8e673ceacc6b2ac4fb1bb2fcdaed7312753666a
2016-04-22 16:52:45 +02:00
Felix Raimundo
b7b43edea3 Add the possibility to detect Addition(a,a) in the rules.
Change-Id: I57ea5af186304ce8872001793a3c46e7828948e2
2016-04-22 16:52:45 +02:00
Felix Raimundo
ad33e7ffa4 Make the tests more verbose if needed.
Change-Id: I37f2456f5c31ea4e1057b58774bc70f7728508a6
2016-04-22 16:52:45 +02:00
Felix Raimundo
0062990a8f Allow negative integers in the rules.
Change-Id: I0cd3fd8cdaad2769ac32d14d896481deeb500243
2016-04-22 16:52:45 +02:00
Felix Raimundo
eee52bd7c0 Print symbol names in the debug.
Also change the prototype to take a const Expression *, I forgot to change the
code there in the const commit.

Change-Id: Iea7b9d9a450533bbae8d9003482ee7bd5f442cd2
2016-04-22 16:52:45 +02:00
Felix Raimundo
4a340aadb6 Add the name getter for symbols
Change-Id: I270ff8202f106a70a8bb0c980955a1b7d431c455
2016-04-22 16:52:45 +02:00
Felix Raimundo
6f5cc68b75 Fix Integer approximation for 0.
Change-Id: Ib4bab6f4f776342bf6311d1e6f8b6d245d9a048a
2016-04-22 16:52:44 +02:00
Felix Raimundo
77f057de82 Add the const qualifier to Expression methods
Change-Id: Ic05828a91c89cb391e6d7c1d4a5220fad4aea5e7
2016-04-18 18:48:56 +02:00
Felix Raimundo
f044bb4691 Remove dead code in context.h
Change-Id: I2392c1025e212282ad4801a65b71b62a5c793948
2016-04-18 18:48:56 +02:00
Felix Raimundo
2818b7f907 Remove annoying fltk warning...
Change-Id: If1294a0f9c7c414c9ae162e0239a40ea51bbaafc
2016-04-18 18:48:56 +02:00
Felix Raimundo
563fcf3b73 Makes the parser and lexer non reentrant.
Change-Id: I8ad5d0a67058daaaec710546271e432c374ed646
2016-04-18 18:48:56 +02:00
Felix Raimundo
1967792e02 Replace a define in implementation to an attribute for context.
Change-Id: I70b246c37c214d22079efd92c8b88f21206b87c9
2016-04-18 18:48:56 +02:00
Felix Raimundo
a34b206ed6 Reduce the size of the flex buffer.
Change-Id: If7822053a23949ce4cf0d35b7d1b3f5aec7585eb
2016-04-18 18:48:56 +02:00
Felix Raimundo
82e3d014c5 Allow comments in the rules file.
Change-Id: Ia67b93cd7c184a3709736717c1d4d32e015dfac4
2016-04-18 18:48:56 +02:00
Felix Raimundo
581dc7c82f Remove useless clone and memory leak.
Change-Id: I413cf23249db7a120fa198fdf538a64caa22497e
2016-04-18 18:48:56 +02:00
Felix Raimundo
c9e90299af Distributivity for addition rules.
Change-Id: I86eb9133e2a83e7bdefea9facaa84e475f480426
2016-04-18 18:48:56 +02:00
Felix Raimundo
07fdfacd5b Adds the equivalentTo test utility.
Change-Id: I1999a2e7434cc5919e628b906a13ec0edea04b8d
2016-04-18 18:48:56 +02:00
Felix Raimundo
b13fb99653 Add the equivalentTo to expression.
Change-Id: I773542d7434bb357976774f3cb746d41fdf74911
2016-04-18 18:48:56 +02:00
Felix Raimundo
47f361a667 Make the addition public.
Change-Id: I9b277f0a959f36453215de7dbb98b8f8dad69544
2016-04-18 18:48:56 +02:00
Félix Raimundo
e8149909ca Merge changes I090f8bd1,I5e91414e,I21150a58,I43c333d9,I8b55a228, ...
* changes:
  Fix the recursiveness of simplification.
  Add multiplication rules.
  Fix bad assert.
  make isIdenticalTo aware of commutativity.
  Add is_identical_to util in tests.
  Add assert in operand() for comuttaive operator.
  Fix bad assert in binary operation.
  Fix size allocation in expression selector.
  Add a test for the recursive simplification.
  Refactor the simplification tests.
2016-04-18 18:27:18 +02:00
Félix Raimundo
9d3a88e3ad Merge "Make the simplification recursive" 2016-04-18 18:26:01 +02:00