Commit Graph

231 Commits

Author SHA1 Message Date
É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
Émilie Feral
5c846229cd [apps/graph/graph] Use the axis interval model to parametrize the graph view
Change-Id: I7d4516725fa29988322720e46de70f04aa910094
2016-11-23 14:29:51 +01:00
Émilie Feral
885b00f7c3 [apps/graph/values] Change name for consistency: values parameter
controller -> interval parameter controller

Change-Id: Ibdb7248392d7f4fcc6eaf271952e901a333b0d5e
2016-11-23 14:29:51 +01:00
Émilie Feral
d0cf1e883d [apps/graph/graph] Add a button to edit the window from graph
Change-Id: I0e3387ebb6c3c59c1e548892959ac85b2884a63f
2016-11-23 14:29:51 +01:00
Émilie Feral
54e37d854e [apps/graph] Add a stack view controller to the graph to be able to push
parameter pages

Change-Id: Ib7cf2119ec4d45b021d099a9d62cf03a026cd880
2016-11-23 14:29:51 +01:00
Émilie Feral
cf55aa0d05 [apps/graph/graph] create a class axis parameter controller
Change-Id: Ic1b7f0da0ea22fa403938d0d7364ab05582d2b64
2016-11-23 14:29:34 +01:00
Émilie Feral
ce09b44942 [apps/graph/graph] create a class for the model axis interval
Change-Id: I7da8441c282ba44e67855ea494c79ebb8c762a2f
2016-11-23 12:17:33 +01:00
Émilie Feral
42fe0435c2 [apps/graph] Create a class float parameter controller to be used by
the interval parameter controller and the future window parameter controller

Change-Id: Ibe061ff1792efc4a1795ee40ea5cd4b9f63e7086
2016-11-23 12:17:33 +01:00
Émilie Feral
beaedc8888 [apps/graph] Redefinition of active function
Change-Id: I23e83a1107daf85bdf99c7b100d8bca6d724c919
2016-11-23 12:17:31 +01:00
Émilie Feral
cf74920f33 [apps/graph/graph] Display a warning in graph tab when no function is
selected

Change-Id: I57d337473c1a404b65213221195745036c82ef24
2016-11-23 12:16:53 +01:00