Commit Graph

240 Commits

Author SHA1 Message Date
Émilie Feral
38b8c6dbd7 [apps] Change curve view API
Change-Id: I77984536d1a8b4197b02e2f005590537a46d8084
2016-12-15 13:51:41 +01:00
Émilie Feral
7af3979d3b [poincare] Change Context API
Change-Id: I2818866fb41bf73c39396fbd85600e586a79065c
2016-12-15 13:51:41 +01:00
Émilie Feral
bbe1b06eae [apps][escher] Use only one draftTextBuffer by controller (as you cannot
edit all cells at the same time)

Change-Id: Ifbc6e8c7b7f2dd17539666ed3b1253f1c28ef873
2016-12-15 13:51:40 +01:00
Émilie Feral
8c284ba34f [escher][apps] CHange textField API
Change-Id: I766d153b7f7429473f297707a08358051123accc
2016-12-15 13:51:40 +01:00
Émilie Feral
ca4b5d511a [apps/graph/graph] Optimize the redrawing of the graph view when only
the cursor has changed

Change-Id: I34fbe3d4599474ae821f508078d5236362260dc0
2016-12-15 13:51:32 +01:00
Émilie Feral
810fdde40e [apps/graph/graph] Modify the law model method panToMakePointVisible to return a
boolean

Change-Id: Ib61a7c96d3716cc25e03b056c1ed3864db82f60d
2016-12-13 15:10:03 +01:00
Émilie Feral
579da2384e [apps/graph/graph] In graphWindow, use constexpr to compute grid units
Change-Id: I4cb42e1eb13d6d16ffb7d6e373c6bf12d8ecbdbe
2016-12-13 15:10:03 +01:00
Émilie Feral
50513126d7 [apps/graph/graph] Delete antialiasing on cursor
Change-Id: If2f69c07997f8c8f6298cb64743a767747e4e72a
2016-12-13 15:10:03 +01:00
Émilie Feral
140e943021 [apps/graph/graph] Merge two redundant methods in graph view
Change-Id: Icc154656143e81696abba18574c3806bcfdd4c7a
2016-12-13 15:10:03 +01:00
Émilie Feral
32d9f9516a [apps] Change name: scale->gridUnit
Change-Id: I1616bdf2c317fa2c8d35ff243ca5ae125ef9a799
2016-12-13 15:10:02 +01:00
Émilie Feral
e42f23f56a [apps/graph/graph] Reinit the cursor position if the window was changed
Change-Id: I840d73b8b3224c614773e09fed8de1ecc7a7a1c0
2016-12-13 15:09:58 +01:00
Émilie Feral
9b2e39f2cf [apps/graph/graph] Add methods to the graph window model
Change-Id: I3361b76c87a79d0f997e51ad62c7687b2ac313e5
2016-12-12 15:31:25 +01:00
Émilie Feral
7554046ecd [apps/graph/graph] Change name: AxisInterval-> GraphWindow
Change-Id: Ia67c7a3feaeb5a0db34099f65e6335fdbf91e1ef
2016-12-09 11:26:03 +01:00
Émilie Feral
9f18606926 [apps/graph/graph] Reinit the cursor position when zooming
Change-Id: I7e6710db8525b7905dfc95723ebd3b06bfe0296e
2016-12-08 15:21:52 +01:00
Émilie Feral
4bef23b7e2 [apps] Make the abstract curve view hold methods to draw labels
Change-Id: Ib1451b51c6d16db27487b5c9d34cd345fcf379f0
2016-12-08 15:21:52 +01:00
Émilie Feral
58185a6237 [apps/graph/graph] Draw labels directly in graph view instead of using
subviews

