Debian Codegraph @

plugins/symbolbrowser/symbols/docsymbols.h

raw symbols SCIP
1 /***************************************************************************
2 A SymbolBrowser plugin for JuffEd editor.
3
4 Copyright: 2010 Aleksander Sokoloff <[email protected]>
5
6
7 This program is free software; you can redistribute it and/or
8 modify it under the terms of the GNU General Public License.
9 version 2 as published by the Free Software Foundation.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software Foundation,
18 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
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 // DOCSYMBOLS_H