~ubuntu-branches/ubuntu/lucid/mythtv/lucid

« back to all changes in this revision

Viewing changes to libs/libmythui/mythuispinbox.h

  • Committer: Bazaar Package Importer
  • Author(s): Mario Limonciello
  • Date: 2009-09-08 23:08:37 UTC
  • mfrom: (1.1.32 upstream)
  • Revision ID: james.westby@ubuntu.com-20090908230837-zrm2j6wutp76hwso
Tags: 0.22.0~trunk21742-0ubuntu1
* New upstream checkout (21742)
  - Fixes FTBFS on PPC. See changeset 21571 for more details.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
    void SetRange(int low, int high, int step);
23
23
 
 
24
    void SetValue(int val) { SetValueByData(val); }
 
25
    void SetValue(const QString &val) { SetValueByData(val.toInt()); }
 
26
    QString GetValue(void) const { return GetDataValue().toString(); }
 
27
    int GetIntValue(void) const { return GetDataValue().toInt(); }
 
28
 
24
29
  protected:
 
30
    virtual bool ParseElement(QDomElement &element);
25
31
    virtual void CopyFrom(MythUIType *base);
26
32
    virtual void CreateCopy(MythUIType *parent);
 
33
 
 
34
    bool m_hasTemplate;
 
35
    QString m_negativeTemplate;
 
36
    QString m_zeroTemplate;
 
37
    QString m_positiveTemplate;
27
38
};
28
39
 
29
40
#endif