Commit Graph

43 Commits

Author SHA1 Message Date
Andy Williams 2c3c4f504d elm_code: Tidy up some unused code and fix up some focus management 2015-02-10 23:02:45 +00:00
Andy Williams c22f0d2a0a elm_code: Update style and alignment of gutter 2015-01-29 14:05:20 +00:00
Andy Williams ff72fa0651 elm_code: And complete the line number render first case.
Next some styling would indeed be nice...
2015-01-29 00:50:07 +00:00
Andy Williams 4486e7244b elm_code: initial work on line numbers 2015-01-29 00:36:28 +00:00
Andy Williams cc495a2131 elm_code: Fix click calculations.
We must take into account our scroll position and also where we are positioned
within the screen layout
2015-01-28 22:38:49 +00:00
Andy Williams 545ecc5182 Add proper gravity control when lines are being added to the widget.
Most useful will be (0.0, 1.0) which will cause the display to act like 'tail'.
2015-01-28 14:16:46 +00:00
Andy Williams e7be4523b4 Merge branch 'master' into elm_code
Conflicts:
	elm_code/lib/elm_code_widget.c
2015-01-28 00:43:57 +00:00
Andy Williams 876faa4eb5 elm_code: update scroller so content fills space.
We want to extend backgrounds under scrollbars but only scroll if it's too big.
2015-01-28 00:39:56 +00:00
Andy Williams 4b0350c205 elm_code: When appending lines ignore widget size now we're scrolling 2015-01-28 00:20:58 +00:00
Andy Williams fc43214208 elm_code: Update resizing to reflect only the space that's required 2015-01-27 22:13:59 +00:00
Andy Williams ad0d199f36 Allow up/down/left/right to participate in focus control.
When we cannot move within the cursor availability then note it
the callback from elm will see if the event should be propagated so we
report the veto when we're contained or allow propagation when we overrun
2015-01-27 17:02:45 +00:00
Stephen Houston 78790f8fd3 Elm_Code: Keep up with min size so scroller works properly. 2015-01-27 10:43:32 -06:00
Andy Williams c91fb02a5a Bind up/down/left/right to cursor control.
Add a veto callback that blocks the up/down hitting the focus manager. This needs to be improved so once we hit the top / bottom it will pass on
2015-01-26 19:46:30 +00:00
Andy Williams d9663a6b3d Merge in key_down fixes from branch 'devs/ajwillia-ms/elm_code' 2015-01-26 19:06:27 +00:00
Andy Williams bc69b360bc Refactor eo widget2 to widget - update in edi too 2015-01-26 19:05:34 +00:00
Andy Williams ebcbde4882 Port everything to use new widget API. Remove old widget API 2015-01-26 14:00:37 +00:00
Andy Williams 0c4ce5afd7 Merge in master 2015-01-17 22:08:16 +00:00
Andy Williams a7cf4ffdbf Add a click handler for lines in a widget 2015-01-17 19:57:15 +00:00
Andy Williams 8a9c645353 Tidying some more headers to try and get windows builds working 2015-01-10 17:55:04 +00:00
Andy Williams d7a9c351f4 Allow up/down/left/right to participate in focus control.
When we cannot move within the cursor availability then note it
the callback from elm will see if the event should be propagated so we
report the veto when we're contained or allow propagation when we overrun
2015-01-27 14:34:11 +00:00
Andy Williams d11e94f0fe Elm_Code now compiling on Windows, thanks to Vincent Torri for the patch.
Next to tackle some non-standard EDI code to complete the compilation
2015-01-04 12:00:40 +00:00
Andy Williams 74a1333620 Update various headers to use Elm_Code to load all our public headers and fix a few build glitches 2014-12-24 18:16:38 +00:00
Andy Williams ad3d545415 Fix up headers and tests to remove the exposure of some private methods.
Add some documentation whilst we're there too
2014-12-05 09:39:40 -06:00
Andy Williams 13064e06c6 Add a cursor to the view.
Create a backing data structure to start tracking more useful widget information
2014-12-05 09:20:11 -06:00
Andy Williams 5bd7cc9bbc Add an option to change the font size of our widget
demonstrate in the test and use it to make the logs more readable in edi
2014-11-22 19:14:53 +00:00
Andy Williams 65b67ec898 Actually use the eina_file memory mapping
Any appended or modified lines need to be stored seperately.
Always check for modified content before using the memory map from the
backing file.
2014-11-19 22:39:00 +00:00
Andy Williams b5288b4223 Fix a memory corruption issue on some systems 2014-11-19 22:35:01 +00:00
Andy Williams ad14b51251 Fix render test and an end of line corner case 2014-11-18 23:46:24 +00:00
Andy Williams 147a7ddd39 Add some text mode icons to markup the lines for now 2014-11-18 22:48:37 +00:00
Andy Williams 62fd0bb3f7 Add tests PASSED and FAILED to elm_code statuses
and the widget rendering.

Use this in EDI to add a test summarising panel.
Tests are executed in verbose mode so we can list
all the tests that have been run - can summarise
later if we wish...
2014-11-18 21:11:10 +00:00
Andy Williams 2299130410 Fix crash when appending a line off and the body
is already larger than the viewport
2014-11-18 20:56:47 +00:00
Andy Williams dc2e25fbb6 Refactor the widget token parsing so we can put it under test. Add simple test that demonstrates tokens split by space. 2014-11-13 23:26:30 +00:00
Andy Williams d568992493 A little more markup to the diff example with character add/rem/change highlighting 2014-11-13 21:51:23 +00:00
Andy Williams f7e0ad9dd8 Add a simple token system to allow us to render some text styles 2014-11-13 21:34:47 +00:00
Andy Williams 269409f5cd Add a file load callback also - respect that with a widget refresh when called 2014-11-12 22:59:05 +00:00
Andy Williams 0e901e5352 Fix the types of Eo Events - addresses lots of compiler warnings 2014-11-09 21:53:30 +00:00
Andy Williams 1a2f4d1ad4 Fixing some warnings. Not ideal handling of the Eo_Event_Description but it's less warn-tastic 2014-11-09 18:07:03 +00:00
Andy Williams a3e6ec6876 Add some simple version control status for lines too.
Add a simple display of how that could work to elm_code_tesst
2014-11-09 14:44:35 +00:00
Andy Williams 2796024005 Take line coloring to the end of the line 2014-11-09 00:47:00 +00:00
Andy Williams d110515fb1 Passing Eo events from Elm_Code to the Evas_Object when the backend data changes. Track a list of all widgets connected to the Elm_Code so we can signal them all. Add API to change status of a line which will refresh the widget too. 2014-11-06 23:43:56 +00:00
Andy Williams 1c314d9312 Fix a crash when resizing if the file is longer than the viewport 2014-11-05 13:36:54 +00:00
Andy Williams 87d360b43f Adding some initial concept of status flags for a line and default enum to start working on color pallette in our widget. Load enough colors to provide these statuses and hook into the EDI log panel implementation 2014-11-05 00:01:28 +00:00
Andy Williams 80373debf7 Add an initial stab at an elm_code widget. It currently does not refresh at any time other than load or resize, so is not respecting content updates, but it's a start.
Use it in place of the list of elm_label objects that were rendered in the log panel. Not colour highlighted yet, but one thing at a time.
2014-11-04 22:21:49 +00:00