Skip to content
Snippets Groups Projects
Commit 9b1071bd authored by jacques.grelet_ird.fr's avatar jacques.grelet_ird.fr
Browse files

add new field for date format variable and attribute in tsg preference structure

parent 02616a9f
No related branches found
No related tags found
No related merge requests found
...@@ -492,6 +492,79 @@ if bottom < .1 ...@@ -492,6 +492,79 @@ if bottom < .1
left = left + inc_x; left = left + inc_x;
end end
% display format for dates TITLE
% -------------------------------
uicontrol(...
'Parent', hPreferencesFig, ...
'Units', 'normalized', ...
'Style', 'Text', 'Fontsize', tsg.fontSize, 'FontWeight', 'bold',...
'HorizontalAlignment', 'Left', ...
'Position',[left, bottom, 2*length, height], ...
'String', 'Formats used for date');
bottom = bottom - inc_y - height;
if bottom < .1
bottom = 0.95;
left = left + inc_x;
end
% display date format for variable text
% -------------------------------------
uicontrol(...
'Parent', hPreferencesFig, ...
'Units', 'normalized', ...
'Style', 'Text','Fontsize', tsg.fontSize-1,'HorizontalAlignment', 'left', ...
'Position',[left, bottom, length, height], ...
'TooltipString', 'Format is not available for change', ...
'String', 'Date format for variable:');
% display date format for variable uicontrol
% ------------------------------------------
uicontrol(...
'Parent', hPreferencesFig, ...
'Units', 'normalized', 'Style', 'Edit', 'BackgroundColor', 'w', ...
'Fontsize', tsg.fontSize-2, 'HorizontalAlignment', 'right', ...
'Position', [left + length, bottom, length, height], ...
'Enable', 'inactive',...
'TooltipString', 'Format is not available for change', ...
'String', tsg.preference.date_format_variable, ...
'Tag', 'PREFERENCE_DATE_FORMAT_VARIABLE');
bottom = bottom - inc_y - height;
if bottom < .1
bottom = 0.95;
left = left + inc_x;
end
% display date format for attribute min text
% ------------------------------------------
uicontrol(...
'Parent', hPreferencesFig, ...
'Units', 'normalized', ...
'Style', 'Text', 'Fontsize', tsg.fontSize-1, 'HorizontalAlignment', 'left', ...
'Position',[left, bottom, length, height], ...
'TooltipString', 'Format is not available for change', ...
'String', 'Date format for attibute');
% display date format for attribute uicontrol
% -------------------------------------------
uicontrol(...
'Parent', hPreferencesFig, ...
'Units', 'normalized', 'Style', 'Edit', ...
'Fontsize', tsg.fontSize-2, 'BackgroundColor', 'w', ...
'HorizontalAlignment', 'right', ...
'Position', [left + length, bottom, length, height], ...
'Enable', 'inactive',...
'TooltipString', 'Format is not available for change', ...
'String', tsg.preference.date_format_attribute, ...
'Tag', 'PREFERENCES_DATE_FORMAT_ATTRIBUTE');
bottom = bottom - inc_y - height;
if bottom < .1
bottom = 0.95;
left = left + inc_x;
end
% CONTINUE PUSH BUTTON % CONTINUE PUSH BUTTON
% -------------------- % --------------------
% The Continue (valid) button % The Continue (valid) button
......
...@@ -153,6 +153,8 @@ set(hTsgGUI,'Pointer','arrow'); ...@@ -153,6 +153,8 @@ set(hTsgGUI,'Pointer','arrow');
preference.ssjt_max_string = {'40'}; preference.ssjt_max_string = {'40'};
preference.sstp_min_string = {'-3'}; preference.sstp_min_string = {'-3'};
preference.sstp_max_string = {'40'}; preference.sstp_max_string = {'40'};
preference.date_format_variable = {'yyyyMMddHHmmss'};
preference.date_format_attribute = {'yyyy-MM-ddTHH:mm:ssZ'};
% save preference struct to 'prefdir.mat' file % save preference struct to 'prefdir.mat' file
% --------------------------------------------- % ---------------------------------------------
......
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