~ubuntu-branches/ubuntu/oneiric/koffice/oneiric-updates

« back to all changes in this revision

Viewing changes to krita/image/kis_base_node.h

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2010-10-27 17:52:57 UTC
  • mfrom: (0.12.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20101027175257-s04zqqk5bs8ckm9o
Tags: 1:2.2.83-0ubuntu1
* Merge with Debian git remaining changes:
 - Add build-deps on librcps-dev, opengtl-dev, libqtgtl-dev, freetds-dev,
   create-resources, libspnav-dev
 - Remove needless build-dep on libwv2-dev
 - koffice-libs recommends create-resources
 - krita recommends pstoedit
 - Keep our patches
* New upstream release 2.3 beta 3
  - Remove debian/patches fixed by upstream
  - Update install files

Show diffs side-by-side

added added

removed removed

Lines of Context:
237
237
     * selection masks where visible and active properties are
238
238
     * different)) in the graph
239
239
     */
240
 
    bool visible() const;
 
240
    virtual bool visible(bool recursive = false) const;
241
241
 
242
242
    /**
243
243
     * Set the visible status of this node. Visible nodes are active
250
250
     * Toggling the visibility of a node will not automatically lead
251
251
     * to recomposition.
252
252
     */
253
 
    void setVisible(bool v);
 
253
    virtual void setVisible(bool v);
254
254
 
255
255
    /**
256
256
     * Return the locked status of this node. Locked nodes cannot be
275
275
     * Set the locked status of this node. System Locked nodes indicates
276
276
     * that an algorithm is processing them and that an other
277
277
     * algorithm need to wait before accessing it.
 
278
     *
 
279
     * A KisNode will update the layer model when the lock is released.
 
280
     *
 
281
     * @param l lock state
 
282
     * @param update set false if the tools shouldn't be locked
278
283
     */
279
 
    void setSystemLocked(bool l);
 
284
    virtual void setSystemLocked(bool l, bool update = true);
280
285
 
281
286
    /**
282
287
     * @return true if the node can be edited: if it's visible and neither locked
330
335
    virtual QRect exactBounds() const {
331
336
        return QRect();
332
337
    }
 
338
 
 
339
protected:
 
340
 
 
341
    /**
 
342
     * FIXME: This method is a workaround for getting parent node
 
343
     * on a level of KisBaseNode. In fact, KisBaseNode should inherit
 
344
     * KisNode (in terms of current Krita) to be able to traverse
 
345
     * the node stack
 
346
     */
 
347
    virtual KisBaseNodeSP parentCallback() const {
 
348
        return 0;
 
349
    }
 
350
 
333
351
signals:
334
352
    /**
335
353
     * This signal is emitted when the visibility of the layer is changed with \ref setVisible.