~ubuntu-branches/ubuntu/precise/gwenview/precise-proposed

« back to all changes in this revision

Viewing changes to lib/semanticinfo/tagwidget.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2011-12-15 14:17:54 UTC
  • mto: This revision was merged to the branch mainline in revision 12.
  • Revision ID: package-import@ubuntu.com-20111215141754-z043hyx69dulbggf
Tags: upstream-4.7.90
Import upstream version 4.7.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// vim: set tabstop=4 shiftwidth=4 noexpandtab:
 
1
// vim: set tabstop=4 shiftwidth=4 expandtab:
2
2
/*
3
3
Gwenview: an image viewer
4
4
Copyright 2008 Aurélien Gâteau <agateau@kde.org>
32
32
// Local
33
33
#include <lib/semanticinfo/abstractsemanticinfobackend.h>
34
34
 
35
 
 
36
 
namespace Gwenview {
 
35
namespace Gwenview
 
36
{
37
37
 
38
38
typedef QMap<SemanticInfoTag, bool> TagInfo;
39
39
 
40
40
struct TagWidgetPrivate;
41
 
class GWENVIEWLIB_EXPORT TagWidget : public QWidget {
42
 
        Q_OBJECT
 
41
class GWENVIEWLIB_EXPORT TagWidget : public QWidget
 
42
{
 
43
    Q_OBJECT
43
44
public:
44
 
        TagWidget(QWidget* parent = 0);
45
 
        ~TagWidget();
46
 
        void setTagInfo(const TagInfo&);
47
 
        void setSemanticInfoBackEnd(AbstractSemanticInfoBackEnd*);
 
45
    TagWidget(QWidget* parent = 0);
 
46
    ~TagWidget();
 
47
    void setTagInfo(const TagInfo&);
 
48
    void setSemanticInfoBackEnd(AbstractSemanticInfoBackEnd*);
48
49
 
49
50
Q_SIGNALS:
50
 
        void tagAssigned(const SemanticInfoTag&);
51
 
        void tagRemoved(const SemanticInfoTag&);
 
51
    void tagAssigned(const SemanticInfoTag&);
 
52
    void tagRemoved(const SemanticInfoTag&);
52
53
 
53
54
private Q_SLOTS:
54
 
        void addTagFromComboBox();
55
 
        void assignTag(const SemanticInfoTag& tag);
56
 
        void removeTag(const SemanticInfoTag&);
 
55
    void addTagFromComboBox();
 
56
    void assignTag(const SemanticInfoTag& tag);
 
57
    void removeTag(const SemanticInfoTag&);
57
58
 
58
59
private:
59
 
        TagWidgetPrivate* const d;
 
60
    TagWidgetPrivate* const d;
60
61
};
61
62
 
62
 
 
63
63
} // namespace
64
64
 
65
65
#endif /* TAGWIDGET_H */