summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremiah Benham <jjbenham@chicagoguitar.com>2011-02-08 12:30:09 -0600
committerJeremiah Benham <jjbenham@chicagoguitar.com>2011-02-08 12:30:09 -0600
commitb0c34257000b049b45440a99da15dc17f10b9a9b (patch)
tree2229338cab4d8290d340d8be301b3a7680b8736f
parent5d2d56bb8978dcfa82087a3eb83fbb1ccc019e29 (diff)
moved export_*_action to file.c/h
-rw-r--r--src/file.c66
-rw-r--r--src/file.h11
-rw-r--r--src/print.c66
-rw-r--r--src/print.h7
4 files changed, 75 insertions, 75 deletions
diff --git a/src/file.c b/src/file.c
index dbf640b0..846a0a09 100644
--- a/src/file.c
+++ b/src/file.c
@@ -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);
+}
diff --git a/src/file.h b/src/file.h
index e45153ab..89e82677 100644
--- a/src/file.h
+++ b/src/file.h
@@ -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);