src/java/isac/useractions/IUIElement.java
author wneuper
Thu, 17 May 2007 14:05:19 +0200
changeset 3880 0b0dc38b1106
parent 3269 c40b17ae555f
child 3928 d38196e9b162
permissions -rw-r--r--
IUIElement deprecated since UIElement is 'enum'
wneuper@2770
     1
/*
wneuper@2770
     2
 * @author Alan Krempler
wneuper@2770
     3
 * Created on Dec 12, 2003
wneuper@2770
     4
 */
wneuper@2770
     5
package isac.useractions;
wneuper@2770
     6
wneuper@2770
     7
/**
wneuper@2770
     8
 * @author Alan Krempler
wneuper@3880
     9
 * @deprecated since UIElement became enum
wneuper@3079
    10
 * Constants describing interactions or request from the user
wneuper@2770
    11
 */
wneuper@3880
    12
    public interface IUIElement {
wneuper@2770
    13
wneuper@2815
    14
    /** ***************** NOTIFICATIONS: SPECIFYING PHASE ********************** */
wneuper@2770
    15
wneuper@2815
    16
    public static final int UI_DUMMY_FIRST_SPECIFY = 1;
wneuper@2815
    17
wneuper@2815
    18
    /**
wneuper@2815
    19
     * During the specifying phase, change the view on the CalcHead. WN050804
wneuper@2815
    20
     * how to use ? which view ?
wneuper@2815
    21
     */
gkompach@3268
    22
    public static final int UI_SPECIFY_CHANGE_VIEW = 2;
wneuper@2815
    23
wneuper@2815
    24
    /**
wneuper@2847
    25
     * During the specifying phase, have the Model of the problem (or the guard
wneuper@2847
    26
     * of the method) completed by the math engine.
wneuper@2847
    27
     */
gkompach@3268
    28
    public static final int UI_SPECIFY_COMPLETE_MODEL = 3;
wneuper@2847
    29
wneuper@2847
    30
    /**
wneuper@2815
    31
     * During the specifying phase, have the CalcHead completed by the math
wneuper@2815
    32
     * engine.
wneuper@2815
    33
     */
gkompach@3268
    34
    public static final int UI_SPECIFY_COMPLETE_CALCHEAD = 4;
wneuper@2815
    35
wneuper@2815
    36
    /**
wneuper@2815
    37
     * During the specifying phase, have the Method field of the CalcHead
wneuper@2815
    38
     * completed by the math engine.
wneuper@2815
    39
     */
gkompach@3268
    40
    public static final int UI_SPECIFY_METHOD = 5;
wneuper@2815
    41
wneuper@2815
    42
    /**
wneuper@2815
    43
     * During the specifying phase, have the Theory field of the CalcHead
wneuper@2815
    44
     * completed by the math engine.
wneuper@2815
    45
     */
gkompach@3268
    46
    public static final int UI_SPECIFY_THEORY = 6;
wneuper@2815
    47
wneuper@2815
    48
    /**
wneuper@2815
    49
     * During the specifying phase, have the Problem field of the CalcHead
wneuper@2815
    50
     * completed by the math engine.
wneuper@2815
    51
     */
gkompach@3268
    52
    public static final int UI_SPECIFY_PROBLEM = 7;
wneuper@2815
    53
wneuper@2815
    54
    /**
wneuper@2815
    55
     * During the specifying phase, have the Given field of the CalcHead
wneuper@2815
    56
     * completed by the math engine.
wneuper@2815
    57
     */
gkompach@3268
    58
    public static final int UI_SPECIFY_COMPLETE_GIVEN = 8;
wneuper@2815
    59
wneuper@2815
    60
    /**
wneuper@2815
    61
     * During the specifying phase, have the Find field of the CalcHead
wneuper@2815
    62
     * completed by the math engine.
wneuper@2815
    63
     */
gkompach@3268
    64
    public static final int UI_SPECIFY_COMPLETE_FIND = 9;
wneuper@2815
    65
wneuper@2815
    66
    /**
wneuper@2815
    67
     * During the specifying phase, have the Relate field of the CalcHead
wneuper@2815
    68
     * completed by the math engine.
wneuper@2815
    69
     */
gkompach@3268
    70
    public static final int UI_SPECIFY_COMPLETE_RELATE = 10;
wneuper@2815
    71
wneuper@2815
    72
    /**
wneuper@2815
    73
     * During the specifying phase, have the CalcHead checked for completeness
wneuper@2815
    74
     * and consistency.
wneuper@2815
    75
     */
gkompach@3268
    76
    public static final int UI_SPECIFY_CHECK_CALCHEAD = 11;
wneuper@2815
    77
wneuper@2815
    78
    /**
wneuper@2815
    79
     * Leave the specifying phase, enter the solving phase and calculate until a
wneuper@2815
    80
     * final result is reached.
wneuper@2815
    81
     */
gkompach@3268
    82
    public static final int UI_SPECIFY_CALCULATE_ALL = 12;
wneuper@2815
    83
wneuper@2815
    84
    /**
wneuper@2815
    85
     * clear the (possibly messed) contents of the CalcHeadPanel such that a
wneuper@2815
    86
     * UI_SPECIFY_COMPLETE_CALCHEAD or a UI_SPECIFY_CALCULATE_ALL can succeed.
wneuper@2815
    87
     */
gkompach@3268
    88
    public static final int UI_SPECIFY_RESET = 13;
wneuper@2815
    89
wneuper@2815
    90
    /**
wneuper@2827
    91
     * open the CalcHeadPanel and start the specify-phase, if the CalcHead is
wneuper@2827
    92
     * not 'complete'
wneuper@2815
    93
     */
gkompach@3268
    94
    public static final int UI_SPECIFY_OPEN_CALCHEAD = 14;
wneuper@2815
    95
wneuper@2815
    96
    /**
wneuper@2847
    97
     * Leave the specifying phase, enter the solving phase and calculate the
wneuper@2847
    98
     * first step of the method. A UserAction only.
wneuper@2847
    99
     * 
wneuper@2847
   100
     * @see UI_SPECIFY_CLOSE_CALCHEAD the closely related UIAction
wneuper@2847
   101
     */
gkompach@3268
   102
    public static final int UI_SPECIFY_TO_SOLVE = 15;
wneuper@2847
   103
wneuper@2847
   104
    /**
wneuper@2847
   105
     * close the CalcHeadPanel (i.e. a UIAction only)
wneuper@2847
   106
     * 
wneuper@2847
   107
     * @see UI_SPECIFY_TO_SOLVE the closely related UserAction
wneuper@2815
   108
     */
gkompach@3268
   109
    public static final int UI_SPECIFY_CLOSE_CALCHEAD = 16;
wneuper@2815
   110
wneuper@2815
   111
    /**
wneuper@2815
   112
     * fill calchead elementwise
wneuper@2815
   113
     */
gkompach@3268
   114
    public static final int UI_SPECIFY_COMPLETE_STEPWISE = 17;
wneuper@2770
   115
wneuper@2827
   116
    /**
wneuper@2840
   117
     * Show the guard of the method (already specified in the CalcHead). The
wneuper@2840
   118
     * guard of the method has the same structure as the Model of a problem;
wneuper@2840
   119
     * thus the guard is inserted into the CalcHead at the place of the problems
wneuper@2840
   120
     * Model.
wneuper@2840
   121
     * 
wneuper@2840
   122
     * @see UI_SPECIFY_SWITCH_TO_MODEL switch to the other part of a
wneuper@2840
   123
     *      toggle-mode.
wneuper@2840
   124
     */
gkompach@3268
   125
    public static final int UI_SPECIFY_SWITCH_TO_GUARD = 18;
wneuper@2840
   126
wneuper@2840
   127
    /**
wneuper@2840
   128
     * Switch back from having the guard of a method to having the Model of the
wneuper@2840
   129
     * problem (already specified in the CalcHead).
wneuper@2840
   130
     * 
wneuper@2840
   131
     * @see UI_SPECIFY_SWITCH_TO_GUARD switch to the other part of a
wneuper@2840
   132
     *      toggle-mode.
wneuper@2840
   133
     */
gkompach@3268
   134
    public static final int UI_SPECIFY_SWITCH_TO_MODEL = 19;
wneuper@3079
   135
gkompach@3268
   136
    public static final int UI_SPECIFY_EDIT_ACTIVE_FORMULA_COMPLETE = 20;
wneuper@3079
   137
wneuper@3079
   138
    /**
wneuper@3079
   139
     * @deprecated in favour of UI_SPECIFY_SWITCH_TO_MODEL | GUARD WN050830 or
wneuper@3079
   140
     *             is there a problem with actionPerformed on radiobutton ?!? in
wneuper@3079
   141
     *             this case WN will implement ICalcIterator#onModel, #onGuard
wneuper@2959
   142
     */
gkompach@3268
   143
    public static final int UI_SPECIFY_TOGGLE_METHOD_PROBLEM = 21;
wneuper@2770
   144
gkompach@3268
   145
    public static final int UI_DUMMY_LAST_SPECIFY = 22;
wneuper@2770
   146
wneuper@2815
   147
    /** ***************** NOTIFICATIONS: SOLVING PHASE ********************** */
wneuper@2770
   148
gkompach@3268
   149
    public static final int UI_DUMMY_FIRST_SOLVE = 23;
wneuper@2770
   150
wneuper@2815
   151
    /**
wneuper@2815
   152
     * During the solving phase, calculate one more step.
wneuper@2815
   153
     */
gkompach@3268
   154
    public static final int UI_SOLVE_CALCULATE_1 = 23;
wneuper@2770
   155
wneuper@2815
   156
    /**
wneuper@2815
   157
     * During the solving phase, calculate until a final result is reached.
wneuper@2815
   158
     */
gkompach@3268
   159
    public static final int UI_SOLVE_CALCULATE_ALL = 24;
wneuper@2770
   160
wneuper@2815
   161
    /**
wneuper@2815
   162
     * During the solving phase, calculate until the current subproblem is
wneuper@2815
   163
     * solved.
wneuper@2815
   164
     */
gkompach@3268
   165
    public static final int UI_SOLVE_CALCULATE_SUBPROBLEM = 25;
wneuper@2770
   166
wneuper@2815
   167
    /**
wneuper@2815
   168
     * During the solving phase, request editing the currently active formula.
wneuper@2815
   169
     * 
wneuper@2815
   170
     * WN0412 If request is conceded, do
wneuper@2815
   171
     * 
wneuper@2815
   172
     * @see UI_SOLVE_EDIT_ACTIVE_FORMULA_COMPLETE
wneuper@2815
   173
     */
gkompach@3268
   174
    public static final int UI_SOLVE_EDIT_ACTIVE_FORMULA = 26;
wneuper@2770
   175
wneuper@2815
   176
    /**
wneuper@2815
   177
     * During the solving phase, notify that editing the currently active
wneuper@2815
   178
     * formula is finished. This implies a request for updating the CalcTree.
wneuper@2815
   179
     */
gkompach@3268
   180
    public static final int UI_SOLVE_EDIT_ACTIVE_FORMULA_COMPLETE = 27;
wneuper@2770
   181
wneuper@2815
   182
    /**
wneuper@2815
   183
     * During the solving phase, request inserting a new formula _after_ the
wneuper@2815
   184
     * currently active formula, making the new formula the currently active
wneuper@2815
   185
     * formula. At present, this does not imply editing the formula and must be
wneuper@2815
   186
     * requested in a separate step. WN0412: ...??? is this right interpreted by
wneuper@2815
   187
     * ... WN0412 If request is conceded, do
wneuper@2815
   188
     * 
wneuper@2815
   189
     * @see UI_SOLVE_EDIT_ACTIVE_FORMULA_COMPLETE
wneuper@2815
   190
     */
gkompach@3268
   191
    public static final int UI_SOLVE_APPEND_USER_FORMULA = 28;
wneuper@2770
   192
wneuper@2815
   193
    /**
wneuper@2815
   194
     * During the solving phase, request making the referened formula the
wneuper@2815
   195
     * currently active formula.
wneuper@2815
   196
     */
gkompach@3268
   197
    public static final int UI_SOLVE_MOVE_ACTIVE_FORMULA = 29;
wneuper@2770
   198
wneuper@2815
   199
    /**
wneuper@2815
   200
     * During the solving phase, ask for the tactic the math engine would apply
wneuper@2815
   201
     * to the current formula.
wneuper@2815
   202
     */
gkompach@3268
   203
    public static final int UI_SOLVE_GET_PROPOSED_TACTIC = 30;
wneuper@2770
   204
wneuper@2815
   205
    /**
wneuper@2815
   206
     * During the solving phase, ask for a list of tactics to the current
wneuper@2815
   207
     * formula.
wneuper@2815
   208
     */
gkompach@3268
   209
    public static final int UI_SOLVE_GET_APPLICABLE_TACTICS = 31;
wneuper@2770
   210
wneuper@2815
   211
    /**
wneuper@2815
   212
     * During the solving phase, set the tactic to be applied to the current
wneuper@2815
   213
     * formula.
wneuper@2815
   214
     */
gkompach@3268
   215
    public static final int UI_SOLVE_SET_NEXT_TACTIC = 32;
wneuper@2770
   216
wneuper@2815
   217
    /**
wneuper@2815
   218
     * When entering a formula during the solving phase, request help on
wneuper@2815
   219
     * entering the formula.
wneuper@2815
   220
     */
gkompach@3268
   221
    public static final int UI_SOLVE_HELP_ENTERING_FORMULA = 33;
wneuper@2770
   222
wneuper@2815
   223
    /**
wneuper@2815
   224
     * During the solving phase, show which assumptions hold at the current
wneuper@2815
   225
     * point of calculation.
wneuper@2815
   226
     */
gkompach@3268
   227
    public static final int UI_SOLVE_SHOW_ASSUMPTIONS = 34;
wneuper@2770
   228
wneuper@2815
   229
    /**
wneuper@2815
   230
     * Show which tactic has been applied to get this formula
wneuper@2815
   231
     */
gkompach@3268
   232
    public static final int UI_SOLVE_TACTIC_APPLIED = 35;
wneuper@2770
   233
wneuper@2815
   234
    /**
nsimic@3269
   235
     * Show which tactics are applicable for this formula
nsimic@3269
   236
     */
nsimic@3269
   237
    public static final int UI_SOLVE_SHOW_APPLICABLE_TACTICS = 36;
nsimic@3269
   238
    
nsimic@3269
   239
    /**
wneuper@2815
   240
     * show CalcHeadPanel; if CalcHead "complete" no interactiveElements if not,
wneuper@2815
   241
     * startSpecifying
wneuper@2815
   242
     */
nsimic@3269
   243
    public static final int UI_SOLVE_SHOW_CALCHEAD = 37;
wneuper@2770
   244
wneuper@2815
   245
    /**
wneuper@2815
   246
     * During the solving phase, request more detail about the currently
wneuper@2815
   247
     * referenced element.
wneuper@2815
   248
     */
nsimic@3269
   249
    public static final int UI_SOLVE_SHOW_INTERMEDIATE_STEPS = 38;
nsimic@3175
   250
    
nsimic@3269
   251
    public static final int UI_CLOSE_WORKSHEET = 39;
wneuper@2770
   252
nsimic@3269
   253
    public static final int UI_DUMMY_LAST_SOLVE = 40;
wneuper@2770
   254
wneuper@2815
   255
    /** ***************** ACTIVE REQUESTS TO THE UI ********************** */
wneuper@2770
   256
wneuper@2815
   257
    /**
wneuper@2815
   258
     * Request editing the currently active formula. DG distinguishes between
wneuper@2815
   259
     * SPECIFY and SOLVE; thus could drop UI_SOLVE_EDIT_ACTIVE_FORMULA : int
wneuper@2815
   260
     * 
wneuper@2815
   261
     * LK050711 start editing implicit somewhere in tree, thus unused
wneuper@2815
   262
     */
gkompach@3268
   263
    public static final int UI_DO_EDIT_FORMULA = 40;
wneuper@2770
   264
wneuper@2815
   265
    /**
wneuper@2815
   266
     * Request appending a new, empty formula.
wneuper@2815
   267
     */
gkompach@3268
   268
    public static final int UI_DO_APPEND_FORMULA = 41;
wneuper@2770
   269
wneuper@2815
   270
    /**
wneuper@2815
   271
     * Activate an UI element.
wneuper@2815
   272
     */
gkompach@3268
   273
    public static final int UI_DO_ACTIVATE = 42;
wneuper@2770
   274
wneuper@2815
   275
    /**
wneuper@2815
   276
     * Deactivate an UI element.
wneuper@2815
   277
     */
gkompach@3268
   278
    public static final int UI_DO_DEACTIVATE = 43;
wneuper@2770
   279
wneuper@2815
   280
    /**
wneuper@2815
   281
     * The Dialog Guide has detached the listener and will not send any more
wneuper@2815
   282
     * control requests. If registered as a Data Change Listener, update
wneuper@2815
   283
     * notifications will still arrive!
wneuper@2815
   284
     */
gkompach@3268
   285
    public static final int UI_DO_DETACH = 44;
wneuper@2770
   286
wneuper@2815
   287
    /**
wneuper@3079
   288
     * Transfer the problem from the problem browser to the worksheet
gkompach@3268
   289
     * @deprecated 
wneuper@2815
   290
     */
gkompach@3268
   291
    public static final int UI_PROBLEMBROWSER_TO_WORKSHEET = 45;
gkompach@3268
   292
    
gkompach@3268
   293
    /**
gkompach@3268
   294
     * Transfer the problem from the browser to the worksheet
gkompach@3268
   295
     */
gkompach@3268
   296
    public static final int UI_BROWSER_TO_WORKSHEET = 46;
wneuper@2770
   297
wneuper@2815
   298
    /**
wneuper@2815
   299
     * to turn the auto match mode on
gkompach@3268
   300
     * @deprecated
wneuper@2815
   301
     */
gkompach@3268
   302
    public static final int UI_PROBLEMBROWSER_AUTO_MATCH_ON = 47;
wneuper@2770
   303
wneuper@2815
   304
    /**
gkompach@3268
   305
     * to turn the match mode on
gkompach@3268
   306
     */
gkompach@3268
   307
    public static final int UI_BROWSER_MATCH_ON = 48;
gkompach@3268
   308
    
gkompach@3268
   309
    /**
wneuper@2815
   310
     * to turn the auto match mode off
gkompach@3268
   311
     * @deprecated
wneuper@2815
   312
     */
gkompach@3268
   313
    public static final int UI_PROBLEMBROWSER_AUTO_MATCH_OFF = 49;
wneuper@2770
   314
wneuper@2815
   315
    /**
gkompach@3268
   316
     * to turn the match mode off
gkompach@3268
   317
     */
gkompach@3268
   318
    public static final int UI_BROWSER_MATCH_OFF = 50;
gkompach@3268
   319
    
gkompach@3268
   320
    /**
wneuper@2815
   321
     * to open the problem browser window
gkompach@3268
   322
     * @deprecated
wneuper@2815
   323
     */
gkompach@3268
   324
    public static final int UI_PROBLEMBROWSER_OPEN = 51;
wneuper@2770
   325
wneuper@2815
   326
    /**
wneuper@2815
   327
     * to tell the proble browser dialog that the selection in the problem
wneuper@2815
   328
     * browser has changed
gkompach@3268
   329
     * @deprecated
wneuper@2815
   330
     */
gkompach@3268
   331
    public static final int UI_PROBLEMBROWSER_SELECTION_CHANGED = 52;
wneuper@2770
   332
wneuper@2815
   333
    /**
wneuper@2815
   334
     * search for a more appropriate problem
gkompach@3268
   335
     * @deprecated
wneuper@2815
   336
     */
gkompach@3268
   337
    public static final int UI_PROBLEMBROWSER_REFINE = 53;
wneuper@2779
   338
wneuper@2827
   339
    /**
wneuper@2827
   340
     * no 'UserAction', but but included here for simplicity reasons: to send a
wneuper@2827
   341
     * request fot the selected problem
gkompach@3268
   342
     * @deprecated
wneuper@2827
   343
     */
gkompach@3268
   344
    public static final int UI_PROBLEMBROWSER_SELECTED_ID = 54;
jloinig@2823
   345
wneuper@2827
   346
    /**
wneuper@2827
   347
     * no 'UserAction', but but included here for simplicity reasons: to send a
wneuper@2827
   348
     * request fot the active worksheet
gkompach@3268
   349
     * @deprecated
wneuper@2827
   350
     */
gkompach@3268
   351
    public static final int UI_PROBLEMBROWSER_ACTIVE_WORKSHEET = 55;
wneuper@3079
   352
jloinig@2936
   353
    /**
jloinig@2961
   354
     * to send a new model panel to the browser
gkompach@3268
   355
     * @deprecated
jloinig@2961
   356
     */
gkompach@3268
   357
    public static final int UI_PROBLEMBROWSER_MODEL_PANEL = 56;
wneuper@3079
   358
jloinig@2961
   359
    /**
jloinig@2936
   360
     * To send a request for the hierarchy
gkompach@3268
   361
     * @deprecated
jloinig@2936
   362
     */
gkompach@3268
   363
    public static final int UI_REQUEST_FOR_HIERARCHY = 57;
gkompach@3268
   364
    
gkompach@3268
   365
    /**
gkompach@3268
   366
     * The browser reports a context change
gkompach@3268
   367
     */
gkompach@3268
   368
    public static final int UI_BROWSER_CHANGE_CONTEXT = 58;
gkompach@3268
   369
    
gkompach@3268
   370
    /**
gkompach@3268
   371
     * MiniBrowser reports/gets a link
gkompach@3268
   372
     */
gkompach@3268
   373
    public static final int UI_MINIBROWSER_LINK = 59;
wneuper@3079
   374
gkompach@3268
   375
    /**
gkompach@3268
   376
     * to set the focus on the browser window
gkompach@3268
   377
     */
gkompach@3268
   378
    public static final int UI_BROWSER_GET_FOCUS = 60;
gkompach@3268
   379
 
gkompach@3268
   380
    /**
gkompach@3268
   381
     * to focus was set on browser window 
gkompach@3268
   382
     */
gkompach@3268
   383
    public static final int UI_BROWSER_GOT_FOCUS = 61;
gkompach@3268
   384
    
gkompach@3268
   385
    /**
gkompach@3268
   386
     * the focus in the borwser window got lost
gkompach@3268
   387
     */
gkompach@3268
   388
    public static final int UI_BROWSER_LOST_FOCUS = 62;
gkompach@3268
   389
    
gkompach@3268
   390
    /**
gkompach@3268
   391
     * to report that the link was set
gkompach@3268
   392
     * @deprecated
gkompach@3268
   393
     */
gkompach@3268
   394
    public static final int UI_MINIBROWSER_LINK_SET = 63;
wneuper@3079
   395
mlang@2977
   396
    /**
mlang@2977
   397
     * to tell the proble browser dialog that the selection in the example
mlang@2977
   398
     * browser has changed
gkompach@3268
   399
     * @deprecated
mlang@2977
   400
     */
gkompach@3268
   401
    public static final int UI_EXAMPLEBROWSER_SELECTION_CHANGED = 64;
gkompach@3268
   402
    
gkompach@3268
   403
    /**
gkompach@3268
   404
     * @deprecated
gkompach@3268
   405
     */
gkompach@3268
   406
    public static final int UI_EXAMPLEBROWSER_OPEN_NEW_EXAMPLE = 65;
wneuper@3079
   407
gkompach@3268
   408
    /** action to send a ke store id
gkompach@3268
   409
     * @deprecated
gkompach@3268
   410
     */
gkompach@3268
   411
    public static final int UI_SEND_KE_STORE_ID = 66;
gkompach@3268
   412
    
gkompach@3268
   413
    /**
gkompach@3268
   414
    * @deprecated
gkompach@3268
   415
    */
gkompach@3268
   416
    public static final int UI_PROBLEMBROWSER_START_REFINE = 67;
wneuper@3079
   417
gkompach@3268
   418
    /** TODO.WN060113 can this be replaced by UI_PROBLEMBROWSER_TO_WORKSHEET ?
gkompach@3268
   419
     * @deprecated
gkompach@3268
   420
     */
gkompach@3268
   421
    public static final int UI_REQUEST_FOR_ID = 68;
wneuper@3079
   422
wneuper@3880
   423
    }