~kst-plot/kst/debian-xenial

« back to all changes in this revision

Viewing changes to src/libkst/object.h

  • Committer: Steven Benton
  • Date: 2012-11-04 22:45:35 UTC
  • mfrom: (1.2.10)
  • Revision ID: stevebenton@rogers.com-20121104224535-mnnvrp4mhvuz0h2p
* New upstream release.
* Non-maintainer upload.
* Remove patches that have been resolved upstream:
  - desktop-entry-contains-encoding-key.diff
  - desktop-entry-lacks-main-category.diff
    - upstream uses Education category rather than Graphics
  - fix-qreal-vs-double-for-arm.diff
* kst package Replaces and Conflicts with kst2 -- for old PPA users only

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
  public:
48
48
    static QString type();
49
49
    static const qint64 Forced = -1;
 
50
    static const qint64 NoInputs = -2;
50
51
 
51
52
    enum UpdateType { NoChange = 0, Updated, Deferred };
52
53
 
53
54
    virtual UpdateType objectUpdate(qint64 newSerial);
54
 
    virtual void registerChange() {_serial = Forced;}
 
55
    virtual void registerChange() {_serial = Forced; emit dirty();}
55
56
 
56
57
    virtual void reset();
57
58
 
72
73
    virtual void internalUpdate() = 0;
73
74
 
74
75
    virtual bool used() const {return _used;}
75
 
    void setUsed(bool used_in) {_used = used_in;}
 
76
    virtual void setUsed(bool used_in) {_used = used_in;}
76
77
 
77
78
    virtual bool uses(ObjectPtr p) const;
78
79
 
84
85
    ObjectStore *_store;  // set by ObjectStore
85
86
 
86
87
    virtual qint64 minInputSerial() const = 0;
87
 
    virtual qint64 minInputSerialOfLastChange() const = 0;
 
88
    virtual qint64 maxInputSerialOfLastChange() const = 0;
88
89
 
89
90
    qint64 _serial;
90
91
    qint64 _serialOfLastChange;
91
 
  private:
92
92
    bool _used;
 
93
  signals:
 
94
    void dirty();
93
95
  };
94
96
 
95
97