Commit graph

39 commits

Author SHA1 Message Date
Hans Unzner
50ca4f2872 sourceview: improve text search 2022-03-12 16:01:06 +01:00
Hans Unzner
612b1155df sourceview: fix replace all + improve replace 2022-03-12 16:00:12 +01:00
Hans Unzner
a52b23a178 sourceview: fix crash on text replace 2022-03-12 15:57:52 +01:00
Hans Unzner
6ca016be40 gmoccapy: sensitize save button after 'save as' 2022-03-12 15:57:52 +01:00
Hans Unzner
126de9d0ae gmoccapy: fixed save and save as
re-added properties for EMC_Action_Save and EMC_Action_SaveAs
which gone lost in d2d7d5d65c
2022-03-12 15:56:59 +01:00
Hans Unzner
4601d54083 gmoccapy: fix detection of file change 2022-03-12 15:48:54 +01:00
Hans Unzner
7b373ce864 sourceview: remove Gtk-CRITICAL warnings 2022-01-29 08:58:44 +01:00
0c8a0058bf use python3 in all #!python lines 2021-09-02 18:32:58 -05:00
Rene Hopf
cec035b90a fix various gtk3 deprecated warnings 2021-06-11 12:25:37 +02:00
Rene Hopf
7f6f81f0fc fixed hal_sourceview for gtk3 2021-05-25 00:27:44 +02:00
Rene Hopf
f16963b9a7 fix merge errors 2021-05-23 02:38:04 +02:00
Rene Hopf
28b27e65e3 Merge branch 'master' into master-gtk3 2021-05-23 02:19:18 +02:00
Rene Hopf
93693a360a hal_sourceview: fix gtk warnings 2021-05-23 01:27:54 +02:00
Norbert Schechner
1d87f7f055 hal_sourceview do not import as gtk / gobject, but Gtk and GObject
Signed-off-by: Norbert Schechner <nieson@web.de>
2021-05-23 01:23:09 +02:00
Rene Hopf
dd95e08979 gtk3 wip 2021-05-23 00:51:14 +02:00
andypugh
16b9003148 Merge remote-tracking branch 'origin/2.8' 2021-03-20 19:16:23 +00:00
Norbert Schechner
37b3431a5b hal_sourceview - added change signal
- 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>
2021-03-07 17:43:38 +01:00
luz paz
ea08a53edd docs: fix source comment and doc typos in lib/python
Found via `codespell v2.0.dev`  
```
codespell -q 3  -L ans,doubleclick,halp,parms
```
2021-01-04 09:53:06 -05:00
Rene Hopf
0300e27542 hal_sourceview.py: python3 compatibility 2020-04-26 23:28:06 +02:00
Chris Morley
3322830aeb gladevcp -fix theming of hal_sourceview highlight color 2019-02-22 02:39:35 -08:00
chris morley
ca43a4d0a1 gladevcp -improve highlight of sourceview
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>
2017-03-22 01:22:03 -07:00
Norbert Schechner
1e72e40810 Merge branch '2.6' into 2.7 2016-07-02 13:28:25 +02:00
Norbert Schechner
f102b9f118 GladeVCP - hal_sourceview - creation mode of files
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>
2016-07-02 13:27:52 +02:00
Moses McKnight
c14c1c5886 Add option to disable line number reset in hal_sourceview when idle.
Signed-off-by: Moses McKnight <moses@texband.net>
2015-09-17 08:25:08 -05:00
Moses McKnight
a2c6be6014 Add function to select gcode color scheme in gladevcp gcode widget
Signed-off-by: Moses McKnight <moses@texband.net>
2015-06-02 09:09:02 -05:00
Moses McKnight
baa2891cc3 EMC_Sourceview.set_language() was broken if no path passed in.
Signed-off-by: Moses McKnight <moses@texband.net>
2015-06-01 19:57:49 -05:00
Chris Morley
bb6b3136af gladevcp -add search and replace to hal_sourceview
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>
2014-10-11 16:40:29 -07:00
Norbert Schechner
abfbd928ed gladevcp - hal_sourceview - add new function set_language
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
2013-12-29 20:07:15 +01:00
Chris Morley
be15171681 gladevcp -remove highlight from hal_sourceview when idle
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.
2013-12-24 04:06:10 -08:00
Chris Morley
065e5a9e71 gladevcp -allow reloading the buffer with the same file -hal_sourceview
If the user wishes to not save edits to Gcode then the GUI will
call this method without a filename to reload the buffer.
2013-06-30 23:18:54 -07:00
Chris Morley
aea5a593ed gladevcp -add search, undo and redo functionality to hal_sourceview
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.
2013-06-29 19:35:14 -07:00
Chris Morley
996b4e6738 gladevcp -lighten color of highlight of Gcode display
Hard to read some Gcode.
2013-04-13 13:50:01 -07:00
Chris Morley
7876c4a8bd gladevcp -add code for highlighting run-at-line selection.
You can get,set and move the highlight line for selecting a restart line.
I should add a run-at-line EMC action dialog....
2012-12-15 01:13:38 -08:00
Michael Haberler
b70fd2092d gladevcp/hal_sourceview: fix off-by-one error 2012-08-17 07:28:25 +02:00
cmorley
57906b616c gladevcp - Have load and save actions remmeber last path / filename
The default searched folder is now set to ~/linuccnc/nc_files
after that the last folder / filename selected will be remembered for next time.
2012-01-25 00:21:00 -08:00
cmorley
8229af08ef gladevcp -enable EMC actions save and saveas to sourceview
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>
2012-01-25 00:21:00 -08:00
Jeff Epler
51fc09fd2d Rename many user visible parts to "linuxcnc"
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.
2012-01-18 11:25:09 -06:00
Pavel Shramov
4d3021ac30 gladevcp: Fix search path for EMC_SourceView widget 2011-01-05 10:38:12 +03:00
Pavel Shramov
420e391897 gladevcp: Add sourceview widget
Based on GtkSourceView (python-gtksourceview2) with fixed .ngc format
and auto-reload.
2011-01-04 16:27:11 +03:00