Commit Graph

70 Commits

Author SHA1 Message Date
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 45a6b3880b And document the wiget API 2015-01-26 23:09:22 +00: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
Stephen Houston 0a279a34df Elm_Code: For box to get key down, it needs to have a child receiving key down. 2015-01-26 10:28:04 -06: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 6e57210c3a Manipulate the position of the cursor.
When clicking in edit mode just change the position of it to where was clicked.
Known issue that this does not work with the keyboard
2015-01-25 23:15:37 +00:00
Andy Williams 3c9e554b7b elm_code: Add focus support for the elm_code widget.
Hook into the internal elementary API to be part of the focus chain
2015-01-25 17:18:21 +00:00
Andy Williams 29d31ad9f1 Complete port of elm_code widget to eo as widget2 2015-01-24 22:07:00 +00:00
Andy Williams eec17b5904 Fix eo and regen to generate the right code based on okra's changes.
We need to inherit from Elm_Box and not get in the way of smart resizing...
2015-01-24 08:26:09 +00:00
Stephen Houston 82e57792ca Elm_Code_Widget2: Inherit from box instead of layout since a layout is not provided. 2015-01-23 20:35:14 -06:00
Andy Williams aeadf18b06 Merge branch 'master' into elm_code 2015-01-23 23:42:07 +00:00
Andy Williams 1bd963c084 install our test diff for elm_code_test binaries 2015-01-23 23:41:53 +00:00
Andy Williams 49512b1d31 Experimental eo commit - structure in place and it's resizing but won't render 2015-01-23 22:55:13 +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 e179b349bd Disable NLS by default when cross compiling, remove broken need for libintl 2015-01-04 14:07:35 +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 344e2e8eca Remove circular include of the elm_code_file.h header 2014-12-24 18:06:51 +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 688a89fc75 Merging in refactoring of elm_code file lookups and edi mime lookups.
Elm_Code file no longer required for elm_code to function (in memory is created automatically).
2014-11-28 23:53:23 +00:00
Andy Williams 888e4217ec Use an in-memory file for new elm_codes by default.
This is overridden as before by calling elm_code_file_open which will free the previously set file on that elm_code instance
2014-11-28 08:55:42 +00:00
Andy Williams 70ec5e065d Heading to a working windows build.
Copy fixes into Skeleton file too so that it creates libraries that work in the same way
2014-11-25 23:07:50 +00:00
Andy Williams ae6af27bd7 Merge branch 'devs/ajwillia-ms/elm_code' 2014-11-23 00:20:49 +00:00
Andy Williams c7a238894a Render all filename headers in a diff widget 2014-11-23 00:19:36 +00:00
Andy Williams 724c9a5a66 Fix warning 2014-11-22 22:44:37 +00:00
Andy Williams 2a0206ed82 Merge branch 'devs/ajwillia-ms/elm_code' 2014-11-22 22:40:03 +00:00
Andy Williams b4a64ccc40 Add a simple diff widget based on an incoming diff file.
Load that into edi if we load a diff or patch file
2014-11-22 22:36:57 +00: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 80358f5731 Merge master 2014-11-22 16:45:33 +00:00
Andy Williams 2f8e8842af Merge branch 'devs/ajwillia-ms/elm_code' 2014-11-22 16:06:31 +00:00
Andy Williams 846d2d2fbd Fix a test missed in move to mem-mapping 2014-11-22 16:01:43 +00:00
Andy Williams e3610e1602 Fix a test missed in move to mem-mapping 2014-11-19 23:20:23 +00:00
Andy Williams bce66677cb Fix minor issues I saw in passing 2014-11-19 22:42:19 +00:00
Andy Williams 77f17fa26a Fix a memory corruption issue on some systems 2014-11-19 22:42:08 +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 aa5b70972c Fix minor issues I saw in passing 2014-11-19 22:37:00 +00:00
Andy Williams b5288b4223 Fix a memory corruption issue on some systems 2014-11-19 22:35:01 +00:00
Andy Williams 5f20154258 Fix render test and an end of line corner case 2014-11-18 23:47:12 +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 649c98a53b Add parse hooks for lines and files within elm_code.
This required changing the load order so file opens would read the elm_code->parsers setup. This makes for a better setup anyhow
2014-11-16 23:52:41 +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