Debian Codegraph @

QuteApp/quteapp.h

raw symbols SCIP
1 /*
2 Copyright (C) 2010 Andres Cabrera
3 [email protected]
4
5 This file is part of QuteCsound.
6
7 QuteCsound is free software; you can redistribute it
8 and/or modify it under the terms of the GNU Lesser General Public
9 License as published by the Free Software Foundation; either
10 version 2.1 of the License, or (at your option) any later version.
11
12 QuteCsound is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU Lesser General Public License for more details.
16
17 You should have received a copy of the GNU Lesser General Public
18 License along with Csound; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
20 02111-1307 USA
21 */
22
23 #ifndef QUTEAPP_H
24 #define QUTEAPP_H
25
26 #include <QtGui/QMainWindow>
27
28 class SimpleDocument;
29 class CsoundOptions;
30 class OpEntryParser;
31 class ConsoleWidget;
32 class AboutWidget;
33
34 class QuteApp : public QMainWindow
35 {
36 Q_OBJECT
37
38 public:
39 QuteApp(QWidget *parent = 0);
40 ~QuteApp();
41
42 void setRunPath(QString path);
43
44 void createMenus();
45
46 typedef enum {
47 RUN_RT_ONLY,
48 RENDER_ONLY,
49 RUN_OR_RENDER
50 } RunMode;
51
52 public slots:
53 void start();
54 void pause();
55 void stop();
56 void save();
57 void showConsole();
58 void configure();
59 void info();
60
61 private:
62 bool loadCsd();
63 void setAboutTexts();
64
65 CsoundOptions *m_options;
66 SimpleDocument *m_doc;
67 ConsoleWidget *m_console;
68 OpEntryParser *m_opcodeTree;
69 AboutWidget *m_aboutWidget;
70
71 // Local Preferences
72 QString m_appName;
73 QString m_author;
74 QString m_email;
75 QString m_website;
76 QString m_date;
77 QString m_version;
78 bool m_autorun;
79 bool m_showRunOptions;
80 bool m_saveOnClose;
81 bool m_newParser;
82 RunMode m_runMode;
83 bool m_saveState;
84 QString m_instructions;
85
86 };
87
88 #endif // QTAPP_H