1 /* commandfuncs.h 2 * header file for functions invoked by user keypresses 3 * 4 * for Denemo, a gtk+ frontend to GNU Lilypond 5 * (c) 1999-2005 Matthew Hiller 6 */ 7 8 9 #ifndef COMMANDFUNCSH 10 #define COMMANDFUNCSH 11 #include <denemo/denemo.h> 12 13 void nudgerightward (DenemoProject * gui); 14 15 void nudge_downward (DenemoProject * gui); 16 17 void set_width_to_work_with (DenemoProject * gui); 18 19 void adjustmeasurewidth (DenemoMovement * si, gint amount); 20 21 void setcurrents (DenemoMovement * si); 22 23 void adjuststaffheight (DenemoMovement * si, gint amount); 24 25 void measureleft (GtkAction * action, DenemoScriptParam * param); 26 27 void measureright (GtkAction * action, DenemoScriptParam * param); 28 29 void movetomeasureleft (GtkAction * action, DenemoScriptParam * param); 30 31 void movetomeasureright (GtkAction * action, DenemoScriptParam * param); 32 void movetostart (GtkAction * action, DenemoScriptParam * param); 33 void movetoend (GtkAction * action, DenemoScriptParam * param); 34 gboolean swapstaffs (GtkAction * action, DenemoScriptParam * param); 35 gboolean splitstaffs (GtkAction * action, DenemoScriptParam * param); 36 gboolean joinstaffs (GtkAction * action, DenemoScriptParam * param); 37 38 gboolean swapmovements (GtkAction * action, DenemoScriptParam * param); 39 40 gboolean staffup (GtkAction * action, DenemoScriptParam * param); 41 42 gboolean staffdown (GtkAction * action, DenemoScriptParam * param); 43 44 gboolean movetostaffup (GtkAction * action, DenemoScriptParam * param); 45 46 gboolean movetostaffdown (GtkAction * action, DenemoScriptParam * param); 47 48 gboolean voiceup (GtkAction * action, DenemoScriptParam * param); 49 50 gboolean voicedown (GtkAction * action, DenemoScriptParam * param); 51 52 gboolean movetovoiceup (GtkAction * action, DenemoScriptParam * param); 53 54 gboolean movetovoicedown (GtkAction * action, DenemoScriptParam * param); 55 56 57 58 gboolean cursorleft (GtkAction * action, DenemoScriptParam * param); 59 60 gboolean cursorright (GtkAction * action, DenemoScriptParam * param); 61 62 gboolean movecursorleft (GtkAction * action, DenemoScriptParam * param); 63 64 gboolean movecursorright (GtkAction * action, DenemoScriptParam * param); 65 66 gboolean cursor_to_next_object (gboolean within_measure, gboolean stopping_at_empty); 67 gboolean cursor_to_prev_object (gboolean within_measure, gboolean stopping_at_empty); 68 gboolean cursor_to_next_selected_object (void); 69 gboolean cursor_to_prev_selected_object (void); 70 gboolean cursor_to_next_standalone_directive (void); 71 gboolean cursor_to_prev_standalone_directive (void); 72 gboolean cursor_to_next_standalone_in_measure (void); 73 gboolean cursor_to_prev_standalone_in_measure (void); 74 75 gboolean cursor_to_next_chord (void); 76 gboolean cursor_to_prev_chord (void); 77 gboolean cursor_to_next_chord_in_measure (void); 78 gboolean cursor_to_prev_chord_in_measure (void); 79 gboolean cursor_to_next_note (void); 80 gboolean cursor_to_prev_note (void); 81 gboolean cursor_to_nth_note_height(gint n); 82 gboolean cursor_to_next_note_height (void); 83 void cursorup (GtkAction * action, DenemoScriptParam * param); 84 85 void cursordown (GtkAction * action, DenemoScriptParam * param); 86 87 void shiftcursor (DenemoProject * gui, gint note_value); 88 void edit_pitch (gint note_value, gint enshift); 89 void setenshift (DenemoMovement * si, gint enshift); 90 91 void changeduration (DenemoMovement * si, gint duration); 92 93 gboolean delete_chordnote (DenemoProject * gui); 94 95 gboolean insert_chordnote (DenemoProject * gui); 96 97 gboolean insert_or_delete_chordnote (gint enshift); 98 99 void incrementenshift (DenemoProject * gui, gint direction); 100 101 void change_stem_directive (DenemoMovement * si, enum stemdirections amount); 102 103 void changedots (DenemoMovement * si, gint amount); 104 105 106 void appendmeasures (DenemoMovement * si, gint number); 107 108 void insertclone (DenemoProject * gui); 109 110 void toend (GtkAction * action, DenemoScriptParam * param); 111 112 void tohome (GtkAction * action, DenemoScriptParam * param); 113 114 115 void inserttuplet (DenemoMovement * si, tuplet_type type); 116 117 void object_insert (DenemoProject * gui, DenemoObject * mudela_obj_new); 118 119 void stem_directive_insert (GtkAction * action, DenemoScriptParam * param); 120 121 void toggle_begin_slur (GtkAction * action, DenemoScriptParam* param); 122 123 void toggle_end_slur (GtkAction * action, DenemoScriptParam* param); 124 125 void insertgrace (DenemoProject * gui); 126 127 void toggle_start_crescendo (GtkAction * action, DenemoScriptParam* param); 128 129 void toggle_end_crescendo (GtkAction * action, DenemoScriptParam* param); 130 131 void toggle_start_diminuendo (GtkAction * action, DenemoScriptParam* param); 132 133 void toggle_end_diminuendo (GtkAction * action, DenemoScriptParam* param); 134 135 void insertion_point (DenemoMovement * si); 136 void insertion_point_for_type (DenemoMovement * si, DenemoObjType type); 137 138 void caution (DenemoMovement * si); 139 140 void displayhelper (DenemoProject * si); 141 142 gboolean auto_save_document_timeout (DenemoProject * gui); 143 144 145 146 void delete_staff_current (GtkAction * action, DenemoScriptParam * param); 147 void delete_staff_before (GtkAction * action, DenemoScriptParam * param); 148 void delete_staff_after (GtkAction * action, DenemoScriptParam * param); 149 150 void appendmeasurestoentirescore (DenemoMovement * si, gint number); 151 152 void insertmeasureafter (GtkAction* action, DenemoScriptParam* param); 153 void addmeasureafter (GtkAction* action, DenemoScriptParam* param); 154 void insertmeasurebefore (GtkAction* action, DenemoScriptParam* param); 155 156 void deletemeasure (GtkAction* action, DenemoScriptParam* param); 157 void deletemeasureallstaffs (GtkAction* action, DenemoScriptParam* param); 158 void deleteobject (GtkAction* action, DenemoScriptParam* param); 159 160 161 void insert_note_following_pattern (DenemoProject * gui); 162 163 void beamandstemdirhelper (DenemoMovement * si); 164 165 void nextrhythm (GtkAction* action, DenemoScriptParam* param); 166 void insert_rhythm_pattern (GtkAction* action, DenemoScriptParam* param); 167 void toggle_tie (GtkAction * action, DenemoScriptParam * param); 168 gint get_prevailing_duration (void); 169 void dnm_inserttuplet (DenemoProject * gui, tuplet_type type); 170 gboolean next_editable_note (void); 171 gboolean next_insert_or_editable_note (void); 172 gboolean insert_marked_midi_note (void); 173 #endif /*COMMANDFUNCSH */ 174