File MIES_IgorHooks.ipf¶
IH Various hooks which influence the behaviour at certain global events
Functions
-
static variable IH_KillTemporaries()¶
Remove all strings/variables/waves which should not survive experiment reload/quit/saving.
Mainly useful for temporaries which you want to recreate on initialization. Things which are expensive to recreate should be stored in the cache to avoid recalculation.
-
variable IH_RemoveAmplifierConnWaves()¶
Remove the amplifier connection waves.
-
static variable IH_KillStimSets()¶
Delete all wavebuilder stim sets to save memory.
-
static variable IH_SerializeSettings()¶
Write the current JSON settings to disc.
We also invalidate the stored json ID, so that on the next access it is read again.
-
static variable BeforeExperimentSaveHook(variable rN, string fileName, string path, string type, string creator, variable kind)¶
-
static variable IH_Cleanup()¶
Cleanup before closing or starting a new experiment.
Takes care of unlocking the hardware, removing any data which is stale on reload anyway (amplifier connection details) and removes temporary waves.
-
static variable IgorBeforeQuitHook(variable unsavedExp, variable unsavedNotebooks, variable unsavedProcedures)¶
-
static variable ShowQuitMessage()¶
Show the quit message with a line for the current action, see IH_ShowQuitAction()
The quit message does not change the modified state of the experiment.
-
static variable IH_ShowQuitAction(string action)¶
Show the current action in the quit message.
Does nothing if the quit message is not shown, e.g. when IH_Cleanup() is called before a new experiment.
-
static variable HideQuitMessage()¶
-
static variable IH_KillTemporaryWindows()¶
Kill all windows marked with the userdata UDATA_TEMPORARY_WINDOW.
These windows are saved with the experiment and recreated when it is loaded.
-
static variable IgorQuitHook(string igorApplicationNameStr)¶
-
static variable IgorBeforeNewHook(string igorApplicationNameStr)¶
Called before a new experiment is opened, in response to the New Experiment, Revert Experiment, or Open Experiment menu items in the File menu.
-
static variable IgorStartOrNewHook(string igorApplicationNameStr)¶
Called when Igor is first launched and then whenever a new experiment is being created.
-
static variable BeforeUncompiledHook(variable changeCode, string procedureWindowTitleStr, string textChangeStr)¶
-
static variable AfterCompiledHook()¶
-
variable IH_ResetScaling(WMWinHookStruct *s)¶
Variables
-
static const string IH_QUIT_PANEL = "MIES_QuitMessage"¶