2 * @author Alan Krempler
3 * Created on Dec 12, 2003
5 package isac.useractions;
8 * @author Alan Krempler
9 * @deprecated since UIElement became enum
10 * Constants describing interactions or request from the user
12 public interface IUIElement {
14 /** ***************** NOTIFICATIONS: SPECIFYING PHASE ********************** */
16 public static final int UI_DUMMY_FIRST_SPECIFY = 1;
19 * During the specifying phase, change the view on the CalcHead. WN050804
20 * how to use ? which view ?
22 public static final int UI_SPECIFY_CHANGE_VIEW = 2;
25 * During the specifying phase, have the Model of the problem (or the guard
26 * of the method) completed by the math engine.
28 public static final int UI_SPECIFY_COMPLETE_MODEL = 3;
31 * During the specifying phase, have the CalcHead completed by the math
34 public static final int UI_SPECIFY_COMPLETE_CALCHEAD = 4;
37 * During the specifying phase, have the Method field of the CalcHead
38 * completed by the math engine.
40 public static final int UI_SPECIFY_METHOD = 5;
43 * During the specifying phase, have the Theory field of the CalcHead
44 * completed by the math engine.
46 public static final int UI_SPECIFY_THEORY = 6;
49 * During the specifying phase, have the Problem field of the CalcHead
50 * completed by the math engine.
52 public static final int UI_SPECIFY_PROBLEM = 7;
55 * During the specifying phase, have the Given field of the CalcHead
56 * completed by the math engine.
58 public static final int UI_SPECIFY_COMPLETE_GIVEN = 8;
61 * During the specifying phase, have the Find field of the CalcHead
62 * completed by the math engine.
64 public static final int UI_SPECIFY_COMPLETE_FIND = 9;
67 * During the specifying phase, have the Relate field of the CalcHead
68 * completed by the math engine.
70 public static final int UI_SPECIFY_COMPLETE_RELATE = 10;
73 * During the specifying phase, have the CalcHead checked for completeness
76 public static final int UI_SPECIFY_CHECK_CALCHEAD = 11;
79 * Leave the specifying phase, enter the solving phase and calculate until a
80 * final result is reached.
82 public static final int UI_SPECIFY_CALCULATE_ALL = 12;
85 * clear the (possibly messed) contents of the CalcHeadPanel such that a
86 * UI_SPECIFY_COMPLETE_CALCHEAD or a UI_SPECIFY_CALCULATE_ALL can succeed.
88 public static final int UI_SPECIFY_RESET = 13;
91 * open the CalcHeadPanel and start the specify-phase, if the CalcHead is
94 public static final int UI_SPECIFY_OPEN_CALCHEAD = 14;
97 * Leave the specifying phase, enter the solving phase and calculate the
98 * first step of the method. A UserAction only.
100 * @see UI_SPECIFY_CLOSE_CALCHEAD the closely related UIAction
102 public static final int UI_SPECIFY_TO_SOLVE = 15;
105 * close the CalcHeadPanel (i.e. a UIAction only)
107 * @see UI_SPECIFY_TO_SOLVE the closely related UserAction
109 public static final int UI_SPECIFY_CLOSE_CALCHEAD = 16;
112 * fill calchead elementwise
114 public static final int UI_SPECIFY_COMPLETE_STEPWISE = 17;
117 * Show the guard of the method (already specified in the CalcHead). The
118 * guard of the method has the same structure as the Model of a problem;
119 * thus the guard is inserted into the CalcHead at the place of the problems
122 * @see UI_SPECIFY_SWITCH_TO_MODEL switch to the other part of a
125 public static final int UI_SPECIFY_SWITCH_TO_GUARD = 18;
128 * Switch back from having the guard of a method to having the Model of the
129 * problem (already specified in the CalcHead).
131 * @see UI_SPECIFY_SWITCH_TO_GUARD switch to the other part of a
134 public static final int UI_SPECIFY_SWITCH_TO_MODEL = 19;
136 public static final int UI_SPECIFY_EDIT_ACTIVE_FORMULA_COMPLETE = 20;
139 * @deprecated in favour of UI_SPECIFY_SWITCH_TO_MODEL | GUARD WN050830 or
140 * is there a problem with actionPerformed on radiobutton ?!? in
141 * this case WN will implement ICalcIterator#onModel, #onGuard
143 public static final int UI_SPECIFY_TOGGLE_METHOD_PROBLEM = 21;
145 public static final int UI_DUMMY_LAST_SPECIFY = 22;
147 /** ***************** NOTIFICATIONS: SOLVING PHASE ********************** */
149 public static final int UI_DUMMY_FIRST_SOLVE = 23;
152 * During the solving phase, calculate one more step.
154 public static final int UI_SOLVE_CALCULATE_1 = 23;
157 * During the solving phase, calculate until a final result is reached.
159 public static final int UI_SOLVE_CALCULATE_ALL = 24;
162 * During the solving phase, calculate until the current subproblem is
165 public static final int UI_SOLVE_CALCULATE_SUBPROBLEM = 25;
168 * During the solving phase, request editing the currently active formula.
170 * WN0412 If request is conceded, do
172 * @see UI_SOLVE_EDIT_ACTIVE_FORMULA_COMPLETE
174 public static final int UI_SOLVE_EDIT_ACTIVE_FORMULA = 26;
177 * During the solving phase, notify that editing the currently active
178 * formula is finished. This implies a request for updating the CalcTree.
180 public static final int UI_SOLVE_EDIT_ACTIVE_FORMULA_COMPLETE = 27;
183 * During the solving phase, request inserting a new formula _after_ the
184 * currently active formula, making the new formula the currently active
185 * formula. At present, this does not imply editing the formula and must be
186 * requested in a separate step. WN0412: ...??? is this right interpreted by
187 * ... WN0412 If request is conceded, do
189 * @see UI_SOLVE_EDIT_ACTIVE_FORMULA_COMPLETE
191 public static final int UI_SOLVE_APPEND_USER_FORMULA = 28;
194 * During the solving phase, request making the referened formula the
195 * currently active formula.
197 public static final int UI_SOLVE_MOVE_ACTIVE_FORMULA = 29;
200 * During the solving phase, ask for the tactic the math engine would apply
201 * to the current formula.
203 public static final int UI_SOLVE_GET_PROPOSED_TACTIC = 30;
206 * During the solving phase, ask for a list of tactics to the current
209 public static final int UI_SOLVE_GET_APPLICABLE_TACTICS = 31;
212 * During the solving phase, set the tactic to be applied to the current
215 public static final int UI_SOLVE_SET_NEXT_TACTIC = 32;
218 * When entering a formula during the solving phase, request help on
219 * entering the formula.
221 public static final int UI_SOLVE_HELP_ENTERING_FORMULA = 33;
224 * During the solving phase, show which assumptions hold at the current
225 * point of calculation.
227 public static final int UI_SOLVE_SHOW_ASSUMPTIONS = 34;
230 * Show which tactic has been applied to get this formula
232 public static final int UI_SOLVE_TACTIC_APPLIED = 35;
235 * Show which tactics are applicable for this formula
237 public static final int UI_SOLVE_SHOW_APPLICABLE_TACTICS = 36;
240 * show CalcHeadPanel; if CalcHead "complete" no interactiveElements if not,
243 public static final int UI_SOLVE_SHOW_CALCHEAD = 37;
246 * During the solving phase, request more detail about the currently
247 * referenced element.
249 public static final int UI_SOLVE_SHOW_INTERMEDIATE_STEPS = 38;
251 public static final int UI_CLOSE_WORKSHEET = 39;
253 public static final int UI_DUMMY_LAST_SOLVE = 40;
255 /** ***************** ACTIVE REQUESTS TO THE UI ********************** */
258 * Request editing the currently active formula. DG distinguishes between
259 * SPECIFY and SOLVE; thus could drop UI_SOLVE_EDIT_ACTIVE_FORMULA : int
261 * LK050711 start editing implicit somewhere in tree, thus unused
263 public static final int UI_DO_EDIT_FORMULA = 40;
266 * Request appending a new, empty formula.
268 public static final int UI_DO_APPEND_FORMULA = 41;
271 * Activate an UI element.
273 public static final int UI_DO_ACTIVATE = 42;
276 * Deactivate an UI element.
278 public static final int UI_DO_DEACTIVATE = 43;
281 * The Dialog Guide has detached the listener and will not send any more
282 * control requests. If registered as a Data Change Listener, update
283 * notifications will still arrive!
285 public static final int UI_DO_DETACH = 44;
288 * Transfer the problem from the problem browser to the worksheet
291 public static final int UI_PROBLEMBROWSER_TO_WORKSHEET = 45;
294 * Transfer the problem from the browser to the worksheet
296 public static final int UI_BROWSER_TO_WORKSHEET = 46;
299 * to turn the auto match mode on
302 public static final int UI_PROBLEMBROWSER_AUTO_MATCH_ON = 47;
305 * to turn the match mode on
307 public static final int UI_BROWSER_MATCH_ON = 48;
310 * to turn the auto match mode off
313 public static final int UI_PROBLEMBROWSER_AUTO_MATCH_OFF = 49;
316 * to turn the match mode off
318 public static final int UI_BROWSER_MATCH_OFF = 50;
321 * to open the problem browser window
324 public static final int UI_PROBLEMBROWSER_OPEN = 51;
327 * to tell the proble browser dialog that the selection in the problem
328 * browser has changed
331 public static final int UI_PROBLEMBROWSER_SELECTION_CHANGED = 52;
334 * search for a more appropriate problem
337 public static final int UI_PROBLEMBROWSER_REFINE = 53;
340 * no 'UserAction', but but included here for simplicity reasons: to send a
341 * request fot the selected problem
344 public static final int UI_PROBLEMBROWSER_SELECTED_ID = 54;
347 * no 'UserAction', but but included here for simplicity reasons: to send a
348 * request fot the active worksheet
351 public static final int UI_PROBLEMBROWSER_ACTIVE_WORKSHEET = 55;
354 * to send a new model panel to the browser
357 public static final int UI_PROBLEMBROWSER_MODEL_PANEL = 56;
360 * To send a request for the hierarchy
363 public static final int UI_REQUEST_FOR_HIERARCHY = 57;
366 * The browser reports a context change
368 public static final int UI_BROWSER_CHANGE_CONTEXT = 58;
371 * MiniBrowser reports/gets a link
373 public static final int UI_MINIBROWSER_LINK = 59;
376 * to set the focus on the browser window
378 public static final int UI_BROWSER_GET_FOCUS = 60;
381 * to focus was set on browser window
383 public static final int UI_BROWSER_GOT_FOCUS = 61;
386 * the focus in the borwser window got lost
388 public static final int UI_BROWSER_LOST_FOCUS = 62;
391 * to report that the link was set
394 public static final int UI_MINIBROWSER_LINK_SET = 63;
397 * to tell the proble browser dialog that the selection in the example
398 * browser has changed
401 public static final int UI_EXAMPLEBROWSER_SELECTION_CHANGED = 64;
406 public static final int UI_EXAMPLEBROWSER_OPEN_NEW_EXAMPLE = 65;
408 /** action to send a ke store id
411 public static final int UI_SEND_KE_STORE_ID = 66;
416 public static final int UI_PROBLEMBROWSER_START_REFINE = 67;
418 /** TODO.WN060113 can this be replaced by UI_PROBLEMBROWSER_TO_WORKSHEET ?
421 public static final int UI_REQUEST_FOR_ID = 68;