Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
TSG QC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
US191
TSG QC
Commits
ad37fe3b
Commit
ad37fe3b
authored
17 years ago
by
Yves Gouriou
Browse files
Options
Downloads
Patches
Plain Diff
J'ai commence a modifier TSG_COR :
pushbutton en togglebutton
parent
c0694e0a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tsgcor_GUI.m
+67
-61
67 additions, 61 deletions
tsgcor_GUI.m
with
67 additions
and
61 deletions
tsgcor_GUI.m
+
67
−
61
View file @
ad37fe3b
...
...
@@ -74,82 +74,88 @@ hQuitMenu = uimenu(...
'HandleVisibility'
,
'callback'
,
...
'Callback'
,
@
QuitMenuCallback
);
% Construct the Toolbar
%
% Construct the Toolbar
% --------------------
hToolbar
=
uitoolbar
(
...
% Toolbar for Open and Print buttons
'Parent'
,
hTsgCorGUI
,
...
'HandleVisibility'
,
'callback'
);
hZoom
Push
tool
=
ui
push
tool
(
...
% Open Zoom toolbar button
hZoom
Toggle
tool
=
ui
toggle
tool
(
...
% Open Zoom toolbar button
'Parent'
,
hToolbar
,
...
'Separator'
,
'on'
,
...
'TooltipString'
,
'Zoom'
,
...
'CData'
,
iconRead
(
fullfile
(
matlabroot
,
...
'/toolbox/matlab/icons/zoom.mat'
)),
...
'/toolbox/matlab/icons/zoom.mat'
)),
...
'HandleVisibility'
,
'callback'
,
...
'ClickedCallback'
,
@
ZoomMenuCallback
);
hPanPushtool
=
uipushtool
(
...
% Open Pan toolbar button
'Tag'
,
'PUSHTOOL_ZOOM'
,
...
'Enable'
,
'off'
,
...
'OffCallback'
,
@
Zoom_OffMenuCallback
,
...
'ONCallback'
,
@
Zoom_OnMenuCallback
);
hPanToggletool
=
uitoggletool
(
...
% Open Pan toolbar button
'Parent'
,
hToolbar
,
...
'TooltipString'
,
'Pan'
,
...
'CData'
,
iconRead
(
fullfile
(
matlabroot
,
...
'/toolbox/matlab/icons/pan.mat'
)),
...
'/toolbox/matlab/icons/pan.mat'
)),
...
'HandleVisibility'
,
'callback'
,
...
'ClickedCallback'
,
@
PanMenuCallback
);
'Tag'
,
'PUSHTOOL_PAN'
,
...
'Enable'
,
'off'
,
...
'OffCallback'
,
@
Pan_OffMenuCallback
,
...
'ONCallback'
,
@
Pan_OnMenuCallback
);
%'ClickedCallback', @PanMenuCallback);
hBottlePushtool
=
uipushtool
(
...
% Open toolbar button
'Parent'
,
hToolbar
,
...
'TooltipString'
,
'Plot the Samples'
,
...
'Separator'
,
'on'
,
...
'Tag'
,
'off'
,
...
'CData'
,
iconRead
(
...
[
DEFAULT_PATH_FILE
'tsg_icon'
filesep
'bottleicon.mat'
]),
...
'HandleVisibility'
,
'callback'
,
...
'ClickedCallback'
,
@
BottleMenuCallback
);
hStartlimitPushtool
=
uipushtool
(
...
% Open toolbar button
'Parent'
,
hToolbar
,
...
'TooltipString'
,
'Start time'
,
...
'Separator'
,
'on'
,
...
'Tag'
,
'off'
,
...
'CData'
,
iconRead
(
...
[
DEFAULT_PATH_FILE
'tsg_icon'
filesep
'startlimit.mat'
]),
...
'HandleVisibility'
,
'callback'
,
...
'ClickedCallback'
,
@
TimeLimitCallback
);
hEndlimitPushtool
=
uipushtool
(
...
% Open toolbar button
'Parent'
,
hToolbar
,
...
'TooltipString'
,
'End time'
,
...
'Tag'
,
'off'
,
...
'CData'
,
iconRead
(
...
[
DEFAULT_PATH_FILE
'tsg_icon'
filesep
'endlimit.mat'
]),
...
'HandleVisibility'
,
'callback'
,
...
'ClickedCallback'
,
@
TimeLimitCallback
);
% Static text that displays the position, salinity and temperature
% ----------------------------------------------------------------
hInfoText
=
uicontrol
(
...
'Parent'
,
hTsgCorGUI
,
...
'Style'
,
'text'
,
...
'Fontsize'
,
12
,
...
'Fontweight'
,
'bold'
,
...
'Visible'
,
'on'
,
...
'Units'
,
'normalized'
,
...
'String'
,
'Information sur la position du curseur'
,
...
'Position'
,
[
.
05
,
.
95
,
.
9
,
.
03
]);
% Construct the plot axes
% -----------------------
hPlotAxes
(
1
)
=
axes
(
...
% the axes for plotting Salinity
'Parent'
,
hTsgCorGUI
,
...
'Units'
,
'normalized'
,
...
'Visible'
,
'off'
,
...
'HandleVisibility'
,
'callback'
,
...
'Position'
,[
.
25
,
.
6
,
.
7
,
.
32
]);
hPlotAxes
(
2
)
=
axes
(
...
% the axes for plotting sample
'Parent'
,
hTsgCorGUI
,
...
'Units'
,
'normalized'
,
...
'Visible'
,
'off'
,
...
'HandleVisibility'
,
'callback'
,
...
'Position'
,[
.
25
,
.
3
,
.
7
,
.
25
]);
hPlotAxes
(
3
)
=
axes
(
...
% the axes for plotting ship velocity
'Parent'
,
hToolbar
,
...
'TooltipString'
,
'Plot the Samples'
,
...
'Separator'
,
'on'
,
...
'Tag'
,
'off'
,
...
'CData'
,
iconRead
(
...
[
DEFAULT_PATH_FILE
'tsg_icon'
filesep
'bottleicon.mat'
]),
...
'HandleVisibility'
,
'callback'
,
...
'ClickedCallback'
,
@
BottleMenuCallback
);
hStartlimitPushtool
=
uipushtool
(
...
% Open toolbar button
'Parent'
,
hToolbar
,
...
'TooltipString'
,
'Start time'
,
...
'Separator'
,
'on'
,
...
'Tag'
,
'off'
,
...
'CData'
,
iconRead
(
...
[
DEFAULT_PATH_FILE
'tsg_icon'
filesep
'startlimit.mat'
]),
...
'HandleVisibility'
,
'callback'
,
...
'ClickedCallback'
,
@
TimeLimitCallback
);
hEndlimitPushtool
=
uipushtool
(
...
% Open toolbar button
'Parent'
,
hToolbar
,
...
'TooltipString'
,
'End time'
,
...
'Tag'
,
'off'
,
...
'CData'
,
iconRead
(
...
[
DEFAULT_PATH_FILE
'tsg_icon'
filesep
'endlimit.mat'
]),
...
'HandleVisibility'
,
'callback'
,
...
'ClickedCallback'
,
@
TimeLimitCallback
);
% Static text that displays the position, salinity and temperature
% ----------------------------------------------------------------
hInfoText
=
uicontrol
(
...
'Parent'
,
hTsgCorGUI
,
...
'Style'
,
'text'
,
...
'Fontsize'
,
12
,
...
'Fontweight'
,
'bold'
,
...
'Visible'
,
'on'
,
...
'Units'
,
'normalized'
,
...
'String'
,
'Information sur la position du curseur'
,
...
'Position'
,
[
.
05
,
.
95
,
.
9
,
.
03
]);
% Construct the plot axes
% -----------------------
hPlotAxes
(
1
)
=
axes
(
...
% the axes for plotting Salinity
'Parent'
,
hTsgCorGUI
,
...
'Units'
,
'normalized'
,
...
'Visible'
,
'off'
,
...
'HandleVisibility'
,
'callback'
,
...
'Position'
,[
.
25
,
.
6
,
.
7
,
.
32
]);
hPlotAxes
(
2
)
=
axes
(
...
% the axes for plotting sample
'Parent'
,
hTsgCorGUI
,
...
'Units'
,
'normalized'
,
...
'Visible'
,
'off'
,
...
'HandleVisibility'
,
'callback'
,
...
'Position'
,[
.
25
,
.
3
,
.
7
,
.
25
]);
hPlotAxes
(
3
)
=
axes
(
...
% the axes for plotting ship velocity
'Parent'
,
hTsgCorGUI
,
...
'Units'
,
'normalized'
,
...
'Visible'
,
'off'
,
...
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment