Debian Codegraph @

src/options.cpp

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 #include "options.h"
24 // #include "configlists.h"
25 #include "types.h"
26 #include "stdlib.h"
27
28 Options::Options(ConfigLists *configlists) :
29 CsoundOptions(configlists)
30 {
31 #ifdef Q_OS_MACOS
32 font = "Menlo";
33 #elif defined(Q_OS_WIN)
34 font = "Consolas";
35 #else
36 font = "Monospace";
37 #endif
38 theme = "breeze";
39 fontPointSize = 10;
40 showLineNumberArea = true;
41 lineEnding = 0; // 0=Unix (LF) 1=Windows(CR+LF)
42 consoleFont = "Courier";
43 consoleFontPointSize = 9;
44 consoleFontColor = Qt::black;
45 consoleBgColor = Qt::white;
46 editorBgColor = Qt::white;
47
48 tabWidth = 4;
49 colorVariables = true;
50 highlightingTheme = "light";
51 autoPlay = true;
52 autoJoin = false;
53 midiCcToCurrentPageOnly = false;
54 saveChanges = true;
55 askIfTemporary = false;
56 rememberFile = true;
57 saveWidgets = true;
58 // iconText = true;
59 iconText = false;
60 showToolbar = true;
61 lockToolbar = false;
62 toolbarIconSize = 20;
63 wrapLines = true;
64 autoComplete = true;
65
66 showWidgetsOnRun = true;
67 showTooltips = false;
68 terminalFLTK = false;
69 oldFormat = false; // Store old MacCsound widget format
70 openProperties = true; // Open properties automatically when creating a widget
71 fontScaling = 1.0;
72 fontOffset = 0.0;
73 graphUpdateRate = 30;
74
75 useAPI = true;
76 enableWidgets = true;
77 widgetsIndependent = false; // Widget layouts in Separate Window (instead of Dock Widget)
78 keyRepeat = true;
79 debugLiveEvents = false;
80 consoleBufferSize = 1024;
81 midiInterface = 0; // For internal CsoundQt MIDI control
82 midiOutInterface = 0; // For internal CsoundQt MIDI control
83
84 rtMidiApi = 0;
85
86 csdPath = "./"; //path of active csd needed for setting -o -i paths
87
88 menuDepth = 3;
89 defaultCsd = "";
90 defaultCsdActive = false;
91 opcodexmldir = "";
92 opcodexmldirActive = false;
93 favoriteDir = "";
94 examplePath = "";
95 pythonDir = "";
96 pythonExecutable = "python3";
97 #ifdef Q_OS_MACOS
98 csoundExecutable = "/usr/local/bin/csound ";
99 #else
100 csoundExecutable = "csound ";
101 #endif
102 logFile = ""; // "log.txt"; - don't log by default...
103 sdkDir = "";
104 templateDir = "";
105 evalLanguage = CS_ORC;
106
107 #ifdef USE_WEBENGINE
108 debugPort = 34711;
109 #endif
110
111 // External applications
112 terminal = "";
113 browser = "";
114 dot = "";
115 waveeditor = "";
116 waveplayer = "";
117 pdfviewer = "";
118 language = 0; // Interface language
119
120 csdTemplate = QCS_DEFAULT_TEMPLATE ; // was: ""
121
122 // Csound Utilities options
123 cvInputName = "input.wav";
124 cvOutputName = "input.cv";
125 cvSampleRate = "44100";
126 cvBeginTime = "0.0";
127 cvDuration = "0.0";
128 cvChannels = "";
129
130 hetInputName = "input.wav";
131 hetOutputName = "output.het";
132 hetSampleRate = "44100";
133 hetChannel = "1";
134 hetBeginTime = "0.0";
135 hetDuration = "0.0";
136 hetStartFrequency = "100.0";
137 hetNumPartials = "10";
138 hetMaxAmplitude = "32767";
139 hetMinAplitude = "64";
140 hetNumBreakPoints = "256";
141 hetFilterCutoff = "0";
142
143 lpInputName = "input.wav";
144 lpOutputName = "output.lp";
145 lpSampleRate ="44100" ;
146 lpChannel = "1";
147 lpBeginTime = "0.0";
148 lpDuration = "0.0";
149 lpNumPoles = "34";
150 lpHopSize = "200";
151 lpLowestFreq = "";
152 lpVerbosity = 0;
153 lpAlternateStorage = true;
154
155 pvInputName = "input.wav";
156 pvOutputName = "output.pvx";
157 pvSampleRate = "";
158 pvChannel = "1";
159 pvBeginTime = "0.0";
160 pvDuration = "0.0";
161 pvFrameSize = "1024";
162 pvOverlap = "4";
163 pvWindow = 0;
164 pvBeta = "6.4";
165
166 atsInputName = "input.wav";
167 atsOutputName = "output.ats";
168 atsBeginTime = "0.0";
169 atsEndTime = "0.0";
170 atsLowestFreq = "20";
171 atsHighestFreq = "20000";
172 atsFreqDeviat = "0.1";
173 atsWinCycle = "4";
174 atsHopSize = "0.25";
175 atsLowestMag = "-60";
176 atsTrackLen = "3";
177 atsMinSegLen = "3";
178 atsMinGapLen = "3";
179 atsSmrThresh = "30";
180 atsLastPkCon = "0.0";
181 atsSmrContr = "0.5";
182 atsFileType = 3;
183 atsWindow = 1;
184 }
185
186
187 Options::~Options()
188 {
189 }