Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
artoa4argo
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
Container 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
argoTools
artoa4argo
Commits
8c8ebfc9
Commit
8c8ebfc9
authored
5 years ago
by
leprob001
Browse files
Options
Downloads
Patches
Plain Diff
Added shortcuts for opening other windows from the main window.
parent
228b4761
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/+artoa/+controller/+main/shortcuts.m
+25
-0
25 additions, 0 deletions
lib/+artoa/+controller/+main/shortcuts.m
lib/+artoa/+gui/main.m
+21
-1
21 additions, 1 deletion
lib/+artoa/+gui/main.m
with
46 additions
and
1 deletion
lib/+artoa/+controller/+main/shortcuts.m
0 → 100644
+
25
−
0
View file @
8c8ebfc9
function
[]
=
shortcuts
(
~
,
pEvent
)
%SHORTCUTS Summary of this function goes here
% Detailed explanation goes here
global
artoaWorkspace
;
if
(
~
isfield
(
artoaWorkspace
,
'float'
))
return
;
end
switch
pEvent
.
Key
case
'e'
artoa
.
controller
.
edit
.
timeOfArrival
.
open
();
case
'p'
artoa
.
controller
.
edit
.
pressure
.
open
();
case
't'
artoa
.
controller
.
edit
.
temperature
.
open
();
case
'o'
artoa
.
controller
.
track
.
trajectoryOutput
.
open
();
case
'i'
artoa
.
controller
.
track
.
parameter
.
open
();
end
end
This diff is collapsed.
Click to expand it.
lib/+artoa/+gui/main.m
+
21
−
1
View file @
8c8ebfc9
...
@@ -9,7 +9,8 @@ artoaGui.figures.main = figure( ...
...
@@ -9,7 +9,8 @@ artoaGui.figures.main = figure( ...
'Name'
,
'ARTOA 4'
,
...
'Name'
,
'ARTOA 4'
,
...
'NumberTitle'
,
'off'
,
...
'NumberTitle'
,
'off'
,
...
'Color'
,
'white'
,
...
'Color'
,
'white'
,
...
'MenuBar'
,
'none'
...
'MenuBar'
,
'none'
,
...
'WindowKeyPressFcn'
,
@
artoa
.
controller
.
main
.
shortcuts
...
);
);
set
(
artoaGui
.
figures
.
main
,
'CloseRequestFcn'
,
'artoa.controller.quit();'
);
set
(
artoaGui
.
figures
.
main
,
'CloseRequestFcn'
,
'artoa.controller.quit();'
);
...
@@ -143,6 +144,25 @@ artoaGui.main.menus.viewHideDeletedDataPoints = uimenu( ...
...
@@ -143,6 +144,25 @@ artoaGui.main.menus.viewHideDeletedDataPoints = uimenu( ...
'Callback'
,
'artoa.controller.switchHideDeletedPoints();'
...
'Callback'
,
'artoa.controller.switchHideDeletedPoints();'
...
);
);
%% Initialize shortcut hints
shortcutHints
=
{
...
't'
,
'Open Edit temperature window'
;
'p'
,
'Open Edit pressure window'
;
'e'
,
'Open Edit time of arrival window'
;
'i'
,
'Open track parameter window'
;
'o'
,
'Open trajectory output window'
;
};
artoaGui
.
main
.
shortcutHints
=
uitable
();
artoaGui
.
main
.
shortcutHints
.
Data
=
shortcutHints
;
artoaGui
.
main
.
shortcutHints
.
Enable
=
'off'
;
artoaGui
.
main
.
shortcutHints
.
ColumnName
=
{
'Key'
,
'Action'
};
artoaGui
.
main
.
shortcutHints
.
ColumnWidth
=
{
50
,
400
};
artoaGui
.
main
.
shortcutHints
.
RowName
=
''
;
artoaGui
.
main
.
shortcutHints
.
Units
=
'normalized'
;
artoaGui
.
main
.
shortcutHints
.
Position
=
[
.
1
.
5
.
8
.
3
];
end
end
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