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

« back to all changes in this revision

Viewing changes to okteta/kasten/controllers/view/structures/datatypes/int8datainformation.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 Int8DataInformation: public SignedPrimitiveDataInformation
29
29
{
 
30
Q_OBJECT
30
31
PRIMITIVEDATAINFORMATION_SUBCLASS_CONSTRUCTORS(Int8,SignedPrimitive)
31
32
public:
32
 
    inline int getSize() const
33
 
    {
34
 
        return 8;
35
 
    }
36
 
    inline QString getTypeName() const
37
 
    {
38
 
        return i18nc("Data type", "byte");
39
 
    }
40
33
    DATAINFORMATION_CLONE(Int8)
41
 
    virtual QString getValueString() const;
 
34
 
 
35
    int size() const;
 
36
    QString typeName() const;
 
37
    virtual QString valueString() const;
42
38
 
43
39
    virtual void setWidgetData(QWidget* w) const;
44
 
 
45
 
    inline QWidget* createEditWidget(QWidget* parent) const
46
 
    {
47
 
        SInt8Editor* ret = new SInt8Editor(parent);
48
 
        ret->setBase(displayBase());
49
 
        return ret;
50
 
    }
 
40
    virtual QWidget* createEditWidget(QWidget* parent) const;
51
41
};
52
42
 
 
43
inline int Int8DataInformation::size() const
 
44
{
 
45
    return 8;
 
46
}
 
47
 
 
48
inline QString Int8DataInformation::typeName() const
 
49
{
 
50
    return i18nc("Data type", "byte");
 
51
}
 
52
 
53
53
#endif /* INT8DATAINFORMATION_H_ */