~pantheon-photos/pantheon-photos/trunk

« back to all changes in this revision

Viewing changes to src/Resources.vala

  • Committer: RabbitBot
  • Author(s): Maddie May, madelynn-r-may
  • Date: 2014-08-27 06:02:55 UTC
  • mfrom: (2546.1.21 fix-1332978)
  • Revision ID: rabbitbot-20140827060255-4619a5y4s9mqk8qs
Moves all photo metadata context menu editors to a right sidebar

Show diffs side-by-side

added added

removed removed

Lines of Context:
81
81
public const string IMPORT = "shotwell-import";
82
82
public const string IMPORT_ALL = "shotwell-import-all";
83
83
public const string ENHANCE = "shotwell-auto-enhance";
 
84
public const string HIDE_PANE = "pane-hide-symbolic";
 
85
public const string SHOW_PANE = "pane-show-symbolic";
84
86
public const string CROP_PIVOT_RETICLE = "shotwell-crop-pivot-reticle";
85
87
public const string PUBLISH = "applications-internet";
 
88
public const string EDIT_FLAG= "edit-flag";
86
89
public const string MERGE = "shotwell-merge-events";
87
90
 
88
91
public const string ICON_APP = "multimedia-photo-manager";
129
132
public const string ICON_VIDEOS_PAGE = "videos-page";
130
133
public const string ICON_FLAGGED_PAGE = "flag-page";
131
134
public const string ICON_FLAGGED_TRINKET = "flag-trinket.png";
 
135
public const string ICON_EDIT_FLAGGED = "filter-flagged";
132
136
 
133
137
public const string ROTATE_CW_MENU = _("Rotate _Right");
134
138
public const string ROTATE_CW_LABEL = _("Rotate");
233
237
public const string RATE_REJECTED_PROGRESS = _("Setting as rejected");
234
238
public const string RATE_REJECTED_TOOLTIP = _("Set rating to rejected");
235
239
 
 
240
public const string RATE_UNRATED_DISPLAY_LABEL = _("Rejected");
 
241
 
236
242
public const string DISPLAY_REJECTED_ONLY_MENU = _("Rejected Only");
237
243
public const string DISPLAY_REJECTED_ONLY_LABEL = _("Rejected Only");
238
244
public const string DISPLAY_REJECTED_ONLY_TOOLTIP = _("Show only rejected photos");
258
264
 
259
265
public const string EXPORT_MENU = _("_Export...");
260
266
 
 
267
public const string TOGGLE_METAPANE_MENU = _("_Show info panel");
 
268
public const string TOGGLE_METAPANE_LABEL = _("Show info panel");
 
269
public const string TOGGLE_METAPANE_TOOLTIP = _("Show info panel");
 
270
 
 
271
public const string UNTOGGLE_METAPANE_MENU = _("_Hide info panel");
 
272
public const string UNTOGGLE_METAPANE_LABEL = _("Hide info panel");
 
273
public const string UNTOGGLE_METAPANE_TOOLTIP = _("Hide info panel");
 
274
 
261
275
public const string PRINT_MENU = _("_Print...");
262
276
 
263
277
public const string PUBLISH_MENU = _("Pu_blish...");
302
316
public const string FIND_TOOLTIP = _("Find an image by typing text that appears in its name or tags");
303
317
 
304
318
public const string FLAG_MENU = _("_Flag");
305
 
 
 
319
public const string FLAG_LABEL = _("Flag");
306
320
public const string UNFLAG_MENU = _("Un_flag");
 
321
public const string UNFLAG_LABEL = _("Unflag");
 
322
 
 
323
public const string BASIC_PROPERTIES_LABEL = _("Image Details");
 
324
public const string EXTENDED_PROPERTIES_LABEL = _("Extended Details");
 
325
public const string LIBRARY_PROPERTIES_LABEL = _("Library Details");
307
326
 
308
327
public string launch_editor_failed (Error err) {
309
328
    return _("Unable to launch editor: %s").printf (err.message);
431
450
    }
432
451
}
433
452
 
 
453
public int rating_int (Rating rating) {
 
454
        switch (rating) {
 
455
            case Rating.REJECTED:
 
456
                return -1;
 
457
            case Rating.UNRATED:
 
458
                return 0;
 
459
            case Rating.ONE:
 
460
                return 1;
 
461
            case Rating.TWO:
 
462
                return 2;
 
463
            case Rating.THREE:
 
464
                return 3;
 
465
            case Rating.FOUR:
 
466
                return 4;
 
467
            case Rating.FIVE:
 
468
                return 5;
 
469
            default:
 
470
                return 0;
 
471
        }
 
472
}
 
473
 
 
474
public Rating int_to_rating (int rating) {
 
475
    switch (rating) {
 
476
    case -1:
 
477
        return Rating.REJECTED;
 
478
    case 0:
 
479
        return Rating.UNRATED;
 
480
    case 1:
 
481
        return Rating.ONE;
 
482
    case 2:
 
483
        return Rating.TWO;
 
484
    case 3:
 
485
        return Rating.THREE;
 
486
    case 4:
 
487
        return Rating.FOUR;
 
488
    case 5:
 
489
        return Rating.FIVE;
 
490
    default:
 
491
        return 0;
 
492
    }
 
493
}
 
494
 
434
495
private unowned string rating_combo_box (Rating rating) {
435
496
    switch (rating) {
436
497
    case Rating.REJECTED: