diff options
author | Jeremiah Benham <jjbenham@chicagoguitar.com> | 2011-02-08 12:30:09 -0600 |
---|---|---|
committer | Jeremiah Benham <jjbenham@chicagoguitar.com> | 2011-02-08 12:30:09 -0600 |
commit | b0c34257000b049b45440a99da15dc17f10b9a9b (patch) | |
tree | 2229338cab4d8290d340d8be301b3a7680b8736f | |
parent | 5d2d56bb8978dcfa82087a3eb83fbb1ccc019e29 (diff) |
moved export_*_action to file.c/h
-rw-r--r-- | src/file.c | 66 | ||||
-rw-r--r-- | src/file.h | 11 | ||||
-rw-r--r-- | src/print.c | 66 | ||||
-rw-r--r-- | src/print.h | 7 |
4 files changed, 75 insertions, 75 deletions
@@ -1442,3 +1442,69 @@ void paste_clipboard(GtkAction * action, gpointer param) { gtk_clipboard_request_text (clipboard, (GtkClipboardTextReceivedFunc) selection_received, NULL); } + +/** + * Export mudela callback prompts for filename + * + */ +void +export_mudela_action (GtkAction *action, gpointer param) +{ + DenemoGUI *gui = Denemo.gui; + file_export(gui, MUDELA_FORMAT); +} + +/** + * Export pdf callback prompts for filename + * + */ +void +export_pdf_action (GtkAction *action, gpointer param) +{ + DenemoGUI *gui = Denemo.gui; + file_export(gui, PDF_FORMAT); +} + +/** + * Export pdf callback prompts for filename + * + */ +void +export_png_action (GtkAction *action, gpointer param) +{ + DenemoGUI *gui = Denemo.gui; + file_export(gui, PNG_FORMAT); +} + +/** + * Export ABC callback prompts for filename + * + */ +void +export_ABC_action (GtkAction *action, gpointer param) +{ + DenemoGUI *gui = Denemo.gui; + file_export(gui, ABC_FORMAT); +} + +/** + * Export MIDI callback prompts for filename + * + */ +void +export_midi_action (GtkAction *action, gpointer param) +{ + DenemoGUI *gui = Denemo.gui; + file_export(gui, MIDI_FORMAT); +} + +/** + * Export pdf callback prompts for filename + * + */ +void +export_csound_action (GtkAction *action, gpointer param) +{ + DenemoGUI *gui = Denemo.gui; + file_export(gui, CSOUND_FORMAT); +} @@ -75,8 +75,15 @@ file_saveas (DenemoGUI *gui, DenemoSaveType as_template); void template_save (GtkAction * action, gpointer param); void -file_copy_save (GtkAction * action, gpointer param); -void +file_copy_save (GtkAction * action, gpointer param); +void export_mudela_action (GtkAction *action, gpointer param); +void export_pdf_action (GtkAction *action, gpointer param); +void export_png_action (GtkAction *action, gpointer param); +void export_midi_action (GtkAction *action, gpointer param); +void export_csound_action (GtkAction *action, gpointer param); +void export_pdf (gchar *filename, DenemoGUI * gui); +void export_png (gchar *filename, gboolean show_preview, DenemoGUI * gui); +void paste_clipboard(GtkAction * action, gpointer param); void diff --git a/src/print.c b/src/print.c index bbfa27c3..21db5231 100644 --- a/src/print.c +++ b/src/print.c @@ -843,72 +843,6 @@ print_and_view(gchar **arguments) { } } -/** - * Export mudela callback prompts for filename - * - */ -void -export_mudela_action (GtkAction *action, gpointer param) -{ - DenemoGUI *gui = Denemo.gui; - file_export(gui, MUDELA_FORMAT); -} - -/** - * Export pdf callback prompts for filename - * - */ -void -export_pdf_action (GtkAction *action, gpointer param) -{ - DenemoGUI *gui = Denemo.gui; - file_export(gui, PDF_FORMAT); -} - -/** - * Export pdf callback prompts for filename - * - */ -void -export_png_action (GtkAction *action, gpointer param) -{ - DenemoGUI *gui = Denemo.gui; - file_export(gui, PNG_FORMAT); -} - -/** - * Export ABC callback prompts for filename - * - */ -void -export_ABC_action (GtkAction *action, gpointer param) -{ - DenemoGUI *gui = Denemo.gui; - file_export(gui, ABC_FORMAT); -} - -/** - * Export MIDI callback prompts for filename - * - */ -void -export_midi_action (GtkAction *action, gpointer param) -{ - DenemoGUI *gui = Denemo.gui; - file_export(gui, MIDI_FORMAT); -} - -/** - * Export pdf callback prompts for filename - * - */ -void -export_csound_action (GtkAction *action, gpointer param) -{ - DenemoGUI *gui = Denemo.gui; - file_export(gui, CSOUND_FORMAT); -} - // Displaying Print Preview static changecount = -1;//changecount when last refreshed static gboolean selecting = FALSE; diff --git a/src/print.h b/src/print.h index 7e07c7c4..b7fe6d55 100644 --- a/src/print.h +++ b/src/print.h @@ -16,13 +16,6 @@ printpart_cb(GtkAction *action, gpointer param); gchar * get_printfile_pathbasename(void); void viewer(DenemoGUI *gui); -void export_mudela_action (GtkAction *action, gpointer param); -void export_pdf_action (GtkAction *action, gpointer param); -void export_png_action (GtkAction *action, gpointer param); -void export_midi_action (GtkAction *action, gpointer param); -void export_csound_action (GtkAction *action, gpointer param); -void export_pdf (gchar *filename, DenemoGUI * gui); -void export_png (gchar *filename, gboolean show_preview, DenemoGUI * gui); void install_printpreview(DenemoGUI *gui, GtkWidget *vbox); void refresh_print_view(gboolean interactive); |