~ubuntu-branches/debian/sid/kde-baseapps/sid

« back to all changes in this revision

Viewing changes to dolphin/src/dolphinmainwindow.h

  • Committer: Package Import Robot
  • Author(s): Modestas Vainius, Eshat Cakar, Pino Toscano
  • Date: 2012-06-09 22:18:08 UTC
  • mfrom: (4.2.1) (6.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20120609221808-h1l0ekd5qmb8nefr
Tags: 4:4.8.4-1
* New upstream release.

[ Eshat Cakar ]
* Add watch file.
* Bump kde-sc-dev-latest build dependency to version 4:4.8.4.
* Update installed files.

[ Pino Toscano ]
* Move files of the konqueror documentation from kde-baseapps-data to
  konqueror itself.

Show diffs side-by-side

added added

removed removed

Lines of Context:
301
301
     */
302
302
    void goUp(Qt::MouseButtons buttons);
303
303
 
 
304
    /**
 
305
     * Open the home URL in a new tab
 
306
     */
 
307
    void goHome(Qt::MouseButtons buttons);
 
308
 
304
309
    /** Opens Kompare for 2 selected files. */
305
310
    void compareFiles();
306
311
 
439
444
 
440
445
    /**
441
446
     * Opens the context menu on the current mouse position.
 
447
     * @pos           Position in screen coordinates.
442
448
     * @item          File item context. If item is null, the context menu
443
449
     *                should be applied to \a url.
444
450
     * @url           URL which contains \a item.
445
451
     * @customActions Actions that should be added to the context menu,
446
452
     *                if the file item is null.
447
453
     */
448
 
    void openContextMenu(const KFileItem& item,
 
454
    void openContextMenu(const QPoint& pos,
 
455
                         const KFileItem& item,
449
456
                         const KUrl& url,
450
457
                         const QList<QAction*>& customActions);
451
458
 
529
536
    QString squeezedText(const QString& text) const;
530
537
 
531
538
    /**
532
 
     * Adds a clone of the action \a action to the action-collection with
533
 
     * the name \a actionName, so that the action \a action also can be
534
 
     * added to the toolbar by the user. This is useful if the creation of
535
 
     * \a action is e.g. done in Qt and hence cannot be added directly
536
 
     * to the action-collection.
 
539
     * Creates an action for showing/hiding a panel, that is accessible
 
540
     * in "Configure toolbars..." and "Configure shortcuts...". This is necessary
 
541
     * as the action for toggling the dock visibility is done by Qt which
 
542
     * is no KAction instance.
537
543
     */
538
 
    void addActionCloneToCollection(QAction* action, const QString& actionName);
 
544
    void createPanelAction(const KIcon& icon,
 
545
                           const QKeySequence& shortcut,
 
546
                           QAction* dockAction,
 
547
                           const QString& actionName);
539
548
 
540
549
private:
541
550
    /**
561
570
    // Members for the tab-handling:
562
571
    struct ViewTab
563
572
    {
564
 
        ViewTab() : isPrimaryViewActive(true), primaryView(0), secondaryView(0), splitter(0) {}
 
573
        ViewTab() : isPrimaryViewActive(true), wasActive(false), primaryView(0), secondaryView(0), splitter(0) {}
565
574
        bool isPrimaryViewActive;
 
575
        bool wasActive;
566
576
        DolphinViewContainer* primaryView;
567
577
        DolphinViewContainer* secondaryView;
568
578
        QSplitter* splitter;