Index: lams_flex/LamsAuthor/src/assets/languages/dictionary.xml
===================================================================
RCS file: /usr/local/cvsroot/lams_flex/LamsAuthor/src/assets/languages/dictionary.xml,v
diff -u -r1.6 -r1.7
--- lams_flex/LamsAuthor/src/assets/languages/dictionary.xml 3 Feb 2010 05:23:50 -0000 1.6
+++ lams_flex/LamsAuthor/src/assets/languages/dictionary.xml 31 Mar 2010 07:11:20 -0000 1.7
@@ -194,6 +194,18 @@
Equal group sizes
+
+ Grouping type
+
+
+ Random
+
+
+ Choose in Monitor
+
+
+ Learner's choice
+
\ No newline at end of file
Index: lams_flex/LamsAuthor/src/assets/languages/en_AU.xml
===================================================================
RCS file: /usr/local/cvsroot/lams_flex/LamsAuthor/src/assets/languages/en_AU.xml,v
diff -u -r1.7 -r1.8
--- lams_flex/LamsAuthor/src/assets/languages/en_AU.xml 11 Feb 2010 05:07:38 -0000 1.7
+++ lams_flex/LamsAuthor/src/assets/languages/en_AU.xml 31 Mar 2010 07:11:20 -0000 1.8
@@ -209,5 +209,17 @@
None
+
+ Grouping type
+
+
+ Random
+
+
+ Choose in Monitor
+
+
+ Learner's choice
+
\ No newline at end of file
Index: lams_flex/LamsAuthor/src/org/lamsfoundation/lams/author/components/PropertyInspector.mxml
===================================================================
RCS file: /usr/local/cvsroot/lams_flex/LamsAuthor/src/org/lamsfoundation/lams/author/components/PropertyInspector.mxml,v
diff -u -r1.10 -r1.11
--- lams_flex/LamsAuthor/src/org/lamsfoundation/lams/author/components/PropertyInspector.mxml 30 Mar 2010 12:49:09 -0000 1.10
+++ lams_flex/LamsAuthor/src/org/lamsfoundation/lams/author/components/PropertyInspector.mxml 31 Mar 2010 07:11:20 -0000 1.11
@@ -3,6 +3,7 @@
buttonClick="toggleMininmiseMaximise()" buttonPadding="4"
buttonIcon="{minimiseIcon}"
xmlns:group="org.lamsfoundation.lams.author.components.activity.group.*"
+ xmlns:common="org.lamsfoundation.lams.common.components.*"
xmlns="org.lamsfoundation.lams.common.ui.components.*"
layout="absolute"
minWidth="250"
@@ -17,6 +18,8 @@
+ horizontalAlign="center" verticalGap="2" paddingBottom="0" paddingLeft="0" paddingRight="0" top="5">
-
+
@@ -120,22 +138,142 @@
text="{selectedActivityComponent.title}" />
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
Index: lams_flex/LamsAuthor/src/org/lamsfoundation/lams/author/components/activity/ActivityComponent.mxml
===================================================================
RCS file: /usr/local/cvsroot/lams_flex/LamsAuthor/src/org/lamsfoundation/lams/author/components/activity/ActivityComponent.mxml,v
diff -u -r1.20 -r1.21
--- lams_flex/LamsAuthor/src/org/lamsfoundation/lams/author/components/activity/ActivityComponent.mxml 30 Mar 2010 12:49:09 -0000 1.20
+++ lams_flex/LamsAuthor/src/org/lamsfoundation/lams/author/components/activity/ActivityComponent.mxml 31 Mar 2010 07:11:20 -0000 1.21
@@ -223,19 +223,27 @@
_activity.title = title;
}
- public function get activityTypeID():int {
+ [Bindable] public function get activityTypeID():int {
return _activity.activityTypeID;
}
+ public function set activityTypeID(activityTypeID:int):void {
+ _activity.activityTypeID = activityTypeID;
+ }
+
/**
* Returns the root activity object
* This is required as AS3 has not concept of abstract methods.
* So we need to be able to fetch this activity instance
* Without knowing what activity type it is.
*/
- public function get rootActivity():Activity {
+ [Bindable]public function get rootActivity():Activity {
return _activity;
}
+
+ public function set rootActivity(activity:Activity):void {
+ this._activity = activity;
+ }
]]>
Index: lams_flex/LamsAuthor/src/org/lamsfoundation/lams/author/components/activity/ActivityComponentFactory.as
===================================================================
RCS file: /usr/local/cvsroot/lams_flex/LamsAuthor/src/org/lamsfoundation/lams/author/components/activity/ActivityComponentFactory.as,v
diff -u -r1.1 -r1.2
--- lams_flex/LamsAuthor/src/org/lamsfoundation/lams/author/components/activity/ActivityComponentFactory.as 29 Mar 2010 02:16:01 -0000 1.1
+++ lams_flex/LamsAuthor/src/org/lamsfoundation/lams/author/components/activity/ActivityComponentFactory.as 31 Mar 2010 07:11:20 -0000 1.2
@@ -9,7 +9,7 @@
import org.lamsfoundation.lams.author.model.activity.Activity;
import org.lamsfoundation.lams.author.model.activity.ActivityFactory;
import org.lamsfoundation.lams.author.model.activity.CombinedActivity;
- import org.lamsfoundation.lams.author.model.activity.GroupActivity;
+ import org.lamsfoundation.lams.author.model.activity.group.GroupActivity;
import org.lamsfoundation.lams.author.model.activity.OptionalActivity;
import org.lamsfoundation.lams.author.model.activity.ToolActivity;
import org.lamsfoundation.lams.author.util.Constants;
Index: lams_flex/LamsAuthor/src/org/lamsfoundation/lams/author/components/activity/group/GroupActivityComponent.mxml
===================================================================
RCS file: /usr/local/cvsroot/lams_flex/LamsAuthor/src/org/lamsfoundation/lams/author/components/activity/group/GroupActivityComponent.mxml,v
diff -u -r1.6 -r1.7
--- lams_flex/LamsAuthor/src/org/lamsfoundation/lams/author/components/activity/group/GroupActivityComponent.mxml 30 Mar 2010 04:27:16 -0000 1.6
+++ lams_flex/LamsAuthor/src/org/lamsfoundation/lams/author/components/activity/group/GroupActivityComponent.mxml 31 Mar 2010 07:11:20 -0000 1.7
@@ -7,10 +7,9 @@
-
-
+
-
+
-
Index: lams_flex/LamsAuthor/src/org/lamsfoundation/lams/author/components/toolbar/ToolBar.mxml
===================================================================
RCS file: /usr/local/cvsroot/lams_flex/LamsAuthor/src/org/lamsfoundation/lams/author/components/toolbar/ToolBar.mxml,v
diff -u -r1.7 -r1.8
--- lams_flex/LamsAuthor/src/org/lamsfoundation/lams/author/components/toolbar/ToolBar.mxml 30 Mar 2010 02:43:35 -0000 1.7
+++ lams_flex/LamsAuthor/src/org/lamsfoundation/lams/author/components/toolbar/ToolBar.mxml 31 Mar 2010 07:11:20 -0000 1.8
@@ -249,7 +249,7 @@
label="{Application.application.dictionary.getLabel('monitor_group_btn')}"
toolTip="{Application.application.dictionary.getLabel('monitor_group_btn_tooltip')}"/>
- numberOfGroups) {
+ for (var i:int = numberOfGroups; igroupNum-1; j--){
+ groups.removeItemAt(j);
+ }
+ }
+ numberOfGroups = groupNum;
+ }
+
+ private function generateGroupName():String {
+ return Application.application.dictionary.getLabel('group_btn') + " " + (numberOfGroups + 1);
+ }
+
+ public static function get nullGroupActivity():GroupActivity {
+ var nullGroup:GroupActivity = new GroupActivity(0, 0);
+ nullGroup.title = Application.application.dictionary.getLabel("none_act_lbl");
+ nullGroup.isNullGrouping = true;
+ return nullGroup;
+ }
+ }
+}
\ No newline at end of file
Index: lams_flex/LamsAuthor/src/org/lamsfoundation/lams/author/util/AuthorUtil.as
===================================================================
RCS file: /usr/local/cvsroot/lams_flex/LamsAuthor/src/org/lamsfoundation/lams/author/util/AuthorUtil.as,v
diff -u -r1.2 -r1.3
--- lams_flex/LamsAuthor/src/org/lamsfoundation/lams/author/util/AuthorUtil.as 29 Mar 2010 02:16:01 -0000 1.2
+++ lams_flex/LamsAuthor/src/org/lamsfoundation/lams/author/util/AuthorUtil.as 31 Mar 2010 07:11:20 -0000 1.3
@@ -8,6 +8,9 @@
import mx.controls.Image;
+ import org.lamsfoundation.lams.author.model.activity.Activity;
+ import org.lamsfoundation.lams.author.model.activity.ToolActivity;
+
public class AuthorUtil
{
public function AuthorUtil(){}
@@ -43,15 +46,31 @@
return image;
}
- public static function activitySupportsGrouping(activityTypeID:int):Boolean {
- return activityTypeID != Constants.ACTIVITY_TYPE_GATE_CONDITION &&
+ public static function activitySupportsGrouping(activity:Activity):Boolean {
+ var activityTypeID:int = activity.activityTypeID;
+ if (activityTypeID != Constants.ACTIVITY_TYPE_GATE_CONDITION &&
activityTypeID != Constants.ACTIVITY_TYPE_GATE_PERMISSION &&
activityTypeID != Constants.ACTIVITY_TYPE_GATE_SCHEDULE &&
activityTypeID != Constants.ACTIVITY_TYPE_GATE_SYNCH &&
activityTypeID != Constants.ACTIVITY_TYPE_GATE_SYSTEM &&
activityTypeID != Constants.ACTIVITY_TYPE_GROUPING &&
- activityTypeID != Constants.ACTIVITY_TYPE_REFERENCE;
+ activityTypeID != Constants.ACTIVITY_TYPE_REFERENCE) {
+ if (activity is ToolActivity) {
+ return (activity as ToolActivity).groupingEnabled;
+ } else {
+ return true;
+ }
+ } else {
+ return false;
+ }
}
+
+
+
+
+
+
+
}
}
\ No newline at end of file
Index: lams_flex/LamsAuthor/src/org/lamsfoundation/lams/author/util/Constants.as
===================================================================
RCS file: /usr/local/cvsroot/lams_flex/LamsAuthor/src/org/lamsfoundation/lams/author/util/Constants.as,v
diff -u -r1.11 -r1.12
--- lams_flex/LamsAuthor/src/org/lamsfoundation/lams/author/util/Constants.as 29 Mar 2010 02:16:01 -0000 1.11
+++ lams_flex/LamsAuthor/src/org/lamsfoundation/lams/author/util/Constants.as 31 Mar 2010 07:11:20 -0000 1.12
@@ -50,7 +50,7 @@
// Grouping type
public static const GROUPING_TYPE_RANDOM:int = 1;
public static const GROUPING_TYPE_TEACHER_CHOSEN:int = 2;
- public static const GROUPING_TYPE_STUDENT_CHOICE:int = 3;
+ public static const GROUPING_TYPE_LEARNER_CHOICE:int = 3;
// Transition type
public static const TRANSITION_TYPE_NORMAL:int = 1;
Index: lams_flex/LamsFlexCommon/src/org/lamsfoundation/lams/common/components/BindableComboBox.mxml
===================================================================
RCS file: /usr/local/cvsroot/lams_flex/LamsFlexCommon/src/org/lamsfoundation/lams/common/components/BindableComboBox.mxml,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ lams_flex/LamsFlexCommon/src/org/lamsfoundation/lams/common/components/BindableComboBox.mxml 31 Mar 2010 07:11:21 -0000 1.1
@@ -0,0 +1,51 @@
+
+
+
+
+
+