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

« back to all changes in this revision

Viewing changes to okteta/kasten/controllers/view/structures/datatypes/floatdatainformation.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
26
26
 
27
27
class FloatDataInformation: public PrimitiveDataInformation
28
28
{
 
29
Q_OBJECT
29
30
PRIMITIVEDATAINFORMATION_SUBCLASS_CONSTRUCTORS(Float,Primitive)
30
31
public:
31
 
    inline int displayBase() const
32
 
    {
33
 
        return 10;
34
 
    }
35
 
    inline int getSize() const
36
 
    {
37
 
        return 32;
38
 
    }
39
 
    inline QString getTypeName() const
40
 
    {
41
 
        return i18nc("Data type", "float");
42
 
    }
43
32
    DATAINFORMATION_CLONE(Float)
44
 
    virtual QString getValueString() const;
 
33
 
 
34
    int displayBase() const;
 
35
    int size() const;
 
36
    QString typeName() const;
 
37
    QString valueString() const;
45
38
 
46
39
    virtual QWidget* createEditWidget(QWidget* parent) const;
47
40
    virtual QVariant dataFromWidget(const QWidget* w) const;
48
41
    virtual void setWidgetData(QWidget* w) const;
 
42
    virtual AllPrimitiveTypes qVariantToAllPrimitiveTypes(const QVariant& value) const;
 
43
 
49
44
};
50
45
 
 
46
 
 
47
inline int FloatDataInformation::displayBase() const
 
48
{
 
49
    return 10;
 
50
}
 
51
 
 
52
inline int FloatDataInformation::size() const
 
53
{
 
54
    return 32;
 
55
}
 
56
 
 
57
inline QString FloatDataInformation::typeName() const
 
58
{
 
59
    return i18nc("Data type", "float");
 
60
}
 
61
 
51
62
#endif /* FLOATDATAINFORMATION_H_ */