Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DMDesign
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
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Amanda Ghassaei
DMDesign
Commits
9b9a0d8a
Commit
9b9a0d8a
authored
10 years ago
by
Amanda Ghassaei
Browse files
Options
Downloads
Patches
Plain Diff
small changes
parent
62e4c906
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
js/menus/MenuWrapperView.js
+9
-7
9 additions, 7 deletions
js/menus/MenuWrapperView.js
js/models/AppState.js
+1
-1
1 addition, 1 deletion
js/models/AppState.js
with
10 additions
and
8 deletions
js/menus/MenuWrapperView.js
+
9
−
7
View file @
9b9a0d8a
...
...
@@ -11,21 +11,23 @@ MenuWrapper = Backbone.View.extend({
"
click .menuWrapperTab>a
"
:
"
_tabWasSelected
"
},
initialize
:
function
(
options
){
initialize
:
function
(){
_
.
bindAll
(
this
,
"
render
"
,
"
_updateCurrentTab
"
,
"
_setVisibility
"
,
"
_hide
"
,
"
_show
"
);
var
lattice
=
dmaGlobals
.
lattice
;
//init all tab view controllers
this
.
latticeMenu
=
new
LatticeMenuView
({
model
:
this
.
model
,
lattice
:
options
.
lattice
});
this
.
importMenu
=
new
ImportMenuView
({
lattice
:
options
.
lattice
,
appState
:
this
.
model
});
this
.
sketchMenu
=
new
SketchMenuView
({
model
:
options
.
lattice
,
appState
:
this
.
model
});
this
.
partMenu
=
new
PartMenuView
({
model
:
this
.
model
,
lattice
:
options
.
lattice
});
this
.
latticeMenu
=
new
LatticeMenuView
({
model
:
this
.
model
,
lattice
:
lattice
});
this
.
importMenu
=
new
ImportMenuView
({
lattice
:
lattice
,
appState
:
this
.
model
});
this
.
sketchMenu
=
new
SketchMenuView
({
model
:
lattice
,
appState
:
this
.
model
});
this
.
partMenu
=
new
PartMenuView
({
model
:
this
.
model
,
lattice
:
lattice
});
this
.
scriptMenu
=
new
ScriptMenuView
({
model
:
this
.
model
});
this
.
physicsMenu
=
new
PhysicsMenuView
({
model
:
this
.
model
});
this
.
materialMenu
=
new
MaterialMenuView
({
model
:
this
.
model
});
this
.
optimizeMenu
=
new
OptimizationMenuView
({
model
:
this
.
model
});
this
.
assemblerMenu
=
new
AssemblerMenuView
({
model
:
this
.
model
});
this
.
animationMenu
=
new
AnimationMenuView
({
model
:
options
.
lattice
.
get
(
"
basePlane
"
),
appState
:
this
.
model
});
this
.
animationMenu
=
new
AnimationMenuView
({
model
:
lattice
.
get
(
"
basePlane
"
),
appState
:
this
.
model
});
//data names and titles
this
.
designMenuTabs
=
{
lattice
:
"
Lattice
"
,
import
:
"
Import
"
,
sketch
:
"
Sketch
"
,
part
:
"
Part
"
,
script
:
"
Script
"
};
...
...
@@ -34,7 +36,7 @@ MenuWrapper = Backbone.View.extend({
//bind events
this
.
listenTo
(
this
.
model
,
"
change:currentNav
"
,
this
.
render
);
this
.
listenTo
(
options
.
lattice
,
"
change:cellType change:connectionType
"
,
this
.
_populateAndShow
);
this
.
listenTo
(
lattice
,
"
change:cellType change:connectionType
"
,
this
.
_populateAndShow
);
this
.
listenTo
(
this
.
model
,
"
change:currentTab
"
,
this
.
_updateCurrentTab
);
this
.
listenTo
(
this
.
model
,
"
change:menuIsVisible
"
,
this
.
_setVisibility
);
...
...
This diff is collapsed.
Click to expand it.
js/models/AppState.js
+
1
−
1
View file @
9b9a0d8a
...
...
@@ -57,7 +57,7 @@ AppState = Backbone.Model.extend({
this
.
lattice
=
options
.
lattice
;
//this doesn't need to be tracked for changes
this
.
set
(
"
menuWrapper
"
,
new
MenuWrapper
({
model
:
this
,
lattice
:
this
.
lattice
}));
this
.
set
(
"
menuWrapper
"
,
new
MenuWrapper
({
model
:
this
}));
},
...
...
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