~ubuntu-branches/ubuntu/trusty/digikam/trusty

« back to all changes in this revision

Viewing changes to core/digikam/utils/contextmenuhelper.h

  • Committer: Package Import Robot
  • Author(s): Rohan Garg
  • Date: 2012-11-26 18:24:20 UTC
  • mfrom: (1.9.1) (3.1.23 experimental)
  • Revision ID: package-import@ubuntu.com-20121126182420-qoy6z0nx4ai0wzcl
Tags: 4:3.0.0~beta3-0ubuntu1
* New upstream release
  - Add build-deps :  libhupnp-dev, libqtgstreamer-dev, libmagickcore-dev
* Merge from debian, remaining changes:
  - Make sure libqt4-opengl-dev, libgl1-mesa-dev and libglu1-mesa-dev only
    install on i386,amd64 and powerpc
  - Depend on libtiff-dev instead of libtiff4-dev
  - Drop digikam breaks/replaces kipi-plugins-common since we're past the
    LTS release now
  - digikam to recommend mplayerthumbs | ffmpegthumbs. We currently only
    have latter in the archives, even though former is also supposed to
    be part of kdemultimedia. (LP: #890059)
  - kipi-plugins to recommend www-browser rather than konqueror directly
    since 2.8 no direct usage of konqueror is present in the flickr
    plugin anymore (LP: #1011211)
  - Keep kubuntu_mysqld_executable_name.diff
  - Don't install libkipi translations
  - Keep deps on libcv-dev, libcvaux-dev
  - Keep split packaging of libraries
  - Replace icons from KDE 3 time in debian/xpm.d/*.xpm with the new
    versions (LP: #658047)
* Update debian/not-installed

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 * Date        : 2009-02-15
7
7
 * Description : contextmenu helper class
8
8
 *
9
 
 * Copyright (C) 2009-2010 by Andi Clemens <andi dot clemens at googlemail dot com>
 
9
 * Copyright (C) 2009-2010 by Andi Clemens <andi dot clemens at gmail dot com>
10
10
 * Copyright (C) 2010-2012 by Gilles Caulier <caulier dot gilles at gmail dot com>
11
11
 *
12
12
 * This program is free software; you can redistribute it
207
207
     * @param ids the selected items in the current view
208
208
     * @param album the current album the AlbumIconView is displaying
209
209
     */
210
 
    void addStandardActionThumbnail(imageIds& ids, Album* album);
 
210
    void addStandardActionThumbnail(const imageIds& ids, Album* album);
211
211
 
212
212
    /**
213
213
     * Add the services menu to the menu.
235
235
     * @see exec()
236
236
     * @see signalGotoAlbum() signalGotoDate() signalGotoTag()
237
237
     */
238
 
    void addGotoMenu(imageIds& ids);
 
238
    void addGotoMenu(const imageIds& ids);
239
239
 
240
240
    /**
241
241
     * Add Queue Manager actions menu.
276
276
     * @see exec()
277
277
     * @see signalAssignTag()
278
278
     */
279
 
    void addAssignTagsMenu(imageIds& ids);
 
279
    void addAssignTagsMenu(const imageIds& ids);
280
280
 
281
281
    /**
282
282
     * Add "Remove Tags" menu.
292
292
     * @see exec()
293
293
     * @see signalRemoveTag()
294
294
     */
295
 
    void addRemoveTagsMenu(imageIds& ids);
 
295
    void addRemoveTagsMenu(const imageIds& ids);
296
296
 
297
297
    /**
298
298
     * Add a menu to create new tags from adressbook entries.
316
316
    void addLabelsAction();
317
317
 
318
318
    /**
319
 
     * Add a menu to rotate item.
320
 
     * @param ids the selected items
321
 
     */
322
 
    void addRotateMenu(imageIds& ids);
323
 
 
324
 
    /**
325
319
     * Add a "Group" menu.
326
320
     * This menu will provide actions open, close, add to, remove from, or split a group.
327
321
     *
328
322
     * addGroupActions will add the actions as a flat list, not in a submenu.
329
323
     * Note: Call setImageFilterModel before to have Open/Close group actions.
330
324
     */
331
 
    void addGroupMenu(imageIds& ids);
332
 
    void addGroupActions(imageIds& ids);
 
325
    void addGroupMenu(const imageIds& ids);
 
326
    void addGroupActions(const imageIds& ids);
333
327
 
334
328
    /**
335
329
     * Set a filter model.
405
399
    void slotDeselectChildren();
406
400
    void slotSelectParents();
407
401
    void slotDeselectParents();
408
 
    void slotRotate();
409
402
 
410
403
private:
411
404
 
412
 
    void setSelectedIds(imageIds& ids);
 
405
    void setSelectedIds(const imageIds& ids);
413
406
    void setSelectedItems(const KUrl::List& urls);
414
407
    bool imageIdsHaveSameCategory(const imageIds& ids, DatabaseItem::Category category);
415
 
    QList<QAction*> groupMenuActions(imageIds& ids);
 
408
    QList<QAction*> groupMenuActions(const imageIds& ids);
416
409
    void setGroupsOpen(bool open);
417
410
 
418
411
private: