1
/* Copyright (C) 2010 Lucas Baudin
3
* This file is part of Ella Project.
5
* Ella Project is free software : you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation, either version 3 of the License, or
8
* (at your option) any later version.
10
* Ella Project is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY ; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with Ella Project. If not, see <http ://www.gnu.org/licenses/>.
18
#ifndef H_FLASH_20101130
19
#define H_FLASH_20101130
22
#include "editor/editor.h"
23
#include "filesfuncs.h"
24
#include "callbacks.h"
25
#include "export/flash_utils.h"
26
#include "export/flash_items.h"
27
#include "ella-files.h"
29
/** Write the header to the file f to be compiled afterwards by swfc. */
30
void flash_write_header(FILE* f,
36
GdkColor couleur_fond,
40
/** Main function which is called by the menu File -> export as flash animation.
42
void export_flash(GtkWidget * win, gboolean preview, gdouble mx, gdouble my, gint total_frames);
44
/** Open the flash file (.sc) and init some variables. */
45
FILE* flash_open_file(gchar *nom, GtkWidget * w);
47
/** Write the footer and close the file. */
48
void flash_close_file(FILE* f, gint max_frames);
50
void flash_export_layers(FILE *f,
51
GtkWidget *pListLayers,
57
void flash_item_on_stack(FILE *f, gint calque,
58
guint cell, GSList *pile, GooCanvasItem *list, GSList *list_im,
59
guint effets, gint layer_type,
63
void flash_export_item(FILE *f, gint calque,guint cell,
64
GSList *pile, GooCanvasItem *item,GSList *list_im, guint effets,