Sun Microsystems, Inc.
spacerspacer
spacer www.sun.com docs.sun.com |
spacer
black dot
 
 
5.  Managing Files with File Manager Customizing File Manager Views To Change the Order in Which Icons Are Sorted  Previous   Contents   Next 
   
 

To Re-Sort (Clean Up) Objects

The Clean Up command sorts the objects in the current view (according to the settings in the Set View Options dialog box) and lines them up in a grid pattern. The settings in other File Manager windows are not affected.

  • Choose Clean Up from the View menu.

The Clean Up command is unavailable if you have the Placement preference set to Rows and Columns.

To Save the Current Preferences as Your Default

When you apply changes using the Set View Options and Set Filter Options dialog boxes, the changes only apply to the current session. If you want to save the preferences so they will be used the next time you open File Manager:

  1. Set the preferences that you want and apply them (using Set View Options and Set Filter Options in the View menu).

  2. Choose Save As Default Options from the View menu.

  3. Click OK.

    These changes to the default view will not take effect until the next time you click the File Manager control in the Front Panel.

    After saving the current preferences, all new File Manager views you open use the new preferences and filter list.

Hiding Files and Folders

Hidden files and folders are those whose file types are selected in the filter list.

The criterion for hiding or showing a file or folder is based on its data type. Use the Set Filter Options command to change which data types are shown and hidden. (See "To Specify Which Data Types Are Hidden" below.) The default hidden data types are DOT_FILE, DOT_FOLDER, and CURRENT_FOLDER.

To Show or Hide Files and Folders

  • Choose Show Hidden Objects from the View menu.

Choosing the command a second time again reverses the toggle (from shown to hidden and back again).

The criterion for hiding or showing a file or folder is based on its data type. Use the Set Filter Options command to change which data types are shown and hidden. (See "To Specify Which Data Types Are Hidden" below.) The default hidden data types are DOT_FILE, DOT_FOLDER, and CURRENT_FOLDER.

To Specify Which Data Types Are Hidden

  1. Choose Set Filter Options from the View menu.

    Data types that have already been chosen to be hidden are highlighted.

  2. In the Select File Types to be Hidden box, select the data types you want to be hidden. File types that are already being hidden are highlighted.

    Or, to reset the default filter list (DOT_FILE, DOT_FOLDER, and CURRENT_FOLDER), click Defaults.

  3. (Optional) Type a name pattern into the Also Hide (Optional) field specifying additional file and folder names to be hidden.

    The filter list specifies which files are not to be displayed. If you select all object types or type * into the Filter String field, then no files are displayed. If you type *.txt, then any file whose name ends in .txt will be added to the filter list and not displayed.

    Advanced users: The Filter String may be any regular expression. Refer to the regexp(5) man page for more information.

  4. Click OK, or, if you want to view the results before closing the dialog box, click Apply.

    To reset to the default filter list, choose Defaults. This resets the default values but does not apply them until you click Apply or OK.

Icon Browsing

Files with names that end in .pm or .bm contain icons. These are the files that File Manager uses to build icons. By default, you must open these files to see the icons they contain. If you enable icon browsing, File Manager displays the contents of .pm or .bm files so you don't have to open them to see what they look like.

Figure 5-5 Icon with Icon Browsing Enabled (Left) and Disabled (Right)

To Enable Icon Browsing

  1. Copy the file /usr/dt/examples/types/language/IconBrowse.dt into your /$HOME/.dt/types folder.

  2. Open Application Manager and double-click Reload Actions in the Desktop_Controls application group.

  3. Restart File Manager.


    Note - The maximum default display area for icons is 38x38 pixels. So, if a picture file is larger than 38x38, the picture will be clipped and only the top left 38x38 pixels will be shown. You can increase the size of the display area for icons if you want larger images to be fully visible (see "To Change the Icon Display Area Size"). However, a larger display size area will slow down the opening of folders, and icons will be spread further apart in folder views.


To Disable Icon Browsing

  1. Remove your personal copy of the IconBrowse.dt file.

  2. Open Application Manager and double-click Reload Actions in the Desktop_Controls application group.

To Change the Icon Display Area Size

  1. Open a Terminal window and type dtpad ~/.Xdefaults.

  2. When the file is displayed, it may be empty or there may be text already in the file. In either case, add the following four lines of text to the file:

    Dtfile*smallIconWidth:24 
    Dtfile*smallIconHeight:24 
    Dtfile*largeIconWidth:38 
    Dtfile*largeIconHeight:38 

    When you type in these lines, replace the default numbers at the end of each line with the new display area size you want.

  3. Choose Save from the File menu.

  4. Choose Close from the File menu.


    Note - The change will not take effect until you exit the desktop and log back in. If you should want to return to the default display area size, type the default sizes back in or just remove the four lines you added, and then exit and restart the desktop.


Using Removable Media with File Manager

File Manager enables you to use removable media, such as diskettes and CD-ROMs, on the workspace. You can view the contents of your diskettes or CD-ROMs if you have a system with at least one diskette drive or one CD-ROM drive and you are running Solaris CDE 1.1 or later.

Removable media are mounted on your file system in removable media folders. File Manager enables you to view the contents of the removable media without having to know the location of these folders.

File Manager restricts the view of a diskette or CD-ROM window to the removable media folder and its subfolders. You cannot navigate out of the folder /floppy/diskette_name when you view the diskette labeled /diskette_name or navigate out of the folder /cdrom/cdrom_name when you view the CD-ROM labeled /cdrom_name.


Note - The File Selection dialog box enables you to perform certain tasks, such as Open or Save As, on the files in file systems for all mounted CD-ROMs and diskettes, as well as for your home folder. You can choose your home folder or mounted CD-ROMs and diskettes through the menu button at the end of the Enter Path or Folder name text field.


Dragging and Dropping Files and Folders

When you drag a file or folder icon from a regular folder window, the default drag-and-drop behavior is:

  • A copy operation when you drop the icon onto a diskette window.

  • A move operation when you drop the icon onto a folder window.

  • A move operation when you drop the icon onto the Trash Can or to the Trash window.

When you drag a file or folder icon from a diskette window, the default drag-and-drop behavior is:

  • A copy operation when you drop the icon onto another diskette window.

  • A copy operation when you drop the icon onto a folder window.

  • A move operation when you drop the icon onto the Trash Can or to the Trash Can window.

 
 
 
  Previous   Contents   Next