Skip to content

Commit

Permalink
Added survey inputs to assignments 1 and 2
Browse files Browse the repository at this point in the history
  • Loading branch information
fiebrink1 committed Jul 9, 2016
1 parent fc8791c commit a088da7
Show file tree
Hide file tree
Showing 10 changed files with 817 additions and 15 deletions.
2 changes: 1 addition & 1 deletion nbproject/configs/Assignment3.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
main.class=wekimini.kadenze.Assignment5Grader
main.class=wekimini.kadenze.Assignment3Grader
1 change: 1 addition & 0 deletions nbproject/configs/Assignment4.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
main.class=wekimini.kadenze.Assignment4Grader
1 change: 1 addition & 0 deletions nbproject/configs/Assignment6.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
main.class=wekimini.kadenze.Assignment6Grader
41 changes: 39 additions & 2 deletions src/wekimini/gui/MainGUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/
package wekimini.gui;

import wekimini.kadenze.KadenzeAssn3SubmissionPrompt;
import wekimini.kadenze.KadenzeAssignmentSummaryFrame;
import java.awt.Dimension;
import java.awt.event.WindowAdapter;
Expand Down Expand Up @@ -35,6 +36,8 @@
import wekimini.dtw.gui.DtwOutputEditor;
import wekimini.kadenze.KadenzeAssignment;
import wekimini.kadenze.KadenzeAssignment.KadenzeAssignmentType;
import wekimini.kadenze.KadenzeAssn1SubmissionPrompt;
import wekimini.kadenze.KadenzeAssn2SubmissionPrompt;
import wekimini.kadenze.KadenzeAssn6SubmissionPrompt;
import wekimini.kadenze.KadenzeAssn7SubmissionPrompt;
import wekimini.kadenze.KadenzeAssn4SubmissionPrompt1;
Expand Down Expand Up @@ -455,10 +458,44 @@ private void createAssignmentSubmission() {
//Show prompt for information about input device & difficulty
KadenzeAssignmentType ka = KadenzeLogging.getCurrentAssignmentType();
int which = KadenzeAssignment.getAssignmentNumber(ka);
if (which == 3) {
if (which == 1) {
//Show prompt
final MainGUI mg = this;
KadenzeInputPromptFrame kipf = new KadenzeInputPromptFrame(w, new KadenzeInputPromptFrame.KadenzeInputInfoReceiver() {
KadenzeAssn1SubmissionPrompt kipf = new KadenzeAssn1SubmissionPrompt(w, new KadenzeAssn1SubmissionPrompt.KadenzeAssn1InputInfoReceiver() {
@Override
public void infoLogged() {
String zipped;
try {
zipped = KadenzeLogging.createZipForAssignment();
Util.showPrettyInfoPane(mg, "Your assignment is done! Please submit file " + zipped, "Success!");
} catch (IOException ex) {
String dir = KadenzeLogging.getLogger().getZipDirectoryNameForAssignment();
Util.showPrettyErrorPane(mg, "Could not zip file. Please zip your " + dir + " directory manually.");
}
}
});
kipf.setVisible(true);
} else if (which == 2) {
//Show prompt
final MainGUI mg = this;
KadenzeAssn2SubmissionPrompt kipf = new KadenzeAssn2SubmissionPrompt(w, new KadenzeAssn2SubmissionPrompt.KadenzeAssn2InputInfoReceiver() {
@Override
public void infoLogged() {
String zipped;
try {
zipped = KadenzeLogging.createZipForAssignment();
Util.showPrettyInfoPane(mg, "Your assignment is done! Please submit file " + zipped, "Success!");
} catch (IOException ex) {
String dir = KadenzeLogging.getLogger().getZipDirectoryNameForAssignment();
Util.showPrettyErrorPane(mg, "Could not zip file. Please zip your " + dir + " directory manually.");
}
}
});
kipf.setVisible(true);
} else if (which == 3) {
//Show prompt
final MainGUI mg = this;
KadenzeAssn3SubmissionPrompt kipf = new KadenzeAssn3SubmissionPrompt(w, new KadenzeAssn3SubmissionPrompt.KadenzeAssn3InputInfoReceiver() {
@Override
public void infoLogged() {
String zipped;
Expand Down
156 changes: 156 additions & 0 deletions src/wekimini/kadenze/KadenzeAssn1SubmissionPrompt.form
Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
<?xml version="1.0" encoding="UTF-8" ?>

<Form version="1.3" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JFrameFormInfo">
<Properties>
<Property name="defaultCloseOperation" type="int" value="2"/>
<Property name="title" type="java.lang.String" value="Almost done! Just a few questions..."/>
</Properties>
<SyntheticProperties>
<SyntheticProperty name="formSizePolicy" type="int" value="1"/>
<SyntheticProperty name="generateCenter" type="boolean" value="false"/>
</SyntheticProperties>
<AuxValues>
<AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/>
<AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/>
<AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/>
<AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
<AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
</AuxValues>

<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<Component id="jPanel1" alignment="0" max="32767" attributes="0"/>
</Group>
</DimensionLayout>
<DimensionLayout dim="1">
<Group type="103" groupAlignment="0" attributes="0">
<Component id="jPanel1" alignment="0" max="32767" attributes="0"/>
</Group>
</DimensionLayout>
</Layout>
<SubComponents>
<Container class="javax.swing.JPanel" name="jPanel1">
<Properties>
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="ff" green="ff" red="ff" type="rgb"/>
</Property>
</Properties>

<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="1" attributes="0">
<Group type="103" groupAlignment="1" attributes="0">
<Group type="102" alignment="1" attributes="0">
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
<Component id="jButton2" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="jButton1" min="-2" max="-2" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Component id="jScrollPane1" alignment="0" max="32767" attributes="0"/>
<Component id="jLabel5" alignment="0" max="32767" attributes="0"/>
<Component id="jLabel3" alignment="0" pref="0" max="32767" attributes="0"/>
<Group type="102" alignment="0" attributes="0">
<Component id="comboDifficulty" min="-2" max="-2" attributes="0"/>
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
</Group>
</Group>
</Group>
</Group>
<EmptySpace max="-2" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
<DimensionLayout dim="1">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Component id="jLabel5" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="comboDifficulty" min="-2" max="-2" attributes="0"/>
<EmptySpace type="unrelated" max="-2" attributes="0"/>
<Component id="jLabel3" min="-2" pref="58" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="jScrollPane1" min="-2" pref="124" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
<Group type="103" groupAlignment="3" attributes="0">
<Component id="jButton1" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="jButton2" alignment="3" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace max="-2" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
</Layout>
<SubComponents>
<Component class="javax.swing.JButton" name="jButton1">
<Properties>
<Property name="text" type="java.lang.String" value="OK: Proceed to creating submission"/>
</Properties>
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButton1ActionPerformed"/>
</Events>
</Component>
<Component class="javax.swing.JButton" name="jButton2">
<Properties>
<Property name="text" type="java.lang.String" value="Cancel"/>
</Properties>
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButton2ActionPerformed"/>
</Events>
</Component>
<Container class="javax.swing.JScrollPane" name="jScrollPane1">
<AuxValues>
<AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/>
</AuxValues>

<Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
<SubComponents>
<Component class="javax.swing.JTextArea" name="textDifficulties">
<Properties>
<Property name="columns" type="int" value="20"/>
<Property name="rows" type="int" value="5"/>
</Properties>
</Component>
</SubComponents>
</Container>
<Component class="javax.swing.JLabel" name="jLabel3">
<Properties>
<Property name="text" type="java.lang.String" value="&lt;html&gt;Optionally describe any difficulties you encountered, so that we can improve the assignment and/or software for other students. (Your answer will not affect your grade.)&lt;/html&gt;"/>
</Properties>
</Component>
<Component class="javax.swing.JLabel" name="jLabel5">
<Properties>
<Property name="text" type="java.lang.String" value="How difficult did you find this assignment, on a scale from 1 (very easy) to 10 (very difficult)?"/>
</Properties>
</Component>
<Component class="javax.swing.JComboBox" name="comboDifficulty">
<Properties>
<Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor">
<StringArray count="10">
<StringItem index="0" value="1: Very easy"/>
<StringItem index="1" value="2"/>
<StringItem index="2" value="3"/>
<StringItem index="3" value="4"/>
<StringItem index="4" value="5"/>
<StringItem index="5" value="6"/>
<StringItem index="6" value="7"/>
<StringItem index="7" value="8"/>
<StringItem index="8" value="9"/>
<StringItem index="9" value="10: Very difficult"/>
</StringArray>
</Property>
</Properties>
</Component>
</SubComponents>
</Container>
</SubComponents>
</Form>
Loading

0 comments on commit a088da7

Please sign in to comment.