Index: lams_central/src/flash/org/lamsfoundation/lams/monitoring/CreateLessonDialog.as
===================================================================
diff -u -rf78df0243786dd75c117ded523b67367bc30ee9c -r94cc4e67c1be3413831be7c35d265ee5c36fb4ec
--- lams_central/src/flash/org/lamsfoundation/lams/monitoring/CreateLessonDialog.as (.../CreateLessonDialog.as) (revision f78df0243786dd75c117ded523b67367bc30ee9c)
+++ lams_central/src/flash/org/lamsfoundation/lams/monitoring/CreateLessonDialog.as (.../CreateLessonDialog.as) (revision 94cc4e67c1be3413831be7c35d265ee5c36fb4ec)
@@ -46,34 +46,21 @@
private var cancel_btn:Button;
private var panel:MovieClip; //The underlaying panel base
- private var switchView_tab:TabBar;
-
//location tab elements
private var treeview:Tree; //Treeview for navigation through workspace folder structure
private var location_dnd:TreeDnd;
private var input_txt:TextInput;
private var currentPath_lbl:Label;
private var name_lbl:Label;
private var resourceTitle_txi:TextInput;
- private var new_btn:Button;
- //private var cut_btn:Button;
- private var copy_btn:Button;
- private var paste_btn:Button;
- private var delete_btn:Button;
- private var rename_btn:Button;
+
//properties
private var description_lbl:Label;
- private var license_lbl:Label;
- private var resourceDesc_txa:TextArea;
- private var license_txa:TextArea;
- private var licenseID_cmb:ComboBox;
- private var licenseImg_pnl:MovieClip;
- private var viewLicense_btn:Button;
-
-
+ private var resourceDesc_txa:TextArea;
+
private var fm:FocusManager; //Reference to focus manager
private var themeManager:ThemeManager; //Theme manager
@@ -126,24 +113,13 @@
//Set the container reference
Debugger.log('container=' + _container,Debugger.GEN,'init','org.lamsfoundation.lams.WorkspaceDialog');
- //set up the tab bar:
-
- switchView_tab.addItem({label:Dictionary.getValue('ws_dlg_location_button'), data:'LOCATION'});
- switchView_tab.addItem({label:Dictionary.getValue('ws_dlg_properties_button'), data:'PROPERTIES'});
-
-
- //Set the text on the labels
+ //Set the text on the labels
//Set the text for buttons
currentPath_lbl.text = ""+Dictionary.getValue('ws_dlg_location_button')+":"
- ok_btn.label = Dictionary.getValue('ws_dlg_ok_button');
+ ok_btn.label = "Create" //Dictionary.getValue('ws_dlg_ok_button');
cancel_btn.label = Dictionary.getValue('ws_dlg_cancel_button');
- viewLicense_btn.label = Dictionary.getValue('ws_view_license_button');
- new_btn.label = Dictionary.getValue('new_btn');
- copy_btn.label = Dictionary.getValue('copy_btn');
- paste_btn.label = Dictionary.getValue('paste_btn');
- delete_btn.label = Dictionary.getValue('delete_btn');
- rename_btn.label = Dictionary.getValue('rename_btn');
+
//TODO: Dictionary calls for all the rest of the buttons
//TODO: Make setStyles more efficient
@@ -201,20 +177,7 @@
//Add event listeners for ok, cancel and close buttons
ok_btn.addEventListener('click',Delegate.create(this, ok));
cancel_btn.addEventListener('click',Delegate.create(this, cancel));
- switchView_tab.addEventListener("change",Delegate.create(this, switchTab));
//think this is failing....
- switchView_tab.setSelectedIndex(0);
-
- new_btn.addEventListener('click',Delegate.create(_workspaceController, _workspaceController.fileOperationRequest));
- //cut_btn.addEventListener('click',Delegate.create(_workspaceController, _workspaceController.fileOperationRequest));
- copy_btn.addEventListener('click',Delegate.create(_workspaceController, _workspaceController.fileOperationRequest));
- paste_btn.addEventListener('click',Delegate.create(_workspaceController, _workspaceController.fileOperationRequest));
- delete_btn.addEventListener('click',Delegate.create(_workspaceController, _workspaceController.fileOperationRequest));
- rename_btn.addEventListener('click',Delegate.create(_workspaceController, _workspaceController.fileOperationRequest));
-
- viewLicense_btn.addEventListener('click',Delegate.create(this, openLicenseURL));
- licenseID_cmb.addEventListener('change',Delegate.create(this, onLicenseComboSelect));
-
//Set up the treeview
setUpTreeview();
@@ -251,8 +214,8 @@
case 'REFRESH_FOLDER' :
refreshFolder(event.data, wm);
break;
- case 'SHOW_TAB' :
- showTab(event.data,wm);
+ case 'SHOW_DATA' :
+ showData(wm);
break;
case 'SET_UP_BRANCHES_INIT' :
setUpBranchesInit();
@@ -351,20 +314,7 @@
resourceTitle_txi.text = nodeData.name;
resourceDesc_txa.text = nodeData.description;
Debugger.log('nodeData.licenseID:'+nodeData.licenseID,Debugger.GEN,'itemSelected','org.lamsfoundation.lams.ws.WorkspaceDialog');
- //find the SI of the license we need:
- //check if a license ID has been selected:
- if(nodeData.licenseID > 0){
- for(var i=0; i