# -*- coding: utf-8 -*-
#
#  Copyright (C) 2013-2018 by Igor E. Novikov
#
#  This program is free software: you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation, either version 3 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program.  If not, see <http://www.gnu.org/licenses/>.

import wal

from sk1 import _
from sk1.resources import pdids

# ----- Text labels format: menu label, long description(optional)

LABELS = {
    pdids.SELECT_MODE: (_('Selection mode (Esc)'),),
    pdids.SHAPER_MODE: (_('Edit mode (Space)'),),
    pdids.ZOOM_MODE: (_('Zoom mode (F2)'),),
    pdids.FLEUR_MODE: (_('Fleur mode'),),
    pdids.LINE_MODE: (_('Create polyline'),),
    pdids.CURVE_MODE: (_('Create curve'),),
    pdids.RECT_MODE: (_('Create rectangle'),),
    pdids.ELLIPSE_MODE: (_('Create ellipse'),),
    pdids.TEXT_MODE: (_('Create text (F8)'),),
    pdids.POLYGON_MODE: (_('Create polygon'),),
    pdids.ZOOM_OUT_MODE: (_('Zoom out mode'),),
    pdids.MOVE_MODE: (_('Move mode'),),
    pdids.COPY_MODE: (_('Copy mode'),),
    pdids.GRADIENT_MODE: (_('Edit gradient'),),
    pdids.STROKE_MODE: (_('Stroke...'),),
    pdids.FILL_MODE: (_('Fill...'),),

    pdids.COPY_FILL: (_('Copy fill from...'),),
    pdids.COPY_STROKE: (_('Copy stroke from...'),),

    wal.ID_NEW: (_('&New'), _('New document')),
    pdids.ID_NEW_FROM_TEMPLATE: (
        _('New From Template...'), _('New document from template...')),
    wal.ID_OPEN: (_('&Open...'), _('Open document')),
    pdids.ID_CLEAR_LOG: (_('&Clear history'),),
    wal.ID_SAVE: (_('&Save'), _('Save document')),
    wal.ID_SAVEAS: (_('Save &As...'), _('Save document as...')),
    pdids.ID_SAVE_SEL: (
        _('Save Selected Only...'), _('Save selected objects only...')),
    pdids.ID_SAVEALL: (_('Save All'), _('Save all documents')),
    pdids.ID_IMPORT: (_('&Import...'), _('Import graphics...')),
    pdids.ID_EXPORT: (_('E&xport As...'), _('Export graphics as...')),
    wal.ID_CLOSE: (_('&Close'), _('Close document')),
    wal.ID_CLOSE_ALL: (_('Close All'), _('Close all documents')),
    pdids.ID_CLOSE_OTHERS: (_('Close Others'), _('Close other documents')),
    wal.ID_PRINT_SETUP: (_('Page Setup for Print...'),),
    wal.ID_PRINT: (_('&Print...'), _('Print document')),
    wal.ID_EXIT: (_('&Exit'), _('Exit application')),

    wal.ID_UNDO: (_('&Undo'),),
    wal.ID_REDO: (_('&Redo'),),
    pdids.ID_CLEAR_UNDO: (_('Clear undo history'),),
    wal.ID_CUT: (_('Cu&t'),),
    wal.ID_COPY: (_('&Copy'),),
    wal.ID_PASTE: (_('&Paste'),),
    wal.ID_DELETE: (_('&Delete'),),
    pdids.ID_DUPLICATE: (_('Duplicate'),),
    wal.ID_SELECTALL: (_('&Select All'),),
    pdids.ID_DESELECT: (_('D&eselect'),),
    pdids.ID_INV_SELECT: (_('&Invert selection'),),
    pdids.ID_VIEW_LOG: (_('&File history logs...'),),
    wal.ID_PROPERTIES: (_('Document properties...'),),
    wal.ID_PREFERENCES: (_('Preferences...'),),

    pdids.ID_STROKE_VIEW: (_('Stroke view'),),
    pdids.ID_DRAFT_VIEW: (_('Draft view'),),
    wal.ID_ZOOM_100: (_('Zoom 100%'),),
    wal.ID_ZOOM_IN: (_('Zoom in'),),
    wal.ID_ZOOM_OUT: (_('Zoom out'),),
    pdids.ID_PREV_ZOOM: (_('Previous zoom'),),
    pdids.ID_ZOOM_PAGE: (_('Fit zoom to page'),),
    wal.ID_ZOOM_FIT: (_('Zoom selected'),),
    pdids.ID_SHOW_GRID: (_('Show grid'),),
    pdids.ID_SHOW_GUIDES: (_('Show guides'),),
    pdids.ID_SHOW_SNAP: (_('Show active snapping'),),
    pdids.ID_SHOW_PAGE_BORDER: (_('Show page border'),),
    pdids.ID_SNAP_TO_GRID: (_('Snap to grid'),),
    pdids.ID_SNAP_TO_GUIDE: (_('Snap to guide'),),
    pdids.ID_SNAP_TO_OBJ: (_('Snap to objects'),),
    pdids.ID_SNAP_TO_PAGE: (_('Snap to page'),),
    pdids.ID_ICONIZER: (_('Iconizer...'),),
    wal.ID_REFRESH: (_('Redraw document'),),

    pdids.ID_INSERT_PAGE: (_('Insert page...'),),
    pdids.ID_DELETE_PAGE: (_('Delete page...'),),
    pdids.ID_GOTO_PAGE: (_('Go to page...'),),
    pdids.ID_NEXT_PAGE: (_('Next page'),),
    pdids.ID_PREV_PAGE: (_('Previous page'),),
    pdids.ID_GUIDES_AT_CENTER: (_('Guides at page center'),),
    pdids.ID_PAGE_FRAME: (_('Page frame'),),
    pdids.ID_PAGE_GUIDE_FRAME: (_('Guides around page'),),
    pdids.ID_REMOVE_ALL_GUIDES: (_('Remove all guides'),),

    pdids.ID_CLEAR_TRANSFORM: (_('Clear transformations'),),
    pdids.ID_POSITION_PLGN: (_('Position...'),),
    pdids.ID_RESIZE_PLGN: (_('Resizing...'),),
    pdids.ID_SCALE_PLGN: (_('Scale and mirror...'),),
    pdids.ID_ROTATE_PLGN: (_('Rotation...'),),
    pdids.ID_SHEAR_PLGN: (_('Shearing...'),),
    pdids.ID_ROTATE_LEFT: (_('Rotate &left 90 degrees'),),
    pdids.ID_ROTATE_RIGHT: (_('Rotate &right 90 degrees'),),
    pdids.ID_MIRROR_H: (_('&Horizontal mirror'),),
    pdids.ID_MIRROR_V: (_('&Vertical mirror'),),
    pdids.ID_ALIGN_PLGN: (_('Align and Distribute...'),),
    pdids.ID_COMBINE: (_('&Combine'),),
    pdids.ID_BREAK_APART: (_('&Break Apart'),),
    pdids.ID_RAISE_TO_TOP: (_('Raise to &Top'),),
    pdids.ID_RAISE: (_('&Raise'),),
    pdids.ID_LOWER: (_('&Lower'),),
    pdids.ID_LOWER_TO_BOTTOM: (_('Lower to &Bottom'),),
    pdids.ID_GROUP: (_('&Group'),),
    pdids.ID_UNGROUP: (_('&Ungroup'),),
    pdids.ID_UNGROUPALL: (_('U&ngroup All'),),
    pdids.ID_PATHS_TRIM: (_('Trim...'),),
    pdids.ID_PATHS_INTERSECTION: (_('Intersection...'),),
    pdids.ID_PATHS_EXCLUSION: (_('Exclusion...'),),
    pdids.ID_PATHS_FUSION: (_('Fusion...'),),
    pdids.ID_TO_CONTAINER: (_('&Place into container'),),
    pdids.ID_FROM_CONTAINER: (_('&Extract from container'),),
    pdids.ID_TO_CURVES: (_('Con&vert to curves'),),
    pdids.ID_STROKE_TO_CURVES: (_('Convert stroke to curves'),),

    pdids.ID_BEZIER_SEL_ALL_NODES: (_('Select all nodes'),),
    pdids.ID_BEZIER_REVERSE_ALL_PATHS: (_('Reverse all paths'),),
    pdids.ID_BEZIER_SEL_SUBPATH_NODES: (_('Select all subpath nodes'),),
    pdids.ID_BEZIER_DEL_SUBPATH: (_('Delete subpaths'),),
    pdids.ID_BEZIER_REVERSE_SUBPATH: (_('Reverse subpaths'),),
    pdids.ID_BEZIER_EXTRACT_SUBPATH: (_('Extract subpaths'),),
    pdids.ID_BEZIER_ADD_NODE: (_('Add node'),),
    pdids.ID_BEZIER_DELETE_NODE: (_('Delete nodes'),),
    pdids.ID_BEZIER_ADD_SEG: (_('Create segment'),),
    pdids.ID_BEZIER_DELETE_SEG: (_('Delete segment'),),
    pdids.ID_BEZIER_JOIN_NODE: (_('Join nodes'),),
    pdids.ID_BEZIER_SPLIT_NODE: (_('Split nodes'),),
    pdids.ID_BEZIER_SEG_TO_LINE: (_('Convert segments to line'),),
    pdids.ID_BEZIER_SEG_TO_CURVE: (_('Convert segments to curve'),),
    pdids.ID_BEZIER_NODE_CUSP: (_('Make nodes cusp'),),
    pdids.ID_BEZIER_NODE_SMOOTH: (_('Make nodes smooth'),),
    pdids.ID_BEZIER_NODE_SYMMETRICAL: (_('Make nodes symmetrical'),),

    pdids.ID_CONV_TO_CMYK: (_('Convert to CMYK'),),
    pdids.ID_CONV_TO_RGB: (_('Convert to RGB'),),
    pdids.ID_CONV_TO_LAB: (_('Convert to LAB'),),
    pdids.ID_CONV_TO_GRAY: (_('Convert to Grayscale'),),
    pdids.ID_CONV_TO_BW: (_('Convert to B&W'),),
    pdids.ID_INVERT_BITMAP: (_('Invert bitmap'),),
    pdids.ID_REMOVE_ALPHA: (_('Remove alpha-channel'),),
    pdids.ID_INVERT_ALPHA: (_('Invert alpha-channel'),),
    pdids.ID_EXTRACT_BITMAP: (_('Extract embedded bitmap...'),),

    pdids.ID_EDIT_TEXT: (_('&Edit text'),),
    pdids.ID_TEXT_ON_PATH: (_('Text on path...'),),
    pdids.ID_TEXT_ON_CIRCLE: (_('Text on circle...'),),
    pdids.ID_STRAIGHTEN_TEXT: (_('&Straighten text'),),
    pdids.ID_CLEAR_MARKUP: (_('Clear text markup'),),
    pdids.ID_UPPER_TEXT: (_('Uppercase'),),
    pdids.ID_LOWER_TEXT: (_('Lowercase'),),
    pdids.ID_CAPITALIZE_TEXT: (_('Capitalize'),),

    pdids.ID_TOOL_PAGES: (_('Pages'),),
    pdids.ID_TOOL_LAYERS: (_('Layers...'),),
    pdids.ID_TOOL_OBJBROWSER: (_('Object browser'),),

    pdids.ID_REPORT_BUG: (_('&Report bug'),),
    pdids.ID_CONSOLE: (_('&Log console'),),
    pdids.ID_APP_WEBSITE: (_('Project web site'),),
    pdids.ID_APP_FORUM: (_('Project forum'),),
    pdids.ID_APP_FBPAGE: (_('Project page on Face&book'),),
    wal.ID_ABOUT: (_('&About sK1...'),),
}
