Author
Topic: Qatapult (Read 156827 times)

I'm considering changing the way Qatapult handle the display of text items. TEXT items currently draw a text when you call drawItem. I think that this wasn't a very good decision as the current behavior force all skins to consider TEXT as rendering in the icon space.

The change would make drawItem draw a standard icon for TEXT objects, then skins would be free to either render the icon OR to draw only the text of the object at the place, font, margin and text aligment they prefer.

I'm trying to add multiple object selection. It partially works, but I still need to add some extra changes. This is a bit long, because it involves changing the structure of Qatapult a bit, but this is just normal code clean up. It has to happens sometimes.

Ewemoa may be you could answer this too : I've an issue with the 'current selection' proxy. I don't know if it should be considered one object or several. If I handle it as a single object that would mean that it's whole selection can be canceled with one 'esc', if I handle it as multiple objects a large selection could be very painful to cancel.

Although I remember being able to work with multiple objects via the comma trick, I don't remember whether multiple objects could be handled via a current selection proxy. I guess it's possible that they weren't handled.

Would it help at all if there were a default number of objects to handle and allow this to be configured by the user?

Did some light testing in kupfer. It appears that in kupfer, there is a notion of currently selected files.

Rereading your post, I'm not sure I understand what you mean by 'esc' canceling the selection. Do you mean that pressing 'esc' cancels the selection outside of Qatapult in for example Windows Explorer?

Hello, it has been a bit long since the last update, but Qatapult is going on again : I had a neck ache after jumping badly on a trampoline, not that serious but it was painful enough that I couldn't work too much for some time... among others things. Don't worry everything is ok now

I've uploaded a new version that support multi elements arguments. The way it works is that you can CTRL+Enter on a argument, then it'll stack on the current arg. The default File commands 'Open', 'Delete', etc... handle this by running the command on each item, but you can define how you want your action to handle it :As an example you could use it to create zip commands and things like that that operate on many files in one command. You can try it on File object in the first pane.

A quick way to multiple select files is to drop Files over the Qatapult interface from the file explorer. Qatapult will accept them when it's appropriate.

Rules define which argument can use multi. You can enable any argument to do that by adding a multi attribute to the argument type tag. Once a type is stacked, you can only stack objects of the same sort and only rules that support multi items will show up in the next pane. Here is how to define a rule that enable multi on the first arg :