Debian Codegraph @

src/options.h

raw symbols SCIP
1 /*
2 Copyright (C) 2008, 2009 Andres Cabrera
3 [email protected]
4
5 This file is part of CsoundQt.
6
7 CsoundQt 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 CsoundQt 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 OPTIONS_H
24 #define OPTIONS_H
25
26 #include <QString>
27 #include <QColor>
28
29 #include "csoundoptions.h"
30
31 class Options: public CsoundOptions{
32 public:
33 Options(ConfigLists *configlists);
34 ~Options();
35
36 QString theme; // Icon theme name
37 QString font;
38 float fontPointSize;
39 bool showLineNumberArea;
40 int lineEnding; // 0=Unix (LF) 1=Windows(CR+LF)
41 QString consoleFont;
42 float consoleFontPointSize;
43 QColor consoleFontColor;
44 QColor consoleBgColor;
45 QColor editorBgColor;
46 int tabWidth;
47 bool tabIndents;
48 bool colorVariables;
49 QString highlightingTheme;
50 bool autoPlay;
51 bool autoJoin;
52 bool midiCcToCurrentPageOnly;
53 bool saveChanges;
54 bool askIfTemporary;
55 bool rememberFile;
56 bool saveWidgets;
57 bool iconText;
58 bool showToolbar;
59 bool lockToolbar;
60 int toolbarIconSize;
61 bool wrapLines;
62 bool autoComplete;
63 int autoCompleteDelay;
64 bool autoParameterMode;
65 bool tabShortcutActive;
66
67 bool highlightScore;
68
69 bool showWidgetsOnRun;
70 bool showTooltips;
71 int graphUpdateRate;
72 bool terminalFLTK;
73 bool oldFormat; // Store old MacCsound widget format
74 bool openProperties; // Open properties automatically when creating a widget
75 double fontScaling;
76 double fontOffset;
77
78 bool useAPI;
79 bool enableWidgets;
80 bool widgetsIndependent; // Widget layouts in Separate Window (instead of Dock Widget)
81 bool useInvalue; // If false use chnget
82 bool keyRepeat;
83 bool debugLiveEvents;
84 int consoleBufferSize;
85 int midiInterface;
86 QString midiInterfaceName;
87 int midiOutInterface;
88 QString midiOutInterfaceName;
89 int rtMidiApi; // "UNSPECIFIED" | "LINUX_ALSA" | "UNIX_JACK" | "MACOSX_CORE" | "WINDOWS_MM" see RtMidi.h
90 // Csound engine flags
91 bool noBuffer;
92 bool noPython;
93 bool noMessages;
94 bool noEvents;
95
96 QString csdPath; //path of active csd needed for setting -o -i paths
97
98 int menuDepth;
99 QString defaultCsd;
100 bool defaultCsdActive;
101 QString opcodexmldir;
102 bool opcodexmldirActive;
103 QString favoriteDir;
104 QString examplePath;
105 QString pythonDir;
106 QString pythonExecutable;
107 QString csoundExecutable;
108 QString logFile;
109 QString sdkDir;
110 QString templateDir;
111
112 typedef enum {
113 CS_ORC = 0x01,
114 CS_SCORE = 0x02,
115 PYTHON = 0x04,
116 LUA = 0x08,
117 QML = 0x0F
118 } CodeLanguage;
119
120 CodeLanguage evalLanguage;
121 // External applications
122 QString terminal;
123 QString browser;
124 QString dot;
125 QString waveeditor;
126 QString waveplayer;
127 QString pdfviewer;
128 int language; // Interface language
129
130 QString csdTemplate;
131
132 quint16 debugPort;
133
134
135 // Csound Utilities options
136 QString cvInputName;
137 QString cvOutputName;
138 QString cvSampleRate;
139 QString cvBeginTime;
140 QString cvDuration;
141 QString cvChannels;
142
143 QString hetInputName;
144 QString hetOutputName;
145 QString hetSampleRate;
146 QString hetChannel;
147 QString hetBeginTime;
148 QString hetDuration;
149 QString hetStartFrequency;
150 QString hetNumPartials;
151 QString hetMaxAmplitude;
152 QString hetMinAplitude;
153 QString hetNumBreakPoints;
154 QString hetFilterCutoff;
155
156 QString lpInputName;
157 QString lpOutputName;
158 QString lpSampleRate;
159 QString lpChannel;
160 QString lpBeginTime;
161 QString lpDuration;
162 QString lpNumPoles;
163 QString lpHopSize;
164 QString lpLowestFreq;
165 int lpVerbosity;
166 bool lpAlternateStorage;
167
168 QString pvInputName;
169 QString pvOutputName;
170 QString pvSampleRate;
171 QString pvChannel;
172 QString pvBeginTime;
173 QString pvDuration;
174 QString pvFrameSize;
175 QString pvOverlap;
176 int pvWindow;
177 QString pvBeta;
178
179 QString atsInputName;
180 QString atsOutputName;
181 QString atsBeginTime;
182 QString atsEndTime;
183 QString atsLowestFreq;
184 QString atsHighestFreq;
185 QString atsFreqDeviat;
186 QString atsWinCycle;
187 QString atsHopSize;
188 QString atsLowestMag;
189 QString atsTrackLen;
190 QString atsMinSegLen;
191 QString atsMinGapLen;
192 QString atsSmrThresh;
193 QString atsLastPkCon;
194 QString atsSmrContr;
195 int atsFileType;
196 int atsWindow;
197 };
198
199 #endif