~ubuntu-branches/ubuntu/maverick/kdeutils/maverick-proposed

« back to all changes in this revision

Viewing changes to okteta/kasten/controllers/view/structures/datatypes/int32datainformation.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2010-05-28 09:49:30 UTC
  • mfrom: (1.2.44 upstream)
  • Revision ID: james.westby@ubuntu.com-20100528094930-jzynf0obv1n2v13a
Tags: 4:4.4.80-0ubuntu1~ppa1
New upstream beta release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 *   This file is part of the Okteta Kasten module, part of the KDE project.
 
2
 *   This file is part of the Okteta Kasten Framework, part of the KDE project.
3
3
 *
4
 
 *   Copyright 2009 Alex Richardson <alex.richardson@gmx.de>
 
4
 *   Copyright 2009, 2010 Alex Richardson <alex.richardson@gmx.de>
5
5
 *
6
6
 *   This library is free software; you can redistribute it and/or
7
7
 *   modify it under the terms of the GNU Lesser General Public
27
27
 
28
28
class Int32DataInformation: public SignedPrimitiveDataInformation
29
29
{
 
30
Q_OBJECT
30
31
PRIMITIVEDATAINFORMATION_SUBCLASS_CONSTRUCTORS(Int32,SignedPrimitive)
31
32
 
32
33
public:
33
 
    inline int getSize() const
34
 
    {
35
 
        return 32;
36
 
    }
37
 
    inline QString getTypeName() const
38
 
    {
39
 
        return i18nc("Data type", "int");
40
 
    }
41
34
    DATAINFORMATION_CLONE(Int32)
42
 
    virtual QString getValueString() const;
 
35
 
 
36
    int size() const;
 
37
    QString typeName() const;
 
38
    virtual QString valueString() const;
43
39
 
44
40
    virtual void setWidgetData(QWidget* w) const;
45
 
 
46
 
    inline QWidget* createEditWidget(QWidget* parent) const
47
 
    {
48
 
        SInt32Editor* ret = new SInt32Editor(parent);
49
 
        ret->setBase(displayBase());
50
 
        return ret;
51
 
    }
 
41
    virtual QWidget* createEditWidget(QWidget* parent) const;
52
42
};
53
43
 
 
44
 
 
45
inline int Int32DataInformation::size() const
 
46
{
 
47
    return 32;
 
48
}
 
49
 
 
50
inline QString Int32DataInformation::typeName() const
 
51
{
 
52
    return i18nc("Data type", "int");
 
53
}
 
54
 
54
55
#endif /* INT32DATAINFORMATION_H_ */