Subversion Repositories Filer-Free

Rev

Rev 34 | Rev 38 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 34 Rev 36
Line 140... Line 140...
140
        // Get mouse button state for later use.
140
        // Get mouse button state for later use.
141
        // (Do this at an early stage in case it changes.)
141
        // (Do this at an early stage in case it changes.)
142
        wimp_pointer info;
142
        wimp_pointer info;
143
        xwimp_get_pointer_info(&info);
143
        xwimp_get_pointer_info(&info);
144
 
144
 
-
 
145
        // Get copy of filer options.
-
 
146
        // (This needs to be a copy so that it can be modified,
-
 
147
        // and so that the filer window can see what has changed.)
-
 
148
        filer_options options(_owner->options());
-
 
149
 
145
        switch (block.items[0])
150
        switch (block.items[0])
146
        {
151
        {
-
 
152
        case 0: /* display */
-
 
153
                switch (block.items[1])
-
 
154
                {
-
 
155
                case 0:
-
 
156
                case 1:
-
 
157
                case 2:
-
 
158
                        options.layout(*_layout_methods[block.items[1]]);
-
 
159
                        _owner->options(options);
-
 
160
                        update_layout();
-
 
161
                        break;
-
 
162
                case 4:
-
 
163
                case 5:
-
 
164
                case 6:
-
 
165
                case 7:
-
 
166
                        options.sort(*_sort_methods[block.items[1]-4]);
-
 
167
                        _owner->options(options);
-
 
168
                        update_sort();
-
 
169
                        break;
-
 
170
                }
-
 
171
                break;
147
        case 2: /* select all */
172
        case 2: /* select all */
148
                _owner->select_all(1);
173
                _owner->select_all(1);
149
                break;
174
                break;
150
        case 3: /* clear selection */
175
        case 3: /* clear selection */
151
                _owner->select_all(0);
176
                _owner->select_all(0);