Change-Id: Ic500d480e898b95995d8dbfb88bebb4b7fb9b3c5
2016-12-08 15:21:52 +01:00
Émilie Feral
eeb17625d1 [apps] Create a curve view to draw curves from any expression
Change-Id: I6e1183a560042688c596e3aa2385ab3bf0dcda2c
2016-12-08 15:21:52 +01:00
Émilie Feral
cb4eb743fb [apps] clean
Change-Id: I0f1709c1559109628ffe0f21a0b29751cfca46aa
2016-12-08 15:21:52 +01:00
Émilie Feral
f95e49929b [apps] Move float parameter controller from apps/graph to apps/ to be
used in apps/robability

Change-Id: I00ab38bd35d2b3ad77d9aee3072422b9bd36fe01
2016-12-08 15:21:52 +01:00
Émilie Feral
306d36ca69 [apps/graph] Use editable text menu list cell in float parameter
controller to enable editing parameter "inline"

Change-Id: Ibfb8134242ebdcdc8e17027f31196b94a537bd1b
2016-12-08 15:21:52 +01:00
Émilie Feral
5ff87c1ba2 [apps/graph/values] Make editable value cell inherit from value cell
Change-Id: I7aa93c4a5b70d892966bf65ec53f942bafb7cc86
2016-12-08 15:21:52 +01:00
Émilie Feral
a45582bde7 [apps/graph/grpah] Prevent initiating the cursor when no function in
store

Change-Id: I6e2ef2faa1cda34f96ab425bfdf9327faee7f204
2016-12-08 15:21:52 +01:00
Émilie Feral
0e0bbddebc [apps/graph/values] Edit abscissa values directly in their cell
Change-Id: I9f15f828c38edb8e06c7ca7d1956c4c9fa479994
2016-12-08 15:21:52 +01:00
Émilie Feral
471cf95b5e [apps/graph/graph] Simplify the curve parameter controller constructor
Change-Id: I5ee00e2585c11f8648fa12de9d0940f22df09c98
2016-12-08 15:21:52 +01:00
Émilie Feral
89248a9072 [apps/graph/graph] Implement "aller a (abscisse)"
Change-Id: I167f38b61be530fecb8c276f61785a7d1c373c36
2016-12-08 15:21:52 +01:00
Émilie Feral
073f209165 [apps/graph/graph] Correct error: set the graph view as first responder
when deselecting header

Change-Id: I3b5543186209255d072e2ad3ce11c24d6a3c7ce7
2016-12-08 15:21:52 +01:00
Émilie Feral
8942c00a46 [apps/graph/graph] Move window when the cursor goes out of view
Change-Id: I098f1911fcefeb2f42886a33f078fa12b34fc273
2016-12-08 15:21:52 +01:00
Émilie Feral
df790ac071 [apps/graph/graph] display correctly cursor at the right position
Change-Id: I9244d06fd92f51b7fd3cc5d8093b41e0818d962d
2016-12-08 15:21:52 +01:00
Émilie Feral
48c953dd56 [apps/graph/graph] Display a curve parameter page when ckicking on a
curve in the graph view

Change-Id: I4ca2ee01bf29b850d72fdb9d4748f7c7ddc400d0
2016-12-08 15:21:52 +01:00
Émilie Feral
a18bde0745 [apps/graph/graph] Delete useless cast
Change-Id: I41c9dc5e0098395750c5abcbe95d58d4208ea133
2016-12-08 15:21:52 +01:00
Émilie Feral
4b84f63ef1 [apps/graph/graph] anti-aliasing on the cursor in graph view
Change-Id: I9943d0dc09b0b950910b988f348374b1fcfc3d85
2016-12-08 15:21:52 +01:00
Émilie Feral
70aa44390d [apps/graph/graph] Improve cursor drawing
Change-Id: I6f8e29d107bac410bd502bf54b5f9b955ff9c9d7
2016-12-08 15:21:52 +01:00
Émilie Feral
f7079bf876 [apps/graph/graph] Handle the cursor moves in the graph view
Change-Id: I5db563e4b88a6dd33dd6fc9ce5a4cf1337d43c31
2016-12-08 15:21:52 +01:00
Émilie Feral
56240d61bb [apps/graph/graph] initialize the graph view context when the graph controller is
the first responder

