~fabian.gundlach/kileip/minusinfty

« back to all changes in this revision

Viewing changes to src/user.h

  • Committer: Fabian Gundlach
  • Date: 2011-07-15 18:21:24 UTC
  • Revision ID: 320pointsguy@gmail.com-20110715182124-q1txydgxtydepid6
User cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
                User();
39
39
                ~User();
40
40
                /// Returs main
41
 
                TextPart * startQuestions();
42
 
                void endQuestions();
 
41
                QPair< TextPart*, QString > data();
 
42
                void textChanged(QString ntext);
43
43
                void finished(TextPart * main);
44
 
                TextPart * document();
45
 
                CollectionPart * preamble();
46
 
                void waitForParsed();
47
 
                /// Returns the mathgroups that are not contained in another mathgroup
48
 
                QList<Part*> getMathgroups(Part *part);
49
44
        protected:
50
45
                void run();
51
 
        public:
52
 
                void textChanged(QString newtext);
53
 
                QString currentText();
54
46
        signals:
55
47
                void documentChanged();
56
48
        private:
63
55
                QWaitCondition waitcond;
64
56
                bool abort;
65
57
                
66
 
                QMutex mutexforfinished;
67
 
                QWaitCondition waitforfinished;
68
 
                
69
58
                QList<QPair<TextPart*,int> > mains;
70
 
                
71
59
        public:
72
60
                static QStringList mathcommands;
73
61
                static QStringList mathbegincommands;
74
62
                static QStringList mathenvs;
75
63
                static void initMath();
 
64
                
 
65
                static TextPart * document(TextPart* ma, QString text);
 
66
                static CollectionPart * preamble(TextPart* ma, QString text);
 
67
                /// Returns the mathgroups that are not contained in another mathgroup
 
68
                static QList<Part*> getMathgroups(Part *part, QString text);
76
69
};
77
70
 
78
71
#endif