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 structHyperPage :: v_createMenus () { HyperPage_Parent :: v_createMenus (); Editor_addCommand (this, L"File", L"PostScript settings...", 0, menu_cb_postScriptSettings); #ifdef macintosh Editor_addCommand (this, L"File", L"Page setup...", 0, menu_cb_pageSetup); #endif Editor_addCommand (this, L"File", L"Print page...", 'P', menu_cb_print); Editor_addCommand (this, L"File", L"-- close --", 0, NULL); if (v_hasHistory ()) { Editor_addMenu (this, L"Go to", 0); Editor_addCommand (this, L"Go to", L"Search for page...", 0, menu_cb_searchForPage); Editor_addCommand (this, L"Go to", L"Back", GuiMenu_OPTION | GuiMenu_LEFT_ARROW, menu_cb_back); Editor_addCommand (this, L"Go to", L"Forward", GuiMenu_OPTION | GuiMenu_RIGHT_ARROW, menu_cb_forth); Editor_addCommand (this, L"Go to", L"-- page --", 0, NULL); Editor_addCommand (this, L"Go to", L"Page up", GuiMenu_PAGE_UP, menu_cb_pageUp); Editor_addCommand (this, L"Go to", L"Page down", GuiMenu_PAGE_DOWN, menu_cb_pageDown); } Editor_addMenu (this, L"Font", 0); Editor_addCommand (this, L"Font", L"Font size...", 0, menu_cb_fontSize); fontSizeButton_10 = Editor_addCommand (this, L"Font", L"10", GuiMenu_CHECKBUTTON, menu_cb_10); fontSizeButton_12 = Editor_addCommand (this, L"Font", L"12", GuiMenu_CHECKBUTTON, menu_cb_12); fontSizeButton_14 = Editor_addCommand (this, L"Font", L"14", GuiMenu_CHECKBUTTON, menu_cb_14); fontSizeButton_18 = Editor_addCommand (this, L"Font", L"18", GuiMenu_CHECKBUTTON, menu_cb_18); fontSizeButton_24 = Editor_addCommand (this, L"Font", L"24", GuiMenu_CHECKBUTTON, menu_cb_24); Editor_addCommand (this, L"Font", L"-- font --", 0, NULL); Editor_addCommand (this, L"Font", L"Font...", 0, menu_cb_font); }
void structPointEditor :: v_createMenus () { PointEditor_Parent :: v_createMenus (); Editor_addCommand (this, L"Query", L"-- query jitter --", 0, NULL); Editor_addCommand (this, L"Query", L"Get jitter (local)", 0, menu_cb_getJitter_local); Editor_addCommand (this, L"Query", L"Get jitter (local, absolute)", 0, menu_cb_getJitter_local_absolute); Editor_addCommand (this, L"Query", L"Get jitter (rap)", 0, menu_cb_getJitter_rap); Editor_addCommand (this, L"Query", L"Get jitter (ppq5)", 0, menu_cb_getJitter_ppq5); Editor_addCommand (this, L"Query", L"Get jitter (ddp)", 0, menu_cb_getJitter_ddp); if (d_sound.data) { Editor_addCommand (this, L"Query", L"-- query shimmer --", 0, NULL); Editor_addCommand (this, L"Query", L"Get shimmer (local)", 0, menu_cb_getShimmer_local); Editor_addCommand (this, L"Query", L"Get shimmer (local, dB)", 0, menu_cb_getShimmer_local_dB); Editor_addCommand (this, L"Query", L"Get shimmer (apq3)", 0, menu_cb_getShimmer_apq3); Editor_addCommand (this, L"Query", L"Get shimmer (apq5)", 0, menu_cb_getShimmer_apq5); Editor_addCommand (this, L"Query", L"Get shimmer (apq11)", 0, menu_cb_getShimmer_apq11); Editor_addCommand (this, L"Query", L"Get shimmer (dda)", 0, menu_cb_getShimmer_dda); } Editor_addMenu (this, L"Point", 0); Editor_addCommand (this, L"Point", L"Add point at cursor", 'P', menu_cb_addPointAtCursor); Editor_addCommand (this, L"Point", L"Add point at...", 0, menu_cb_addPointAt); Editor_addCommand (this, L"Point", L"-- remove point --", 0, NULL); Editor_addCommand (this, L"Point", L"Remove point(s)", GuiMenu_OPTION + 'P', menu_cb_removePoints); }
void structPitchEditor :: v_createMenus () { PitchEditor_Parent :: v_createMenus (); Editor_addCommand (this, L"Edit", L"Change ceiling...", 0, menu_cb_setCeiling); Editor_addCommand (this, L"Edit", L"Path finder...", 0, menu_cb_pathFinder); Editor_addCommand (this, L"Query", L"-- pitch --", 0, NULL); Editor_addCommand (this, L"Query", L"Get pitch", GuiMenu_F5, menu_cb_getPitch); Editor_addMenu (this, L"Selection", 0); Editor_addCommand (this, L"Selection", L"Unvoice", 0, menu_cb_voiceless); Editor_addCommand (this, L"Selection", L"-- up and down --", 0, NULL); Editor_addCommand (this, L"Selection", L"Octave up", 0, menu_cb_octaveUp); Editor_addCommand (this, L"Selection", L"Fifth up", 0, menu_cb_fifthUp); Editor_addCommand (this, L"Selection", L"Fifth down", 0, menu_cb_fifthDown); Editor_addCommand (this, L"Selection", L"Octave down", 0, menu_cb_octaveDown); }
void structScriptEditor :: v_createMenus () { ScriptEditor_Parent :: v_createMenus (); if (editorClass) { Editor_addCommand (this, U"File", U"Add to menu...", 0, menu_cb_addToMenu); } else { Editor_addCommand (this, U"File", U"Add to fixed menu...", 0, menu_cb_addToFixedMenu); Editor_addCommand (this, U"File", U"Add to dynamic menu...", 0, menu_cb_addToDynamicMenu); } Editor_addCommand (this, U"File", U"-- close --", 0, NULL); Editor_addCommand (this, U"Edit", U"-- history --", 0, 0); Editor_addCommand (this, U"Edit", U"Clear history", 0, menu_cb_clearHistory); Editor_addCommand (this, U"Edit", U"Paste history", 'H', menu_cb_pasteHistory); Editor_addCommand (this, U"Convert", U"-- expand --", 0, 0); Editor_addCommand (this, U"Convert", U"Expand include files", 0, menu_cb_expandIncludeFiles); Editor_addMenu (this, U"Run", 0); Editor_addCommand (this, U"Run", U"Run", 'R', menu_cb_run); Editor_addCommand (this, U"Run", U"Run selection", 'T', menu_cb_runSelection); }