050b110146f3ce8cb3d3a7cb7ef34363fede1edd,ilastik/applets/pixelClassification/pixelClassificationGui.py,PixelClassificationGui,_initShortcuts,#PixelClassificationGui#,144

Before Change


                      toggleSegmentation,
                      self._viewerControlUi.checkShowSegmentation )

        toggleLivePredict = QShortcut( QKeySequence("l"), self, member=self.labelingDrawerUi.liveUpdateButton.toggle )
        mgr.register( shortcutGroupName,
                      "Toggle Live Prediction Mode",
                      toggleLivePredict,
                      self.labelingDrawerUi.liveUpdateButton )

    def _setup_contexts(self, layer):
        def callback(pos, clayer=layer):
            name = clayer.name

After Change


        ActionInfo = ShortcutManager2.ActionInfo
        shortcutGroupName = "Predictions"

        mgr.register( "p", ActionInfo( shortcutGroupName,
                                       "Toggle Prediction",
                                       "Toggle Prediction Layer Visibility",
                                       self._viewerControlUi.checkShowPredictions.click,
                                       self._viewerControlUi.checkShowPredictions,
                                       self._viewerControlUi.checkShowPredictions ) )

        mgr.register( "s", ActionInfo( shortcutGroupName,
                                       "Toggle Segmentaton",
                                       "Toggle Segmentaton Layer Visibility",
                                       self._viewerControlUi.checkShowSegmentation.click,
                                       self._viewerControlUi.checkShowSegmentation,
                                       self._viewerControlUi.checkShowSegmentation ) )

        mgr.register( "l", ActionInfo( shortcutGroupName,
                                       "Live Prediction",
                                       "Toggle Live Prediction Mode",
                                       self.labelingDrawerUi.liveUpdateButton.toggle,
                                       self.labelingDrawerUi.liveUpdateButton,
                                       self.labelingDrawerUi.liveUpdateButton ) )

    def _setup_contexts(self, layer):
        def callback(pos, clayer=layer):
            name = clayer.name
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 10

Instances


Project Name: ilastik/ilastik
Commit Name: 050b110146f3ce8cb3d3a7cb7ef34363fede1edd
Time: 2014-03-04
Author: bergs@janelia.hhmi.org
File Name: ilastik/applets/pixelClassification/pixelClassificationGui.py
Class Name: PixelClassificationGui
Method Name: _initShortcuts


Project Name: ilastik/ilastik
Commit Name: 050b110146f3ce8cb3d3a7cb7ef34363fede1edd
Time: 2014-03-04
Author: bergs@janelia.hhmi.org
File Name: ilastik/applets/pixelClassification/pixelClassificationGui.py
Class Name: PixelClassificationGui
Method Name: _initShortcuts


Project Name: ilastik/ilastik
Commit Name: 050b110146f3ce8cb3d3a7cb7ef34363fede1edd
Time: 2014-03-04
Author: bergs@janelia.hhmi.org
File Name: ilastik/applets/labeling/labelingGui.py
Class Name: LabelingGui
Method Name: __initShortcuts


Project Name: ilastik/ilastik
Commit Name: d33e62fd9aaf19b3dc92c883831f0bbc4c674ed7
Time: 2014-03-04
Author: bergs@janelia.hhmi.org
File Name: ilastik/workflows/carving/carvingGui.py
Class Name: CarvingGui
Method Name: __init__