~ubuntu-branches/debian/sid/imagination/sid

« back to all changes in this revision

Viewing changes to src/imagination.h

  • Committer: Bazaar Package Importer
  • Author(s): Andrew Starr-Bochicchio
  • Date: 2011-05-19 13:22:01 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20110519132201-mdtrnrcxkl4vs0ha
Tags: 3.0-1
* New upstream release (Closes: #627240).
 - Fixes inverted tooltips in the toolbar (Closes: #599442).
 - Adds updated Brazilian Portuguese (pt_BR) translation.
   Thanks to Sérgio Cipolla (Closes: #599448).
* imagination.install: Don't install la files (Closes: #621684).
* Drop debian/README.source. Not needed with source
  version 3.0 (quilt).
* Bump Standards-Version to 3.9.2, no changes needed.
* debian/rules: Convert to minimal dh 7 style rules file.
* Drop debian/patches/20_lang-zh_TW.patch: zh_TW translation
  have been added upstream. 
* Update debian/patches/15_PLUGINS_INSTALLED.patch and
  debian/patches/10_link_math_lib.patch for new release.
* debian/{control, rules}: Maintain the different Ubuntu and
  Debian recommends in the same source package using dpkg-vendor
  and a ${dist:Recommends} substvar. Thanks to Alessio Treglia.
  (Closes: #627246)
* debian/copyright: Minor tweaks to bring up to rev 174
  of Dep 5.
* debian/control: Update suggests for libavutil-extra-50.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 
28
28
/* Transition preview frame rate. I decided to use 25 fps, which
29
29
 * should be handled on time by most machines. */
30
 
#define PREVIEW_FPS 15
 
30
#define PREVIEW_FPS_STEP       5
 
31
#define PREVIEW_FPS_MIN        5
 
32
#define PREVIEW_FPS_NO_PRESETS 6
 
33
#define PREVIEW_FPS_DEFAULT    15
31
34
 
32
35
/* The transition speed is defined as a duration in seconds. */
33
36
#define FAST    1
103
106
                                                                   gint         posx,
104
107
                                                                   gint         posy,
105
108
                                                                   gdouble      progress,
106
 
                                                                   gdouble     *font_color );
 
109
                                                                   gdouble     *font_color,
 
110
                                   gdouble     *font_bgcolor );
107
111
 
108
112
 
109
113
/* ****************************************************************************
153
157
        gchar    *o_filename; /* Filename of the image that slide represents */
154
158
        gchar    *r_filename; /* o_filename, rotated according to angle */
155
159
        ImgAngle  angle;      /* Angle of rotated image */
 
160
    gboolean  load_ok;    /* handle loading problems (file not found, format unknown...) */
 
161
    gchar    *original_filename; /* Filename as loaded from the project file */
 
162
 
156
163
 
157
164
        /* Fields that are filled if we create slide in memory */
158
165
        gint    gradient;         /* Gradient type */
176
183
        gint   cur_point; /* Currently active stop point */
177
184
 
178
185
        /* Subtitle variables */
179
 
        gchar                *subtitle;      /* Subtitle text */
180
 
        TextAnimationFunc     anim;          /* Animation functions */
181
 
        gint                  anim_id;       /* Animation id */
182
 
        gint                  anim_duration; /* Duration of animation */
183
 
        ImgSubPos             position;      /* Final position of subtitle */
184
 
        ImgRelPlacing         placing;       /* Relative placing */
185
 
        PangoFontDescription *font_desc;     /* Font description */
186
 
        gdouble               font_color[4]; /* Font color (RGBA format) */
 
186
        gchar                *subtitle;        /* Subtitle text */
 
187
        TextAnimationFunc     anim;            /* Animation functions */
 
188
        gint                  anim_id;         /* Animation id */
 
189
        gint                  anim_duration;   /* Duration of animation */
 
190
        ImgSubPos             position;        /* Final position of subtitle */
 
191
        ImgRelPlacing         placing;         /* Relative placing */
 
192
        PangoFontDescription *font_desc;       /* Font description */
 
193
        gdouble               font_color[4];   /* Font color (RGBA format) */
 
194
    gdouble               font_bgcolor[4]; /* Font background color (RGBA format) */
187
195
};
188
196
 
189
197
typedef struct _img_window_struct img_window_struct;
193
201
        GtkWidget       *imagination_window;    // Main window
194
202
        GtkAccelGroup *accel_group;
195
203
        GtkWidget       *open_menu;
 
204
    GtkWidget   *close_menu;
 
205
    GtkWidget   *import_project_menu;
196
206
        GtkWidget       *save_menu;
197
207
        GtkWidget       *save_as_menu;
198
208
        GtkWidget       *open_button;
220
230
        GtkWidget       *statusbar;
221
231
        GtkWidget       *progress_bar;
222
232
        GtkWidget       *image_area;
 
233
        GtkWidget       *video_format_combo;
 
234
        GtkWidget       *video_size_combo;
223
235
        guint           context_id;
224
236
        GtkListStore *thumbnail_model;
225
237
        gchar           *current_dir;
251
263
        GtkWidget *sub_textview;      /* Text view */
252
264
        GtkWidget *sub_font;          /* Font button */
253
265
        GtkWidget *sub_color;         /* Color selector button */
 
266
    GtkWidget *sub_bgcolor;       /* Background Color selector button */
254
267
        GtkWidget *sub_anim;          /* Animation combo box */
255
268
        GtkWidget *sub_anim_duration; /* Animation duration spin button */
256
269
        GtkWidget *sub_placing;       /* Placing combo box */
281
294
 
282
295
        /* Project related variables */
283
296
        gchar       *project_filename;          // project name for saving
 
297
        gchar       *project_current_dir;
284
298
        gboolean        distort_images;
285
299
        gboolean        project_is_modified;
 
300
        gchar           video_format;
286
301
        gint        video_size[2];
287
302
        gdouble     video_ratio;
288
303
        gdouble     background_color[3];
377
392
        GtkListStore *music_file_liststore;
378
393
        GtkWidget       *music_time_data;
379
394
        GPid            play_child_pid;
 
395
    
 
396
    /* Messages related stuf */
 
397
    GtkTextBuffer  *message_buffer;
 
398
    GtkWidget      *message_label;
 
399
    gint            message_page;
380
400
 
381
401
        /* Application related stuff */
382
402
        gdouble  image_area_zoom; /* Zoom to be applied to image area */
383
403
        gdouble  overview_zoom;   /* Zoom to be applied in overview mode */
 
404
        gint     preview_fps;     /* Preview frame rate */
384
405
        gboolean low_quality;     /* Preview quality:
385
406
                                                                  TRUE  - preview in low-res
386
407
                                                                  FALSE - preview in hi-res */