| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
#ifndef DOCSYMBOLS_H |
| 23 |
#define DOCSYMBOLS_H |
| 24 |
|
| 25 |
#include <QObject> |
| 26 |
#include <QStringList> |
| 27 |
#include <QString> |
| 28 |
#include "symbol.h" |
| 29 |
#include "parserthread.h" |
| 30 |
#include "common.h" |
| 31 |
|
| 32 |
class DocSymbols : public QObject { |
| 33 |
Q_OBJECT |
| 34 |
public: |
| 35 |
DocSymbols(); |
| 36 |
~DocSymbols(); |
| 37 |
Symbol *symbols() const { return mSymbols; }; |
| 38 |
|
| 39 |
void refresh(const QString &text, const Language language); |
| 40 |
Symbol *symbolByPath(const QStringList &path); |
| 41 |
|
| 42 |
bool detailed() const { return mDetailed; }; |
| 43 |
void setDetailed(bool detailed); |
| 44 |
|
| 45 |
bool sorted() const { return mSorted; }; |
| 46 |
void setSorted(bool sorted); |
| 47 |
|
| 48 |
bool allExpanded() const { return mAllExpanded; }; |
| 49 |
void setAllExpanded(bool expandAll); |
| 50 |
|
| 51 |
const QString &docName() const { return mDocName; }; |
| 52 |
void setDocName(const QString &value); |
| 53 |
signals: |
| 54 |
void changed(); |
| 55 |
|
| 56 |
protected slots: |
| 57 |
void onParserFinished(); |
| 58 |
|
| 59 |
private: |
| 60 |
Symbol *mSymbols; |
| 61 |
bool mDetailed; |
| 62 |
bool mSorted; |
| 63 |
bool mAllExpanded; |
| 64 |
QString mDocName; |
| 65 |
ParserThread *lastParser; |
| 66 |
|
| 67 |
}; |
| 68 |
|
| 69 |
#endif |