summaryrefslogtreecommitdiff
path: root/grc
Commit message (Collapse)AuthorAgeFilesLines
...
* grc freedesktop: Readme XML->YMLMarcus Müller2020-10-281-1/+1
|
* grc: fix pylint C0330: wrong hanging indentationClayton Smith2020-10-209-49/+47
|
* grc: fix pylint C0326: wrong number of spacesClayton Smith2020-10-2016-37/+37
|
* grc: fix pylint C0303: Trailing whitespaceClayton Smith2020-10-2043-73/+68
|
* grc: replace deprecated getargspec with getfullargspec to remove warningmormj2020-10-161-1/+1
|
* grc: update the "Get Involved" dialogClayton Smith2020-10-051-3/+3
|
* grc: remove sixClayton Smith2020-10-0530-180/+112
|
* grc: use os.pathsep (Windows)japm482020-09-301-3/+1
| | | | | | os.path.sep is unreliable in Windows ("\" in official python, "/" in MSYS2) With this change os.pathsep is used instead to get the path separator: ":" (*nix) or ";" (Windows)
* grc: prevent search keystrokes from modifying flowgraph, take twoClayton Smith2020-08-201-1/+2
| | | | | | | | | | | | | | | | | After blocks are unselected, it's necessary to trigger an Action so that keystroke action handlers will be updated in Application._handle_action. In my previous pull request, I achieved this by replacing a FlowGraph.update_selected() call with a FlowGraph.update_selected_elements() call, since the latter happens to trigger an Action. However, this does not occur in all cases, because FlowGraph.update_selected_elements() can return early. To fix the issue, I've reverted that change and changed the DrawingArea's focus-out-event handler to explicitly trigger Actions.ELEMENT_SELECT(). After this change, blocks appear to be unselect in all cases when accessing the block search box.
* grc: prevent search keystrokes from modifying flowgraphClayton Smith2020-08-192-12/+11
| | | | | | | | | | | | | | | A confluence of bugs introduced while updating GRC to Python 3 results in keystrokes being sent to the drawing area while typing in the block search box. First, the drawing area needs to be placed in a Viewport before being added into a ScrolledWindow. Fixing this allows the drawing area to grab focus as intended when it is clicked. Second, the drawing area needs to unselect all blocks when it loses focus so that the relevant keystroke actions can be disabled. This functionality was commented out during the transition to Python 3, and I've restored it here.
* Revert "grc: Unselect all on Ctrl+F"Clayton Smith2020-08-191-1/+0
| | | | This reverts commit 2ff628894b645d22325db6569fdccb265f57fbe1.
* grc: do not run stale flowgraphJosh Morman2020-08-141-12/+15
|
* python: Remove unnecessary 'from __future__ import'Oleksandr Kravchuk2020-08-0371-71/+0
| | | | | | | | | | | | | | | | All of the removed `from __future__ import` were needed in older versions of Python (mostly 2.5.x and below) but later became mandatory in most versions of Python 3 hence are not necessary anymore. More specifically, according to __future__.py[1]: - unicode_literals is part of Python since versions 2.6.0 and 3.0.0; - print_function is part of Python since versions 2.6.0 and 3.0.0; - absolute_import is part of Python since versions 2.5.0 and 3.0.0; - division is part of Python since versions 2.2.0 and 3.0.0; Get rid of those unnecessary imports to slightly clean up the codebase. [1] https://github.com/python/cpython/blob/master/Lib/__future__.py
* grc: Add dir_select parameter typeYamakaja2020-07-234-3/+44
| | | | | | | | This commit adds a new parameter type to GNURadio Companion that allows you to select directories using a gui. This functionality is very similar to that of the previously available "file_open" and "file_save" parameter types, and mainly differs by calling GTKs file chooser with FileChooserAction.SELECT_FOLDER.
* grc: Fix hier block io_signature generationJohannes Demel2020-06-251-2/+2
| | | | | | GRC used `gr.io_signaturev` to generate hierarchical block signatures. This was only a SWIG alias to `gr.io_signature.makev`. Now, the generator calls `gr.io_signature.makev` directly.
* grc: fixes crash when using function probe with bokehguiNotou2020-05-291-6/+16
|
* grc: draw selected elements lastSebastian Koslowski2020-05-281-0/+3
|
* grc: auto-shift colliding blocks when pastingSebastian Koslowski2020-05-281-1/+6
|
* grc: fix pasting connections when block were renamed (fixes #3499)Sebastian Koslowski2020-05-281-14/+11
|
* grc: iterate all selected blocks when changing port type (fixes #3500)Sebastian Koslowski2020-05-281-2/+2
| | | | previously the first hit terminated further processing
* grc: remove dead codeClayton Smith2020-05-281-8/+0
|
* grc: Fix background color of raw types for dark themesVolker Schroer2020-05-211-1/+1
| | | | | | Using a gtk3 dark theme makes the content of raw types in grc variable or parameter blocks invisible. Changing the background color to a light grey fixes this issue.
* grc: fix dark theme detectionSebastian Koslowski2020-05-161-1/+1
| | | | ...for systems with no theme set.
* grc: fixup: dynamically update namespaces from blocks (#3317)Sebastian Koslowski2020-05-161-4/+6
|
* grc: dynamically update namespaces from blocksJacob Gilbert2020-05-151-1/+16
| | | | amongst other things, allows assert statements to use items within namespaces the blocks import
* grc: Updated Actionsalekhgupta14412020-05-061-0/+5
|
* grc: Updated Barsalekhgupta14412020-05-061-1/+1
|
* grc: Updated Applicationalekhgupta14412020-05-061-0/+2
|
* grc: Updated Dialogsalekhgupta14412020-05-061-1/+17
|
* grc: add length to tooltip for variable with lenewxl2020-05-031-1/+4
| | | | Improving the module grc.gui.canvas.param to add length to tooltip of attributes of a block in grc.
* grc: Deduplicate block pathsMartin Braun2020-04-281-0/+4
| | | | | | | | GRC reads paths from various sources, including the GRC_BLOCKS_PATH environment variable. It can happen that paths appear twice in the list, causing warnings about findings blocks twice. This deduplicates the paths in the config object.
* grc: use cmake --build instead of makejapm482020-04-262-1/+23
| | | | | This allows the use of other toolchains (ninja, MSVC, etc.). Also, use all available CPU cores (equivalent of "make -j$(nproc)").
* grc: start flowgraph process in its folderjapm482020-04-261-3/+7
| | | | This allows the use of predictable relative paths.
* grc: use correct labels in log window context menujapm482020-04-261-2/+2
| | | | | | | | Previously 'gtk-clear' and 'gtk-save' were shown. Gtk.STOCK_* constants are deprecated in favor of translated strings. But grc is English-only, so it makes sense to stick to the simple hardcoded solution.
* grc: Enable strict_undefined to ease Mako template debuggingHåkon Vågsether2020-04-211-1/+1
|
* grc: do not assume gsettings existsjapm482020-04-201-3/+7
| | | is_dark_theme() should not throw an exception gsettings is not found (can happen in Windows).
* gnuradio-companion: add Meta modifier key for macOSDavide Gerhard2020-04-193-2/+30
| | | | | implements support for the Meta key on macOS. Others platforms continue to use Ctrl.
* grc: add hotkeys to clear/save console, and to toggle autoscroll, updated ↵Jacob Gilbert2020-04-092-12/+17
| | | | shortcut help menu accordingly
* grc: show file path as tooltip in tab labeljapm482020-04-032-0/+13
| | | | Fixes #3294.
* grc: disable save prompt on new blank pagesjapm482020-03-302-3/+0
|
* grc: remove python checkjapm482020-03-291-8/+0
| | | | | | | | This version check duplicates the work already done in the module `GrPython.cmake` (included by the top level`CMakeLists.txt`). It is also wrong because it uses a lexicographical string comparison. See issue #3264.
* grc: Added a new menu option under Help for Keyboard-Shortcutsalekhgupta14412020-03-284-5/+53
|
* grc: workaround to allow epy blocks/modules to loadJosh Morman2020-03-261-2/+5
| | | | | | | | | | | The underlying issue is that the built in blocks all end up getting the 'cpp' flag, which is not valid for the embedded python blocks To fix this some work needs to be done in the "Flags" class, as all the flags added to classes that get accumulated in the build_ins list get added to all the classes See register_build_in
* Allow grc to load flowgraphs with missing blocksTerry May2020-03-121-2/+2
|
* grc: Fix C++ code generationTerry May2020-02-1810-65/+185
| | | | | | | | | | | | | | | | | | | | | | | - Added support for C++ std::map<> from python dict - Fixed default initialization of parameters in main() - Added missing include for realtime scheduling - Added default CMake option for std=c++11 as this is required for gnuradio >= 3.8 - Fixed mako template to add initialization to parameter declarations in main() - Fixed C++ constructor initialization list generation - Fixed parameter type determination when an lvalue is used in an rvalue expression - Improved determining type of C++ variables - Added C++ support for gr_complex parameters - Fixed C++ generation of nested container types - Added C++ support for virtual source/sink - Moved cmake CMAKE_CXX_STANDARD 11 option from options.yml to CMakeLists.txt.mako - Fixed qtqui_sink to allow multiple instances - Revised virtual connection processing in cpp_top_block.py Reviewed-By: Håkon Vagsether <hauk142@gmail.com>
* grc: Remove unused template definitionIgor Freire2020-02-151-7/+0
|
* grc: Fix eng_float default on argparse templateIgor Freire2020-02-151-1/+1
| | | | | | | | | The import of eng_notation was removed in 678a7c2ad, and so float parameter blocks were leading to flowgraph compilation error. Since eng_notation is still imported in the generated python script, we can put the call to num_to_str in the generated script, instead of calling it during script generation.
* grc: add python snippets to GRCJosh Morman2020-02-108-6/+141
| | | | | | | | | | | This feature adds the ability to insert arbitrary code into the python flowgraph. It gives a little more low-level flexibility for quickly modifying flowgraphs and adding custom bits of code rather than having to go and edit the generated py file One example is synchronizing multiple USRP objects - sometimes you want different sync than what is offered in the multi-usrp object, so you can put a bit of code in the snippet block to do the custom synchronization
* grc: ctrl+a now selects all text if search box in focusChris Donohue2020-02-091-1/+4
|
* grc: fix ctrl+s keyboard shortcut on new flowgraphsChris Donohue2020-02-072-1/+5
|