Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LEVER
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OpenSource
LEVER
Commits
b9336f13
Commit
b9336f13
authored
Aug 10, 2012
by
Nathan Spaeth
Browse files
Options
Downloads
Patches
Plain Diff
Fix file open bugs.
parent
e70df2e6
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/MATLAB/+Helper/ImageFileDialog.m
+18
-0
18 additions, 0 deletions
src/MATLAB/+Helper/ImageFileDialog.m
src/MATLAB/+Load/OpenData.m
+2
-0
2 additions, 0 deletions
src/MATLAB/+Load/OpenData.m
src/MATLAB/LEVer.m
+3
-1
3 additions, 1 deletion
src/MATLAB/LEVer.m
with
23 additions
and
1 deletion
src/MATLAB/+Helper/ImageFileDialog.m
+
18
−
0
View file @
b9336f13
...
...
@@ -19,6 +19,7 @@ while ( ~bOpened )
[
sigDigits
imageDataset
]
=
Helper
.
ParseImageName
(
settings
.
imageFile
);
<<<<<<<
Updated
upstream
if
(
~
isfield
(
CONSTANTS
,
'datasetName'
))
CONSTANTS
.
datasetName
=
imageDataset
;
elseif
(
~
strcmp
(
imageDataset
,
CONSTANTS
.
datasetName
))
...
...
@@ -36,6 +37,23 @@ while ( ~bOpened )
otherwise
continue
;
end
=======
if
(
strcmp
(
imageDataset
,[
CONSTANTS
.
datasetName
'_'
]))
CONSTANTS
.
datasetName
=
[
CONSTANTS
.
datasetName
'_'
];
bOpened
=
1
;
elseif
(
~
strcmp
(
imageDataset
,
CONSTANTS
.
datasetName
))
answer
=
questdlg
(
'Image does not match dataset would you like to choose another?'
,
'Image Selection'
,
'Yes'
,
'No'
,
'Close LEVer'
,
'Yes'
);
switch
answer
case
'Yes'
continue
;
case
'No'
CONSTANTS
.
imageNamePattern
=
''
;
bOpened
=
1
;
case
'Close LEVer'
return
otherwise
continue
;
>>>>>>>
Stashed
changes
end
end
...
...
This diff is collapsed.
Click to expand it.
src/MATLAB/+Load/OpenData.m
+
2
−
0
View file @
b9336f13
...
...
@@ -54,6 +54,7 @@ if (exist('LEVerSettings.mat','file'))
else
settings
.
imagePath
=
'.\'
;
settings
.
matFilePath
=
'.\'
;
settings
.
matFile
=
'*.mat'
;
end
if
(
~
isfield
(
settings
,
'matFilePath'
))
...
...
@@ -135,6 +136,7 @@ switch answer
save
(
'LEVerSettings.mat'
,
'settings'
);
Load
.
InitializeConstants
();
CONSTANTS
.
matFullFile
=
[
settings
.
matFilePath
settings
.
matFile
];
if
(
~
isfield
(
CONSTANTS
,
'imageNamePattern'
)
||
exist
(
Helper
.
GetFullImagePath
(
1
),
'file'
)
~=
2
)
...
...
This diff is collapsed.
Click to expand it.
src/MATLAB/LEVer.m
+
3
−
1
View file @
b9336f13
...
...
@@ -29,15 +29,17 @@ global Figures softwareVersion
%if LEVer is already opened, save state just in case the User cancels the
%open
previousOpened
=
0
;
if
(
~
isempty
(
Figures
))
Editor
.
History
(
'Push'
);
previousOpened
=
1
;
end
softwareVersion
=
'7.0 Multi-Cell'
;
if
(
Load
.
OpenData
())
Editor
.
ReplayableEditAction
(
@
Editor
.
InitHistory
);
else
else
if
(
previousOpened
)
try
Editor
.
History
(
'Top'
);
UI
.
InitializeFigures
();
...
...
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