summaryrefslogtreecommitdiffstats
path: root/quanta/parsers/sagroupparser.h
blob: 082bf3d7a05e0ef6497f6b50ea626ee90206030e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/***************************************************************************
                          sagroupparser.h  -  description
                             -------------------
    begin                : Wed Feb 11 2004
    copyright            : (C) 2004 Andras Mantia <amantia@kde.org>
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef SAGROUPPARSER_H
#define SAGROUPPARSER_H

//qt includes
#include <tqobject.h>

//forward definitions
class TQTimer;
class Document;
class Node;
class SAParser;

/**
  This class is used to parse for special area (script) groups in the node tree.
 */
class SAGroupParser : public TQObject
{
Q_OBJECT
  TQ_OBJECT
public:
  public:
    SAGroupParser(SAParser *parent, Document *write, Node *startNode, Node *endNode, bool synchronous, bool parsingLastNode, bool paringLastGroup);
    ~SAGroupParser() {};

    TQTimer *m_parseForGroupTimer;

  public slots:
    void slotParseForScriptGroup();

  signals:
    void rebuildStructureTree(bool);
    void cleanGroups();
    void parsingDone(SAGroupParser*);

  private:
    void parseForScriptGroup(Node *node);

    bool m_lastGroupParsed;
    bool m_parsingLastNode;
    bool m_synchronous;
    SAParser *m_parent;
    Node* g_node;
    Node* g_endNode;
    Document *m_write;
    int m_count;
};

#endif