Microscopy Image Browser 2.91
MIB
Loading...
Searching...
No Matches
mibPreferencesAppController Class Reference

class displays preferences dialog using appdesigner created GUI More...

Inheritance diagram for mibPreferencesAppController:
Collaboration diagram for mibPreferencesAppController:

Public Member Functions

 mibPreferencesAppController (mibModel, varargin)
 
function  closeWindow ()
 closing mibPreferencesAppController window
 
function  updateWidgets (panelId)
 update widgets of this window
 
function  helpBtnCallback ()
 
function status = ApplyButtonPushedCallback ()
 apply preferences to MIB
 
function  RescaleGUIButtonPushed ()
 rescale user interface of MIB
 
function  OKButtonPushedCallback ()
 callback on press of OK
 
function  ColorPanelCallbacks (event)
 callbacks for modification of the Colors panel
 
function  KeyboardShortcutsPanelCallbacks (event)
 callbacks for modification of the Keyboard shortcuts panel Parameters: event: a structure to the GUI element that has triggered callback
 
function  SegmentationPanelCallbacks (event)
 callbacks for modification of the Segmentation tools panel Parameters: event: a structure to the GUI element that has triggered callback
 
function  BackupAndUndoPanelCallbacks (event)
 callbacks for modification of the Undo and backup panel
 
function  UserInterfacePanelCallbacks (event)
 callbacks for modification of the User Interface panel
 
function  CategoriesTreeSelectionChanged (selectedNodes)
 callback for change of nodes of CategoriesTree
 
function  updateColorPalette ()
 generate default colors for the selected palette
 
function  updateColorsTables (ColorTableTag, options)
 update color tables: ModelsColorsTable or LUTColorsTable
 
function  TableCellSelectionCallback (event)
 callback for selection of a cell in ModelsColorsTable
 
function  ModelsColorsTableContextMenuCallbacks (event)
 callbacks for the context menu of ModelsColorsTable
 
function  TableCellEditCallback (event)
 callback for modification of cells in tables
 
function  ExternalDirSelect (event)
 callback for press of select directory button
 
function  ExternalDirPathChange (event)
 update of external directories
 
function  updateKeyShortcut (eventdata)
 callback for change of key shortcuts in the table obj.View.handles.shortcutsTable
 
function  Calculate ()
 ---------------------------------------------------------------— % Additional functions and callbacks start main calculation of the plugin
 

Static Public Member Functions

static function  ViewListner_Callback (obj, src, evnt)
 

Public Attributes

 mibController
 a handle to mibController class
 
 mibModel
 handles to mibModel
 
 View
 handle to the view / mibPreferencesAppGUI
 
 listener
 a cell array with handles to listeners
 
 shownPanelTag
 a tag of the shown panel
 
 oldPreferences
 stored old preferences
 
 preferences
 local copy of MIB preferences
 
 duplicateEntries
 array with duplicate key shortcut entries
 
 renderedPanels
 indices of panels that are already rendered, for faster change upon press on new tree node
 
EVENT closeEvent
 > Description of events event firing when window is closed
 
- Public Attributes inherited from handle
 addlistener
 Creates a listener for the specified event and assigns a callback function to execute when the event occurs.
 
 notify
 Broadcast a notice that a specific event is occurring on a specified handle object or array of handle objects.
 
 delete
 Handle object destructor method that is called when the object's lifecycle ends.
 
 disp
 Handle object disp method which is called by the display method. See the MATLAB disp function.
 
 display
 Handle object display method called when MATLAB software interprets an expression returning a handle object that is not terminated by a semicolon. See the MATLAB display function.
 
 findobj
 Finds objects matching the specified conditions from the input array of handle objects.
 
 findprop
 Returns a meta.property objects associated with the specified property name.
 
 fields
 Returns a cell array of string containing the names of public properties.
 
 fieldnames
 Returns a cell array of string containing the names of public properties. See the MATLAB fieldnames function.
 
 isvalid
 Returns a logical array in which elements are true if the corresponding elements in the input array are valid handles. This method is Sealed so you cannot override it in a handle subclass.
 
 eq
 Relational functions example. See details for more information.
 
 transpose
 Transposes the elements of the handle object array.
 
 permute
 Rearranges the dimensions of the handle object array. See the MATLAB permute function.
 
 reshape
 hanges the dimensions of the handle object array to the specified dimensions. See the MATLAB reshape function.
 
 sort
 ort the handle objects in any array in ascending or descending order.
 

Detailed Description

class displays preferences dialog using appdesigner created GUI

obj.startController('mibPreferencesAppController'); // as GUI tool

Constructor & Destructor Documentation

◆ mibPreferencesAppController()

mibPreferencesAppController.mibPreferencesAppController ( mibModel,
varargin )

References handle.addlistener, mibModel, mibUpdateFontSize(), and moveWindowOutside().

Here is the call graph for this function:

Member Function Documentation

◆ ApplyButtonPushedCallback()

function status = mibPreferencesAppController.ApplyButtonPushedCallback ( )

apply preferences to MIB

References mibUpdateFontSize(), and handle.notify.

Here is the call graph for this function:

◆ BackupAndUndoPanelCallbacks()

function mibPreferencesAppController.BackupAndUndoPanelCallbacks ( event)

callbacks for modification of the Undo and backup panel

Parameters
eventa structure to the GUI element that has triggered callback
Required fields of event:

◆ Calculate()

function mibPreferencesAppController.Calculate ( )

---------------------------------------------------------------— % Additional functions and callbacks start main calculation of the plugin

References handle.notify.

