Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Journal multiselection try5 #66

Merged
merged 12 commits into from Jul 24, 2013
Merged

Journal multiselection try5 #66

merged 12 commits into from Jul 24, 2013

Conversation

godiard
Copy link
Contributor

@godiard godiard commented Jul 24, 2013

Add two patches:

  • A check to not add two times the same device if mounted many times.
  • Do not add the webservices menu to the batch copy button,
    to avoid creating spam accidentally.

godiard and others added 12 commits July 18, 2013 16:39
v2: Use a array to store the selected values
    Don't store the metadata, with the selected uids is enough

Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
This checkbox is only available in the Journal,
when the listview is used in the ObjectChooser the checkbox
is not created.

v2: Update by changes in the model.

Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
Implement the changes to show the edit toolbar and the operations
'select all' and 'unselect all' only.
This version use the method find_ids in datastore, doing the operation
of select_all really fast.
Use a array in the model with the list of all the uids in the query, then is
not needed transverse the model to do the selection.

v2: Now the listmodel and the listview were cleaned as suggested
    then this patch was simplified.
    Fixed TRANS comment.
    Replaced __redraw hack by the use of queue_draw.

Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
Now use a array of uids to know what copy instead of
the object metadata, to make it compatible with the array of selected
objects. The mount point is taken from the journal activity.

Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
A new class CopyMenuBuilder is created to avoid duplicate code.
CopyMenuBuilder can monitor mount/unmount of devices.

Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
A confirmation is asked before start the operation,
a can be canceled while is running.
A object BatchOperator was added in palettes.py,
and will be used to the copy batch operations too.

Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
v2: The CopyMenuBuilder was implemented in another patch
    then this is simpler.
    Now the batch copy ignore objects without a file.
    The menu in the case of the batch operation, does not include
    a Clipboard option, because do not have much value copy
    multiple objects to the clipboard.

Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
As the listmodel can be re created, due to events in the journal,
or changes done by the user (title edition, favorite selection),
the state of the selection should be preserved.

Signed-of-by: Gonzalo Odiard <gonzalo@laptop.org>
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
External devices appear multiple times
when unplugging and plugging the device.

Signed-off-by: Martin Abente Lahaye <tch@sugarlabs.org>
Select many objects in the Jurnal and send to a webservice
can be a source of spam and be a reason to close a account.

Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
@tchx84
Copy link
Member

tchx84 commented Jul 24, 2013

Ready to go!

tchx84 added a commit that referenced this pull request Jul 24, 2013
Add support for multiselection in the Journal
@tchx84 tchx84 merged commit cc98686 into sugarlabs:master Jul 24, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants