Search in sources :

Example 1 with DrawingEditorController

use of org.olat.ims.qti21.ui.editor.interactions.DrawingEditorController in project openolat by klemens.

the class AssessmentItemEditorController method initDrawingEditors.

private AssessmentItemBuilder initDrawingEditors(UserRequest ureq, AssessmentItem item) {
    DrawingAssessmentItemBuilder uploadItemBuilder = new DrawingAssessmentItemBuilder(item, qtiService.qtiSerializer());
    itemEditor = new DrawingEditorController(ureq, getWindowControl(), uploadItemBuilder, rootDirectory, rootContainer, itemFile, restrictedEdit, readOnly);
    listenTo(itemEditor);
    scoreEditor = new MinimalScoreController(ureq, getWindowControl(), uploadItemBuilder, itemRef, restrictedEdit, readOnly, "Test and Questionnaire Editor in Detail#details_testeditor_fragetypen_ft");
    listenTo(scoreEditor);
    feedbackEditor = new FeedbacksEditorController(ureq, getWindowControl(), uploadItemBuilder, rootDirectory, rootContainer, itemFile, FeedbacksEnabler.lobFeedbacks(), restrictedEdit, readOnly);
    listenTo(feedbackEditor);
    tabbedPane.addTab(translate("form.drawing"), itemEditor);
    tabbedPane.addTab(translate("form.score"), scoreEditor);
    tabbedPane.addTab(translate("form.feedback"), feedbackEditor);
    return uploadItemBuilder;
}
Also used : DrawingEditorController(org.olat.ims.qti21.ui.editor.interactions.DrawingEditorController) DrawingAssessmentItemBuilder(org.olat.ims.qti21.model.xml.interactions.DrawingAssessmentItemBuilder)

Example 2 with DrawingEditorController

use of org.olat.ims.qti21.ui.editor.interactions.DrawingEditorController in project OpenOLAT by OpenOLAT.

the class AssessmentItemEditorController method initDrawingEditors.

private AssessmentItemBuilder initDrawingEditors(UserRequest ureq, AssessmentItem item) {
    DrawingAssessmentItemBuilder uploadItemBuilder = new DrawingAssessmentItemBuilder(item, qtiService.qtiSerializer());
    itemEditor = new DrawingEditorController(ureq, getWindowControl(), uploadItemBuilder, rootDirectory, rootContainer, itemFile, restrictedEdit, readOnly);
    listenTo(itemEditor);
    scoreEditor = new MinimalScoreController(ureq, getWindowControl(), uploadItemBuilder, itemRef, restrictedEdit, readOnly, "Test and Questionnaire Editor in Detail#details_testeditor_fragetypen_ft");
    listenTo(scoreEditor);
    feedbackEditor = new FeedbacksEditorController(ureq, getWindowControl(), uploadItemBuilder, rootDirectory, rootContainer, itemFile, FeedbacksEnabler.lobFeedbacks(), restrictedEdit, readOnly);
    listenTo(feedbackEditor);
    tabbedPane.addTab(translate("form.drawing"), itemEditor);
    tabbedPane.addTab(translate("form.score"), scoreEditor);
    tabbedPane.addTab(translate("form.feedback"), feedbackEditor);
    return uploadItemBuilder;
}
Also used : DrawingEditorController(org.olat.ims.qti21.ui.editor.interactions.DrawingEditorController) DrawingAssessmentItemBuilder(org.olat.ims.qti21.model.xml.interactions.DrawingAssessmentItemBuilder)

Aggregations

DrawingAssessmentItemBuilder (org.olat.ims.qti21.model.xml.interactions.DrawingAssessmentItemBuilder)2 DrawingEditorController (org.olat.ims.qti21.ui.editor.interactions.DrawingEditorController)2