Skip to content
Snippets Groups Projects
Commit bd5fdf0f authored by Yves Gouriou's avatar Yves Gouriou
Browse files

Modification des tailles des contrôles de la zone INFO pour un meilleur...

Modification des tailles des contrôles de la zone INFO pour un meilleur affichage sur les petits écrans
parent 32fb1cb9
No related branches found
No related tags found
No related merge requests found
......@@ -291,7 +291,7 @@ uicontrol(...
'Fontsize', tsg.fontSize, ...
'Fontweight', 'bold', ...
'HorizontalAlignment', 'left', ...
'Position',[.01, .25, .04, .5], ...
'Position',[.01, .25, .04, .6], ...
'String', 'File:');
hInfoFileText = uicontrol(...
'Parent', hInfoPanel, ...
......@@ -301,7 +301,7 @@ hInfoFileText = uicontrol(...
'Units', 'normalized',...
'HorizontalAlignment', 'left', ...
'String', 'No file loaded', ...
'Position', [.05, .25, .1, .5]);
'Position', [.05, .25, .1, .6]);
% Text area that displays the date
% --------------------------------
......@@ -312,7 +312,7 @@ uicontrol(...
'Fontsize', tsg.fontSize, ...
'Fontweight', 'bold', ...
'HorizontalAlignment', 'left', ...
'Position',[.16, .25, .03, .5], ...
'Position',[.15, .25, .04, .6], ...
'String', 'Date:');
hInfoDateText = uicontrol(...
'Parent', hInfoPanel, ...
......@@ -322,7 +322,7 @@ hInfoDateText = uicontrol(...
'Units', 'normalized',...
'HorizontalAlignment', 'left', ...
'String', 'N/A', ...
'Position', [.20, .25, .13, .5]);
'Position', [.20, .25, .13, .6]);
% Text area that displays the latitude
% ------------------------------------
......@@ -333,7 +333,7 @@ uicontrol(...
'Fontsize', tsg.fontSize, ...
'Fontweight', 'bold', ...
'HorizontalAlignment', 'left', ...
'Position',[.34, .25, .05, .5], ...
'Position',[.33, .25, .06, .6], ...
'String', 'Latitude:');
hInfoLatText = uicontrol(...
'Parent', hInfoPanel, ...
......@@ -343,7 +343,7 @@ hInfoLatText = uicontrol(...
'Units', 'normalized',...
'HorizontalAlignment', 'left', ...
'String', 'N/A', ...
'Position', [.4, .25, .9, .5]);
'Position', [.4, .25, .9, .6]);
% Text area that displays the longitude
% -------------------------------------
......@@ -354,7 +354,7 @@ uicontrol(...
'Fontsize', tsg.fontSize, ...
'Fontweight', 'bold', ...
'HorizontalAlignment', 'left', ...
'Position',[.50, .25, .06, .5], ...
'Position',[.495, .25, .08, .6], ...
'String', 'Longitude:');
hInfoLongText = uicontrol(...
'Parent', hInfoPanel, ...
......@@ -364,7 +364,7 @@ hInfoLongText = uicontrol(...
'Units', 'normalized',...
'HorizontalAlignment', 'left', ...
'String', 'N/A', ...
'Position', [.57, .25, .07, .5]);
'Position', [.585, .25, .09, .6]);
% Text area that display salinity and temperature
% -----------------------------------------------
......@@ -375,7 +375,7 @@ uicontrol(...
'Fontsize', tsg.fontSize, ...
'Fontweight', 'bold', ...
'HorizontalAlignment', 'left', ...
'Position',[.65, .25, .04, .5], ...
'Position', [.68, .25, .05, .6], ...
'String', 'SSPS:');
hInfoSSPSText = uicontrol(...
'Parent', hInfoPanel, ...
......@@ -385,7 +385,7 @@ hInfoSSPSText = uicontrol(...
'Units', 'normalized',...
'HorizontalAlignment', 'left', ...
'String', 'N/A', ...
'Position', [.69, .25, .05, .5]);
'Position', [.73, .25, .05, .6]);
uicontrol(...
'Parent', hInfoPanel, ...
'Units', 'normalized', ...
......@@ -393,7 +393,7 @@ uicontrol(...
'Fontsize', tsg.fontSize, ...
'Fontweight', 'bold', ...
'HorizontalAlignment', 'left', ...
'Position',[.75, .25, .04, .5], ...
'Position',[.785, .25, .05, .6], ...
'String', 'SSJT:');
hInfoSSJTText = uicontrol(...
'Parent', hInfoPanel, ...
......@@ -403,7 +403,7 @@ hInfoSSJTText = uicontrol(...
'Units', 'normalized',...
'HorizontalAlignment', 'left', ...
'String', 'N/A', ...
'Position', [.79, .25, .05, .5]);
'Position', [.835, .25, .05, .6]);
uicontrol(...
'Parent', hInfoPanel, ...
'Units', 'normalized', ...
......@@ -411,7 +411,7 @@ uicontrol(...
'Fontsize', tsg.fontSize, ...
'Fontweight', 'bold', ...
'HorizontalAlignment', 'left', ...
'Position',[.85, .25, .04, .5], ...
'Position',[.89, .25, .05, .6], ...
'String', 'SSTP:');
hInfoSSTPText = uicontrol(...
'Parent', hInfoPanel, ...
......@@ -421,7 +421,7 @@ hInfoSSTPText = uicontrol(...
'Units', 'normalized',...
'HorizontalAlignment', 'left', ...
'String', 'N/A', ...
'Position', [.89, .25, .05, .5]);
'Position', [.94, .25, .05, .6]);
%% Plot axes
% -----------------------------------------------------------------------
......@@ -928,8 +928,10 @@ hetDateMax = uicontrol( ...
% Desactivate Zoom and Pan functions.
% ----------------------------------
set(hZoomToggletool, 'state', 'off' );
set(hPanToggletool, 'state', 'off' );
set( hZoomToggletool, 'state', 'off' );
set( hPanToggletool, 'state', 'off' );
set( hStartlimitToggletool, 'State', 'off' );
set( hEndlimitToggletool, 'State', 'off' );
% % Activate previously radiobutton selected on uibuttongroup QC
% % ------------------------------------------------------------
......@@ -1241,6 +1243,12 @@ end
% ----------------------------------
set( hClimToggletool, 'Enable', 'off');
% Switch somme buttons
% --------------------
set( hZoomToggletool, 'state', 'off' );
set( hQCToggletool, 'state', 'off' );
set( hPanToggletool, 'state', 'off' );
% Activate some toolbar buttons
% -----------------------------
hdl_Toggletool = findobj('-regexp','Tag', 'CORRECT_');
......@@ -1281,13 +1289,21 @@ end
% Activate the Climatology button
% -------------------------------
set( hClimToggletool, 'Enable', 'on');
set( hClimToggletool, 'Enable', 'on');
% If necessary toggle off some buttons
% ------------------------------------
set( hZoomToggletool, 'state', 'off' );
set( hQCToggletool, 'state', 'off' );
set( hPanToggletool, 'state', 'off' );
% Desactivate some toolbar buttons
% --------------------------------
hdl_Toggletool = findobj('-regexp','Tag', 'CORRECT_');
set(hdl_Toggletool, 'Enable', 'off');
%set(hdl_Toggletool, 'State', 'off');
set( hStartlimitToggletool, 'State', 'off' );
set( hEndlimitToggletool, 'State', 'off' );
% Desactivate Click Mouse on figure
% ---------------------------------
......@@ -1305,6 +1321,12 @@ end
%----------------------------------------------------------------------
function SelectTime_OnMenuCallback(hObject, eventdata)
% Callback function run when the ....
% Desactivate Zoom and Pan functions.
% ----------------------------------
set( hZoomToggletool, 'state', 'off' );
set( hQCToggletool, 'state', 'off' );
set( hPanToggletool, 'state', 'off' );
% Create a pointer to select the time limits
% ------------------------------------------
......@@ -1314,12 +1336,7 @@ end
selTimePointer(1:4,8:9) = 1; selTimePointer(13:16,8:9) = 1;
selTimePointer(8:9,1:4) = 1; selTimePointer(8:9,13:16) = 1;
selTimePointer(5:12,5:12) = NaN; % Create a transparent region in the center
% Desactivate Zoom and Pan functions.
% ----------------------------------
set(hZoomToggletool, 'state', 'off' );
set(hPanToggletool, 'state', 'off' );
% Toggle the state of the Qc Togglebutton to 'on' or 'off'
% ----------------------------------------------------
if hObject == hEndlimitToggletool
......@@ -1376,7 +1393,15 @@ end
%----------------------------------------------------------------------
function SelectTime_OffMenuCallback(hObject, eventdata)
% Callback function run when the ....
% Desactivate Zoom and Pan functions.
% ----------------------------------
%set( hZoomToggletool, 'state', 'off' );
%set( hQCToggletool, 'state', 'off' );
%set( hPanToggletool, 'state', 'off' );
% Desactivate time limit buttons
% ------------------------------
if hObject == hEndlimitToggletool
set( hEndlimitToggletool, 'State', 'off');
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment