- Added a signal to emit changed, this way GUI can react
to that signal and ask the user if he want to save
the changes made.
Signed-off-by: Norbert Schechner <nieson@web.de>
Now we use the theme's color for highlight of text.
when searching text we highlight, select and grab focus
Signed-off-by: chris morley <chrisinnanaimo@hotmail.com>
the saved file was created with mode 0600 because the mode was not changed
after the creation of the file, I added a line to correct that.
ToDo: make the mode a property
Signed-off-by: Norbert Schechner <nieson@web.de>
This adds a basic search and replace with replace-all and ignore-case.
it is available through python calls - not exposed directly on widget
Signed-off-by: Chris Morley <chrisinnanaimo@hotmail.com>
widget.set_language(lang, path):
lang = the lang file to set
path = the search path for the langauage file,
to be able to supply GUI specific ones
if None, it is set to default
The highlight line represents where the program is or where it will
run from. When the interpreter is not running the file the highlight
should hide, to indicate that the program will start at line 1.
To facilitate small edits of gcode.
Right now the actual 'editting mode' and controls for said fuctions are
done outside hal_sourceview.
It is possible to get the linuxcnc Gcode and the sourceview buffer Gcode
out of synch if you forget to save the result of the edit.
If the integrator was forced to set sourceview into an edit mode, it would
be easier to track this. there is a 'has-been-modified' flag to check.
These actions were coded but not finished. 'save as' needed a little tlc.
one couldn't enter a new filename.
'save' will save the current file name and reload the file in EMC
'save as' will save the file under a new filename and then load the new
filename.
also added get_filename to return the EMC's current file path.
Signed-off-by: cmorley <chrisinnanaimo@hotmail.com>
this includes the main script, some of the GUIs, the Python module,
the Tcl package, some image fies.
On a sim system, axis, tkemc, xemc all start. runtests pass.
a system with realtime wasn't yet tested.
packaging probably requires additional changes and was not yet tested.