~ubuntu-branches/ubuntu/oneiric/kdeplasma-addons/oneiric-proposed

« back to all changes in this revision

Viewing changes to applets/webslice/kgraphicswebslice.h

  • Committer: Bazaar Package Importer
  • Author(s): Romain Perier
  • Date: 2011-07-12 18:23:07 UTC
  • mfrom: (0.7.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20110712182307-ujyvnrb2hkr8gvhd
Tags: 4:4.6.90-0ubuntu1
* New upstream development release
  - Change dependencies to match new packages names
  - Update install files

Show diffs side-by-side

added added

removed removed

Lines of Context:
86
86
     * @return The CSS selector used to identify the element to render as
87
87
     * the slice
88
88
     **/
89
 
    QString element();
 
89
    QString element() const;
90
90
 
91
91
    /**
92
92
     * Returns the manually set sliceGeometry inside the page. If you are using
97
97
     * @return The geometry of the slice within the page, if selector is empty, the current
98
98
     * element is show, if the slice is not found, a zero-size rect will be returned.
99
99
     **/
100
 
    QRectF sliceGeometry(const QString &selector = QString());
 
100
    QRectF sliceGeometry(const QString &selector = QString()) const;
101
101
 
102
102
    /**
103
103
     * Returns a pixmap of the selected slice. Which slice to show is determined
105
105
     *
106
106
     * @return A QPixmap of a part of the webpage
107
107
     **/
108
 
    QPixmap elementPixmap();
 
108
    QPixmap elementPixmap() const;
109
109
 
110
110
    /**
111
111
     * Sets the text shown while the widget is loading. You can use HTML here,
179
179
     * Initial creating of slice and setting of sizing information.
180
180
     */
181
181
    void setPreviewMode(bool = true);
182
 
    QRectF previewGeometry(const QString &selector);
 
182
    QRectF previewGeometry(const QString &selector) const;
183
183
    void updateElementCache();
184
 
    QRectF mapFromPage(const QRectF &rectOnPage);
 
184
    QRectF mapFromPage(const QRectF &rectOnPage) const;
185
185
    struct KGraphicsWebSlicePrivate *d;
186
186
 
187
187
};