Source code: com/neuron/jaffer/FinderInfo.java
1 /*
2 * Copyright (c) 2003 Stewart Allen <stewart@neuron.com>. All rights reserved.
3 * This program is free software. See the 'License' file for details.
4 */
5
6 package com.neuron.jaffer;
7
8 import java.io.*;
9 import java.net.*;
10 import java.util.*;
11
12 class FinderInfo
13 {
14 public final static int FLAG_ON_DESK = 0x0001; // unused/reserved
15 public final static int FLAG_COLOR = 0x000e; // 3 color bits
16 public final static int FLAG_SHARED = 0x0040; // can be executed by mutiple users
17 public final static int FLAG_INITIALIZED = 0x0100; // file info is in desktop database
18 public final static int FLAG_CUSTOM_ICON = 0x0400; // has a custom icon
19 public final static int FLAG_STATIONARY = 0x0800; // file is stationary pad
20 public final static int FLAG_NAME_LOCKED = 0x1000; // name/icon cannot be changed
21 public final static int FLAG_HAS_BUNDLE = 0x2000; // has resource bundle
22 public final static int FLAG_INVISIBLE = 0x4000; // is invisible
23 public final static int FLAG_ALIAS = 0x000e; // is an alias file
24
25 /*
26 // Finder info for Files
27
28 private int type_file; // 4 bytes
29 private int type_creator; // 4 bytes
30 private int finder_flags; // 2 bytes
31 private int file_loc; // 4 bytes (position in window)
32 private int dir_id; // 2 bytes (id of parent directory)
33
34 private int icon_id; // 2 bytes
35 private long unused; // 6 bytes
36 private int script_flags; // 1 byte
37 private int finder_xflags; // 1 byte (unused)
38 private int comment_id; // 2 bytes
39 private int homedir_id; // 4 bytes
40
41 // Finder info for Directories
42
43 private long folder_bounds; // 8 bytes (window's rectangle)
44 private int dir_flags; // 2 bytes
45 private int folder_loc; // 4 bytes
46 private int folder_view; // 2 bytes (position in window)
47
48 private int scroll_pos; // 4 bytes
49 private int open_chain_id; // 4 bytes
50 private int script_flags; // 1 byte
51 private int finder_xflags; // 1 byte (unused)
52 private int comment_id; // 2 bytes
53 private int homedir_id; // 4 bytes
54 */
55 }
56