Changeset View
Changeset View
Standalone View
Standalone View
src/tagwidget_p.h
Show All 16 Lines | |||||
17 | * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 | * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
18 | * Boston, MA 02110-1301, USA. | 18 | * Boston, MA 02110-1301, USA. | ||
19 | */ | 19 | */ | ||
20 | 20 | | |||
21 | #ifndef _BALOO_TAG_WIDGET_P_H_ | 21 | #ifndef _BALOO_TAG_WIDGET_P_H_ | ||
22 | #define _BALOO_TAG_WIDGET_P_H_ | 22 | #define _BALOO_TAG_WIDGET_P_H_ | ||
23 | 23 | | |||
24 | #include "tagwidget.h" | 24 | #include "tagwidget.h" | ||
25 | #include "tagcheckbox.h" | ||||
25 | 26 | | |||
26 | #include <QtCore/QList> | 27 | #include <QtCore/QList> | ||
27 | #include <QtCore/QMap> | 28 | #include <QtCore/QMap> | ||
28 | 29 | | |||
29 | class QLabel; | 30 | class QLabel; | ||
30 | class KBlockLayout; | 31 | class KBlockLayout; | ||
31 | class KEditTagsDialog; | 32 | class KEditTagsDialog; | ||
32 | 33 | | |||
Show All 9 Lines | 40 | public: | |||
42 | void buildTagHash(const QStringList& tags); | 43 | void buildTagHash(const QStringList& tags); | ||
43 | 44 | | |||
44 | /// lookup (and if necessary create) checkbox for tag | 45 | /// lookup (and if necessary create) checkbox for tag | ||
45 | TagCheckBox* getTagCheckBox(const QString& tag); | 46 | TagCheckBox* getTagCheckBox(const QString& tag); | ||
46 | 47 | | |||
47 | /// check the corresponding checkboxes and even | 48 | /// check the corresponding checkboxes and even | ||
48 | /// add missing checkboxes | 49 | /// add missing checkboxes | ||
49 | void selectTags(const QStringList& tags); | 50 | void selectTags(const QStringList& tags); | ||
51 | void setPropertyName(const QString& name); | ||||
50 | 52 | | |||
51 | bool m_readOnly; | 53 | bool m_readOnly; | ||
52 | 54 | | |||
53 | QMap<QString, TagCheckBox*> m_checkBoxHash; | 55 | QMap<QString, TagCheckBox*> m_checkBoxHash; | ||
54 | QLabel* m_showAllLinkLabel; | 56 | QLabel* m_showAllLinkLabel; | ||
55 | KBlockLayout* m_flowLayout; | 57 | KBlockLayout* m_flowLayout; | ||
56 | TagWidget* q; | 58 | TagWidget* q; | ||
57 | 59 | | |||
58 | KEditTagsDialog* m_editTagsDialog; | 60 | KEditTagsDialog* m_editTagsDialog; | ||
61 | QString m_propertyName; | ||||
62 | bool m_asLinks; | ||||
59 | }; | 63 | }; | ||
60 | } | 64 | } | ||
61 | 65 | | |||
62 | #endif | 66 | #endif |