Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
plotID_matlab
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
plotID
plotID_matlab
Commits
d206e4a3
Commit
d206e4a3
authored
3 years ago
by
Lemmer, Jan
Browse files
Options
Downloads
Patches
Plain Diff
Implements
#92
parent
bffd379d
No related branches found
No related tags found
2 merge requests
!43
Implements #73, cleans up example file,
,
!40
Implements #92
Pipeline
#597454
failed
3 years ago
Stage: Run
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
+PlotID/@userDLG/userDLG.m
+18
-2
18 additions, 2 deletions
+PlotID/@userDLG/userDLG.m
+PlotID/Publish.m
+6
-1
6 additions, 1 deletion
+PlotID/Publish.m
with
24 additions
and
3 deletions
+PlotID/@userDLG/userDLG.m
+
18
−
2
View file @
d206e4a3
...
@@ -55,7 +55,7 @@ classdef userDLG
...
@@ -55,7 +55,7 @@ classdef userDLG
obj
.
error
(
errorMessage
)
obj
.
error
(
errorMessage
)
end
end
end
end
function
[]
=
userMSG
(
obj
,
message
)
function
[]
=
userMSG
(
obj
,
message
)
%userMSG user message without priority
%userMSG user message without priority
% MSG will only be displaye if ShowMessages is true
% MSG will only be displaye if ShowMessages is true
...
@@ -83,5 +83,21 @@ classdef userDLG
...
@@ -83,5 +83,21 @@ classdef userDLG
end
end
end
end
end
end
end
methods
(
Static
)
function
[
status
]
=
userQuestion
(
dialogMessage
)
%userQuestion displays Y/N user input
m
=
''
;
while
~
ismember
(
m
,{
'Y'
,
'y'
,
'n'
,
'N'
})
m
=
input
([
dialogMessage
,
', Y/N [Y]? '
],
's'
);
end
if
ismember
(
m
,{
'Y'
,
'y'
})
status
=
true
;
else
status
=
false
;
end
end
end
%static
end
% class
This diff is collapsed.
Click to expand it.
+PlotID/Publish.m
+
6
−
1
View file @
d206e4a3
...
@@ -138,7 +138,12 @@ if isfolder(fullfile(storPath,folderNameV))
...
@@ -138,7 +138,12 @@ if isfolder(fullfile(storPath,folderNameV))
msg
=
[
'Folder '
,
folderNameV
,
' exists - Plot was already published '
];
msg
=
[
'Folder '
,
folderNameV
,
' exists - Plot was already published '
];
disp
(
msg
);
disp
(
msg
);
dialogMsg
=
'Do you want to overwrite the existing files'
;
dialogMsg
=
'Do you want to overwrite the existing files'
;
overwriteDir
=
dlgObj
.
userDialog
(
dialogMsg
,
msg
);
overwriteDir
=
dlgObj
.
userQuestion
(
dialogMsg
);
if
~
overwriteDir
% USR does not want to overwrite
warning
(
'PlotID has finished without an export'
);
disp
(
'rerun TagPlot if you need a new ID or consider overwriting.'
);
return
;
%terminate
end
end
end
% create folder
% create folder
if
~
mkdir
(
fullfile
(
storPath
,
folderName
))
if
~
mkdir
(
fullfile
(
storPath
,
folderName
))
...
...
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