| 1 |
efrain |
1 |
// This file is part of Moodle - http://moodle.org/
|
|
|
2 |
//
|
|
|
3 |
// Moodle is free software: you can redistribute it and/or modify
|
|
|
4 |
// it under the terms of the GNU General Public License as published by
|
|
|
5 |
// the Free Software Foundation, either version 3 of the License, or
|
|
|
6 |
// (at your option) any later version.
|
|
|
7 |
//
|
|
|
8 |
// Moodle is distributed in the hope that it will be useful,
|
|
|
9 |
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
10 |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
11 |
// GNU General Public License for more details.
|
|
|
12 |
//
|
|
|
13 |
// You should have received a copy of the GNU General Public License
|
|
|
14 |
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
|
|
15 |
|
|
|
16 |
/**
|
|
|
17 |
* Provides an in browser PDF editor.
|
|
|
18 |
*
|
|
|
19 |
* @module moodle-assignfeedback_editpdf-editor
|
|
|
20 |
*/
|
|
|
21 |
|
|
|
22 |
/**
|
|
|
23 |
* Class representing a users quick comment.
|
|
|
24 |
*
|
|
|
25 |
* @namespace M.assignfeedback_editpdf
|
|
|
26 |
* @class quickcomment
|
|
|
27 |
*/
|
|
|
28 |
var QUICKCOMMENT = function(id, rawtext, width, colour) {
|
|
|
29 |
|
|
|
30 |
/**
|
|
|
31 |
* Quick comment text.
|
|
|
32 |
* @property rawtext
|
|
|
33 |
* @type String
|
|
|
34 |
* @public
|
|
|
35 |
*/
|
|
|
36 |
this.rawtext = rawtext || '';
|
|
|
37 |
|
|
|
38 |
/**
|
|
|
39 |
* ID of the comment
|
|
|
40 |
* @property id
|
|
|
41 |
* @type Int
|
|
|
42 |
* @public
|
|
|
43 |
*/
|
|
|
44 |
this.id = id || 0;
|
|
|
45 |
|
|
|
46 |
/**
|
|
|
47 |
* Width of the comment
|
|
|
48 |
* @property width
|
|
|
49 |
* @type Int
|
|
|
50 |
* @public
|
|
|
51 |
*/
|
|
|
52 |
this.width = width || 100;
|
|
|
53 |
|
|
|
54 |
/**
|
|
|
55 |
* Colour of the comment.
|
|
|
56 |
* @property colour
|
|
|
57 |
* @type String
|
|
|
58 |
* @public
|
|
|
59 |
*/
|
|
|
60 |
this.colour = colour || "yellow";
|
|
|
61 |
};
|
|
|
62 |
|
|
|
63 |
M.assignfeedback_editpdf = M.assignfeedback_editpdf || {};
|
|
|
64 |
M.assignfeedback_editpdf.quickcomment = QUICKCOMMENT;
|