From 992726ab492bad5bddd49a5a5c3e57764f1998b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Minh=20Nguye=CC=82=CC=83n?= Date: Sun, 21 Aug 2016 13:01:09 -0700 Subject: [macos] Added Layers sidebar Added a sidebar to the main document window in macosapp that lists the layers in the current style and updates whenever the style changes or a layer is added or removed programmatically. Display an icon beside each layer in the sidebar that indicates the kind of layer. Double-click a layer or layers to toggle their visibility, which is an undoable action. Added a menu item and toolbar button to toggle the Layers sidebar. Added a context menu for toggling visibility of and deleting layers selected in the Layers sidebar. Checked in the original SVGs for layer icons. --- platform/macos/app/Base.lproj/MainMenu.xib | 5 + platform/macos/app/Base.lproj/MapDocument.xib | 185 ++++++++++++++++++++++++-- 2 files changed, 177 insertions(+), 13 deletions(-) (limited to 'platform/macos/app/Base.lproj') diff --git a/platform/macos/app/Base.lproj/MainMenu.xib b/platform/macos/app/Base.lproj/MainMenu.xib index 7dd4d08430..4efb8d4c46 100644 --- a/platform/macos/app/Base.lproj/MainMenu.xib +++ b/platform/macos/app/Base.lproj/MainMenu.xib @@ -429,6 +429,11 @@ + + + + + diff --git a/platform/macos/app/Base.lproj/MapDocument.xib b/platform/macos/app/Base.lproj/MapDocument.xib index 4e58490e68..9af40d461d 100644 --- a/platform/macos/app/Base.lproj/MapDocument.xib +++ b/platform/macos/app/Base.lproj/MapDocument.xib @@ -1,40 +1,160 @@ - + - + + + + + + + style + + + + + + + + layers + + + + + + + + identifier + visible + + + + + - + - + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + StyleLayerIconTransformer + + + + + + + + + + + + + + + + + + + + + + + + + NSNegateBoolean + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + - + - - - - + + + + @@ -89,8 +209,25 @@ + + + + + + + + + + @@ -135,8 +272,30 @@ + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.1