static void gui_button_cb_saveAndClose (TextEditor me, GuiButtonEvent /* event */) { GuiThing_hide (my dirtyCloseDialog); if (my name [0]) { try { saveDocument (me, & my file); } catch (MelderError) { Melder_flushError (); return; } closeDocument (me); } else { menu_cb_saveAs (me, Editor_getMenuCommand (me, U"File", U"Save as..."), nullptr, 0, nullptr, nullptr, nullptr); } }
static void gui_button_cb_saveAndNew (EditorCommand cmd, GuiButtonEvent /* event */) { TextEditor me = (TextEditor) cmd -> d_editor; GuiThing_hide (my dirtyNewDialog); if (my name [0]) { try { saveDocument (me, & my file); } catch (MelderError) { Melder_flushError (); return; } newDocument (me); } else { menu_cb_saveAs (me, cmd, nullptr, 0, nullptr, nullptr, nullptr); } }
static void gui_cb_goAway (Thing /* boss */) { GuiThing_hide (theLogo.form); }
static void gui_drawingarea_cb_click (Thing /* me */, GuiDrawingArea_ClickEvent /* event */) { GuiThing_hide (theLogo.form); }
static void logo_timeOut (XtPointer closure, XtIntervalId *id) { (void) closure; (void) id; GuiThing_hide (theLogo.form); }
static void gui_cb_goAway (I) { (void) void_me; GuiThing_hide (theLogo.form); }
static void gui_drawingarea_cb_click (I, GuiDrawingAreaClickEvent event) { (void) void_me; (void) event; GuiThing_hide (theLogo.form); }
static void gui_button_cb_discardAndClose (TextEditor me, GuiButtonEvent /* event */) { GuiThing_hide (my dirtyCloseDialog); closeDocument (me); }
static void gui_button_cb_cancelClose (TextEditor me, GuiButtonEvent /* event */) { GuiThing_hide (my dirtyCloseDialog); }
static void gui_button_cb_discardAndNew (EditorCommand cmd, GuiButtonEvent /* event */) { TextEditor me = (TextEditor) cmd -> d_editor; GuiThing_hide (my dirtyNewDialog); newDocument (me); }
static void gui_button_cb_cancelNew (EditorCommand cmd, GuiButtonEvent /* event */) { TextEditor me = (TextEditor) cmd -> d_editor; GuiThing_hide (my dirtyNewDialog); }
static void gui_button_cb_discardAndOpen (EditorCommand cmd, GuiButtonEvent /* event */) { TextEditor me = (TextEditor) cmd -> d_editor; GuiThing_hide (my dirtyOpenDialog); cb_showOpen (cmd); }