libDtSearch: Coverity 86579
[oweals/cde.git] / cde / programs / dtfile / nlsMsgChk.txt
1 # $XConsortium: nlsMsgChk.txt /main/2 1996/11/11 11:26:36 drk $
2 Dtfile is composed of three different style toplevel windows (a directory
3 view, a toolbox view and a trashcan), along with a large selection of user 
4 dialogs and error dialogs.  Note that most dialogs have a help button, which 
5 when pressed, will cause the help window to appear, displaying the 
6 appropriate help information.
7
8 1) To display a dtfile directory view, select the file cabinet icon
9    located in the top row of the front panel; a window similar to that
10    shown in figure dtfile-1 will appear. Select one of the icons in this 
11    directory, click mouse button 1 on a name of one of the files in this 
12    dialog; a text widget for renaming will appear. Enter a new filename using
13    a filename which already exists in this directory and press return; the 
14    error dialog shown in figure dtfile-2 will appear.  Enter a path name
15    such as "/tmp/tempfile" in the rename text widget and press return; the
16    error dialog shown in figure dtfile-3 will appear.  Press mouse button 1
17    any where in the file manager view to unpost the rename text edit widget.
18
19    dtfile-1 tests messages:
20       Set 3  Messages: 2, 3
21       Set 20 Mesages: 1-9 
22    dtfile-2 tests messages:
23       Set 9  _DtMessage: 9
24       Set 10  _DtMessage: 1
25    dtfile-3 tests messages:
26       Set 10  _DtMessage: 1
27       Set 30  _DtMessage: 11
28
29 2) To post the dialog used to create a new data file, post the 'File' 
30    menupane, and select the 'New...' item; the dialog shown in figure
31    dtfile-4 will appear.  If you enter into this dialog the name of a
32    file which already exists, and then press return, the error dialog
33    shown in figure dtfile-5 will appear.  If you enter a name which includes
34    a space, the error dialog shown in figure dtfile-6 will appear.
35
36    dtfile-4 tests messages:
37       Set 10  Messages: 7, 9, 29
38    dtfile-5 tests messages:
39       Set 30  _DtMessage: 9
40       Set 11  _DtMessage: 6
41    dtfile-6 tests messages:
42       Set 10  Messages: 3, 21
43
44 3) To post the dialog used to copy an existing file, select the icon
45    for the file, post the 'File' menupane, and select the 'Copy...' item;
46    the dialog shown in figure dtfile-7 will appear.  Press "Ok"; the 
47    dialog shown in figure dtfile-8 will appear.  If you type the path
48    "<your home directory>/.dt/Desktop/<filename>" into the copy as text
49    widget you will get the error dialog shown in dtfile-9.  If you type the
50    path "bogusname:/temp/file" into the copy as text widget you will get
51    the error dialog shown in dtfile-10. While the "Copy" dialog is still
52    up, rename the file you are copying in the File Manager view to some new
53    name. Do this by click mouse button 1 on the text portion of the icon; a
54    text label will appear; change the name and press return; the file will
55    now be renamed.  In the "Copy" dialog put some new name in the text field
56    such as "newfilename" and press "Ok"; the error dialog dtfile-11 will now
57    show up.
58
59    dtfile-7 tests messages:
60       Set 10  Messages: 6, 7, 9, 27
61    dtfile-8 tests messages:
62       Set 10  Messages: 2, 11
63    dtfile-9 tests messages:
64       Set 10  _DtMessage: 25
65    dtfile-10 tests messages:
66       Set 10  _DtMessage: 2, 13
67    dtfile-11 tests messages:
68       Set 10  _DtMessage: 2, 10
69
70 4) To post the dialog used to view and alter the properties associated
71    with a file, select the icon for the file, post the 'File' menupane,
72    and select the 'Properties' item; the dialog shown in figure dtfile-12
73    will appear.  If you select the 'Group Name' field, and enter a non-existant
74    group name such as "bogus", press "OK"; the error dialog shown in figure
75    dtfile-13 will appear.  Change the group name back to a valid group name 
76    (probably users).  If you select the 'Owner Name" field, and enter a
77    non-existant user name such as "bogus", press "OK"; the error dialog shown
78    in figure dtfile-14 will appear.  Change the owner name back to what it was.
79    If the selected icon file is a link to another file the dialog in figure
80    dtfile-15 will appear. To get figure dtfile-15, open a second dtfile 
81    view in another directory besides the users HOME dir.  Take a file from 
82    the HOME dir and drag and drop it in the 2nd dtfile view while holding 
83    down the "Shift" key.  Select that file and bring up the Properties dialog.
84    By holding down the shift key you have created a link to the original file.
85    Note that it is basically the same a dtfile-12 except it has link
86    information in it.  Cancel out of the 'Properties' dialog.  Rename the
87    original file you dragged and dropped to create the link to some other name.
88    This will cause the linked file in the second dtfile dtfile view to
89    change to a broken link. Double click on this broken link; the error 
90    dialog shown in figure dtfile-16 will appear.
91
92    dtfile-12 tests messages:
93       Set 21  Messages: 2-13, 21
94    dtfile-13 tests messages:
95       Set 21  Messages: 16, 17
96    dtfile-14 tests messages:
97       Set 21  Messages: 15, 17
98    dtfile-15 tests messages:
99       Set 21  Messages: 2-13, 18, 21
100    dtfile-16 tests messages:
101       Set 9  Messages: 6, 7
102
103 5) To post the dialog used to locate the collection of files matching a
104    particular set of patterns, constraints, and contents, post the 'File' 
105    menupane, and select the "Find" item; the dialog shown in figure dtfile-17
106    will appear.  Clear the "Search Directories" field; when the 'Start' button
107    is pressed, the error dialog shown in figure dtfile-18 will appear. 
108    Put a bogus directory in the "Search Directories" field such as "/asdfsdf";
109    when the 'Start' button is pressed, the error dialog shown in figure 
110    dtfile-19 will appear. Put some bogus search string in the "File contents:"
111    field such as "adfasdfasdf"; have a valid "Search Directory"; when the 
112    'Start' button is pressed, the error dialog shown in figure dtfile-20 will
113    appear. Do a valid file search such that it has a list of file(s) in the
114    "File Found:" scrolled list.  In a File Manager view remove 1 of the files
115    listed in the "Files Found": scrolled list.  Now in the Find Dialog select
116    that File and press "Open New View"; the error dialog shown in figure 
117    dtfile-21 will appear.
118
119    dtfile-17 tests messages:
120       Set 15  Messages: 4, 14, 15, 30-37, 40, 41
121    dtfile-18 tests messages:
122       Set 15  Messages: 1, 23
123    dtfile-19 tests messages:
124       Set 15  _DtMessage: 1
125       Set 30  _DtMessage: 12
126    dtfile-20 tests messages:
127       Set 15  Messages: 1, 27
128    dtfile-21 tests messages:
129       Set 15  Messages: 1, 26
130
131 6) To post the dialog used to create a new directory, post the 'Directory' 
132    menupane, and select the 'New' item; the dialog shown in figure
133    dtfile-22 will appear.  If you press "OK" without typing anything in the 
134    text widget the error dialog shown in figure dtfile-23 will appear. 
135    If you enter into this dialog the name of a file which already exists, 
136    and then press return, the error dialog shown in figure dtfile-24 will
137    appear.
138
139    dtfile-22 tests messages:
140       Set 10  Messages: 16, 19, 28
141    dtfile-23 tests messages:
142       Set 10  Messages: 20, 22
143    dtfile-24 tests messages:
144       Set 11  _DtMessage: 6
145       Set 30  _DtMessage: 9
146
147
148 7) To post the dialog used to change the current dtfile window to view a
149    different directory, post the 'Directory' menupane, and select the
150    'Change To' item; the dialog shown in figure dtfile-25 will appear.
151    Press "OK" with out typing in any text in the 'New Directory:' text 
152    field; the dialog shown in figure dtfile-26 will appear.
153    Enter a bogus new directory name in the 'New Directory:' text field such
154    as "/asdfasdf"; the dialog shown in figure dtfile-27 will appear.
155    Enter "/usr/lib/nls" as the new directory to view, and press return.
156
157    dtfile-25 tests messages:
158       Set 2  Messages: 2, 4, 10 
159    dtfile-26 tests messages:
160       Set 2  Messages: 1, 5
161    dtfile-27 tests messages:
162       Set 2  Messages: 1, 7
163
164 8) Post the 'File' menupane, and again select the 'New' item; the dialog
165    shown earlier in figure dtfile-4 will appear.  Enter a new filename,
166    and press return; the error dialog shown in figure dtfile-28 will
167    appear, because you do not have permission to write in this directory.
168    Dismiss the 'New' dialog.
169
170    dtfile-28 tests messages:
171       Set 11 _DtMessage: 6
172       Set 30 _DtMessage: 7
173
174 9) Select one of the icons in this directory, click mouse button 1 on a name
175    of one of the files in this dialog; a text widget for renaming will appear.
176    Enter a new filename, and press return; the error dialog shown
177    in figure dtfile-29 will appear, because you do not have permission to 
178    write in this directory. Press 'esc' to dismiss the rename text widget.
179
180    dtfile-29 tests messages:
181       Set 11 _DtMessage: 6
182       Set 30 _DtMessage: 6
183
184 10) Go into one of the directories in /usr/lib/nls such as "C". Select one 
185    of the "text" icons in this directory, post the 'File' menupane, and 
186    again select the 'Copy...' item; the dialog shown earlier in figure 
187    dtfile-7 will appear.  Enter a new filename, and press return; the error
188    dialog shown in figure dtfile-30 will appear, because you do not have 
189    permission to write in this directory. Cancel out of the 'Copy' dialog.
190
191    dtfile-30 tests messages:
192       Set 11 _DtMessage: 6
193       Set 30 _DtMessage: 7
194
195 11) Post the 'View' menupane, and select the 'Set Preferences' item; the dialog
196    shown in figure dtfile-31 will appear. Cancel out of the 'Set Preferences'
197    dialog.
198
199    dtfile-31 tests messages:
200       Set 23 Messages: 2-22
201
202 12) Post the 'View' menupane, and select the 'Modify Filter List' item; 
203    the dialog shown in figure dtfile-32 will appear. Cancel out of the 
204    'Modify Filter List' dialog.
205    
206    dtfile-32 tests messages:
207       Set 13 Messages: 11, 20-24
208
209 13) To display the dialog used to save the current setting for the dtfile
210    window, post the 'View' menupane, and select the 'Save Settings' item;
211    the dialog shown in figure dtfile-33 will appear.
212
213    dtfile-33 tests messages:
214       Set 18 _DtMessage: 29, 32
215
216 14) Make sure your in your home directory; post the 'Directory' menupane and
217    select 'Home'. Select one of the directory icons in dtfile window, 
218    post the 'Actions' menupane, and select the "OpenNewView" item; another 
219    dtfile window will appear.  While pressing both the Control and the 
220    Shift keys, use mouse button 1 or 2 to drag an icon out of one of the
221    view, and into the second view; release button 1 or 2; the error dialog
222    shown in figure dtfile-34 should appear.  Close the second dtfile view;
223    post the 'File' menupane, and select Close.
224
225    dtfile-34 tests messages:
226       Set 18 Messages: 22, 31
227
228 15) To display the trash can, post the 'File' menupane, and select the
229    "Show Trash" item; the dialog shown in figure dtfile-35 will appear.
230    In a file view of the directory "/usr/lib/nls" select several of the icons;
231    post the 'File' menupane, and select the 'Delete To Trash' item; 
232    because you do not have write permission for these files, the dialog 
233    shown in figure dtfile-36 will appear; press the "Ok" button; the dialog 
234    shown in figure dtfile-37 will appear.  Using the "Change To" dialog, 
235    change the current directory to "/"; select the icon for the directory named 
236    'tmp', and try to throw it in the trash; the dialog shown in figure 
237    dtfile-38 will appear; select the 'Cancel' button!
238    Close the Trash Can dialog.
239
240    dtfile-35 tests messages:
241       Set 27 Messages: 9, 51, 52, 55
242    dtfile-36 tests messages:
243       Set 27 Messages: 4, 7
244    dtfile-37 tests messages:
245       Set 27 Messages: 3, 5
246    dtfile-38 tests messages:
247       Set 27 Messages: 4, 8
248
249 16) To post the toolbox window, select the toolbox icon, located in the top
250    row of the front panel (it looks like a toolbox); the dialog simular
251    to figure dtfile-39 will appear. (Note in the xwd there are no icons yet).
252    Close the toolbox.
253
254    dtfile-39 tests messages:
255       Set 3  Messages: 2, 3
256       Set 20 Mesages: 1-9 
257
258 17) In a normal dtfile view and in your home directory, Drag and drop a 
259    directory onto itself; the dialog shown in figure dtfile-40 
260    will appear.  Press "Ok" in error dialog. Open a new view of a directory 
261    from your home directory by selecting it, post the 'Actions' menupane and
262    selecting 'OpenNewView'. A new dtfile view will appear.
263    From your home directory, single click mouse button 1 on the text of the 
264    directory icon you just opened a new view for.  A text edit 'rename'
265    widget will appear.  Type in a new name; the dialog shown in figure
266    dtfile-41 will appear.  Click anywhere within the file managers view
267    to unpost the rename text widget.
268      
269    dtfile-40 tests messages:
270       Set 11  Messages: 6, 16
271    dtfile-41 tests messages:
272       Set 11  Messages: 6, 30 
273
274 18) From your home directory, take a file and drop it on the backdrop.  The
275    file will 'stick' there.  This is your 'Desktop'.  Take the same file from
276    your file manager view and again drop it on the Desktop; the dialog 
277    dtfile-42 will appear.  Press "OK" in the error dialog.  Take another 
278    file and drop it on the desktop, so now you have 2 objects on the Desktop.
279    These objects on the desktop are just representations of the file in the
280    File manager view, i.e. they are not copies.  Single click mouse button 1
281    on the text portion of the 2nd desktop object. A text edit widget will
282    appear on the desktop object.  Change the name of desktop object 2 to the 
283    same name of object 1 on the desktop; the dialog shown in figure dtfile-43
284    will appear. Press "Ok" in the error dialog.  Now change the name to a 
285    name of a file that already exists in the directory this file came from; 
286    the dialog dtfile-44 will appear. Press "OK" in the error dialog to 
287    dismiss it. Change the name back to its original file name by pressing 'esc'
288    in the text edit widget.
289
290    dtfile-42 tests messages:
291       Set 11  _DtMessage: 6
292       Set 28  _DtMessage: 3
293    dtfile-43 tests messages:
294       Set 10  _DtMessage: 1
295       Set 28  _DtMessage: 1
296    dtfile-44 tests messages:
297       Set 10  _DtMessage: 1
298       Set 28  _DtMessage: 2
299
300 19) From the desktop object #2 popup menu (mouse button 3 push while cursor is
301    over the desktop object), select 'Open File's Folder'.  A new file manager
302    view will appear with the representation of the desktop object selected. 
303    Single click mouse button 1 on the text portion of the selected file in
304    the new file manager view.  Change the name to the same name of the file
305    which already exists on the desktop (object 1); the dialog shown in 
306    dtfile-45 will appear. Press "OK" to dismiss the error dialog.
307
308    dtfile-45 tests messages:
309       Set 10  _DtMessage: 1
310       Set 9  _DtMessage: 8
311
312 20) Open a file manager view of a directory different from where the desktop 
313    objects came from (i.e. where their representations are at).  Drag and
314    drop one of the desktop objects into this new file manager view; the dialog
315    shown in dtfile-46 will appear.  Press the 'Cancel' button.  Now select
316    both desktop objects (hold control key down while pressing mouse button 1
317    when cursor is over the Desktop object) and drag and drop the objects into
318    the new file manager view; the dialog shown in dtfile-47 will appear. Press
319    'Cancel' button to dismiss the dialog.
320
321    dtfile-46 tests messages:
322       Set 12  Messages: 3, 4, 5
323    dtfile-47 tests messages:
324       Set 12  Messages: 3, 6
325
326 21) Drag on drop one of the destkop objects onto the trash can on the front
327    panel; the dialog shown in dtfile-48 will appear. Drag more than one object
328    from the Desktop to the trash can on the front panel; the dialog shown in
329    dtfile-49 will appear.
330
331    dtfile-48 tests messages:
332       Set 27  Messages: 73, 74
333    dtfile-49 tests messages:
334       Set 27  Messages: 73, 75
335  
336 22) Goto the users home directory; post the 'Directory' menupane and select 
337    'Home'.  Select any directory in a File Manager view.  With mouse button 1
338    select the 'Actions' menu and go to the "OpenInPlace" selection. Don't let
339    mouse button 1 up.  While holding down mouse button 1, press the key F1.
340    The dialog shown in dtfile-50 will appear.  Do the same as above except
341    this time go to the "OpenNewView" selection.  The dialog shown in 
342    dtfile-51 will appear.
343
344    dtfile-50 tests messages:
345       Set 29  _DtMessage: 1, 4
346    dtfile-51 tests messages:
347       Set 29  Messages: 1, 3
348  
349 23) From the command line somewhere within the DT environment type the 
350    command "dtfile -dir ~ -restricted".  This brings up a view of the users
351    home directory that is restricted.  The dialog will look somewhat like
352    the dialog shown in dtfile-52.  Post the 'Directory' menupane, and select
353    the 'Fast Change To' item; the current directory line will change to a
354    text edit widget.  Type '..' in the text edit widget (Note the '/' should 
355    already be there), and press return.  The dialog shown in dtfile-53 will
356    appear.  Press "OK" to unpost the dialog. From the 'View' menupane, select
357    the 'Save settings' selection.  The dialog shown in dtfile-54 will appear.
358    Cancel out of the dialog.
359
360    dtfile-52 tests messages:
361       Set 3  Messages: 2, 3
362       Set 20 Mesages: 1-8 
363    dtfile-53 tests messages:
364       Set 2  _DtMessage: 1
365       Set 2  _DtMessage: 9
366    dtfile-54 tests messages:
367       Set 18  Messages: 30, 32
368  
369 24) To post the system toolbox window, select the toolbox icon slide up
370    located in the top row of the front panel (it looks like a toolbox) and
371    select the System Toolbox.  Pick up and drag one of the 'action' files
372    from the SystemToolbox to one of the File Manager's views.  Dialog
373    dtfile-55 will appear.  Select "OK" to dismiss the error dialog and  
374    close the toolbox.
375
376    dtfile-55 tests messages:
377       Set 11 Mesages: 34
378
379 25) On a regular file manager view:
380      Post the 'File' menupane, this tests messages: 
381        Set 20  Messages: 10, 11, 16-19, 22, 23, 84-91, 117, 118, 121, 122
382      Post the 'Directory' menupane, this tests messages: 
383        Set 20  Messages: 28-30, 33, 34, 37, 38, 41, 42, 92-98
384      Post the 'View' menupane, this tests messages: 
385        Set 20  Messages: 46-48, 51, 52, 55, 62, 63, 99-104, 119, 120
386      Post the 'Help' menupane, this tests messages:
387        Set 20  Messages: 105-116
388
389 26) On a trash view:
390      Post the 'File' menupane, this tests messages: 
391        Set 27  Messages: 12, 14, 16, 18, 24, 26, 28, 30, 76, 77
392      Post the 'Help' menupane, this tests messages:
393        Set 27  Messages: 59-70
394
395 27) Post a popup menu on a File Manager object (i.e. press mouse button 3 when
396    cursor is over an object in a file manager view). This will test messages:
397        Set 12  Messages: 7-12
398
399 28) Post a popup menu on a Desktop object (i.e. press mouse button 3 when
400    cursor is over an object in on the Desktop). This will test messages:
401        Set 28  Messages: 4-14