Changeset View
Changeset View
Standalone View
Standalone View
language/duchain/navigation/useswidget.h
Show First 20 Lines • Show All 108 Lines • ▼ Show 20 Line(s) | 38 | namespace KDevelop { | |||
---|---|---|---|---|---|
109 | * Represents the uses of a declaration within one top-context | 109 | * Represents the uses of a declaration within one top-context | ||
110 | */ | 110 | */ | ||
111 | class KDEVPLATFORMLANGUAGE_EXPORT TopContextUsesWidget : public NavigatableWidgetList { | 111 | class KDEVPLATFORMLANGUAGE_EXPORT TopContextUsesWidget : public NavigatableWidgetList { | ||
112 | Q_OBJECT | 112 | Q_OBJECT | ||
113 | public: | 113 | public: | ||
114 | TopContextUsesWidget(IndexedDeclaration declaration, QList<IndexedDeclaration> localDeclarations, IndexedTopDUContext topContext); | 114 | TopContextUsesWidget(IndexedDeclaration declaration, QList<IndexedDeclaration> localDeclarations, IndexedTopDUContext topContext); | ||
115 | void setExpanded(bool); | 115 | void setExpanded(bool); | ||
116 | int usesCount() const; | 116 | int usesCount() const; | ||
117 | private slots: | 117 | private Q_SLOTS: | ||
118 | void labelClicked(); | 118 | void labelClicked(); | ||
119 | private: | 119 | private: | ||
120 | IndexedTopDUContext m_topContext; | 120 | IndexedTopDUContext m_topContext; | ||
121 | IndexedDeclaration m_declaration; | 121 | IndexedDeclaration m_declaration; | ||
122 | QLabel* m_icon; | 122 | QLabel* m_icon; | ||
123 | QLabel* m_toggleButton; | 123 | QLabel* m_toggleButton; | ||
124 | QList<IndexedDeclaration> m_allDeclarations; | 124 | QList<IndexedDeclaration> m_allDeclarations; | ||
125 | int m_usesCount; | 125 | int m_usesCount; | ||
Show All 23 Lines | 133 | public: | |||
149 | unsigned int countAllUses() const; | 149 | unsigned int countAllUses() const; | ||
150 | Q_SIGNALS: | 150 | Q_SIGNALS: | ||
151 | void navigateDeclaration(KDevelop::IndexedDeclaration); | 151 | void navigateDeclaration(KDevelop::IndexedDeclaration); | ||
152 | private: | 152 | private: | ||
153 | const QString headerLineText() const; | 153 | const QString headerLineText() const; | ||
154 | QLabel* m_headerLine; | 154 | QLabel* m_headerLine; | ||
155 | QSharedPointer<UsesWidgetCollector> m_collector; | 155 | QSharedPointer<UsesWidgetCollector> m_collector; | ||
156 | QProgressBar* m_progressBar; | 156 | QProgressBar* m_progressBar; | ||
157 | public slots: | 157 | public Q_SLOTS: | ||
158 | void headerLinkActivated(QString linkName); | 158 | void headerLinkActivated(QString linkName); | ||
159 | void redrawHeaderLine(); | 159 | void redrawHeaderLine(); | ||
160 | }; | 160 | }; | ||
161 | } | 161 | } | ||
162 | 162 | | |||
163 | #endif | 163 | #endif |