void structEEGWindow :: v_createMenuItems_file_extract (EditorMenu menu) { EEGWindow_Parent :: v_createMenuItems_file_extract (menu); d_extractSelectedEEGPreserveTimesButton = EditorMenu_addCommand (menu, L"Extract selected EEG (preserve times)", 0, menu_cb_ExtractSelectedEEG_preserveTimes); d_extractSelectedEEGTimeFromZeroButton = EditorMenu_addCommand (menu, L"Extract selected EEG (time from zero)", 0, menu_cb_ExtractSelectedEEG_timeFromZero); }
void structTimeSoundEditor :: v_createMenuItems_file_draw (EditorMenu menu) { EditorMenu_addCommand (menu, U"Draw to picture window:", GuiMenu_INSENSITIVE, menu_cb_DrawVisibleSound /* dummy */); if (d_sound.data || d_longSound.data) { EditorMenu_addCommand (menu, U"Draw visible sound...", 0, menu_cb_DrawVisibleSound); drawButton = EditorMenu_addCommand (menu, U"Draw selected sound...", 0, menu_cb_DrawSelectedSound); } }
void structTimeSoundEditor :: v_createMenuItems_query_info (EditorMenu menu) { TimeSoundEditor_Parent :: v_createMenuItems_query_info (menu); if (d_sound.data && d_sound.data != data) { EditorMenu_addCommand (menu, U"Sound info", 0, menu_cb_SoundInfo); } else if (d_longSound.data && d_longSound.data != data) { EditorMenu_addCommand (menu, U"LongSound info", 0, menu_cb_LongSoundInfo); } }
void structTimeSoundEditor :: v_createMenuItems_file (EditorMenu menu) { TimeSoundEditor_Parent :: v_createMenuItems_file (menu); v_createMenuItems_file_draw (menu); EditorMenu_addCommand (menu, U"-- after file draw --", 0, nullptr); v_createMenuItems_file_extract (menu); EditorMenu_addCommand (menu, U"-- after file extract --", 0, nullptr); v_createMenuItems_file_write (menu); EditorMenu_addCommand (menu, U"-- after file write --", 0, nullptr); }
void structEEGWindow :: v_createHelpMenuItems (EditorMenu menu) { TextGridEditor_Parent :: v_createHelpMenuItems (menu); EditorMenu_addCommand (menu, L"EEGWindow help", '?', menu_cb_EEGWindowHelp); }
void structOTMultiEditor :: v_createHelpMenuItems (EditorMenu menu) { OTMultiEditor_Parent :: v_createHelpMenuItems (menu); EditorMenu_addCommand (menu, U"OT learning tutorial", 0, menu_cb_OTLearningTutorial); }
void structSoundEditor :: v_createHelpMenuItems (EditorMenu menu) { SoundEditor_Parent :: v_createHelpMenuItems (menu); EditorMenu_addCommand (menu, U"SoundEditor help", '?', menu_cb_SoundEditorHelp); EditorMenu_addCommand (menu, U"LongSoundEditor help", 0, menu_cb_LongSoundEditorHelp); }
void structKlattGrid_PitchTierEditor :: v_createHelpMenuItems (EditorMenu menu) { EditorMenu_addCommand (menu, U"PitchTierEditor help", 0, menu_cb_KlattGrid_PitchTierEditorHelp); EditorMenu_addCommand (menu, U"PitchTier help", 0, menu_cb_PitchTierHelp); }
void structTimeSoundEditor :: v_createMenuItems_view_sound (EditorMenu menu) { EditorMenu_addCommand (menu, U"Sound scaling...", 0, menu_cb_soundScaling); EditorMenu_addCommand (menu, U"-- sound view --", 0, nullptr); }
void structSpectrumEditor :: v_createHelpMenuItems (EditorMenu menu) { SpectrumEditor_Parent :: v_createHelpMenuItems (menu); EditorMenu_addCommand (menu, L"SpectrumEditor help", '?', menu_cb_help_SpectrumEditor); EditorMenu_addCommand (menu, L"Spectrum help", 0, menu_cb_help_Spectrum); }
void structOptimalCeilingTierEditor :: v_createHelpMenuItems (EditorMenu menu) { OptimalCeilingTierEditor_Parent :: v_createHelpMenuItems (menu); EditorMenu_addCommand (menu, U"OptimalCeilingTier help", 0, menu_cb_OptimalCeilingTierHelp); }
void structScriptEditor :: v_createHelpMenuItems (EditorMenu menu) { ScriptEditor_Parent :: v_createHelpMenuItems (menu); EditorMenu_addCommand (menu, U"About ScriptEditor", '?', menu_cb_AboutScriptEditor); EditorMenu_addCommand (menu, U"Scripting tutorial", 0, menu_cb_ScriptingTutorial); EditorMenu_addCommand (menu, U"Scripting examples", 0, menu_cb_ScriptingExamples); EditorMenu_addCommand (menu, U"Praat script", 0, menu_cb_PraatScript); EditorMenu_addCommand (menu, U"Formulas tutorial", 0, menu_cb_FormulasTutorial); EditorMenu_addCommand (menu, U"Demo window", 0, menu_cb_DemoWindow); EditorMenu_addCommand (menu, U"-- help history --", 0, NULL); EditorMenu_addCommand (menu, U"The History mechanism", 0, menu_cb_TheHistoryMechanism); EditorMenu_addCommand (menu, U"Initialization scripts", 0, menu_cb_InitializationScripts); EditorMenu_addCommand (menu, U"-- help add --", 0, NULL); EditorMenu_addCommand (menu, U"Adding to a fixed menu", 0, menu_cb_AddingToAFixedMenu); EditorMenu_addCommand (menu, U"Adding to a dynamic menu", 0, menu_cb_AddingToADynamicMenu); }
void structPitchEditor :: v_createHelpMenuItems (EditorMenu menu) { PitchEditor_Parent :: v_createHelpMenuItems (menu); EditorMenu_addCommand (menu, L"PitchEditor help", '?', menu_cb_PitchEditorHelp); EditorMenu_addCommand (menu, L"Pitch help", 0, menu_cb_PitchHelp); }
void structIntensityTierEditor :: v_createHelpMenuItems (EditorMenu menu) { IntensityTierEditor_Parent :: v_createHelpMenuItems (menu); EditorMenu_addCommand (menu, L"IntensityTier help", 0, menu_cb_IntensityTierHelp); }
void structManual :: v_createHelpMenuItems (EditorMenu menu) { Manual_Parent :: v_createHelpMenuItems (menu); EditorMenu_addCommand (menu, U"Manual help", '?', menu_cb_help); }
void structStringsEditor :: v_createHelpMenuItems (EditorMenu menu) { StringsEditor_Parent :: v_createHelpMenuItems (menu); EditorMenu_addCommand (menu, L"StringsEditor help", '?', menu_cb_help); }
void structDurationTierEditor :: v_createHelpMenuItems (EditorMenu menu) { DurationTierEditor_Parent :: v_createHelpMenuItems (menu); EditorMenu_addCommand (menu, L"DurationTier help", 0, menu_cb_DurationTierHelp); }
void structOTGrammarEditor :: v_createHelpMenuItems (EditorMenu menu) { OTGrammarEditor_Parent :: v_createHelpMenuItems (menu); EditorMenu_addCommand (menu, U"OTGrammarEditor help", '?', menu_cb_OTGrammarEditor_help); EditorMenu_addCommand (menu, U"OTGrammar help", 0, menu_cb_OTGrammar_help); EditorMenu_addCommand (menu, U"OT learning tutorial", 0, menu_cb_OTLearningTutorial); }
void structKlattGrid_RealTierEditor :: v_createHelpMenuItems (EditorMenu menu) { KlattGrid_RealTierEditor_Parent :: v_createHelpMenuItems (menu); EditorMenu_addCommand (menu, U"KlattGrid help", 0, menu_cb_KlattGridHelp); }
void structPointEditor :: v_createHelpMenuItems (EditorMenu menu) { PointEditor_Parent :: v_createHelpMenuItems (menu); EditorMenu_addCommand (menu, L"PointEditor help", '?', menu_cb_PointEditorHelp); }
void structTableEditor :: v_createHelpMenuItems (EditorMenu menu) { TableEditor_Parent :: v_createHelpMenuItems (menu); EditorMenu_addCommand (menu, U"TableEditor help", U'?', menu_cb_TableEditorHelp); }
void structSpectrumEditor :: v_createMenuItems_view (EditorMenu menu) { EditorMenu_addCommand (menu, L"Set dynamic range...", 0, menu_cb_setDynamicRange); EditorMenu_addCommand (menu, L"-- view settings --", 0, 0); SpectrumEditor_Parent :: v_createMenuItems_view (menu); }
void structAmplitudeTierEditor :: v_createHelpMenuItems (EditorMenu menu) { AmplitudeTierEditor_Parent :: v_createHelpMenuItems (menu); EditorMenu_addCommand (menu, U"AmplitudeTier help", 0, menu_cb_AmplitudeTierHelp); }
void structTimeSoundEditor :: v_createMenuItems_file_extract (EditorMenu menu) { EditorMenu_addCommand (menu, U"Extract to objects window:", GuiMenu_INSENSITIVE, menu_cb_ExtractSelectedSound_preserveTimes /* dummy */); if (d_sound.data || d_longSound.data) { publishPreserveButton = EditorMenu_addCommand (menu, U"Extract selected sound (preserve times)", 0, menu_cb_ExtractSelectedSound_preserveTimes); EditorMenu_addCommand (menu, U"Extract sound selection (preserve times)", Editor_HIDDEN, menu_cb_ExtractSelectedSound_preserveTimes); EditorMenu_addCommand (menu, U"Extract selection (preserve times)", Editor_HIDDEN, menu_cb_ExtractSelectedSound_preserveTimes); publishButton = EditorMenu_addCommand (menu, U"Extract selected sound (time from 0)", 0, menu_cb_ExtractSelectedSound_timeFromZero); EditorMenu_addCommand (menu, U"Extract sound selection (time from 0)", Editor_HIDDEN, menu_cb_ExtractSelectedSound_timeFromZero); EditorMenu_addCommand (menu, U"Extract selection (time from 0)", Editor_HIDDEN, menu_cb_ExtractSelectedSound_timeFromZero); EditorMenu_addCommand (menu, U"Extract selection", Editor_HIDDEN, menu_cb_ExtractSelectedSound_timeFromZero); if (d_sound.data) { publishWindowButton = EditorMenu_addCommand (menu, U"Extract selected sound (windowed)...", 0, menu_cb_ExtractSelectedSound_windowed); EditorMenu_addCommand (menu, U"Extract windowed sound selection...", Editor_HIDDEN, menu_cb_ExtractSelectedSound_windowed); EditorMenu_addCommand (menu, U"Extract windowed selection...", Editor_HIDDEN, menu_cb_ExtractSelectedSound_windowed); publishOverlapButton = EditorMenu_addCommand (menu, U"Extract selected sound for overlap...", 0, menu_cb_ExtractSelectedSoundForOverlap); } } }
void structCategoriesEditor :: v_createHelpMenuItems (EditorMenu menu) { CategoriesEditor_Parent :: v_createHelpMenuItems (menu); EditorMenu_addCommand (menu, U"CategoriesEditor help", '?', menu_cb_help); }
void structTimeSoundEditor :: v_createMenuItems_file_write (EditorMenu menu) { EditorMenu_addCommand (menu, U"Save to disk:", GuiMenu_INSENSITIVE, menu_cb_WriteWav /* dummy */); if (d_sound.data || d_longSound.data) { writeWavButton = EditorMenu_addCommand (menu, U"Save selected sound as WAV file...", 0, menu_cb_WriteWav); EditorMenu_addCommand (menu, U"Write selected sound to WAV file...", Editor_HIDDEN, menu_cb_WriteWav); EditorMenu_addCommand (menu, U"Write sound selection to WAV file...", Editor_HIDDEN, menu_cb_WriteWav); EditorMenu_addCommand (menu, U"Write selection to WAV file...", Editor_HIDDEN, menu_cb_WriteWav); if (d_sound.data) { d_saveAs24BitWavButton = EditorMenu_addCommand (menu, U"Save selected sound as 24-bit WAV file...", 0, menu_cb_SaveAs24BitWav); d_saveAs32BitWavButton = EditorMenu_addCommand (menu, U"Save selected sound as 32-bit WAV file...", 0, menu_cb_SaveAs32BitWav); } writeAiffButton = EditorMenu_addCommand (menu, U"Save selected sound as AIFF file...", 0, menu_cb_WriteAiff); EditorMenu_addCommand (menu, U"Write selected sound to AIFF file...", Editor_HIDDEN, menu_cb_WriteAiff); EditorMenu_addCommand (menu, U"Write sound selection to AIFF file...", Editor_HIDDEN, menu_cb_WriteAiff); EditorMenu_addCommand (menu, U"Write selection to AIFF file...", Editor_HIDDEN, menu_cb_WriteAiff); writeAifcButton = EditorMenu_addCommand (menu, U"Save selected sound as AIFC file...", 0, menu_cb_WriteAifc); EditorMenu_addCommand (menu, U"Write selected sound to AIFC file...", Editor_HIDDEN, menu_cb_WriteAifc); EditorMenu_addCommand (menu, U"Write sound selection to AIFC file...", Editor_HIDDEN, menu_cb_WriteAifc); EditorMenu_addCommand (menu, U"Write selection to AIFC file...", Editor_HIDDEN, menu_cb_WriteAifc); writeNextSunButton = EditorMenu_addCommand (menu, U"Save selected sound as Next/Sun file...", 0, menu_cb_WriteNextSun); EditorMenu_addCommand (menu, U"Write selected sound to Next/Sun file...", Editor_HIDDEN, menu_cb_WriteNextSun); EditorMenu_addCommand (menu, U"Write sound selection to Next/Sun file...", Editor_HIDDEN, menu_cb_WriteNextSun); EditorMenu_addCommand (menu, U"Write selection to Next/Sun file...", Editor_HIDDEN, menu_cb_WriteNextSun); writeNistButton = EditorMenu_addCommand (menu, U"Save selected sound as NIST file...", 0, menu_cb_WriteNist); EditorMenu_addCommand (menu, U"Write selected sound to NIST file...", Editor_HIDDEN, menu_cb_WriteNist); EditorMenu_addCommand (menu, U"Write sound selection to NIST file...", Editor_HIDDEN, menu_cb_WriteNist); EditorMenu_addCommand (menu, U"Write selection to NIST file...", Editor_HIDDEN, menu_cb_WriteNist); writeFlacButton = EditorMenu_addCommand (menu, U"Save selected sound as FLAC file...", 0, menu_cb_WriteFlac); EditorMenu_addCommand (menu, U"Write selected sound to FLAC file...", Editor_HIDDEN, menu_cb_WriteFlac); EditorMenu_addCommand (menu, U"Write sound selection to FLAC file...", Editor_HIDDEN, menu_cb_WriteFlac); } }
void structFormantGridEditor :: v_createMenus () { FormantGridEditor_Parent :: v_createMenus (); EditorMenu menu = Editor_addMenu (this, U"Formant", 0); our d_bandwidthsToggle = EditorMenu_addCommand (menu, U"Show bandwidths", GuiMenu_CHECKBUTTON, menu_cb_showBandwidths); EditorMenu_addCommand (menu, U"Set formant range...", 0, menu_cb_setFormantRange); EditorMenu_addCommand (menu, U"Set bandwidth range...", 0, menu_cb_setBandwidthRange); EditorMenu_addCommand (menu, U"-- select formant --", 0, nullptr); EditorMenu_addCommand (menu, U"Select first", '1', menu_cb_selectFirst); EditorMenu_addCommand (menu, U"Select second", '2', menu_cb_selectSecond); EditorMenu_addCommand (menu, U"Select third", '3', menu_cb_selectThird); EditorMenu_addCommand (menu, U"Select fourth", '4', menu_cb_selectFourth); EditorMenu_addCommand (menu, U"Select fifth", '5', menu_cb_selectFifth); EditorMenu_addCommand (menu, U"Select sixth", '6', menu_cb_selectSixth); EditorMenu_addCommand (menu, U"Select seventh", '7', menu_cb_selectSeventh); EditorMenu_addCommand (menu, U"Select eighth", '8', menu_cb_selectEighth); EditorMenu_addCommand (menu, U"Select ninth", '9', menu_cb_selectNinth); EditorMenu_addCommand (menu, U"Select formant or bandwidth...", 0, menu_cb_selectFormantOrBandwidth); menu = Editor_addMenu (this, U"Point", 0); EditorMenu_addCommand (menu, U"Add point at cursor", 'T', menu_cb_addPointAtCursor); EditorMenu_addCommand (menu, U"Add point at...", 0, menu_cb_addPointAt); EditorMenu_addCommand (menu, U"-- remove point --", 0, nullptr); EditorMenu_addCommand (menu, U"Remove point(s)", GuiMenu_OPTION + 'T', menu_cb_removePoints); if (our v_hasSourceMenu ()) { menu = Editor_addMenu (this, U"Source", 0); EditorMenu_addCommand (menu, U"Pitch settings...", 0, menu_cb_pitchSettings); //EditorMenu_addCommand (menu, U"Phonation settings...", 0, menu_cb_phonationSettings); } }
void structButtonEditor :: v_createHelpMenuItems (EditorMenu menu) { ButtonEditor_Parent :: v_createHelpMenuItems (menu); EditorMenu_addCommand (menu, U"ButtonEditor help", '?', menu_cb_ButtonEditorHelp); }