Change-Id: I12c7b2c28e750cd49ef59de59c659a349dd0a346
2016-12-08 15:21:52 +01:00
Émilie Feral
9c677a8483 [apps/graph/graph] Improve the position of the 0 label on both axes
Change-Id: I76a4eeec4b2f08b29fd434f1517eebcc92a395fd
2016-12-08 15:21:52 +01:00
Émilie Feral
6b6a60403e [apps/graph/graph] Add labels to axis in graph view
Change-Id: I306f5d06df48c73820b5512c8f069816e746b5da
2016-12-08 15:21:52 +01:00
Émilie Feral
a0c9b858c5 [apps/graph/graph] Draw grids in graph view according to xScale and
yScale

Change-Id: I2c47a4a68fb5ccfa5c7097a959b5a8e222d47193
2016-12-08 15:21:52 +01:00
Émilie Feral
27972eafb6 [apps/graph/graph] Display the initialisation parameter cpage when
clicking on the header button

Change-Id: I7a911677a0acf9d5f86236d0bcd2940e385574c7
2016-12-08 15:21:52 +01:00
Émilie Feral
d7b68c63ed [apps/graph/graph] Create a class initialisation parameter controller to
set the axis interval to predefined default values

Change-Id: Ia7802da9d617fa69e3494886bb3ba99431329f8a
2016-12-08 15:21:52 +01:00
Émilie Feral
807d841009 [apps/graph/graph] Display the interactive zoom controller when clicking
on the zoom button

Change-Id: Ia0e52d5f723a6c4aef4f2032cea81bc9289dcc2b
2016-12-08 15:21:52 +01:00
Émilie Feral
4317f08f51 [apps/graph/graph] Create a class zoom parameter controller
Change-Id: If0abd9b69e48a8246b1f3bca420c09b14b453cd9
2016-12-08 15:21:52 +01:00
Émilie Feral
6b34ab9f58 [apps/graph] Add scales to the axis interval model
Change-Id: I54185f995bac532c2a056284d07c5bc9f0ab6866
2016-12-08 15:21:52 +01:00
Émilie Feral
7e7b47d4dc [apps/graph/graph] Zoom by cliking on +/- on graph view
Change-Id: I38f0b710beffb334ffeeffd375c1fbaffb0ec87c
2016-12-08 15:21:52 +01:00
Émilie Feral
40f7181766 [apps/graph/graph] add a method reload to graph view
Change-Id: I483ad9617992a89a460e33701ce44148e21f3616
2016-12-08 15:21:52 +01:00
Émilie Feral
d14eb7f29f [apps/graph/graph] Delete useless method
Change-Id: Ic2dd592f4b61f732f99c0168c778f2f48298b4bb
2016-12-08 15:21:52 +01:00
Émilie Feral
81290a3b6d [apps/graph] clean
Change-Id: Ia752707c347630c8e1bf19049a9bf95f81e32377
2016-12-08 15:21:52 +01:00
Émilie Feral
b7a8b692eb [apps/graph/graph] Draw curves with antialiazing
Change-Id: Ica25684001e993d1c8946f12ccf40725eba7ceb2
2016-11-23 14:29:52 +01:00
Émilie Feral
5fbf4d5073 [apps/graph/graph] in axis interval, handle yauto if ymin == ymax
Change-Id: If474d24720c5770bf7a2c23910a809d5859da071
2016-11-23 14:29:52 +01:00
Émilie Feral
efbea599b9 [apps/graph/graph] Unenable overwriting Y axis if Y auto is selected
Change-Id: Ie382a2ed046b8b32d68e23014bd988fe260248bf
2016-11-23 14:29:51 +01:00
Émilie Feral
114a959fac [apps/graph/graph] Enable (un)ticking the y auto button in the window parameter
page

Change-Id: I35d3d4400c8db7cdad3a1618fe3c8788256ef808
2016-11-23 14:29:51 +01:00