summaryrefslogtreecommitdiff
path: root/public/assets/javascripts/ui/editor/EditorToolbar.js
blob: df7a974438335440dffe4622e1a83ef8c1ed6353 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
var EditorToolbar = View.extend({
	el: "#editorToolbar",

	events: {
		"click [data-role='toggle-map-view']": 'toggleMap',
		"click [data-role='toggle-project-settings']": 'toggleSettings',
		"click [data-role='open-media-viewer']": 'openMediaViewer',
		"click [data-role='resize-media']": 'resize',
		"click [data-role='toggle-wallpaper-panel']": 'toggleWallpaper',
		"click [data-role='toggle-light-control']": 'toggleLightControl',
		"click [data-role='delete-media']": 'deleteMedia',
		"click [data-role='edit-wall-text']": 'editWallText',
	},
	
	initialize: function(opt){
		this.parent = opt.parent
	},

	toggleMap: function(){
		map.toggle()
	},
	
	toggleSettings: function(){
		this.parent.settings.toggle()
	},
	
	openMediaViewer: function(){
		this.parent.mediaViewer.show()
		this.parent.mediaUpload.show()
	},
	
	resizeMedia: function(){
	},
	
	deleteMedia: function(){
	},
	
	toggleWallpaper: function(){
	},
	
	toggleLightControl: function(){
	},
	
	editWallText: function(){
	},

})