◆ CategoriesTreeSelectionChanged()

function mibPreferencesAppController.CategoriesTreeSelectionChanged ( selectedNodes)

callback for change of nodes of CategoriesTree

Parameters
selectedNodeshandle to the selected nodes
Required fields of selectedNodes:

◆ closeWindow()

function mibPreferencesAppController.closeWindow ( )

closing mibPreferencesAppController window

References handle.isvalid, and handle.notify.

◆ ColorPanelCallbacks()

function mibPreferencesAppController.ColorPanelCallbacks ( event)

callbacks for modification of the Colors panel

Parameters
eventa structure to the GUI element that has triggered callback
Required fields of event:

References max, and mibInputDlg().

Here is the call graph for this function:

◆ ExternalDirPathChange()

function mibPreferencesAppController.ExternalDirPathChange ( event)

update of external directories

Required fields of event:

◆ ExternalDirSelect()

function mibPreferencesAppController.ExternalDirSelect ( event)

callback for press of select directory button

Required fields of event:

References mib_uigetfile().

Here is the call graph for this function:

◆ helpBtnCallback()

function mibPreferencesAppController.helpBtnCallback ( )

◆ KeyboardShortcutsPanelCallbacks()

function mibPreferencesAppController.KeyboardShortcutsPanelCallbacks ( event)

callbacks for modification of the Keyboard shortcuts panel Parameters: event: a structure to the GUI element that has triggered callback

Required fields of event:

References generateDefaultKeyShortcuts().

Here is the call graph for this function:

◆ ModelsColorsTableContextMenuCallbacks()

function mibPreferencesAppController.ModelsColorsTableContextMenuCallbacks ( event)

callbacks for the context menu of ModelsColorsTable

Paramters
event: a handle to the event structure
Required fields of event:

References max, mib_uigetfile(), mibInputDlg(), mibInputMultiDlg(), and min.

Here is the call graph for this function:

◆ OKButtonPushedCallback()

function mibPreferencesAppController.OKButtonPushedCallback ( )

callback on press of OK

References handle.notify.

◆ RescaleGUIButtonPushed()

function mibPreferencesAppController.RescaleGUIButtonPushed ( )

rescale user interface of MIB

References mibRescaleWidgets().

Here is the call graph for this function:

◆ SegmentationPanelCallbacks()

function mibPreferencesAppController.SegmentationPanelCallbacks ( event)

callbacks for modification of the Segmentation tools panel Parameters: event: a structure to the GUI element that has triggered callback

Required fields of event:

◆ TableCellEditCallback()

function mibPreferencesAppController.TableCellEditCallback ( event)

callback for modification of cells in tables

Paramters
event: a handle to the event structure
Required fields of event:

◆ TableCellSelectionCallback()

function mibPreferencesAppController.TableCellSelectionCallback ( event)

callback for selection of a cell in ModelsColorsTable

Paramters
event: a handle to the event structure
Required fields of event:

◆ updateColorPalette()

function mibPreferencesAppController.updateColorPalette ( )

generate default colors for the selected palette

References mibGenerateDefaultSegmentationPalette().

Here is the call graph for this function:

◆ updateColorsTables()

function mibPreferencesAppController.updateColorsTables ( ColorTableTag,
options )

update color tables: ModelsColorsTable or LUTColorsTable

Parameters
optionsa structure with additional parameters .updateDataOnly - [logical, dafault=false] update the data in the table without .rowId - [integer, default=[]] index of a row to update, when empty update the full table redrawing the styles
ColorTableHandlea string with a tag of the table: "ModelsColorsTable", "LUTColorsTable"
Required fields of options:

References min.

◆ updateKeyShortcut()

function mibPreferencesAppController.updateKeyShortcut ( eventdata)

callback for change of key shortcuts in the table obj.View.handles.shortcutsTable

Required fields of eventdata:

◆ updateWidgets()

function mibPreferencesAppController.updateWidgets ( panelId)

update widgets of this window

Parameters
panelId;[optional] handle to panel that has to be updated, when missing all panels are updated "UserInterfacePanel",

◆ UserInterfacePanelCallbacks()

function mibPreferencesAppController.UserInterfacePanelCallbacks ( event)

callbacks for modification of the User Interface panel

Parameters
eventa structure to the GUI element that has triggered callback
Required fields of event:

References mibUpdateFontSize().

Here is the call graph for this function:

◆ ViewListner_Callback()

static function mibPreferencesAppController.ViewListner_Callback ( obj,
src,
evnt )
static

Member Data Documentation

◆ closeEvent

EVENT mibPreferencesAppController.closeEvent

> Description of events event firing when window is closed

Events
closeEvent

◆ duplicateEntries

mibPreferencesAppController.duplicateEntries

array with duplicate key shortcut entries

◆ listener

mibPreferencesAppController.listener

a cell array with handles to listeners

◆ mibController

mibPreferencesAppController.mibController

a handle to mibController class

◆ mibModel

mibPreferencesAppController.mibModel

handles to mibModel

Referenced by mibPreferencesAppController().

◆ oldPreferences

mibPreferencesAppController.oldPreferences

stored old preferences

◆ preferences

mibPreferencesAppController.preferences

local copy of MIB preferences

◆ renderedPanels

mibPreferencesAppController.renderedPanels

indices of panels that are already rendered, for faster change upon press on new tree node

◆ shownPanelTag

mibPreferencesAppController.shownPanelTag

a tag of the shown panel

◆ View

mibPreferencesAppController.View

handle to the view / mibPreferencesAppGUI


The documentation for this class was generated from the following file: