From 33bc73f59c8094ec1719559c4ae2c133046c0427 Mon Sep 17 00:00:00 2001
From: Jacques Grelet <jacques.grelet@ird.fr>
Date: Wed, 1 Feb 2017 16:35:48 +0000
Subject: [PATCH] add standard matlab icons inside tsg_icon directory, With the
 compiled version R2016b, the icons under \MATLAB\R2016b\toolbox\matlab\icons
 were not included in the runtime !

---
 compiler/Windows (x64)/R2016b/tsgqc.prj |  5 ++++-
 tsgqc.m                                 | 20 ++++++++++----------
 2 files changed, 14 insertions(+), 11 deletions(-)

diff --git a/compiler/Windows (x64)/R2016b/tsgqc.prj b/compiler/Windows (x64)/R2016b/tsgqc.prj
index 6485054..6613555 100644
--- a/compiler/Windows (x64)/R2016b/tsgqc.prj	
+++ b/compiler/Windows (x64)/R2016b/tsgqc.prj	
@@ -3,7 +3,7 @@
     <param.appname>tsgqc</param.appname>
     <param.icon />
     <param.icons />
-    <param.version>1.46</param.version>
+    <param.version>1.461</param.version>
     <param.authnamewatermark>Jacques Grelet</param.authnamewatermark>
     <param.email>Jacques.Grelet@ird.fr</param.email>
     <param.company>IRD</param.company>
@@ -88,6 +88,7 @@
       <file>C:\svn\tsg-qc\trunk\tsg_icon\hdricon.mat</file>
       <file>C:\svn\tsg-qc\trunk\tsg_icon\interp.mat</file>
       <file>C:\svn\tsg-qc\trunk\tsg_icon\mapicon.mat</file>
+      <file>C:\svn\tsg-qc\trunk\tsg_icon\opendoc.mat</file>
       <file>C:\svn\tsg-qc\trunk\tsg_icon\outils.mat</file>
       <file>C:\svn\tsg-qc\trunk\tsg_icon\pan.mat</file>
       <file>C:\svn\tsg-qc\trunk\tsg_icon\printdoc.mat</file>
@@ -97,6 +98,8 @@
       <file>C:\svn\tsg-qc\trunk\tsg_icon\selecttime.mat</file>
       <file>C:\svn\tsg-qc\trunk\tsg_icon\Thermo.jpg</file>
       <file>C:\svn\tsg-qc\trunk\tsg_icon\zoom.mat</file>
+      <file>C:\svn\tsg-qc\trunk\tsg_icon\zoomminus.mat</file>
+      <file>C:\svn\tsg-qc\trunk\tsg_icon\zoomplus.mat</file>
       <file>C:\svn\tsg-qc\trunk\tsg_io</file>
       <file>C:\svn\tsg-qc\trunk\tsg_util</file>
       <file>C:\Users\jgrelet\Documents\MATLAB\toolbox\m_map</file>
diff --git a/tsgqc.m b/tsgqc.m
index 48ea507..fdbb407 100644
--- a/tsgqc.m
+++ b/tsgqc.m
@@ -38,8 +38,8 @@ global GOSUD_FORMAT_VERSION
 % version number, may be used to initialize some files when it change
 % 0.90x -> 1.0RCx
 % -------------------------------------------------------------------
-VERSION      = 1.46;  % -> 1.44
-CHAR_VERSION = '1.460';
+VERSION      = 1.461;  % -> 1.44
+CHAR_VERSION = '1.461';
 DATE_VERSION = '01/31/2017';
 
 % netcdf file version, see DATA FORMAT TSG document:
@@ -406,8 +406,8 @@ hToolbar       =   uitoolbar(...   % Toolbar for Open and Print buttons
 hOpenPushtool  =   uipushtool(...   % Opendoc toolbar button
   'Parent',hToolbar,...
   'TooltipString','Open file',...
-  'CData', iconRead(fullfile(matlabroot, ...
-  '/toolbox/matlab/icons/opendoc.mat')),...
+  'CData',iconRead( ...
+  [DEFAULT_PATH_FILE 'tsg_icon' filesep 'opendoc.mat']),...
   'HandleVisibility','on', ...
   'Tag','PUSHTOOL_OPEN',...
   'UserData', 'off',...
@@ -435,8 +435,8 @@ hZoomInToggletool = uitoggletool(...   % Open Zoom In (increase) toolbar button
   'Parent',hToolbar,...
   'Separator', 'on', ...
   'TooltipString','Zoom In (increase)',...
-  'CData', iconRead(fullfile(matlabroot,...
-  '/toolbox/matlab/icons/zoomplus.mat')),...
+  'CData', iconRead( ...
+  [DEFAULT_PATH_FILE 'tsg_icon' filesep 'zoomplus.mat']),...
   'HandleVisibility','on', ...
   'Tag','PUSHTOOL_ZOOM_IN',...
   'OnCallback',  @ZoomIn_OnMenuCallback,...
@@ -445,8 +445,8 @@ hZoomOutToggletool = uitoggletool(...   % Open Zoom Out (decrease) toolbar butto
   'Parent',hToolbar,...
   'Separator', 'on', ...
   'TooltipString','Zoom Out (decrease)',...
-  'CData', iconRead(fullfile(matlabroot,...
-  '/toolbox/matlab/icons/zoomminus.mat')),...
+  'CData', iconRead( ...
+  [DEFAULT_PATH_FILE 'tsg_icon' filesep 'zoomminus.mat']),...
   'HandleVisibility','on', ...
   'Tag','PUSHTOOL_ZOOM_OUT',...
   'OnCallback',  @ZoomOut_OnMenuCallback,...
@@ -454,8 +454,8 @@ hZoomOutToggletool = uitoggletool(...   % Open Zoom Out (decrease) toolbar butto
 hPanToggletool  =   uitoggletool(...   % Open Pan toolbar button
   'Parent',hToolbar,...
   'TooltipString','Pan',...
-  'CData',iconRead(fullfile(matlabroot, ...
-  '/toolbox/matlab/icons/pan.mat')),...
+  'CData', iconRead( ...
+  [DEFAULT_PATH_FILE 'tsg_icon' filesep 'pan.mat']),...
   'HandleVisibility','on', ...
   'Tag','PUSHTOOL_PAN',...
   'Enable', 'off',...
-- 
GitLab