diff --git a/data/locale/ar.ts b/data/locale/ar.ts
index 8e989509dab..1f159c42a2a 100644
--- a/data/locale/ar.ts
+++ b/data/locale/ar.ts
@@ -7156,7 +7156,7 @@ Double click to pick a file.
- LmmsCore
+ Engine
Generating wavetables
diff --git a/data/locale/bs.ts b/data/locale/bs.ts
index 013585b5fac..506b401bd61 100644
--- a/data/locale/bs.ts
+++ b/data/locale/bs.ts
@@ -4416,7 +4416,7 @@ Double click to pick a file.
- LmmsCore
+ Engine
Generating wavetables
diff --git a/data/locale/ca.ts b/data/locale/ca.ts
index 3512b48716d..765cf3b6081 100644
--- a/data/locale/ca.ts
+++ b/data/locale/ca.ts
@@ -7155,7 +7155,7 @@ Double click to pick a file.
- LmmsCore
+ Engine
Generating wavetables
diff --git a/data/locale/cs.ts b/data/locale/cs.ts
index 7951c75b9a6..0ed175022be 100644
--- a/data/locale/cs.ts
+++ b/data/locale/cs.ts
@@ -7157,7 +7157,7 @@ Poklepejte pro výběr souboru.
- LmmsCore
+ Engine
Generating wavetables
diff --git a/data/locale/de.ts b/data/locale/de.ts
index ef4d946341b..51ca7d56204 100644
--- a/data/locale/de.ts
+++ b/data/locale/de.ts
@@ -7156,7 +7156,7 @@ Double click to pick a file.
- LmmsCore
+ Engine
Generating wavetables
diff --git a/data/locale/el.ts b/data/locale/el.ts
index b543854d399..320a6657f61 100644
--- a/data/locale/el.ts
+++ b/data/locale/el.ts
@@ -7155,7 +7155,7 @@ Double click to pick a file.
- LmmsCore
+ Engine
Generating wavetables
diff --git a/data/locale/en.ts b/data/locale/en.ts
index b58d27f3093..e52ae39ab7e 100644
--- a/data/locale/en.ts
+++ b/data/locale/en.ts
@@ -7157,7 +7157,7 @@ Double click to pick a file.
- LmmsCore
+ Engine
Generating wavetables
diff --git a/data/locale/eo.ts b/data/locale/eo.ts
index b133d802952..005ee8100bf 100644
--- a/data/locale/eo.ts
+++ b/data/locale/eo.ts
@@ -7155,7 +7155,7 @@ Double click to pick a file.
- LmmsCore
+ Engine
Generating wavetables
diff --git a/data/locale/es.ts b/data/locale/es.ts
index 8fb16442157..4fc4951ef92 100644
--- a/data/locale/es.ts
+++ b/data/locale/es.ts
@@ -7156,7 +7156,7 @@ Double click to pick a file.
- LmmsCore
+ Engine
Generating wavetables
diff --git a/data/locale/eu.ts b/data/locale/eu.ts
index 9642a3ff269..25c165f81f8 100644
--- a/data/locale/eu.ts
+++ b/data/locale/eu.ts
@@ -7436,7 +7436,7 @@ Double click to pick a file.
- LmmsCore
+ Engine
Generating wavetables
diff --git a/data/locale/fa.ts b/data/locale/fa.ts
index 4e72345fd8b..181ca0ca1ff 100644
--- a/data/locale/fa.ts
+++ b/data/locale/fa.ts
@@ -7155,7 +7155,7 @@ Double click to pick a file.
- LmmsCore
+ Engine
Generating wavetables
diff --git a/data/locale/fr.ts b/data/locale/fr.ts
index 85f4433094c..2c65444a8e0 100644
--- a/data/locale/fr.ts
+++ b/data/locale/fr.ts
@@ -7448,7 +7448,7 @@ Double-cliquez pour choisir un fichier.
- LmmsCore
+ Engine
Generating wavetables
diff --git a/data/locale/gl.ts b/data/locale/gl.ts
index 38a80a5da97..cf04fd5d428 100644
--- a/data/locale/gl.ts
+++ b/data/locale/gl.ts
@@ -7155,7 +7155,7 @@ Double click to pick a file.
- LmmsCore
+ Engine
Generating wavetables
diff --git a/data/locale/he.ts b/data/locale/he.ts
index 783b473b7e0..ee5a23613b2 100644
--- a/data/locale/he.ts
+++ b/data/locale/he.ts
@@ -7156,7 +7156,7 @@ Double click to pick a file.
- LmmsCore
+ Engine
Generating wavetables
diff --git a/data/locale/hi_IN.ts b/data/locale/hi_IN.ts
index 5ba65acd64f..15550231f85 100644
--- a/data/locale/hi_IN.ts
+++ b/data/locale/hi_IN.ts
@@ -7157,7 +7157,7 @@ Double click to pick a file.
- LmmsCore
+ Engine
Generating wavetables
diff --git a/data/locale/hu_HU.ts b/data/locale/hu_HU.ts
index f82ff12c496..83605994674 100644
--- a/data/locale/hu_HU.ts
+++ b/data/locale/hu_HU.ts
@@ -7162,7 +7162,7 @@ Kattints duplán egy fájl kiválasztásához.
- LmmsCore
+ Engine
Generating wavetables
diff --git a/data/locale/id.ts b/data/locale/id.ts
index b55f6c98c2b..e381ea726d8 100644
--- a/data/locale/id.ts
+++ b/data/locale/id.ts
@@ -7160,7 +7160,7 @@ Double click to pick a file.
- LmmsCore
+ Engine
Generating wavetables
diff --git a/data/locale/it.ts b/data/locale/it.ts
index 29865352a15..ff146d47120 100644
--- a/data/locale/it.ts
+++ b/data/locale/it.ts
@@ -7169,7 +7169,7 @@ Fai doppio click per scegliere un file.
- LmmsCore
+ Engine
Generating wavetables
diff --git a/data/locale/ja.ts b/data/locale/ja.ts
index 28fda3123f8..e10ca511818 100644
--- a/data/locale/ja.ts
+++ b/data/locale/ja.ts
@@ -7157,7 +7157,7 @@ Double click to pick a file.
- LmmsCore
+ Engine
Generating wavetables
diff --git a/data/locale/ka.ts b/data/locale/ka.ts
index b48b3f2b07d..1956d8d04e5 100644
--- a/data/locale/ka.ts
+++ b/data/locale/ka.ts
@@ -7155,7 +7155,7 @@ Double click to pick a file.
- LmmsCore
+ Engine
Generating wavetables
diff --git a/data/locale/ko.ts b/data/locale/ko.ts
index 78cfbdd5c2f..7373b5ca9a7 100644
--- a/data/locale/ko.ts
+++ b/data/locale/ko.ts
@@ -7160,7 +7160,7 @@ Double click to pick a file.
- LmmsCore
+ Engine
Generating wavetables
diff --git a/data/locale/ms_MY.ts b/data/locale/ms_MY.ts
index 533efdcad66..209d51d108c 100644
--- a/data/locale/ms_MY.ts
+++ b/data/locale/ms_MY.ts
@@ -7155,7 +7155,7 @@ Double click to pick a file.
- LmmsCore
+ Engine
Generating wavetables
diff --git a/data/locale/nb.ts b/data/locale/nb.ts
index 41865ef0c73..3675b7f589c 100644
--- a/data/locale/nb.ts
+++ b/data/locale/nb.ts
@@ -7155,7 +7155,7 @@ Double click to pick a file.
- LmmsCore
+ Engine
Generating wavetables
diff --git a/data/locale/nl.ts b/data/locale/nl.ts
index 2eaa6b15431..ad630a249c9 100644
--- a/data/locale/nl.ts
+++ b/data/locale/nl.ts
@@ -7158,7 +7158,7 @@ Dubbelklikken om een bestand te kiezen.
- LmmsCore
+ Engine
Generating wavetables
diff --git a/data/locale/oc.ts b/data/locale/oc.ts
index 8df1aa1a117..58c81c96453 100644
--- a/data/locale/oc.ts
+++ b/data/locale/oc.ts
@@ -7155,7 +7155,7 @@ Double click to pick a file.
- LmmsCore
+ Engine
Generating wavetables
diff --git a/data/locale/pl.ts b/data/locale/pl.ts
index 340be33d81a..bb0c64edec0 100644
--- a/data/locale/pl.ts
+++ b/data/locale/pl.ts
@@ -7441,7 +7441,7 @@ Double click to pick a file.
- LmmsCore
+ Engine
Generating wavetables
diff --git a/data/locale/pt.ts b/data/locale/pt.ts
index f94f22920e6..b375e289f38 100644
--- a/data/locale/pt.ts
+++ b/data/locale/pt.ts
@@ -7158,7 +7158,7 @@ Double click to pick a file.
- LmmsCore
+ Engine
Generating wavetables
diff --git a/data/locale/ro.ts b/data/locale/ro.ts
index ca148f452b5..eceb45a6485 100644
--- a/data/locale/ro.ts
+++ b/data/locale/ro.ts
@@ -7156,7 +7156,7 @@ Double click to pick a file.
- LmmsCore
+ Engine
Generating wavetables
diff --git a/data/locale/ru.ts b/data/locale/ru.ts
index 40e385d2c3f..8235f291f34 100644
--- a/data/locale/ru.ts
+++ b/data/locale/ru.ts
@@ -7178,7 +7178,7 @@ Double click to pick a file.
- LmmsCore
+ Engine
Generating wavetables
diff --git a/data/locale/sl.ts b/data/locale/sl.ts
index dd96809765d..3ad55a4c044 100644
--- a/data/locale/sl.ts
+++ b/data/locale/sl.ts
@@ -7155,7 +7155,7 @@ Double click to pick a file.
- LmmsCore
+ Engine
Generating wavetables
diff --git a/data/locale/sr.ts b/data/locale/sr.ts
index a8c1fd96dc1..9b90164ab3b 100644
--- a/data/locale/sr.ts
+++ b/data/locale/sr.ts
@@ -3550,7 +3550,7 @@ Double click to pick a file.
- LmmsCore
+ Engine
Generating wavetables
diff --git a/data/locale/sv.ts b/data/locale/sv.ts
index 882524c50a8..4963b07a9ad 100644
--- a/data/locale/sv.ts
+++ b/data/locale/sv.ts
@@ -7447,7 +7447,7 @@ Dubbelklicka för att välja en fil.
- LmmsCore
+ Engine
Generating wavetables
diff --git a/data/locale/tr.ts b/data/locale/tr.ts
index fa4ccb696cd..387be6d8b96 100644
--- a/data/locale/tr.ts
+++ b/data/locale/tr.ts
@@ -7449,7 +7449,7 @@ Bir dosya seçmek için çift tıklayın.
- LmmsCore
+ Engine
Generating wavetables
diff --git a/data/locale/uk.ts b/data/locale/uk.ts
index 84cc8189910..50df10e4b72 100644
--- a/data/locale/uk.ts
+++ b/data/locale/uk.ts
@@ -7156,7 +7156,7 @@ Double click to pick a file.
- LmmsCore
+ Engine
Generating wavetables
diff --git a/data/locale/zh_CN.ts b/data/locale/zh_CN.ts
index 301d54362f0..63b22df9902 100644
--- a/data/locale/zh_CN.ts
+++ b/data/locale/zh_CN.ts
@@ -7166,7 +7166,7 @@ Double click to pick a file.
- LmmsCore
+ Engine
Generating wavetables
diff --git a/data/locale/zh_TW.ts b/data/locale/zh_TW.ts
index a190c831cda..791a45599f9 100644
--- a/data/locale/zh_TW.ts
+++ b/data/locale/zh_TW.ts
@@ -7156,7 +7156,7 @@ Double click to pick a file.
- LmmsCore
+ Engine
Generating wavetables
diff --git a/data/themes/classic/style.css b/data/themes/classic/style.css
index ea3cbf4a2d9..58ec5dc0927 100644
--- a/data/themes/classic/style.css
+++ b/data/themes/classic/style.css
@@ -11,12 +11,12 @@ QMdiArea {
background-image: url(resources:background_artwork.png);
}
-Knob {
+lmms--gui--Knob {
qproperty-lineInactiveColor: rgb(120, 120, 120);
qproperty-arcInactiveColor: rgba(120, 120, 120, 70);
}
-AutomationEditor {
+lmms--gui--AutomationEditor {
background-color: rgb(0, 0, 0);
color: #e0e0e0;
qproperty-backgroundShade: rgba(255, 255, 255, 15);
@@ -70,7 +70,7 @@ QToolTip {
color: #4afd85;
}
-TextFloat {
+lmms--gui--TextFloat {
border-radius: 4px;
background: qlineargradient(spread:reflect, x1:0.5, y1:0.5, x2:0.5, y2:0, stop:0 rgba(0, 0, 0, 255), stop:1 rgba(50, 50, 50, 220));
opacity: 175;
@@ -130,18 +130,18 @@ QMenu::indicator:selected {
background-color: #747474;
}
-FileBrowser QCheckBox
+lmms--gui--FileBrowser QCheckBox
{
font-size: 10px;
color: white;
}
-PositionLine {
+lmms--gui--PositionLine {
qproperty-tailGradient: false;
qproperty-lineColor: rgb(255, 255, 255);
}
-PianoRoll {
+lmms--gui--PianoRoll {
background-color: rgb(0, 0, 0);
qproperty-backgroundShade: rgba( 255, 255, 255, 10 );
qproperty-noteModeColor: rgb( 255, 255, 255 );
@@ -182,7 +182,7 @@ PianoRoll {
qproperty-textShadow: rgb( 240, 240, 240 );
}
-TabWidget {
+lmms--gui--TabWidget {
background-color: #5b6571;
qproperty-tabText: rgba(255, 255, 255, 180);
qproperty-tabTitleText: #fff;
@@ -191,13 +191,13 @@ TabWidget {
qproperty-tabBorder: #3c434b;
}
-GroupBox {
+lmms--gui--GroupBox {
background-color: #5b6571;
}
/* main toolbar oscilloscope - can have transparent bg now */
-Oscilloscope {
+lmms--gui--Oscilloscope {
background: none;
border: none;
qproperty-normalColor: rgb(71, 253, 133);
@@ -206,7 +206,7 @@ Oscilloscope {
/* main toolbar cpu load widget - this can have transparent bg now */
-CPULoadWidget {
+lmms--gui--CPULoadWidget {
border: none;
background: url(resources:cpuload_bg.png);
}
@@ -335,19 +335,19 @@ QScrollBar::down-arrow:vertical:disabled { background-image: url(resources:sbarr
/* background for song editor and pattern editor */
-TrackContainerView QFrame{
+lmms--gui--TrackContainerView QFrame{
background-color: #49515b;
}
/* background for track controls */
-TrackView > QWidget {
+lmms--gui--TrackView > QWidget {
background-color: #5b6571;
}
/* autoscroll, loop, stop behaviour toggle buttons */
/* track background colors */
-TrackContentWidget {
+lmms--gui--TrackContentWidget {
qproperty-darkerColor: qlineargradient(x1:0, y1:0, x2:0, y2:1,
stop:0 rgb( 50, 50, 50 ), stop:0.33 rgb( 20, 20, 20 ), stop:1 rgb( 15, 15, 15 ) );
qproperty-lighterColor: qlineargradient(x1:0, y1:0, x2:0, y2:1,
@@ -359,7 +359,7 @@ TrackContentWidget {
/* gear button in tracks */
-TrackOperationsWidget > QPushButton {
+lmms--gui--TrackOperationsWidget > QPushButton {
max-height: 26px;
max-width: 26px;
min-height: 26px;
@@ -368,7 +368,7 @@ TrackOperationsWidget > QPushButton {
border: none;
}
-TrackOperationsWidget > QPushButton::menu-indicator {
+lmms--gui--TrackOperationsWidget > QPushButton::menu-indicator {
image: url(resources:trackop.png);
subcontrol-origin: padding;
subcontrol-position: center;
@@ -376,12 +376,12 @@ TrackOperationsWidget > QPushButton::menu-indicator {
top: 1px;
}
-TrackOperationsWidget > QPushButton::menu-indicator:hover {
+lmms--gui--TrackOperationsWidget > QPushButton::menu-indicator:hover {
image: url(resources:trackop_h.png);
}
-TrackOperationsWidget > QPushButton::menu-indicator:pressed,
-TrackOperationsWidget > QPushButton::menu-indicator:checked {
+lmms--gui--TrackOperationsWidget > QPushButton::menu-indicator:pressed,
+lmms--gui--TrackOperationsWidget > QPushButton::menu-indicator:checked {
image: url(resources:trackop_c.png);
position: relative;
top: 2px;
@@ -395,13 +395,13 @@ TrackOperationsWidget > QPushButton::menu-indicator:checked {
/* font sizes */
-Sf2InstrumentView > QLabel {
+lmms--gui--Sf2InstrumentView > QLabel {
font-size:10px;
}
/* main toolbar sliders (master vol, master pitch) */
-AutomatableSlider::groove:vertical {
+lmms--gui--AutomatableSlider::groove:vertical {
background: rgba(0,0,0, 128);
border: 1px inset rgba(100,100,100, 64);
border-radius: 2px;
@@ -409,7 +409,7 @@ AutomatableSlider::groove:vertical {
margin: 2px 2px;
}
-AutomatableSlider::handle:vertical {
+lmms--gui--AutomatableSlider::handle:vertical {
background: none;
border-image: url(resources:main_slider.png);
width: 26px;
@@ -425,13 +425,13 @@ QTabWidget, QTabWidget QWidget {
/* window that shows up when you add effects */
-EffectSelectDialog QScrollArea {
+lmms--gui--EffectSelectDialog QScrollArea {
background: #5b6571;
}
/* the inner boxes in LADSPA effect windows */
-EffectControlDialog QGroupBox {
+lmms--gui--EffectControlDialog QGroupBox {
background: #49515b;
margin-top: 1ex;
padding: 10px 2px 1px;
@@ -441,7 +441,7 @@ EffectControlDialog QGroupBox {
/* the inner box titles when present (channel 1, channel 2...) */
-EffectControlDialog QGroupBox::title {
+lmms--gui--EffectControlDialog QGroupBox::title {
subcontrol-origin: margin;
subcontrol-position: top left;
background: #7b838d;
@@ -531,7 +531,7 @@ QToolButton::menu-button {
/* track label buttons - the part that contains the icon and track title */
-TrackLabelButton {
+lmms--gui--TrackLabelButton {
background-color: #5b6571;
color: #c9c9c9;
font-size: 11px;
@@ -541,7 +541,7 @@ TrackLabelButton {
padding: 2px 1px;
}
-TrackLabelButton:hover {
+lmms--gui--TrackLabelButton:hover {
background-color: qlineargradient(spread:reflect, x1:0, y1:0, x2:0, y2:0.5, stop:0 #5b6571, stop:0.75 #7b838d, stop:1 #7b838d );
color: white;
border: 1px solid rgba(0,0,0,64);
@@ -549,7 +549,7 @@ TrackLabelButton:hover {
margin: 0px;
}
-TrackLabelButton:pressed {
+lmms--gui--TrackLabelButton:pressed {
background: qlineargradient(spread:reflect, x1:0.5, y1:0, x2:0.5, y2:1, stop:0 #49515b, stop:0.3 #5b6571, stop:1 #6b7581 );
color: white;
border: 1px solid rgba(0,0,0,64);
@@ -557,7 +557,7 @@ TrackLabelButton:pressed {
font-weight: bold;
}
-TrackLabelButton:checked {
+lmms--gui--TrackLabelButton:checked {
background: qlineargradient(spread:reflect, x1:0.5, y1:0, x2:0.5, y2:1, stop:0 #49515b, stop:0.3 #5b6571, stop:1 #6b7581 );
color: white;
border: 1px solid rgba(0,0,0,128);
@@ -565,50 +565,52 @@ TrackLabelButton:checked {
font-weight: bold;
}
-TrackLabelButton:checked:hover {
+lmms--gui--TrackLabelButton:checked:hover {
background-color: qlineargradient(spread:reflect, x1:0, y1:0, x2:0, y2:0.5, stop:0 #5b6571, stop:0.75 #7b838d, stop:1 #7b838d );
}
-TrackLabelButton:checked:pressed {
+lmms--gui--TrackLabelButton:checked:pressed {
background: qlineargradient(spread:reflect, x1:0.5, y1:0, x2:0.5, y2:1, stop:0 #49515b, stop:0.3 #5b6571, stop:1 #6b7581 );
}
/* sidebar, sidebar buttons */
-SideBar {
+lmms--gui--SideBar {
background: qlineargradient(x1:0, y1:0, x2:1, y2:0, stop: 0 #98a2a7, stop: 1.0 #5b646f);
}
-SideBar QToolButton {
+lmms--gui--SideBar QToolButton {
font-size: 12px;
}
/* Instrument plugin list */
-PluginDescWidget {
+lmms--gui--PluginDescWidget {
background-color: #e0e0e0;
color: #404040;
border: 1px solid rgb(64, 64, 64);
margin: 0px;
}
-PluginDescWidget:hover {
+lmms--gui--PluginDescWidget:hover {
background-color: #e0e0e0;
}
/* piano widget */
-PianoView {
+lmms--gui--PianoView {
background-color: #14171a;
}
/* font sizes for text buttons */
-MixerView QPushButton, EffectRackView QPushButton, ControllerRackView QPushButton {
+lmms--gui--MixerView QPushButton,
+lmms--gui--EffectRackView QPushButton,
+lmms--gui--ControllerRackView QPushButton {
font-size: 10px;
}
-MixerLine {
+lmms--gui--MixerLine {
background: #5b6571;
color: #e0e0e0;
qproperty-backgroundActive: qlineargradient(spread:reflect, x1:0, y1:0, x2:1, y2:0,
@@ -620,13 +622,13 @@ MixerLine {
}
/* persistent peak markers for fx peak meters */
-Fader {
+lmms--gui--Fader {
qproperty-peakGreen: rgb( 74, 253, 133);
qproperty-peakYellow: rgb(224, 222, 18);
qproperty-peakRed: rgb( 255, 100, 100);
}
-TimeLineWidget {
+lmms--gui--TimeLineWidget {
/* font-size only supports px and pt. */
font-size: 7pt;
/* lengths also support em. This will make sure that the height
@@ -654,7 +656,7 @@ QTreeView {
alternate-background-color: #747474;
}
-TrackContainerView QLabel
+lmms--gui--TrackContainerView QLabel
{
background: none;
}
@@ -662,7 +664,7 @@ TrackContainerView QLabel
/* Clips */
/* common clip colors */
-ClipView {
+lmms--gui--ClipView {
qproperty-mutedColor: rgb( 128, 128, 128 );
qproperty-mutedBackgroundColor: rgb( 80, 80, 80 );
qproperty-selectedColor: rgb( 0, 125, 255 );
@@ -679,7 +681,7 @@ ClipView {
}
/* MIDI (instrument) clip */
-MidiClipView {
+lmms--gui--MidiClipView {
background-color: rgb( 119, 199, 216 );
color: rgb( 187, 227, 236 );
@@ -690,24 +692,24 @@ MidiClipView {
}
/* sample track clip */
-SampleClipView {
+lmms--gui--SampleClipView {
background-color: rgba(42,51,59,255);
color: #FF8F05;
}
/* automation clip */
-AutomationClipView {
+lmms--gui--AutomationClipView {
background-color: #99afff;
color: rgb( 204, 215, 255 );
}
/* pattern clip */
-PatternClipView {
+lmms--gui--PatternClipView {
background-color: rgb( 128, 182, 175 ); /* default colour for pattern tracks */
}
/* Subwindows in MDI-Area */
-SubWindow {
+lmms--gui--SubWindow {
color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #4b525c, stop: 1.0 #31363d);
qproperty-activeColor: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
@@ -717,21 +719,21 @@ SubWindow {
}
/* Subwindow title text */
-SubWindow > QLabel {
+lmms--gui--SubWindow > QLabel {
color: rgb( 255, 255, 255 );
font-size: 12px;
font-style: normal;
}
/* SubWindow titlebar button */
-SubWindow > QPushButton {
+lmms--gui--SubWindow > QPushButton {
background-color: rgba( 255, 255, 255, 0% );
border-width: 0px;
border-color: none;
border-style: none;
}
-SubWindow > QPushButton:hover{
+lmms--gui--SubWindow > QPushButton:hover{
background-color: rgba( 255, 255, 255, 15% );
border-width: 1px;
border-color: rgba( 0, 0, 0, 20% );
@@ -742,7 +744,7 @@ SubWindow > QPushButton:hover{
/* Plugins */
-TripleOscillatorView Knob {
+lmms--gui--TripleOscillatorView lmms--gui--Knob {
color: rgb(255, 255, 255);
qproperty-outerColor: rgb(255, 255, 255);
qproperty-innerRadius: 2;
@@ -753,7 +755,7 @@ TripleOscillatorView Knob {
}
-KickerInstrumentView Knob#smallKnob {
+lmms--gui--KickerInstrumentView lmms--gui--Knob#smallKnob {
color: #595959;
qproperty-outerColor: black;
qproperty-innerRadius: 3;
@@ -764,7 +766,7 @@ KickerInstrumentView Knob#smallKnob {
}
-KickerInstrumentView Knob#largeKnob {
+lmms--gui--KickerInstrumentView lmms--gui--Knob#largeKnob {
color: #0c3b89;
qproperty-outerColor: #519fff;
qproperty-innerRadius: 12.0;
@@ -775,7 +777,7 @@ KickerInstrumentView Knob#largeKnob {
}
-AudioFileProcessorView Knob {
+lmms--gui--AudioFileProcessorView lmms--gui--Knob {
color: rgb(240, 147, 14);
qproperty-outerColor: rgb(30, 35, 37);
qproperty-innerRadius: 4;
@@ -785,7 +787,7 @@ AudioFileProcessorView Knob {
qproperty-lineWidth: 3;
}
-OrganicInstrumentView Knob {
+lmms--gui--OrganicInstrumentView lmms--gui--Knob {
color: rgb(124, 207, 98);
qproperty-outerColor: rgb(13, 42, 4);
qproperty-innerRadius: 2;
@@ -795,13 +797,13 @@ OrganicInstrumentView Knob {
qproperty-lineWidth: 1.5;
}
-OrganicInstrumentView Knob#harmKnob {
+lmms--gui--OrganicInstrumentView lmms--gui--Knob#harmKnob {
color: rgb(205, 98, 216);
qproperty-outerColor: rgb(18, 4, 18);
}
-OrganicInstrumentView Knob#fx1Knob,
-OrganicInstrumentView Knob#volKnob {
+lmms--gui--OrganicInstrumentView lmms--gui--Knob#fx1Knob,
+lmms--gui--OrganicInstrumentView lmms--gui--Knob#volKnob {
color: rgb(157, 157, 157);
qproperty-outerColor: rgb(37, 37, 37);
qproperty-innerRadius: 4;
@@ -811,7 +813,7 @@ OrganicInstrumentView Knob#volKnob {
qproperty-lineWidth: 2;
}
-Sf2InstrumentView Knob {
+lmms--gui--Sf2InstrumentView lmms--gui--Knob {
color: #ff00ea;
qproperty-outerColor: rgb(20, 5, 18);
qproperty-innerRadius: 2;
@@ -821,7 +823,7 @@ Sf2InstrumentView Knob {
qproperty-lineWidth: 2;
}
-SfxrInstrumentView Knob {
+lmms--gui--SfxrInstrumentView lmms--gui--Knob {
color: #000;
qproperty-outerColor: rgb(194, 177, 145);
qproperty-innerRadius: 2;
@@ -829,42 +831,42 @@ SfxrInstrumentView Knob {
qproperty-lineWidth: 2;
}
-SfxrInstrumentView Knob#envKnob {
+lmms--gui--SfxrInstrumentView lmms--gui--Knob#envKnob {
color: #263352;
qproperty-outerColor: #4b66a4;
}
-SfxrInstrumentView Knob#freqKnob {
+lmms--gui--SfxrInstrumentView lmms--gui--Knob#freqKnob {
color: #1e4a22;
qproperty-outerColor: #3c9544;
}
-SfxrInstrumentView Knob#changeKnob {
+lmms--gui--SfxrInstrumentView lmms--gui--Knob#changeKnob {
color: #591c1c;
qproperty-outerColor: #b23737;
}
-SfxrInstrumentView Knob#sqrKnob {
+lmms--gui--SfxrInstrumentView lmms--gui--Knob#sqrKnob {
color: #3b2714;
qproperty-outerColor: #724c27;
}
-SfxrInstrumentView Knob#repeatKnob {
+lmms--gui--SfxrInstrumentView lmms--gui--Knob#repeatKnob {
color: #292929;
qproperty-outerColor: #515151;
}
-SfxrInstrumentView Knob#phaserKnob {
+lmms--gui--SfxrInstrumentView lmms--gui--Knob#phaserKnob {
color: #144c4d;
qproperty-outerColor: #299899;
}
-SfxrInstrumentView Knob#filterKnob {
+lmms--gui--SfxrInstrumentView lmms--gui--Knob#filterKnob {
color: #47224c;
qproperty-outerColor: #8e4397;
}
-OpulenzInstrumentView Knob {
+lmms--gui--OpulenzInstrumentView lmms--gui--Knob {
color: rgb(128,128,128);
qproperty-outerColor: rgb(255,255,255);
qproperty-innerRadius: 2;
@@ -872,7 +874,7 @@ OpulenzInstrumentView Knob {
qproperty-lineWidth: 2;
}
-SidInstrumentView Knob {
+lmms--gui--SidInstrumentView lmms--gui--Knob {
color: rgb(113,95,80);
qproperty-outerColor: rgb( 255,255,255 );
qproperty-innerRadius: 2;
@@ -880,7 +882,7 @@ SidInstrumentView Knob {
qproperty-lineWidth: 2;
}
-WatsynView Knob {
+lmms--gui--WatsynView lmms--gui--Knob {
qproperty-innerRadius: 1;
qproperty-outerRadius: 7;
qproperty-centerPointX: 9.5;
@@ -888,17 +890,17 @@ WatsynView Knob {
qproperty-lineWidth: 2;
}
-WatsynView Knob#aKnob {
+lmms--gui--WatsynView lmms--gui--Knob#aKnob {
color: #43b2ff;
qproperty-outerColor: #43b2ff;
}
-WatsynView Knob#bKnob {
+lmms--gui--WatsynView lmms--gui--Knob#bKnob {
color: #fc5431;
qproperty-outerColor: #fc5431;
}
-WatsynView Knob#mixKnob {
+lmms--gui--WatsynView lmms--gui--Knob#mixKnob {
color: #43ff82;
qproperty-outerColor: #43ff82;
qproperty-outerRadius: 13;
@@ -906,17 +908,17 @@ WatsynView Knob#mixKnob {
qproperty-centerPointY: 15.5;
}
-WatsynView Knob#mixenvKnob {
+lmms--gui--WatsynView lmms--gui--Knob#mixenvKnob {
color: #43ff82;
qproperty-outerColor: #43ff82;
}
-WatsynView Knob#xtalkKnob {
+lmms--gui--WatsynView lmms--gui--Knob#xtalkKnob {
color: #fb50fb;
qproperty-outerColor: #fb50fb;
}
-MonstroView Knob {
+lmms--gui--MonstroView lmms--gui--Knob {
color: #ffffff;
qproperty-outerColor: #aaaaaa;
qproperty-outerRadius: 9;
@@ -926,7 +928,7 @@ MonstroView Knob {
qproperty-lineWidth: 2.5;
}
-NesInstrumentView Knob {
+lmms--gui--NesInstrumentView lmms--gui--Knob {
color: #e7231b;
qproperty-outerColor: #fff;
qproperty-outerRadius: 11.0;
@@ -936,7 +938,7 @@ NesInstrumentView Knob {
qproperty-lineWidth: 2;
}
-CompressorControlDialog {
+lmms--gui--CompressorControlDialog {
qproperty-inVolAreaColor: rgba(209, 216, 228, 17);
qproperty-inVolColor: rgba(209, 216, 228, 100);
qproperty-outVolAreaColor: rgba(209, 216, 228, 30);
@@ -950,7 +952,7 @@ CompressorControlDialog {
qproperty-resetColor: rgba(200, 100, 15, 200);
}
-CompressorControlDialog Knob {
+lmms--gui--CompressorControlDialog lmms--gui--Knob {
color: #2fcc71;
qproperty-outerColor: #2fcc71;
qproperty-lineWidth: 2;
@@ -958,7 +960,7 @@ CompressorControlDialog Knob {
/* palette information */
-LmmsPalette {
+lmms--gui--LmmsPalette {
qproperty-background: #5b6571;
qproperty-windowText: #f0f0f0;
qproperty-base: #808080;
diff --git a/data/themes/default/style.css b/data/themes/default/style.css
index b10e493e71a..f4c651c9e65 100644
--- a/data/themes/default/style.css
+++ b/data/themes/default/style.css
@@ -40,18 +40,18 @@ QMdiArea {
background-color: #111314;
}
-FileBrowser QCheckBox
+lmms--gui--FileBrowser QCheckBox
{
font-size: 10px;
color: white;
}
-Knob {
+lmms--gui--Knob {
qproperty-lineInactiveColor: rgb(120, 120, 120);
qproperty-arcInactiveColor: rgba(120, 120, 120, 70);
}
-AutomationEditor {
+lmms--gui--AutomationEditor {
color: #ffffff;
background-color: #141616;
qproperty-backgroundShade: rgba(255, 255, 255, 15);
@@ -100,7 +100,7 @@ QToolTip {
color: #d1d8e4;
}
-TextFloat {
+lmms--gui--TextFloat {
background: #040506;
color: #d1d8e4;
}
@@ -168,12 +168,12 @@ QMenu::indicator:selected {
background-color: #101213;
}
-PositionLine {
+lmms--gui--PositionLine {
qproperty-tailGradient: true;
qproperty-lineColor: rgb(255, 255, 255);
}
-PianoRoll {
+lmms--gui--PianoRoll {
background-color: #141616;
qproperty-backgroundShade: rgba(255, 255, 255, 10);
qproperty-noteModeColor: #0bd556;
@@ -214,7 +214,7 @@ PianoRoll {
qproperty-textShadow: #fff;
}
-TabWidget {
+lmms--gui--TabWidget {
background-color: #262b30;
qproperty-tabText: rgba(255, 255, 255, 180);
qproperty-tabTitleText: #fff;
@@ -223,13 +223,13 @@ TabWidget {
qproperty-tabBorder: #181b1f;
}
-GroupBox {
+lmms--gui--GroupBox {
background-color: #262b30;
}
/* main toolbar oscilloscope - can have transparent bg now */
-Oscilloscope {
+lmms--gui--Oscilloscope {
background: none;
border: none;
qproperty-normalColor: rgb(71, 253, 133);
@@ -238,7 +238,7 @@ Oscilloscope {
/* main toolbar cpu load widget - this can have transparent bg now */
-CPULoadWidget {
+lmms--gui--CPULoadWidget {
border: none;
background: url(resources:cpuload_bg.png);
}
@@ -308,7 +308,7 @@ QScrollBar::handle:horizontal:disabled, QScrollBar::handle:vertical:disabled {
border: none;
}
-EffectRackView QScrollBar::handle:vertical:disabled {
+lmms--gui--EffectRackView QScrollBar::handle:vertical:disabled {
background: #3f4750;
border: none;
border-radius: 4px;
@@ -366,17 +366,17 @@ QScrollBar::left-arrow:horizontal:disabled { background-image: url(resources:sba
QScrollBar::right-arrow:horizontal:disabled { background-image: url(resources:sbarrow_right_d.png);}
QScrollBar::up-arrow:vertical:disabled { background-image: url(resources:sbarrow_up_d.png);}
QScrollBar::down-arrow:vertical:disabled { background-image: url(resources:sbarrow_down_d.png);}
-EffectRackView QScrollBar::up-arrow:vertical:disabled { background-image: url(resources:sbarrow_up.png);}
-EffectRackView QScrollBar::down-arrow:vertical:disabled { background-image: url(resources:sbarrow_down.png);}
+lmms--gui--EffectRackView QScrollBar::up-arrow:vertical:disabled { background-image: url(resources:sbarrow_up.png);}
+lmms--gui--EffectRackView QScrollBar::down-arrow:vertical:disabled { background-image: url(resources:sbarrow_down.png);}
/* background for song editor and pattern editor */
-TrackContainerView QFrame {
+lmms--gui--TrackContainerView QFrame {
background-color: #262b30;
}
/* background for track controls */
-TrackView > QWidget {
+lmms--gui--TrackView > QWidget {
background-color: #3B424A;
}
@@ -384,7 +384,7 @@ TrackView > QWidget {
/* autoscroll, loop, stop behaviour toggle buttons */
/* track background colors */
-TrackContentWidget {
+lmms--gui--TrackContentWidget {
qproperty-darkerColor: #0C0E0F;
qproperty-lighterColor: #14151A;
qproperty-gridColor: #262B30;
@@ -394,7 +394,7 @@ TrackContentWidget {
/* gear button in tracks */
-TrackOperationsWidget > QPushButton {
+lmms--gui--TrackOperationsWidget > QPushButton {
max-height: 26px;
max-width: 26px;
min-height: 26px;
@@ -403,7 +403,7 @@ TrackOperationsWidget > QPushButton {
border: none;
}
-TrackOperationsWidget > QPushButton::menu-indicator {
+lmms--gui--TrackOperationsWidget > QPushButton::menu-indicator {
image: url(resources:trackop.png);
subcontrol-origin: padding;
subcontrol-position: center;
@@ -411,8 +411,8 @@ TrackOperationsWidget > QPushButton::menu-indicator {
top: 1px;
}
-TrackOperationsWidget > QPushButton::menu-indicator:pressed,
-TrackOperationsWidget > QPushButton::menu-indicator:checked {
+lmms--gui--TrackOperationsWidget > QPushButton::menu-indicator:pressed,
+lmms--gui--TrackOperationsWidget > QPushButton::menu-indicator:checked {
image: url(resources:trackop.png);
position: relative;
top: 2px;
@@ -420,13 +420,13 @@ TrackOperationsWidget > QPushButton::menu-indicator:checked {
/* font sizes */
-Sf2InstrumentView > QLabel {
+lmms--gui--Sf2InstrumentView > QLabel {
font-size:10px;
}
/* main toolbar sliders (master vol, master pitch) */
-AutomatableSlider::groove:vertical {
+lmms--gui--AutomatableSlider::groove:vertical {
background: #040506;
border: none;
border-radius: 2px;
@@ -434,7 +434,7 @@ AutomatableSlider::groove:vertical {
margin: 2px 2px;
}
-AutomatableSlider::handle:vertical {
+lmms--gui--AutomatableSlider::handle:vertical {
background: none;
border-image: url(resources:main_slider.png);
width: 26px;
@@ -445,13 +445,13 @@ AutomatableSlider::handle:vertical {
/* window that shows up when you add effects */
-EffectSelectDialog QScrollArea {
+lmms--gui--EffectSelectDialog QScrollArea {
background: #262b30;
}
/* the inner boxes in LADSPA effect windows */
-EffectControlDialog QGroupBox {
+lmms--gui--EffectControlDialog QGroupBox {
background: #262b30;
margin-top: 1ex;
padding: 10px 2px 1px;
@@ -461,7 +461,7 @@ EffectControlDialog QGroupBox {
/* the inner box titles when present (channel 1, channel 2...) */
-EffectControlDialog QGroupBox::title {
+lmms--gui--EffectControlDialog QGroupBox::title {
subcontrol-origin: margin;
subcontrol-position: top center;
background: #262b30;
@@ -543,7 +543,7 @@ QToolButton::menu-button {
/* track label buttons - the part that contains the icon and track title */
-TrackLabelButton {
+lmms--gui--TrackLabelButton {
background-color: #3B424A;
border: 1px solid #3B424A;
font-size: 11px;
@@ -551,7 +551,7 @@ TrackLabelButton {
padding: 2px 1px;
}
-TrackLabelButton:hover {
+lmms--gui--TrackLabelButton:hover {
background: #3B424A;
border: 1px solid #515B66;
border-radius: none;
@@ -560,7 +560,7 @@ TrackLabelButton:hover {
padding: 2px 1px;
}
-TrackLabelButton:pressed {
+lmms--gui--TrackLabelButton:pressed {
background: #262B30;
border-radius: none;
font-size: 11px;
@@ -568,7 +568,7 @@ TrackLabelButton:pressed {
padding: 2px 1px;
}
-TrackLabelButton:checked {
+lmms--gui--TrackLabelButton:checked {
border: 1px solid #485059;
background: #1C1F24;
background-image: url(resources:track_shadow_p.png);
@@ -578,7 +578,7 @@ TrackLabelButton:checked {
padding: 2px 1px;
}
-TrackLabelButton:checked:pressed {
+lmms--gui--TrackLabelButton:checked:pressed {
border: 1px solid #2f353b;
background: #0e1012;
background-image: url(resources:track_shadow_p.png);
@@ -589,30 +589,30 @@ TrackLabelButton:checked:pressed {
/* sidebar, sidebar buttons */
-SideBar {
+lmms--gui--SideBar {
subcontrol-position: center;
background: qlineargradient(spread:reflect, x1:0, y1:0, x2:0, y2:1, stop:0 #1D2122, stop:1 #262B30);
}
-SideBar QToolButton {
+lmms--gui--SideBar QToolButton {
background: none;
border: none;
font-size: 12px;
}
-SideBar QToolButton:hover {
+lmms--gui--SideBar QToolButton:hover {
background: none;
border: none;
font-size: 12px;
}
-SideBar QToolButton:pressed {
+lmms--gui--SideBar QToolButton:pressed {
background: none;
border: none;
font-size: 12px;
}
-SideBar QToolButton:checked {
+lmms--gui--SideBar QToolButton:checked {
background: qlineargradient(spread:reflect, x1:0, y1:0, x2:0, y2:1, stop:0 #4b525b, stop:1 #2f333a);
border: none;
font-size: 12px;
@@ -620,7 +620,7 @@ SideBar QToolButton:checked {
/* Instrument plugin list */
-PluginDescWidget {
+lmms--gui--PluginDescWidget {
border-top: 1px solid #3E474F;
border-bottom: 1px solid #101314;
border-radius: 2px;
@@ -630,24 +630,26 @@ PluginDescWidget {
margin: 0px;
}
-PluginDescWidget:hover {
+lmms--gui--PluginDescWidget:hover {
background: qlineargradient(spread:reflect, x1:0, y1:0, x2:0, y2:1, stop:0 #7C8799, stop:1 #343840);
color: #d1d8e4;
}
/* piano widget */
-PianoView {
+lmms--gui--PianoView {
background-color: #14171a;
}
/* font sizes for text buttons */
-MixerView QPushButton, EffectRackView QPushButton, ControllerRackView QPushButton {
+lmms--gui--MixerView QPushButton,
+lmms--gui--EffectRackView QPushButton,
+lmms--gui--ControllerRackView QPushButton {
font-size: 10px;
}
-MixerLine {
+lmms--gui--MixerLine {
background: #14161A;
color: #d1d8e4;
qproperty-backgroundActive: #3B424A;
@@ -658,13 +660,13 @@ MixerLine {
}
/* persistent peak markers for fx peak meters */
-Fader {
+lmms--gui--Fader {
qproperty-peakGreen: #0ad45c;
qproperty-peakYellow: #d6ec52;
qproperty-peakRed: #c12038;
}
-TimeLineWidget {
+lmms--gui--TimeLineWidget {
/* font-size only supports px and pt. */
font-size: 7pt;
/* lengths also support em. This will make sure that the height
@@ -700,7 +702,7 @@ QTreeView {
alternate-background-color: #111314;
}
-TrackContainerView QLabel
+lmms--gui--TrackContainerView QLabel
{
background: none;
}
@@ -708,7 +710,7 @@ TrackContainerView QLabel
/* Clips */
/* common clip colors */
-ClipView {
+lmms--gui--ClipView {
qproperty-mutedColor: rgba(255,255,255,100);
qproperty-mutedBackgroundColor: #373d48;
qproperty-selectedColor: #006B65;
@@ -725,7 +727,7 @@ ClipView {
}
/* MIDI (instrument) clip */
-MidiClipView {
+lmms--gui--MidiClipView {
background-color: #21A14F;
color: rgba(255,255,255,220);
@@ -736,24 +738,24 @@ MidiClipView {
}
/* sample track clip */
-SampleClipView {
+lmms--gui--SampleClipView {
background-color: rgba(42,51,59,255);
color: #FF8F05;
}
/* automation clip */
-AutomationClipView {
+lmms--gui--AutomationClipView {
background-color: #663DE1;
color: rgba(255,255,255,90);
}
/* pattern clip */
-PatternClipView {
+lmms--gui--PatternClipView {
background-color: #20BDB2; /* default colour for pattern tracks */
}
/* Subwindows in MDI-Area */
-SubWindow {
+lmms--gui--SubWindow {
color: qlineargradient(spread:reflect, x1:0, y1:0, x2:0, y2:1, stop:0 #090909, stop:0.05 #3D454F, stop:1 #262B30);
qproperty-activeColor: qlineargradient(spread:reflect, x1:0, y1:0, x2:0, y2:1 stop:0 #090909, stop:0.05 #636c7a, stop:1 #343840);
qproperty-textShadowColor: #000;
@@ -761,21 +763,21 @@ SubWindow {
}
/* Subwindow title text */
-SubWindow > QLabel {
+lmms--gui--SubWindow > QLabel {
color: #d1d8e4;
font-size: 12px;
font-style: normal;
}
/* SubWindow titlebar button */
-SubWindow > QPushButton {
+lmms--gui--SubWindow > QPushButton {
background-color: rgba( 255, 255, 255, 0% );
border-width: 0px;
border-color: none;
border-style: none;
}
-SubWindow > QPushButton:hover{
+lmms--gui--SubWindow > QPushButton:hover{
background-color: rgba( 255, 255, 255, 15% );
border-width: 1px;
border-color: rgba( 0, 0, 0, 20% );
@@ -786,7 +788,7 @@ SubWindow > QPushButton:hover{
/* Plugins */
-TripleOscillatorView Knob {
+lmms--gui--TripleOscillatorView lmms--gui--Knob {
color: rgb(255,255,255);
qproperty-outerColor: rgb(255,255,255);
qproperty-innerRadius: 2;
@@ -797,7 +799,7 @@ TripleOscillatorView Knob {
}
-KickerInstrumentView Knob#smallKnob {
+lmms--gui--KickerInstrumentView lmms--gui--Knob#smallKnob {
color: #595959;
qproperty-outerColor: black;
qproperty-innerRadius: 3;
@@ -808,7 +810,7 @@ KickerInstrumentView Knob#smallKnob {
}
-KickerInstrumentView Knob#largeKnob {
+lmms--gui--KickerInstrumentView lmms--gui--Knob#largeKnob {
color: #0c3b89;
qproperty-outerColor: #519fff;
qproperty-innerRadius: 12.0;
@@ -819,7 +821,7 @@ KickerInstrumentView Knob#largeKnob {
}
-AudioFileProcessorView Knob {
+lmms--gui--AudioFileProcessorView lmms--gui--Knob {
color: rgb(240, 147, 14);
qproperty-outerColor: rgb(30, 35, 37);
qproperty-innerRadius: 4;
@@ -829,7 +831,7 @@ AudioFileProcessorView Knob {
qproperty-lineWidth: 3;
}
-OrganicInstrumentView Knob {
+lmms--gui--OrganicInstrumentView lmms--gui--Knob {
color: rgb(124, 207, 98);
qproperty-outerColor: rgb(13, 42, 4);
qproperty-innerRadius: 2;
@@ -839,13 +841,13 @@ OrganicInstrumentView Knob {
qproperty-lineWidth: 1.5;
}
-OrganicInstrumentView Knob#harmKnob {
+lmms--gui--OrganicInstrumentView lmms--gui--Knob#harmKnob {
color: rgb(205, 98, 216);
qproperty-outerColor: rgb(18, 4, 18);
}
-OrganicInstrumentView Knob#fx1Knob,
-OrganicInstrumentView Knob#volKnob {
+lmms--gui--OrganicInstrumentView lmms--gui--Knob#fx1Knob,
+lmms--gui--OrganicInstrumentView lmms--gui--Knob#volKnob {
color: rgb(157, 157, 157);
qproperty-outerColor: rgb(37, 37, 37);
qproperty-innerRadius: 4;
@@ -855,7 +857,7 @@ OrganicInstrumentView Knob#volKnob {
qproperty-lineWidth: 2;
}
-Sf2InstrumentView Knob {
+lmms--gui--Sf2InstrumentView lmms--gui--Knob {
color: #ff00ea;
qproperty-outerColor: rgb(20, 5, 18);
qproperty-innerRadius: 2;
@@ -865,7 +867,7 @@ Sf2InstrumentView Knob {
qproperty-lineWidth: 2;
}
-SfxrInstrumentView Knob {
+lmms--gui--SfxrInstrumentView lmms--gui--Knob {
color: #000;
qproperty-outerColor: rgb(194, 177, 145);
qproperty-innerRadius: 2;
@@ -873,42 +875,42 @@ SfxrInstrumentView Knob {
qproperty-lineWidth: 2;
}
-SfxrInstrumentView Knob#envKnob {
+lmms--gui--SfxrInstrumentView lmms--gui--Knob#envKnob {
color: #263352;
qproperty-outerColor: #4b66a4;
}
-SfxrInstrumentView Knob#freqKnob {
+lmms--gui--SfxrInstrumentView lmms--gui--Knob#freqKnob {
color: #1e4a22;
qproperty-outerColor: #3c9544;
}
-SfxrInstrumentView Knob#changeKnob {
+lmms--gui--SfxrInstrumentView lmms--gui--Knob#changeKnob {
color: #591c1c;
qproperty-outerColor: #b23737;
}
-SfxrInstrumentView Knob#sqrKnob {
+lmms--gui--SfxrInstrumentView lmms--gui--Knob#sqrKnob {
color: #3b2714;
qproperty-outerColor: #724c27;
}
-SfxrInstrumentView Knob#repeatKnob {
+lmms--gui--SfxrInstrumentView lmms--gui--Knob#repeatKnob {
color: #292929;
qproperty-outerColor: #515151;
}
-SfxrInstrumentView Knob#phaserKnob {
+lmms--gui--SfxrInstrumentView lmms--gui--Knob#phaserKnob {
color: #144c4d;
qproperty-outerColor: #299899;
}
-SfxrInstrumentView Knob#filterKnob {
+lmms--gui--SfxrInstrumentView lmms--gui--Knob#filterKnob {
color: #47224c;
qproperty-outerColor: #8e4397;
}
-OpulenzInstrumentView Knob {
+lmms--gui--OpulenzInstrumentView lmms--gui--Knob {
color: rgb(128,128,128);
qproperty-outerColor: rgb(255,255,255);
qproperty-innerRadius: 2;
@@ -916,7 +918,7 @@ OpulenzInstrumentView Knob {
qproperty-lineWidth: 2;
}
-SidInstrumentView Knob {
+lmms--gui--SidInstrumentView lmms--gui--Knob {
color: rgb(113,95,80);
qproperty-outerColor: rgb( 255,255,255 );
qproperty-innerRadius: 2;
@@ -924,7 +926,7 @@ SidInstrumentView Knob {
qproperty-lineWidth: 2;
}
-WatsynView Knob {
+lmms--gui--WatsynView lmms--gui--Knob {
qproperty-innerRadius: 1;
qproperty-outerRadius: 7;
qproperty-centerPointX: 9.5;
@@ -932,17 +934,17 @@ WatsynView Knob {
qproperty-lineWidth: 2;
}
-WatsynView Knob#aKnob {
+lmms--gui--WatsynView lmms--gui--Knob#aKnob {
color: #43b2ff;
qproperty-outerColor: #43b2ff;
}
-WatsynView Knob#bKnob {
+lmms--gui--WatsynView lmms--gui--Knob#bKnob {
color: #fc5431;
qproperty-outerColor: #fc5431;
}
-WatsynView Knob#mixKnob {
+lmms--gui--WatsynView lmms--gui--Knob#mixKnob {
color: #43ff82;
qproperty-outerColor: #43ff82;
qproperty-outerRadius: 13;
@@ -950,17 +952,17 @@ WatsynView Knob#mixKnob {
qproperty-centerPointY: 15.5;
}
-WatsynView Knob#mixenvKnob {
+lmms--gui--WatsynView lmms--gui--Knob#mixenvKnob {
color: #43ff82;
qproperty-outerColor: #43ff82;
}
-WatsynView Knob#xtalkKnob {
+lmms--gui--WatsynView lmms--gui--Knob#xtalkKnob {
color: #fb50fb;
qproperty-outerColor: #fb50fb;
}
-MonstroView Knob {
+lmms--gui--MonstroView lmms--gui--Knob {
color: #ffffff;
qproperty-outerColor: #aaaaaa;
qproperty-outerRadius: 9;
@@ -970,7 +972,7 @@ MonstroView Knob {
qproperty-lineWidth: 2.5;
}
-NesInstrumentView Knob {
+lmms--gui--NesInstrumentView lmms--gui--Knob {
color: #e7231b;
qproperty-outerColor: #fff;
qproperty-outerRadius: 11.0;
@@ -980,7 +982,7 @@ NesInstrumentView Knob {
qproperty-lineWidth: 2;
}
-CompressorControlDialog {
+lmms--gui--CompressorControlDialog {
qproperty-inVolAreaColor: rgba(209, 216, 228, 17);
qproperty-inVolColor: rgba(209, 216, 228, 100);
qproperty-outVolAreaColor: rgba(209, 216, 228, 30);
@@ -994,7 +996,7 @@ CompressorControlDialog {
qproperty-resetColor: rgba(200, 100, 15, 200);
}
-CompressorControlDialog Knob {
+lmms--gui--CompressorControlDialog lmms--gui--Knob {
color: #2fcc71;
qproperty-outerColor: #2fcc71;
qproperty-lineWidth: 2;
@@ -1002,7 +1004,7 @@ CompressorControlDialog Knob {
/* palette information */
-LmmsPalette {
+lmms--gui--LmmsPalette {
qproperty-background: #262b30;
qproperty-windowText: #1de276;
qproperty-base: #101213;
diff --git a/include/AboutDialog.h b/include/AboutDialog.h
index 93aca988d59..c7d65023fe2 100644
--- a/include/AboutDialog.h
+++ b/include/AboutDialog.h
@@ -30,6 +30,8 @@
#include "ui_about_dialog.h"
+namespace lmms::gui
+{
class AboutDialog : public QDialog, public Ui::AboutDialog
{
@@ -38,6 +40,7 @@ class AboutDialog : public QDialog, public Ui::AboutDialog
} ;
+} // namespace lmms::gui
#endif
diff --git a/include/ActionGroup.h b/include/ActionGroup.h
index 226e3913625..0fe9d78ed41 100644
--- a/include/ActionGroup.h
+++ b/include/ActionGroup.h
@@ -28,6 +28,9 @@
#include
+namespace lmms::gui
+{
+
/// \brief Convenience subclass of QActionGroup
///
/// This class provides the same functionality as QActionGroup, but in addition
@@ -54,4 +57,6 @@ private slots:
QList m_actions;
};
+} // namespace lmms::gui
+
#endif
diff --git a/include/AudioAlsa.h b/include/AudioAlsa.h
index c8452d003e5..e1024b030a5 100644
--- a/include/AudioAlsa.h
+++ b/include/AudioAlsa.h
@@ -37,6 +37,8 @@
#include "AudioDevice.h"
+namespace lmms
+{
class AudioAlsa : public QThread, public AudioDevice
{
@@ -102,6 +104,8 @@ class AudioAlsa : public QThread, public AudioDevice
} ;
-#endif
+} // namespace lmms
+
+#endif // LMMS_HAVE_ALSA
#endif
diff --git a/include/AudioAlsaSetupWidget.h b/include/AudioAlsaSetupWidget.h
index db88558a75b..9e168934e68 100644
--- a/include/AudioAlsaSetupWidget.h
+++ b/include/AudioAlsaSetupWidget.h
@@ -35,8 +35,11 @@
class QComboBox;
-class LcdSpinBox;
+namespace lmms::gui
+{
+
+class LcdSpinBox;
class AudioAlsaSetupWidget : public AudioDeviceSetupWidget
{
@@ -59,6 +62,8 @@ public slots:
AudioAlsa::DeviceInfoCollection m_deviceInfos;
};
-#endif
+} // namespace lmms::gui
+
+#endif // LMMS_HAVE_ALSA
#endif
diff --git a/include/AudioDevice.h b/include/AudioDevice.h
index 627ba470cba..6b4e9939aee 100644
--- a/include/AudioDevice.h
+++ b/include/AudioDevice.h
@@ -30,10 +30,13 @@
#include "lmms_basics.h"
+class QThread;
+
+namespace lmms
+{
class AudioEngine;
class AudioPort;
-class QThread;
class AudioDevice
@@ -153,7 +156,8 @@ class AudioDevice
surroundSampleFrame * m_buffer;
-} ;
+};
+} // namespace lmms
#endif
diff --git a/include/AudioDeviceSetupWidget.h b/include/AudioDeviceSetupWidget.h
index 9b82300bbc0..6bf656e0a7f 100644
--- a/include/AudioDeviceSetupWidget.h
+++ b/include/AudioDeviceSetupWidget.h
@@ -27,6 +27,8 @@
#include "TabWidget.h"
+namespace lmms::gui
+{
class AudioDeviceSetupWidget : public TabWidget
{
@@ -41,5 +43,6 @@ class AudioDeviceSetupWidget : public TabWidget
virtual void show();
};
+} // namespace lmms::gui
#endif
diff --git a/include/AudioDummy.h b/include/AudioDummy.h
index a0f2c528e8e..f2c198bbc33 100644
--- a/include/AudioDummy.h
+++ b/include/AudioDummy.h
@@ -30,6 +30,8 @@
#include "AudioEngine.h"
#include "MicroTimer.h"
+namespace lmms
+{
class AudioDummy : public QThread, public AudioDevice
{
@@ -52,11 +54,11 @@ class AudioDummy : public QThread, public AudioDevice
}
- class setupWidget : public AudioDeviceSetupWidget
+ class setupWidget : public gui::AudioDeviceSetupWidget
{
public:
setupWidget( QWidget * _parent ) :
- AudioDeviceSetupWidget( AudioDummy::name(), _parent )
+ gui::AudioDeviceSetupWidget( AudioDummy::name(), _parent )
{
}
@@ -114,5 +116,6 @@ class AudioDummy : public QThread, public AudioDevice
} ;
+} // namespace lmms
#endif
diff --git a/include/AudioEngine.h b/include/AudioEngine.h
index 9cf01042685..034988c2968 100644
--- a/include/AudioEngine.h
+++ b/include/AudioEngine.h
@@ -39,9 +39,13 @@
#include "PlayHandle.h"
+namespace lmms
+{
+
class AudioDevice;
class MidiClient;
class AudioPort;
+class AudioEngineWorkerThread;
const fpp_t MINIMUM_BUFFER_SIZE = 32;
@@ -54,10 +58,6 @@ const int BYTES_PER_SURROUND_FRAME = sizeof( surroundSampleFrame );
const float OUTPUT_SAMPLE_MULTIPLIER = 32767.0f;
-
-class AudioEngineWorkerThread;
-
-
class LMMS_EXPORT AudioEngine : public QObject
{
Q_OBJECT
@@ -316,7 +316,7 @@ class LMMS_EXPORT AudioEngine : public QObject
signals:
void qualitySettingsChanged();
void sampleRateChanged();
- void nextAudioBuffer( const surroundSampleFrame * buffer );
+ void nextAudioBuffer( const lmms::surroundSampleFrame * buffer );
private:
@@ -426,9 +426,11 @@ class LMMS_EXPORT AudioEngine : public QObject
bool m_waitingForWrite;
- friend class LmmsCore;
+ friend class Engine;
friend class AudioEngineWorkerThread;
friend class ProjectRenderer;
} ;
+} // namespace lmms
+
#endif
diff --git a/include/AudioEngineProfiler.h b/include/AudioEngineProfiler.h
index 19f0b612b38..136c6dbea1e 100644
--- a/include/AudioEngineProfiler.h
+++ b/include/AudioEngineProfiler.h
@@ -30,6 +30,9 @@
#include "lmms_basics.h"
#include "MicroTimer.h"
+namespace lmms
+{
+
class AudioEngineProfiler
{
public:
@@ -57,4 +60,6 @@ class AudioEngineProfiler
QFile m_outputFile;
};
+} // namespace lmms
+
#endif
diff --git a/include/AudioEngineWorkerThread.h b/include/AudioEngineWorkerThread.h
index f86d41c9aec..811f75753e6 100644
--- a/include/AudioEngineWorkerThread.h
+++ b/include/AudioEngineWorkerThread.h
@@ -29,8 +29,12 @@
#include
-class AudioEngine;
class QWaitCondition;
+
+namespace lmms
+{
+
+class AudioEngine;
class ThreadableJob;
class AudioEngineWorkerThread : public QThread
@@ -115,5 +119,6 @@ class AudioEngineWorkerThread : public QThread
volatile bool m_quit;
} ;
+} // namespace lmms
#endif
diff --git a/include/AudioFileDevice.h b/include/AudioFileDevice.h
index c21a55c4cbe..937cd9d0032 100644
--- a/include/AudioFileDevice.h
+++ b/include/AudioFileDevice.h
@@ -31,6 +31,8 @@
#include "AudioDevice.h"
#include "OutputSettings.h"
+namespace lmms
+{
class AudioFileDevice : public AudioDevice
{
@@ -74,5 +76,6 @@ typedef AudioFileDevice * ( * AudioFileDeviceInstantiaton )
AudioEngine* audioEngine,
bool & successful );
+} // namespace lmms
#endif
diff --git a/include/AudioFileFlac.h b/include/AudioFileFlac.h
index 75e86d36827..675ab21d9ec 100644
--- a/include/AudioFileFlac.h
+++ b/include/AudioFileFlac.h
@@ -30,6 +30,9 @@
#include "AudioFileDevice.h"
#include
+namespace lmms
+{
+
class AudioFileFlac: public AudioFileDevice
{
public:
@@ -71,4 +74,7 @@ class AudioFileFlac: public AudioFileDevice
};
+
+} // namespace lmms
+
#endif //AUDIO_FILE_FLAC_H
diff --git a/include/AudioFileMP3.h b/include/AudioFileMP3.h
index ab72ed68918..16c3617a88d 100644
--- a/include/AudioFileMP3.h
+++ b/include/AudioFileMP3.h
@@ -34,6 +34,8 @@
#include "lame/lame.h"
+namespace lmms
+{
class AudioFileMP3 : public AudioFileDevice
{
@@ -69,6 +71,8 @@ class AudioFileMP3 : public AudioFileDevice
lame_t m_lame;
};
-#endif
+} // namespace lmms
+
+#endif // LMMS_HAVE_MP3LAME
#endif
diff --git a/include/AudioFileOgg.h b/include/AudioFileOgg.h
index 9c7337e9cd5..7e6921015d1 100644
--- a/include/AudioFileOgg.h
+++ b/include/AudioFileOgg.h
@@ -34,6 +34,8 @@
#include "AudioFileDevice.h"
+namespace lmms
+{
class AudioFileOgg : public AudioFileDevice
{
@@ -107,6 +109,8 @@ class AudioFileOgg : public AudioFileDevice
} ;
-#endif
+} // namespace lmms
+
+#endif // LMMS_HAVE_OGGVORBIS
#endif
diff --git a/include/AudioFileWave.h b/include/AudioFileWave.h
index d8e537859f8..e9425dd86aa 100644
--- a/include/AudioFileWave.h
+++ b/include/AudioFileWave.h
@@ -31,6 +31,8 @@
#include
+namespace lmms
+{
class AudioFileWave : public AudioFileDevice
{
@@ -66,4 +68,7 @@ class AudioFileWave : public AudioFileDevice
SNDFILE * m_sf;
} ;
+
+} // namespace lmms
+
#endif
diff --git a/include/AudioJack.h b/include/AudioJack.h
index e74ac4782b9..648bb157df4 100644
--- a/include/AudioJack.h
+++ b/include/AudioJack.h
@@ -41,9 +41,17 @@
#include "AudioDeviceSetupWidget.h"
class QLineEdit;
-class LcdSpinBox;
+
+namespace lmms
+{
+
class MidiJack;
+namespace gui
+{
+class LcdSpinBox;
+}
+
class AudioJack : public QObject, public AudioDevice
{
@@ -66,7 +74,7 @@ class AudioJack : public QObject, public AudioDevice
}
- class setupWidget : public AudioDeviceSetupWidget
+class setupWidget : public gui::AudioDeviceSetupWidget
{
public:
setupWidget( QWidget * _parent );
@@ -76,7 +84,7 @@ class AudioJack : public QObject, public AudioDevice
private:
QLineEdit * m_clientName;
- LcdSpinBox * m_channels;
+ gui::LcdSpinBox * m_channels;
} ;
@@ -132,6 +140,8 @@ private slots:
} ;
-#endif
+} // namespace lmms
+
+#endif // LMMS_HAVE_JACK
#endif
diff --git a/include/AudioOss.h b/include/AudioOss.h
index b1b5d839ccd..4a552040ba5 100644
--- a/include/AudioOss.h
+++ b/include/AudioOss.h
@@ -34,9 +34,16 @@
#include "AudioDevice.h"
#include "AudioDeviceSetupWidget.h"
+class QLineEdit;
+
+namespace lmms
+{
+namespace gui
+{
class LcdSpinBox;
-class QLineEdit;
+}
+
class AudioOss : public QThread, public AudioDevice
@@ -54,7 +61,7 @@ class AudioOss : public QThread, public AudioDevice
static QString probeDevice();
- class setupWidget : public AudioDeviceSetupWidget
+class setupWidget : public gui::AudioDeviceSetupWidget
{
public:
setupWidget( QWidget * _parent );
@@ -64,7 +71,7 @@ class AudioOss : public QThread, public AudioDevice
private:
QLineEdit * m_device;
- LcdSpinBox * m_channels;
+ gui::LcdSpinBox * m_channels;
} ;
@@ -81,7 +88,8 @@ class AudioOss : public QThread, public AudioDevice
} ;
+} // namespace lmms
-#endif
+#endif // LMMS_HAVE_OSS
#endif
diff --git a/include/AudioPort.h b/include/AudioPort.h
index 0f6c931d9f8..5a2645784da 100644
--- a/include/AudioPort.h
+++ b/include/AudioPort.h
@@ -32,6 +32,9 @@
#include "MemoryManager.h"
#include "PlayHandle.h"
+namespace lmms
+{
+
class EffectChain;
class FloatModel;
class BoolModel;
@@ -133,5 +136,6 @@ class AudioPort : public ThreadableJob
} ;
+} // namespace lmms
#endif
diff --git a/include/AudioPortAudio.h b/include/AudioPortAudio.h
index 2d78af1c4fa..10dab74eb2c 100644
--- a/include/AudioPortAudio.h
+++ b/include/AudioPortAudio.h
@@ -30,9 +30,28 @@
#include "lmmsconfig.h"
#include "ComboBoxModel.h"
+#ifdef LMMS_HAVE_PORTAUDIO
+
+# include
+
+# include "AudioDevice.h"
+# include "AudioDeviceSetupWidget.h"
+
+# if defined paNeverDropInput || defined paNonInterleaved
+# define PORTAUDIO_V19
+# else
+# define PORTAUDIO_V18
+# endif
+
+#endif
+
+
+namespace lmms
+{
+
class AudioPortAudioSetupUtil : public QObject
{
- Q_OBJECT
+Q_OBJECT
public slots:
void updateBackends();
void updateDevices();
@@ -41,26 +60,17 @@ public slots:
public:
ComboBoxModel m_backendModel;
ComboBoxModel m_deviceModel;
-} ;
+};
#ifdef LMMS_HAVE_PORTAUDIO
-#include
-
-
-#include "AudioDevice.h"
-#include "AudioDeviceSetupWidget.h"
-
-#if defined paNeverDropInput || defined paNonInterleaved
-# define PORTAUDIO_V19
-#else
-# define PORTAUDIO_V18
-#endif
-
+namespace gui
+{
class ComboBox;
class LcdSpinBox;
+}
class AudioPortAudio : public AudioDevice
@@ -80,7 +90,7 @@ class AudioPortAudio : public AudioDevice
unsigned long _framesPerBuffer );
- class setupWidget : public AudioDeviceSetupWidget
+ class setupWidget : public gui::AudioDeviceSetupWidget
{
public:
setupWidget( QWidget * _parent );
@@ -90,8 +100,8 @@ class AudioPortAudio : public AudioDevice
virtual void show();
private:
- ComboBox * m_backend;
- ComboBox * m_device;
+ gui::ComboBox * m_backend;
+ gui::ComboBox * m_device;
AudioPortAudioSetupUtil m_setupUtil;
} ;
@@ -149,6 +159,8 @@ class AudioPortAudio : public AudioDevice
} ;
-#endif
+#endif // LMMS_HAVE_PORTAUDIO
+
+} // namespace lmms
#endif
diff --git a/include/AudioPulseAudio.h b/include/AudioPulseAudio.h
index 3fe098d689e..70da0808763 100644
--- a/include/AudioPulseAudio.h
+++ b/include/AudioPulseAudio.h
@@ -36,9 +36,15 @@
#include "AudioDevice.h"
#include "AudioDeviceSetupWidget.h"
+class QLineEdit;
+
+namespace lmms
+{
+namespace gui
+{
class LcdSpinBox;
-class QLineEdit;
+}
class AudioPulseAudio : public QThread, public AudioDevice
@@ -56,7 +62,7 @@ class AudioPulseAudio : public QThread, public AudioDevice
static QString probeDevice();
- class setupWidget : public AudioDeviceSetupWidget
+ class setupWidget : public gui::AudioDeviceSetupWidget
{
public:
setupWidget( QWidget * _parent );
@@ -66,7 +72,7 @@ class AudioPulseAudio : public QThread, public AudioDevice
private:
QLineEdit * m_device;
- LcdSpinBox * m_channels;
+ gui::LcdSpinBox * m_channels;
} ;
@@ -94,6 +100,8 @@ class AudioPulseAudio : public QThread, public AudioDevice
} ;
+} // namespace lmms
+
#endif
#endif
diff --git a/include/AudioSampleRecorder.h b/include/AudioSampleRecorder.h
index f5d5985c14a..294ffa17d99 100644
--- a/include/AudioSampleRecorder.h
+++ b/include/AudioSampleRecorder.h
@@ -31,6 +31,9 @@
#include "AudioDevice.h"
+namespace lmms
+{
+
class SampleBuffer;
@@ -54,5 +57,6 @@ class AudioSampleRecorder : public AudioDevice
} ;
+} // namespace lmms
#endif
diff --git a/include/AudioSdl.h b/include/AudioSdl.h
index 30797301316..b49e2ebe97e 100644
--- a/include/AudioSdl.h
+++ b/include/AudioSdl.h
@@ -41,6 +41,8 @@
class QLineEdit;
+namespace lmms
+{
class AudioSdl : public AudioDevice
{
@@ -55,7 +57,7 @@ class AudioSdl : public AudioDevice
}
- class setupWidget : public AudioDeviceSetupWidget
+ class setupWidget : public gui::AudioDeviceSetupWidget
{
public:
setupWidget( QWidget * _parent );
@@ -108,6 +110,9 @@ class AudioSdl : public AudioDevice
} ;
-#endif
+
+} // namespace lmms
+
+#endif // LMMS_HAVE_SDL
#endif
diff --git a/include/AudioSndio.h b/include/AudioSndio.h
index 94fcfa93b66..5fb7c78fce4 100644
--- a/include/AudioSndio.h
+++ b/include/AudioSndio.h
@@ -36,9 +36,16 @@
#include "AudioDevice.h"
#include "AudioDeviceSetupWidget.h"
-class LcdSpinBox;
class QLineEdit;
+namespace lmms
+{
+
+namespace gui
+{
+class LcdSpinBox;
+}
+
class AudioSndio : public QThread, public AudioDevice
{
@@ -52,7 +59,7 @@ class AudioSndio : public QThread, public AudioDevice
return QT_TRANSLATE_NOOP( "AudioDeviceSetupWidget", "sndio" );
}
- class setupWidget : public AudioDeviceSetupWidget
+ class setupWidget : public gui::AudioDeviceSetupWidget
{
public:
setupWidget( QWidget * _parent );
@@ -62,7 +69,7 @@ class AudioSndio : public QThread, public AudioDevice
private:
QLineEdit * m_device;
- LcdSpinBox * m_channels;
+ gui::LcdSpinBox * m_channels;
} ;
private:
@@ -78,6 +85,8 @@ class AudioSndio : public QThread, public AudioDevice
} ;
+} // namespace lmms
+
#endif /* LMMS_HAVE_SNDIO */
#endif /* _AUDIO_SNDIO_H */
diff --git a/include/AudioSoundIo.h b/include/AudioSoundIo.h
index 5dbd352508a..411f4ab225d 100644
--- a/include/AudioSoundIo.h
+++ b/include/AudioSoundIo.h
@@ -37,8 +37,14 @@
#include "AudioDevice.h"
#include "AudioDeviceSetupWidget.h"
+namespace lmms
+{
+
+namespace gui
+{
class ComboBox;
class LcdSpinBox;
+}
// Exists only to work around "Error: Meta object features not supported for nested classes"
class AudioSoundIoSetupUtil : public QObject
@@ -134,6 +140,9 @@ class AudioSoundIo : public AudioDevice
};
-#endif
+
+} // namespace lmms
+
+#endif // LMMS_HAVE_SOUNDIO
#endif
diff --git a/include/AutomatableButton.h b/include/AutomatableButton.h
index d7859a10c15..fefaf70e398 100644
--- a/include/AutomatableButton.h
+++ b/include/AutomatableButton.h
@@ -30,6 +30,8 @@
#include "AutomatableModelView.h"
+namespace lmms::gui
+{
class automatableButtonGroup;
@@ -105,5 +107,6 @@ private slots:
} ;
+} // namespace lmms::gui
#endif
diff --git a/include/AutomatableModel.h b/include/AutomatableModel.h
index 2f4b31467a8..672abaf818e 100644
--- a/include/AutomatableModel.h
+++ b/include/AutomatableModel.h
@@ -35,6 +35,10 @@
#include "MemoryManager.h"
#include "ModelVisitor.h"
+
+namespace lmms
+{
+
// simple way to map a property of a view to a model
#define mapPropertyFromModelPtr(type,getfunc,setfunc,modelname) \
public: \
@@ -416,7 +420,7 @@ public slots:
signals:
void initValueChanged( float val );
- void destroyed( jo_id_t id );
+ void destroyed( lmms::jo_id_t id );
} ;
@@ -502,5 +506,8 @@ class LMMS_EXPORT BoolModel : public TypedAutomatableModel
typedef QMap AutomatedValueMap;
+
+} // namespace lmms
+
#endif
diff --git a/include/AutomatableModelView.h b/include/AutomatableModelView.h
index a5996118595..fa8926c0c1b 100644
--- a/include/AutomatableModelView.h
+++ b/include/AutomatableModelView.h
@@ -32,6 +32,9 @@
class QMenu;
class QMouseEvent;
+namespace lmms::gui
+{
+
class LMMS_EXPORT AutomatableModelView : public ModelView
{
public:
@@ -132,5 +135,7 @@ using FloatModelView = TypedModelView;
using IntModelView = TypedModelView;
using BoolModelView = TypedModelView;
+} // namespace lmms::gui
+
#endif
diff --git a/include/AutomatableSlider.h b/include/AutomatableSlider.h
index b51ef1e3ff2..d6a95f5d8ea 100644
--- a/include/AutomatableSlider.h
+++ b/include/AutomatableSlider.h
@@ -31,6 +31,8 @@
#include "AutomatableModelView.h"
+namespace lmms::gui
+{
class AutomatableSlider : public QSlider, public IntModelView
{
@@ -73,5 +75,6 @@ private slots:
typedef IntModel sliderModel;
+} // namespace lmms::gui
#endif
diff --git a/include/AutomationClip.h b/include/AutomationClip.h
index 22af90ed17a..376c1e9e79a 100644
--- a/include/AutomationClip.h
+++ b/include/AutomationClip.h
@@ -34,9 +34,17 @@
#include "Clip.h"
+namespace lmms
+{
+
class AutomationTrack;
class TimePos;
+namespace gui
+{
+class AutomationClipView;
+} // namespace gui
+
class LMMS_EXPORT AutomationClip : public Clip
@@ -152,7 +160,7 @@ class LMMS_EXPORT AutomationClip : public Clip
static const QString classNodeName() { return "automationclip"; }
QString nodeName() const override { return classNodeName(); }
- ClipView * createView( TrackView * _tv ) override;
+ gui::ClipView * createView( gui::TrackView * _tv ) override;
static bool isAutomated( const AutomatableModel * _m );
@@ -168,7 +176,7 @@ class LMMS_EXPORT AutomationClip : public Clip
public slots:
void clear();
- void objectDestroyed( jo_id_t );
+ void objectDestroyed( lmms::jo_id_t );
void flipY( int min, int max );
void flipY();
void flipX( int length = -1 );
@@ -204,7 +212,7 @@ public slots:
static const float DEFAULT_MIN_VALUE;
static const float DEFAULT_MAX_VALUE;
- friend class AutomationClipView;
+ friend class gui::AutomationClipView;
friend class AutomationNode;
} ;
@@ -242,4 +250,7 @@ inline int POS(AutomationClip::TimemapIterator it)
return it.key();
}
+
+} // namespace lmms
+
#endif
diff --git a/include/AutomationClipView.h b/include/AutomationClipView.h
index 641a5869990..0b80ad2eb11 100644
--- a/include/AutomationClipView.h
+++ b/include/AutomationClipView.h
@@ -29,8 +29,14 @@
#include "ClipView.h"
+namespace lmms
+{
+
class AutomationClip;
+namespace gui
+{
+
class AutomationClipView : public ClipView
{
@@ -75,4 +81,8 @@ protected slots:
} ;
+} // namespace gui
+
+} // namespace lmms
+
#endif
diff --git a/include/AutomationEditor.h b/include/AutomationEditor.h
index c655ffcdf17..d9d1b0a10be 100644
--- a/include/AutomationEditor.h
+++ b/include/AutomationEditor.h
@@ -40,9 +40,16 @@ class QPainter;
class QPixmap;
class QScrollBar;
-class ComboBox;
-class Knob;
+namespace lmms
+{
+
class NotePlayHandle;
+
+namespace gui
+{
+
+class Knob;
+class ComboBox;
class TimeLineWidget;
@@ -128,7 +135,7 @@ protected slots:
void setProgressionType(int type);
void setTension();
- void updatePosition( const TimePos & t );
+ void updatePosition( const lmms::TimePos & t );
void zoomingXChanged();
void zoomingYChanged();
@@ -234,7 +241,7 @@ protected slots:
signals:
void currentClipChanged();
- void positionChanged( const TimePos & );
+ void positionChanged( const lmms::TimePos & );
} ;
@@ -293,5 +300,8 @@ private slots:
ComboBox * m_quantizeComboBox;
};
+} // namespace gui
+
+} // namespace lmms
#endif
diff --git a/include/AutomationNode.h b/include/AutomationNode.h
index 6cd44566238..11bd6d57d58 100644
--- a/include/AutomationNode.h
+++ b/include/AutomationNode.h
@@ -26,6 +26,9 @@
#ifndef AUTOMATION_NODE_H
#define AUTOMATION_NODE_H
+namespace lmms
+{
+
class AutomationClip;
@@ -151,5 +154,6 @@ class AutomationNode
float m_outTangent;
};
+} // namespace lmms
#endif
diff --git a/include/AutomationTrack.h b/include/AutomationTrack.h
index dc33f76c3c9..1bbc77b1c9d 100644
--- a/include/AutomationTrack.h
+++ b/include/AutomationTrack.h
@@ -29,6 +29,8 @@
#include "Track.h"
+namespace lmms
+{
class AutomationTrack : public Track
{
@@ -45,7 +47,7 @@ class AutomationTrack : public Track
return "automationtrack";
}
- TrackView * createView( TrackContainerView* ) override;
+ gui::TrackView * createView( gui::TrackContainerView* ) override;
Clip* createClip(const TimePos & pos) override;
virtual void saveTrackSpecificSettings( QDomDocument & _doc,
@@ -58,4 +60,6 @@ class AutomationTrack : public Track
} ;
+} // namespace lmms
+
#endif
diff --git a/include/AutomationTrackView.h b/include/AutomationTrackView.h
index 5ed993213ee..b5bafe58ee0 100644
--- a/include/AutomationTrackView.h
+++ b/include/AutomationTrackView.h
@@ -28,8 +28,14 @@
#include "TrackView.h"
+namespace lmms
+{
+
class AutomationTrack;
+namespace gui
+{
+
class AutomationTrackView : public TrackView
{
@@ -42,4 +48,8 @@ class AutomationTrackView : public TrackView
} ;
+} // namespace gui
+
+} // namespace lmms
+
#endif
diff --git a/include/BandLimitedWave.h b/include/BandLimitedWave.h
index 1cd8d69ed47..30d28d4a126 100644
--- a/include/BandLimitedWave.h
+++ b/include/BandLimitedWave.h
@@ -36,6 +36,9 @@ class QString;
#include "Engine.h"
#include "AudioEngine.h"
+namespace lmms
+{
+
constexpr int MAXLEN = 11;
constexpr int MIPMAPSIZE = 2 << ( MAXLEN + 1 );
constexpr int MIPMAPSIZE3 = 3 << ( MAXLEN + 1 );
@@ -168,5 +171,6 @@ class LMMS_EXPORT BandLimitedWave
static QString s_wavetableDir;
};
+} // namespace lmms
#endif
diff --git a/include/BasicFilters.h b/include/BasicFilters.h
index 07cdda06bd7..10b5b24b7b7 100644
--- a/include/BasicFilters.h
+++ b/include/BasicFilters.h
@@ -43,6 +43,9 @@
#include "interpolation.h"
#include "MemoryManager.h"
+namespace lmms
+{
+
template class BasicFilters;
template
@@ -913,4 +916,6 @@ class BasicFilters
} ;
+} // namespace lmms
+
#endif
diff --git a/include/BufferManager.h b/include/BufferManager.h
index 20390644b95..57729918ec6 100644
--- a/include/BufferManager.h
+++ b/include/BufferManager.h
@@ -29,10 +29,14 @@
#include "lmms_export.h"
#include "lmms_basics.h"
+namespace lmms
+{
+
+
class LMMS_EXPORT BufferManager
{
public:
- static void init( fpp_t framesPerPeriod );
+ static void init( fpp_t fpp );
static sampleFrame * acquire();
// audio-buffer-mgm
static void clear( sampleFrame * ab, const f_cnt_t frames,
@@ -42,6 +46,12 @@ class LMMS_EXPORT BufferManager
const f_cnt_t offset = 0 );
#endif
static void release( sampleFrame * buf );
+
+private:
+ static fpp_t s_framesPerPeriod;
};
+
+} // namespace lmms
+
#endif
diff --git a/include/CPULoadWidget.h b/include/CPULoadWidget.h
index a5da11663ea..9cf275fb3ea 100644
--- a/include/CPULoadWidget.h
+++ b/include/CPULoadWidget.h
@@ -34,6 +34,10 @@
#include "lmms_basics.h"
+namespace lmms::gui
+{
+
+
class CPULoadWidget : public QWidget
{
Q_OBJECT
@@ -64,4 +68,6 @@ protected slots:
} ;
+} // namespace lmms::gui
+
#endif
diff --git a/include/CaptionMenu.h b/include/CaptionMenu.h
index e6531fe3166..2309cec6fd4 100644
--- a/include/CaptionMenu.h
+++ b/include/CaptionMenu.h
@@ -30,6 +30,9 @@
#include "lmms_export.h"
+namespace lmms::gui
+{
+
///
/// \brief A context menu with a caption
///
@@ -42,6 +45,6 @@ class LMMS_EXPORT CaptionMenu : public QMenu
} ;
-
+} // namespace lmms::gui
#endif
diff --git a/include/Clip.h b/include/Clip.h
index 7b42fc91b2c..5c70aeaba6b 100644
--- a/include/Clip.h
+++ b/include/Clip.h
@@ -30,11 +30,20 @@
#include "AutomatableModel.h"
+namespace lmms
+{
+
class Track;
-class ClipView;
class TrackContainer;
+
+namespace gui
+{
+
+class ClipView;
class TrackView;
+} // namespace gui
+
class LMMS_EXPORT Clip : public Model, public JournallingObject
{
@@ -116,7 +125,7 @@ class LMMS_EXPORT Clip : public Model, public JournallingObject
virtual void movePosition( const TimePos & pos );
virtual void changeLength( const TimePos & length );
- virtual ClipView * createView( TrackView * tv ) = 0;
+ virtual gui::ClipView * createView( gui::TrackView * tv ) = 0;
inline void selectViewOnCreate( bool select )
{
@@ -177,4 +186,6 @@ public slots:
} ;
+} // namespace lmms
+
#endif
diff --git a/include/ClipView.h b/include/ClipView.h
index b3fd20920a9..00a8b261e78 100644
--- a/include/ClipView.h
+++ b/include/ClipView.h
@@ -36,9 +36,16 @@
class QMenu;
class QContextMenuEvent;
+namespace lmms
+{
+
class DataFile;
-class TextFloat;
class Clip;
+
+namespace gui
+{
+
+class TextFloat;
class TrackView;
@@ -241,4 +248,8 @@ protected slots:
} ;
+} // namespace gui
+
+} // namespace lmms
+
#endif
diff --git a/include/Clipboard.h b/include/Clipboard.h
index 168134e9db2..1c2dcb647cd 100644
--- a/include/Clipboard.h
+++ b/include/Clipboard.h
@@ -30,8 +30,9 @@
class QMimeData;
-namespace Clipboard
+namespace lmms::Clipboard
{
+
enum class MimeType
{
StringPair,
@@ -64,6 +65,7 @@ namespace Clipboard
break;
}
}
-} ;
+
+} // namespace lmms::Clipboard
#endif
diff --git a/include/ColorChooser.h b/include/ColorChooser.h
index ac2a1b62d4a..9b3389c477c 100644
--- a/include/ColorChooser.h
+++ b/include/ColorChooser.h
@@ -21,12 +21,19 @@
*
*/
+#ifndef COLOR_CHOOSER_H
+#define COLOR_CHOOSER_H
+
#include
#include
#include
#include
#include
+namespace lmms::gui
+{
+
+
class ColorChooser: public QColorDialog
{
public:
@@ -57,3 +64,9 @@ class ColorChooser: public QColorDialog
//! Generate a nice palette, with adjustable value
static QVector nicePalette (int);
};
+
+
+} // namespace lmms::gui
+
+#endif
+
diff --git a/include/ComboBox.h b/include/ComboBox.h
index 1f7dd43ffcd..412279d15bb 100644
--- a/include/ComboBox.h
+++ b/include/ComboBox.h
@@ -32,6 +32,9 @@
#include "ComboBoxModel.h"
#include "AutomatableModelView.h"
+namespace lmms::gui
+{
+
class LMMS_EXPORT ComboBox : public QWidget, public IntModelView
{
Q_OBJECT
@@ -78,4 +81,6 @@ private slots:
} ;
+} // namespace lmms::gui
+
#endif
diff --git a/include/ComboBoxModel.h b/include/ComboBoxModel.h
index a3c2a082b24..faff036206a 100644
--- a/include/ComboBoxModel.h
+++ b/include/ComboBoxModel.h
@@ -32,6 +32,8 @@
#include "AutomatableModel.h"
#include "embed.h"
+namespace lmms
+{
class LMMS_EXPORT ComboBoxModel : public IntModel
{
@@ -91,5 +93,6 @@ class LMMS_EXPORT ComboBoxModel : public IntModel
} ;
+} // namespace lmms
#endif
diff --git a/include/ConfigManager.h b/include/ConfigManager.h
index e9b2783abbe..6aa7fc03777 100644
--- a/include/ConfigManager.h
+++ b/include/ConfigManager.h
@@ -37,7 +37,11 @@
#include "lmms_export.h"
-class LmmsCore;
+namespace lmms
+{
+
+
+class Engine;
const QString PROJECTS_PATH = "projects/";
const QString TEMPLATE_PATH = "templates/";
@@ -304,6 +308,10 @@ class LMMS_EXPORT ConfigManager : public QObject
settingsMap m_settings;
- friend class LmmsCore;
+ friend class Engine;
};
+
+
+} // namespace lmms
+
#endif
diff --git a/include/ControlLayout.h b/include/ControlLayout.h
index 60182010792..8c629f8e1cd 100644
--- a/include/ControlLayout.h
+++ b/include/ControlLayout.h
@@ -76,9 +76,15 @@
#include
#include
#include
+
class QLayoutItem;
class QRect;
class QString;
+class QLineEdit;
+
+
+namespace lmms::gui
+{
/**
Layout for controls (models)
@@ -128,9 +134,11 @@ private slots:
// relevant dimension is width, as later, heightForWidth() will be called
// 400 looks good and is ~4 knobs in a row
constexpr const static int m_minWidth = 400;
- class QLineEdit* m_searchBar;
+ QLineEdit* m_searchBar;
//! name of search bar, must be ASCII sorted before any alpha numerics
static constexpr const char* s_searchBarName = "!!searchBar!!";
};
+} // namespace lmms::gui
+
#endif // CONTROLLAYOUT_H
diff --git a/include/Controller.h b/include/Controller.h
index 092c684e06f..c2e5205d284 100644
--- a/include/Controller.h
+++ b/include/Controller.h
@@ -33,10 +33,20 @@
#include "JournallingObject.h"
#include "ValueBuffer.h"
-class ControllerDialog;
+namespace lmms
+{
+
class Controller;
class ControllerConnection;
+namespace gui
+{
+
+class ControllerDialog;
+
+} // namespace gui
+
+
typedef QVector ControllerVector;
@@ -132,7 +142,7 @@ class LMMS_EXPORT Controller : public Model, public JournallingObject
bool hasModel( const Model * m ) const;
public slots:
- virtual ControllerDialog * createDialog( QWidget * _parent );
+ virtual gui::ControllerDialog * createDialog( QWidget * _parent );
virtual void setName( const QString & _new_name )
{
@@ -169,9 +179,12 @@ public slots:
// The value changed while the audio engine isn't running (i.e: MIDI CC)
void valueChanged();
- friend class ControllerDialog;
+ friend class gui::ControllerDialog;
} ;
+
+} // namespace lmms
+
#endif
diff --git a/include/ControllerConnection.h b/include/ControllerConnection.h
index 68fd2dc8921..50b98539cf2 100644
--- a/include/ControllerConnection.h
+++ b/include/ControllerConnection.h
@@ -37,8 +37,16 @@
#include "JournallingObject.h"
#include "ValueBuffer.h"
+namespace lmms
+{
+
class ControllerConnection;
+namespace gui
+{
+class ControllerConnectionDialog;
+}
+
typedef QVector ControllerConnectionVector;
@@ -115,8 +123,11 @@ public slots:
// The value changed while the audio engine isn't running (i.e: MIDI CC)
void valueChanged();
- friend class ControllerConnectionDialog;
+ friend class gui::ControllerConnectionDialog;
};
+
+} // namespace lmms
+
#endif
diff --git a/include/ControllerConnectionDialog.h b/include/ControllerConnectionDialog.h
index 95e55ce79d8..62980987f1b 100644
--- a/include/ControllerConnectionDialog.h
+++ b/include/ControllerConnectionDialog.h
@@ -38,7 +38,15 @@
class QLineEdit;
class QListView;
class QScrollArea;
+
+namespace lmms
+{
+
class AutoDetectMidiController;
+
+namespace gui
+{
+
class ComboBox;
class GroupBox;
class TabWidget;
@@ -47,7 +55,6 @@ class LedCheckBox;
class MidiPortMenu;
-
class ControllerConnectionDialog : public QDialog
{
Q_OBJECT
@@ -99,4 +106,9 @@ protected slots:
AutoDetectMidiController * m_midiController;
} ;
+
+} // namespace gui
+
+} // namespace lmms
+
#endif
diff --git a/include/ControllerDialog.h b/include/ControllerDialog.h
index 05e8f3bfedb..0592cadf34d 100644
--- a/include/ControllerDialog.h
+++ b/include/ControllerDialog.h
@@ -30,8 +30,13 @@
#include "ModelView.h"
+namespace lmms
+{
+
class Controller;
+namespace gui
+{
class ControllerDialog : public QWidget, public ModelView
{
@@ -51,4 +56,9 @@ class ControllerDialog : public QWidget, public ModelView
} ;
+
+} // namespace gui
+
+} // namespace lmms
+
#endif
diff --git a/include/ControllerRackView.h b/include/ControllerRackView.h
index 9ef2d9b7ff4..6d60562f615 100644
--- a/include/ControllerRackView.h
+++ b/include/ControllerRackView.h
@@ -36,9 +36,17 @@ class QPushButton;
class QScrollArea;
class QVBoxLayout;
-class ControllerView;
+
+namespace lmms
+{
+
class Controller;
+namespace gui
+{
+
+class ControllerView;
+
class ControllerRackView : public QWidget, public SerializingObject
{
@@ -57,9 +65,9 @@ class ControllerRackView : public QWidget, public SerializingObject
public slots:
- void deleteController( ControllerView * _view );
- void onControllerAdded( Controller * );
- void onControllerRemoved( Controller * );
+ void deleteController( lmms::gui::ControllerView * _view );
+ void onControllerAdded( lmms::Controller * );
+ void onControllerRemoved( lmms::Controller * );
protected:
void closeEvent( QCloseEvent * _ce ) override;
@@ -80,4 +88,8 @@ private slots:
int m_nextIndex;
} ;
+} // namespace gui
+
+} // namespace lmms
+
#endif
diff --git a/include/ControllerView.h b/include/ControllerView.h
index d1284845eee..2e18e13205e 100644
--- a/include/ControllerView.h
+++ b/include/ControllerView.h
@@ -36,6 +36,10 @@ class QLabel;
class QPushButton;
class QMdiSubWindow;
+namespace lmms::gui
+{
+
+
class LedCheckBox;
@@ -64,7 +68,7 @@ public slots:
void renameController();
signals:
- void deleteController( ControllerView * _view );
+ void deleteController( lmms::gui::ControllerView * _view );
protected:
@@ -81,4 +85,7 @@ public slots:
} ;
+
+} // namespace lmms::gui
+
#endif
diff --git a/include/Controls.h b/include/Controls.h
index 41425836861..af2a5fa716d 100644
--- a/include/Controls.h
+++ b/include/Controls.h
@@ -34,8 +34,20 @@
class QString;
class QWidget;
+class QLabel;
+
+namespace lmms
+{
+
class AutomatableModel;
+namespace gui
+{
+
+class AutomatableModelView;
+class Knob;
+class ComboBox;
+class LedCheckBox;
/**
These classes provide
@@ -52,7 +64,7 @@ class Control
virtual void setModel(AutomatableModel* model) = 0;
virtual AutomatableModel* model() = 0;
- virtual class AutomatableModelView* modelView() = 0;
+ virtual AutomatableModelView* modelView() = 0;
virtual ~Control();
};
@@ -60,7 +72,7 @@ class Control
class KnobControl : public Control
{
- class Knob* m_knob;
+ Knob* m_knob;
public:
void setText(const QString& text) override;
@@ -68,7 +80,7 @@ class KnobControl : public Control
void setModel(AutomatableModel* model) override;
FloatModel* model() override;
- class AutomatableModelView* modelView() override;
+ AutomatableModelView* modelView() override;
KnobControl(QWidget* parent = nullptr);
~KnobControl() override;
@@ -78,8 +90,8 @@ class KnobControl : public Control
class ComboControl : public Control
{
QWidget* m_widget;
- class ComboBox* m_combo;
- class QLabel* m_label;
+ ComboBox* m_combo;
+ QLabel* m_label;
public:
void setText(const QString& text) override;
@@ -87,7 +99,7 @@ class ComboControl : public Control
void setModel(AutomatableModel* model) override;
ComboBoxModel* model() override;
- class AutomatableModelView* modelView() override;
+ AutomatableModelView* modelView() override;
ComboControl(QWidget* parent = nullptr);
~ComboControl() override;
@@ -104,7 +116,7 @@ class LcdControl : public Control
void setModel(AutomatableModel* model) override;
IntModel* model() override;
- class AutomatableModelView* modelView() override;
+ AutomatableModelView* modelView() override;
LcdControl(int numDigits, QWidget* parent = nullptr);
~LcdControl() override;
@@ -114,7 +126,7 @@ class LcdControl : public Control
class CheckControl : public Control
{
QWidget* m_widget;
- class LedCheckBox* m_checkBox;
+ LedCheckBox* m_checkBox;
QLabel* m_label;
public:
@@ -122,12 +134,16 @@ class CheckControl : public Control
QWidget* topWidget() override;
void setModel(AutomatableModel* model) override;
- BoolModel *model() override;
- class AutomatableModelView* modelView() override;
+ BoolModel* model() override;
+ AutomatableModelView* modelView() override;
CheckControl(QWidget* parent = nullptr);
~CheckControl() override;
};
+} // namespace gui
+
+} // namespace lmms
+
#endif // CONTROLS_H
diff --git a/include/CustomTextKnob.h b/include/CustomTextKnob.h
index aa7b9d57339..403799ff018 100644
--- a/include/CustomTextKnob.h
+++ b/include/CustomTextKnob.h
@@ -4,6 +4,10 @@
#include "Knob.h"
+namespace lmms::gui
+{
+
+
class LMMS_EXPORT CustomTextKnob : public Knob
{
protected:
@@ -27,4 +31,7 @@ class LMMS_EXPORT CustomTextKnob : public Knob
QString m_value_text;
} ;
+
+} // namespace lmms::gui
+
#endif
diff --git a/include/DataFile.h b/include/DataFile.h
index 0600e85d4ed..c17b3546ff1 100644
--- a/include/DataFile.h
+++ b/include/DataFile.h
@@ -33,9 +33,14 @@
#include "lmms_export.h"
#include "MemoryManager.h"
-class ProjectVersion;
class QTextStream;
+namespace lmms
+{
+
+class ProjectVersion;
+
+
class LMMS_EXPORT DataFile : public QDomDocument
{
MM_OPERATORS
@@ -155,4 +160,6 @@ class LMMS_EXPORT DataFile : public QDomDocument
} ;
+} // namespace lmms
+
#endif
diff --git a/include/Delay.h b/include/Delay.h
index 5be1ac183ad..404782f90b6 100644
--- a/include/Delay.h
+++ b/include/Delay.h
@@ -32,6 +32,9 @@
#include "interpolation.h"
#include "MemoryManager.h"
+namespace lmms
+{
+
// brief usage
// Classes:
@@ -360,4 +363,7 @@ typedef CombFeedfwd<2> StereoCombFeedfwd;
typedef CombFeedbackDualtap<2> StereoCombFeedbackDualtap;
typedef AllpassDelay<2> StereoAllpassDelay;
+
+} // namespace lmms
+
#endif
diff --git a/include/DeprecationHelper.h b/include/DeprecationHelper.h
index bef4ea9b954..7786665a30f 100644
--- a/include/DeprecationHelper.h
+++ b/include/DeprecationHelper.h
@@ -30,6 +30,9 @@
#include
#include
+namespace lmms
+{
+
/**
* @brief horizontalAdvance is a backwards-compatible adapter for
* QFontMetrics::horizontalAdvance and width functions.
@@ -60,4 +63,7 @@ inline QPoint position(QWheelEvent *wheelEvent)
return wheelEvent->pos();
#endif
}
+
+} // namespace lmms
+
#endif // DEPRECATIONHELPER_H
diff --git a/include/DetuningHelper.h b/include/DetuningHelper.h
index 2157b6ba828..7444b8b22e5 100644
--- a/include/DetuningHelper.h
+++ b/include/DetuningHelper.h
@@ -29,6 +29,9 @@
#include "InlineAutomation.h"
#include "MemoryManager.h"
+namespace lmms
+{
+
class DetuningHelper : public InlineAutomation
{
Q_OBJECT
@@ -61,4 +64,6 @@ class DetuningHelper : public InlineAutomation
} ;
+} // namespace lmms
+
#endif
diff --git a/include/DrumSynth.h b/include/DrumSynth.h
index f7e9b1d4c3e..79383a6d49b 100644
--- a/include/DrumSynth.h
+++ b/include/DrumSynth.h
@@ -32,6 +32,9 @@
class QString;
+namespace lmms
+{
+
class DrumSynth {
public:
DrumSynth() {};
@@ -51,4 +54,7 @@ class DrumSynth {
};
+
+} // namespace lmms
+
#endif
diff --git a/include/DspEffectLibrary.h b/include/DspEffectLibrary.h
index bf175df6d7c..df758811611 100644
--- a/include/DspEffectLibrary.h
+++ b/include/DspEffectLibrary.h
@@ -31,7 +31,7 @@
#include "lmms_basics.h"
-namespace DspEffectLibrary
+namespace lmms::DspEffectLibrary
{
template
@@ -329,7 +329,7 @@ namespace DspEffectLibrary
} ;
-} ;
+} // namespace lmms::DspEffectLibrary
#endif
diff --git a/include/DummyEffect.h b/include/DummyEffect.h
index 6bb8c873e98..8d0f769b637 100644
--- a/include/DummyEffect.h
+++ b/include/DummyEffect.h
@@ -31,6 +31,12 @@
#include "EffectControls.h"
#include "EffectControlDialog.h"
+namespace lmms
+{
+
+namespace gui
+{
+
class Knob;
@@ -44,6 +50,7 @@ class DummyEffectControlDialog : public EffectControlDialog
} ;
+}
class DummyEffectControls : public EffectControls
{
@@ -75,9 +82,9 @@ class DummyEffectControls : public EffectControls
return "DummyControls";
}
- EffectControlDialog * createView() override
+ gui::EffectControlDialog * createView() override
{
- return new DummyEffectControlDialog( this );
+ return new gui::DummyEffectControlDialog( this );
}
} ;
@@ -144,4 +151,6 @@ class DummyEffect : public Effect
} ;
+} // namespace lmms
+
#endif
diff --git a/include/DummyInstrument.h b/include/DummyInstrument.h
index ebfcfbefe9c..27246e6eb40 100644
--- a/include/DummyInstrument.h
+++ b/include/DummyInstrument.h
@@ -35,6 +35,10 @@
#include "AudioEngine.h"
+namespace lmms
+{
+
+
class DummyInstrument : public Instrument
{
public:
@@ -66,11 +70,13 @@ class DummyInstrument : public Instrument
return "dummyinstrument";
}
- PluginView * instantiateView( QWidget * _parent ) override
+ gui::PluginView * instantiateView( QWidget * _parent ) override
{
- return new InstrumentViewFixedSize( this, _parent );
+ return new gui::InstrumentViewFixedSize( this, _parent );
}
} ;
+} // namespace lmms
+
#endif
diff --git a/include/DummyPlugin.h b/include/DummyPlugin.h
index 61a399889b1..313649526d9 100644
--- a/include/DummyPlugin.h
+++ b/include/DummyPlugin.h
@@ -30,6 +30,9 @@
#include "PluginView.h"
+namespace lmms
+{
+
class DummyPlugin : public Plugin
{
public:
@@ -57,12 +60,14 @@ class DummyPlugin : public Plugin
protected:
- PluginView * instantiateView( QWidget * _parent ) override
+ gui::PluginView * instantiateView( QWidget * _parent ) override
{
- return new PluginView( this, _parent );
+ return new gui::PluginView( this, _parent );
}
} ;
+} // namesplace lmms
+
#endif
diff --git a/include/Editor.h b/include/Editor.h
index d755608a6c9..88cd84654ab 100644
--- a/include/Editor.h
+++ b/include/Editor.h
@@ -28,14 +28,17 @@
#include
#include
+class QAction;
+
+namespace lmms::gui
+{
+
static const int Quantizations[] = {
1, 2, 4, 8, 16, 32, 64,
3, 6, 12, 24, 48, 96, 192
};
-class QAction;
-
class DropToolBar;
/// \brief Superclass for editors with a toolbar.
@@ -108,4 +111,6 @@ class DropToolBar : public QToolBar
};
+} // namespace lmms::gui
+
#endif
diff --git a/include/Effect.h b/include/Effect.h
index 6d1fea6bf2e..abd65f2070e 100644
--- a/include/Effect.h
+++ b/include/Effect.h
@@ -33,9 +33,19 @@
#include "TempoSyncKnobModel.h"
#include "MemoryManager.h"
+namespace lmms
+{
+
class EffectChain;
class EffectControls;
+namespace gui
+{
+
+class EffectView;
+
+} // namespace gui
+
class LMMS_EXPORT Effect : public Plugin
{
@@ -170,7 +180,7 @@ class LMMS_EXPORT Effect : public Plugin
*/
void checkGate( double _out_sum );
- PluginView * instantiateView( QWidget * ) override;
+ gui::PluginView* instantiateView( QWidget * ) override;
// some effects might not be capable of higher sample-rates so they can
// sample it down before processing and back after processing
@@ -221,7 +231,7 @@ class LMMS_EXPORT Effect : public Plugin
SRC_STATE * m_srcState[2];
- friend class EffectView;
+ friend class gui::EffectView;
friend class EffectChain;
} ;
@@ -231,4 +241,6 @@ typedef Effect::Descriptor::SubPluginFeatures::Key EffectKey;
typedef Effect::Descriptor::SubPluginFeatures::KeyList EffectKeyList;
+} // namespace lmms
+
#endif
diff --git a/include/EffectChain.h b/include/EffectChain.h
index 9ebc4d534b3..ca764876190 100644
--- a/include/EffectChain.h
+++ b/include/EffectChain.h
@@ -30,8 +30,18 @@
#include "SerializingObject.h"
#include "AutomatableModel.h"
+namespace lmms
+{
+
class Effect;
+namespace gui
+{
+
+class EffectRackView;
+
+} // namespace gui
+
class LMMS_EXPORT EffectChain : public Model, public SerializingObject
{
@@ -65,7 +75,7 @@ class LMMS_EXPORT EffectChain : public Model, public SerializingObject
BoolModel m_enabledModel;
- friend class EffectRackView;
+ friend class gui::EffectRackView;
signals:
@@ -73,5 +83,7 @@ class LMMS_EXPORT EffectChain : public Model, public SerializingObject
} ;
+} // namespace lmms
+
#endif
diff --git a/include/EffectControlDialog.h b/include/EffectControlDialog.h
index 4a59489da20..ec0ef3f1d77 100644
--- a/include/EffectControlDialog.h
+++ b/include/EffectControlDialog.h
@@ -30,9 +30,15 @@
#include "ModelView.h"
+namespace lmms
+{
+
class EffectControls;
+namespace gui
+{
+
class LMMS_EXPORT EffectControlDialog : public QWidget, public ModelView
{
Q_OBJECT
@@ -54,4 +60,8 @@ class LMMS_EXPORT EffectControlDialog : public QWidget, public ModelView
} ;
+} // namespace gui
+
+} // namespace lmms
+
#endif
diff --git a/include/EffectControls.h b/include/EffectControls.h
index 6af7a7d6c47..b8e7d0041ef 100644
--- a/include/EffectControls.h
+++ b/include/EffectControls.h
@@ -29,8 +29,16 @@
#include "JournallingObject.h"
#include "Effect.h"
+namespace lmms
+{
+
+
+namespace gui
+{
+
class EffectControlDialog;
+} // namespace gui
class EffectControls : public JournallingObject, public Model
{
@@ -48,7 +56,7 @@ class EffectControls : public JournallingObject, public Model
}
virtual int controlCount() = 0;
- virtual EffectControlDialog * createView() = 0;
+ virtual gui::EffectControlDialog * createView() = 0;
void setViewVisible( bool _visible )
@@ -73,4 +81,7 @@ class EffectControls : public JournallingObject, public Model
} ;
+
+} // namespace lmms
+
#endif
diff --git a/include/EffectRackView.h b/include/EffectRackView.h
index b590d8eb13d..014a07dfe2f 100644
--- a/include/EffectRackView.h
+++ b/include/EffectRackView.h
@@ -35,6 +35,9 @@
class QScrollArea;
class QVBoxLayout;
+namespace lmms::gui
+{
+
class EffectView;
class GroupBox;
@@ -50,9 +53,9 @@ class EffectRackView : public QWidget, public ModelView
public slots:
void clearViews();
- void moveUp( EffectView* view );
- void moveDown( EffectView* view );
- void deletePlugin( EffectView* view );
+ void moveUp( lmms::gui::EffectView* view );
+ void moveDown( lmms::gui::EffectView* view );
+ void deletePlugin( lmms::gui::EffectView* view );
private slots:
@@ -83,4 +86,6 @@ private slots:
} ;
+} // namespace lmms::gui
+
#endif
diff --git a/include/EffectSelectDialog.h b/include/EffectSelectDialog.h
index 19e0ca05fe8..bf1b6ba04a7 100644
--- a/include/EffectSelectDialog.h
+++ b/include/EffectSelectDialog.h
@@ -34,6 +34,9 @@
namespace Ui { class EffectSelectDialog; }
+namespace lmms::gui
+{
+
class EffectSelectDialog : public QDialog
{
@@ -65,5 +68,7 @@ protected slots:
} ;
+} // namespace lmms::gui
+
#endif
diff --git a/include/EffectView.h b/include/EffectView.h
index a2509dc5b1f..9f30575e9a8 100644
--- a/include/EffectView.h
+++ b/include/EffectView.h
@@ -35,6 +35,9 @@ class QLabel;
class QPushButton;
class QMdiSubWindow;
+namespace lmms::gui
+{
+
class EffectControlDialog;
class Knob;
class LedCheckBox;
@@ -68,9 +71,9 @@ public slots:
signals:
- void moveUp( EffectView * _plugin );
- void moveDown( EffectView * _plugin );
- void deletePlugin( EffectView * _plugin );
+ void moveUp( lmms::gui::EffectView * _plugin );
+ void moveDown( lmms::gui::EffectView * _plugin );
+ void deletePlugin( lmms::gui::EffectView * _plugin );
protected:
@@ -90,4 +93,7 @@ public slots:
} ;
+
+} // namespace lmms::gui
+
#endif
diff --git a/include/Engine.h b/include/Engine.h
index 531e2422037..b63308cde35 100644
--- a/include/Engine.h
+++ b/include/Engine.h
@@ -34,6 +34,9 @@
#include "lmms_export.h"
#include "lmms_basics.h"
+namespace lmms
+{
+
class AudioEngine;
class Mixer;
class PatternStore;
@@ -41,20 +44,13 @@ class ProjectJournal;
class Song;
class Ladspa2LMMS;
+namespace gui
+{
+class GuiApplication;
+}
-// Note: This class is called 'LmmsCore' instead of 'Engine' because of naming
-// conflicts caused by ZynAddSubFX. See https://github.com/LMMS/lmms/issues/2269
-// and https://github.com/LMMS/lmms/pull/2118 for more details.
-//
-// The workaround was to rename Lmms' Engine so that it has a different symbol
-// name in the object files, but typedef it back to 'Engine' and keep it inside
-// of Engine.h so that the rest of the codebase can be oblivious to this issue
-// (and it could be fixed without changing every single file).
-
-class LmmsCore;
-typedef LmmsCore Engine;
-class LMMS_EXPORT LmmsCore : public QObject
+class LMMS_EXPORT Engine : public QObject
{
Q_OBJECT
public:
@@ -110,11 +106,11 @@ class LMMS_EXPORT LmmsCore : public QObject
static void updateFramesPerTick();
- static inline LmmsCore * inst()
+ static inline Engine * inst()
{
if( s_instanceOfMe == nullptr )
{
- s_instanceOfMe = new LmmsCore();
+ s_instanceOfMe = new Engine();
}
return s_instanceOfMe;
}
@@ -130,9 +126,9 @@ class LMMS_EXPORT LmmsCore : public QObject
// small helper function which sets the pointer to NULL before actually deleting
// the object it refers to
template
- static inline void deleteHelper( T * * ptr )
+ static inline void deleteHelper(T** ptr)
{
- T * tmp = *ptr;
+ T* tmp = *ptr;
*ptr = nullptr;
delete tmp;
}
@@ -149,15 +145,17 @@ class LMMS_EXPORT LmmsCore : public QObject
#ifdef LMMS_HAVE_LV2
static class Lv2Manager* s_lv2Manager;
#endif
- static Ladspa2LMMS * s_ladspaManager;
+ static Ladspa2LMMS* s_ladspaManager;
static void* s_dndPluginKey;
// even though most methods are static, an instance is needed for Qt slots/signals
- static LmmsCore * s_instanceOfMe;
+ static Engine* s_instanceOfMe;
- friend class GuiApplication;
+ friend class gui::GuiApplication;
};
+} // namespace lmms
+
#endif
diff --git a/include/EnvelopeAndLfoParameters.h b/include/EnvelopeAndLfoParameters.h
index 42502800e25..0a4a0d0f249 100644
--- a/include/EnvelopeAndLfoParameters.h
+++ b/include/EnvelopeAndLfoParameters.h
@@ -33,6 +33,15 @@
#include "TempoSyncKnobModel.h"
#include "lmms_basics.h"
+namespace lmms
+{
+
+namespace gui
+{
+
+class EnvelopeAndLfoView;
+
+}
class LMMS_EXPORT EnvelopeAndLfoParameters : public Model, public JournallingObject
{
@@ -179,8 +188,10 @@ public slots:
void updateLfoShapeData();
- friend class EnvelopeAndLfoView;
+ friend class gui::EnvelopeAndLfoView;
} ;
+} // namespace lmms
+
#endif
diff --git a/include/EnvelopeAndLfoView.h b/include/EnvelopeAndLfoView.h
index f6d4fd0a8e7..2067f929185 100644
--- a/include/EnvelopeAndLfoView.h
+++ b/include/EnvelopeAndLfoView.h
@@ -33,8 +33,14 @@
class QPaintEvent;
class QPixmap;
+namespace lmms
+{
+
class EnvelopeAndLfoParameters;
+namespace gui
+{
+
class automatableButtonGroup;
class Knob;
class LedCheckBox;
@@ -94,4 +100,8 @@ protected slots:
float m_randomGraph;
} ;
+} // namespace gui
+
+} // namespace lmms
+
#endif
diff --git a/include/ExportFilter.h b/include/ExportFilter.h
index e60faef3af8..29cb1c7115b 100644
--- a/include/ExportFilter.h
+++ b/include/ExportFilter.h
@@ -32,6 +32,10 @@
#include "Plugin.h"
+namespace lmms
+{
+
+
class LMMS_EXPORT ExportFilter : public Plugin
{
public:
@@ -63,4 +67,6 @@ class LMMS_EXPORT ExportFilter : public Plugin
} ;
+} // namespace lmms
+
#endif
diff --git a/include/ExportProjectDialog.h b/include/ExportProjectDialog.h
index 06c1e3011d1..5e4418a2853 100644
--- a/include/ExportProjectDialog.h
+++ b/include/ExportProjectDialog.h
@@ -34,6 +34,10 @@
#include "ProjectRenderer.h"
#include "RenderManager.h"
+namespace lmms::gui
+{
+
+
class ExportProjectDialog : public QDialog, public Ui::ExportProjectDialog
{
Q_OBJECT
@@ -63,4 +67,8 @@ private slots:
std::unique_ptr m_renderManager;
} ;
+
+} // namespace lmms::gui
+
+
#endif
diff --git a/include/FadeButton.h b/include/FadeButton.h
index dfffe93a284..ee0936ca726 100644
--- a/include/FadeButton.h
+++ b/include/FadeButton.h
@@ -31,6 +31,10 @@
#include
+namespace lmms::gui
+{
+
+
class FadeButton : public QAbstractButton
{
Q_OBJECT
@@ -71,4 +75,6 @@ public slots:
} ;
+} // namespace lmms::gui
+
#endif
diff --git a/include/Fader.h b/include/Fader.h
index 86d7f0b965b..355684c4ae8 100644
--- a/include/Fader.h
+++ b/include/Fader.h
@@ -55,6 +55,9 @@
#include "AutomatableModelView.h"
+namespace lmms::gui
+{
+
class TextFloat;
@@ -169,4 +172,7 @@ class LMMS_EXPORT Fader : public QWidget, public FloatModelView
} ;
+} // namespace lmms::gui
+
+
#endif
diff --git a/include/FifoBuffer.h b/include/FifoBuffer.h
index 5bbf8b7022b..d49e367c04c 100644
--- a/include/FifoBuffer.h
+++ b/include/FifoBuffer.h
@@ -28,6 +28,10 @@
#include
+namespace lmms
+{
+
+
template
class FifoBuffer
{
@@ -88,4 +92,6 @@ class FifoBuffer
} ;
+} // namespace lmms
+
#endif
diff --git a/include/FileBrowser.h b/include/FileBrowser.h
index d99c619e97a..eb50dd1bb39 100644
--- a/include/FileBrowser.h
+++ b/include/FileBrowser.h
@@ -37,13 +37,18 @@
class QLineEdit;
-class FileItem;
+namespace lmms
+{
+
class InstrumentTrack;
-class FileBrowserTreeWidget;
class PlayHandle;
class TrackContainer;
+namespace gui
+{
+class FileItem;
+class FileBrowserTreeWidget;
class FileBrowser : public SideBarWidget
{
@@ -142,11 +147,11 @@ class FileBrowserTreeWidget : public QTreeWidget
private slots:
void activateListItem( QTreeWidgetItem * item, int column );
- void openInNewInstrumentTrack( FileItem* item, bool songEditor );
- bool openInNewSampleTrack( FileItem* item );
- void sendToActiveInstrumentTrack( FileItem* item );
+ void openInNewInstrumentTrack( lmms::gui::FileItem* item, bool songEditor );
+ bool openInNewSampleTrack( lmms::gui::FileItem* item );
+ void sendToActiveInstrumentTrack( lmms::gui::FileItem* item );
void updateDirectory( QTreeWidgetItem * item );
- void openContainingFolder( FileItem* item );
+ void openContainingFolder( lmms::gui::FileItem* item );
} ;
@@ -281,4 +286,8 @@ class FileItem : public QTreeWidgetItem
} ;
+} // namespace gui
+
+} // namespace lmms
+
#endif
diff --git a/include/FileDialog.h b/include/FileDialog.h
index 6e29703b8a1..ed5d2f231bb 100644
--- a/include/FileDialog.h
+++ b/include/FileDialog.h
@@ -30,6 +30,10 @@
#include "lmms_export.h"
+namespace lmms::gui
+{
+
+
class LMMS_EXPORT FileDialog : public QFileDialog
{
Q_OBJECT
@@ -50,4 +54,7 @@ class LMMS_EXPORT FileDialog : public QFileDialog
void clearSelection();
};
-#endif // FILEDIALOG_HPP
+
+} // namespace lmms::gui
+
+#endif // FILEDIALOG_H
diff --git a/include/Graph.h b/include/Graph.h
index 2a6fc4f8a15..7a9599f12cd 100644
--- a/include/Graph.h
+++ b/include/Graph.h
@@ -35,8 +35,15 @@
#include "ModelView.h"
#include "lmms_basics.h"
+namespace lmms
+{
+
+
class graphModel;
+namespace gui
+{
+
class LMMS_EXPORT Graph : public QWidget, public ModelView
{
@@ -116,6 +123,9 @@ protected slots:
} ;
+} // namespace gui
+
+
/**
@brief 2 dimensional function plot
@@ -137,7 +147,7 @@ class LMMS_EXPORT graphModel : public Model
graphModel( float _min,
float _max,
int _size,
- :: Model * _parent,
+ Model * _parent,
bool _default_constructed = false,
float _step = 0.0 );
@@ -211,8 +221,11 @@ public slots:
float m_maxValue;
float m_step;
- friend class Graph;
+ friend class gui::Graph;
};
+
+} // namespace lmms
+
#endif
diff --git a/include/GroupBox.h b/include/GroupBox.h
index 77b0ec578e1..6a282fedbfe 100644
--- a/include/GroupBox.h
+++ b/include/GroupBox.h
@@ -34,6 +34,8 @@
class QPixmap;
+namespace lmms::gui
+{
class GroupBox : public QWidget, public BoolModelView
{
@@ -70,6 +72,7 @@ class GroupBox : public QWidget, public BoolModelView
} ;
+} // namespace lmms::gui
#endif
diff --git a/include/GuiApplication.h b/include/GuiApplication.h
index ee5e83e2b99..84697175fcf 100644
--- a/include/GuiApplication.h
+++ b/include/GuiApplication.h
@@ -32,6 +32,9 @@
class QLabel;
+namespace lmms::gui
+{
+
class AutomationEditorWindow;
class ControllerRackView;
class MixerView;
@@ -88,4 +91,6 @@ private slots:
// Short-hand function
LMMS_EXPORT GuiApplication* getGUI();
+} // namespace lmms::gui
+
#endif // GUIAPPLICATION_H
diff --git a/include/ImportFilter.h b/include/ImportFilter.h
index ef58cce248d..60eca6f80b0 100644
--- a/include/ImportFilter.h
+++ b/include/ImportFilter.h
@@ -30,6 +30,9 @@
#include "Plugin.h"
+namespace lmms
+{
+
class TrackContainer;
@@ -109,4 +112,6 @@ class LMMS_EXPORT ImportFilter : public Plugin
} ;
+} // namespace lmms
+
#endif
diff --git a/include/InlineAutomation.h b/include/InlineAutomation.h
index 1ce486fded9..4531843293e 100644
--- a/include/InlineAutomation.h
+++ b/include/InlineAutomation.h
@@ -29,6 +29,8 @@
#include "AutomationClip.h"
#include "shared_object.h"
+namespace lmms
+{
class InlineAutomation : public FloatModel, public sharedObject
{
@@ -95,4 +97,6 @@ class InlineAutomation : public FloatModel, public sharedObject
} ;
+} // namespace lmms
+
#endif
diff --git a/include/Instrument.h b/include/Instrument.h
index c3cd56272c1..7ec3c66be6c 100644
--- a/include/Instrument.h
+++ b/include/Instrument.h
@@ -33,6 +33,8 @@
#include "Plugin.h"
#include "TimePos.h"
+namespace lmms
+{
// forward-declarations
class InstrumentTrack;
@@ -146,6 +148,10 @@ class LMMS_EXPORT Instrument : public Plugin
} ;
+
Q_DECLARE_OPERATORS_FOR_FLAGS(Instrument::Flags)
+
+} // namespace lmms
+
#endif
diff --git a/include/InstrumentFunctionViews.h b/include/InstrumentFunctionViews.h
index 6536a8db7df..bf4b07668ef 100644
--- a/include/InstrumentFunctionViews.h
+++ b/include/InstrumentFunctionViews.h
@@ -30,15 +30,20 @@
#include
class QLabel;
-class ComboBox;
-class GroupBox;
-class Knob;
-class TempoSyncKnob;
+
+namespace lmms
+{
class InstrumentFunctionArpeggio;
class InstrumentFunctionNoteStacking;
+namespace gui
+{
+class ComboBox;
+class GroupBox;
+class Knob;
+class TempoSyncKnob;
class InstrumentFunctionNoteStackingView : public QWidget, public ModelView
{
@@ -90,5 +95,8 @@ class InstrumentFunctionArpeggioView : public QWidget, public ModelView
} ;
+} // namespace gui
+
+} // namespace lmms
#endif
diff --git a/include/InstrumentFunctions.h b/include/InstrumentFunctions.h
index e1591ea2703..ef1d17902b2 100644
--- a/include/InstrumentFunctions.h
+++ b/include/InstrumentFunctions.h
@@ -31,10 +31,19 @@
#include "TempoSyncKnobModel.h"
#include "ComboBoxModel.h"
+namespace lmms
+{
class InstrumentTrack;
class NotePlayHandle;
+namespace gui
+{
+
+class InstrumentFunctionNoteStackingView;
+class InstrumentFunctionArpeggioView;
+
+}
class InstrumentFunctionNoteStacking : public Model, public JournallingObject
@@ -149,7 +158,7 @@ class InstrumentFunctionNoteStacking : public Model, public JournallingObject
FloatModel m_chordRangeModel;
- friend class InstrumentFunctionNoteStackingView;
+ friend class gui::InstrumentFunctionNoteStackingView;
} ;
@@ -207,9 +216,11 @@ class InstrumentFunctionArpeggio : public Model, public JournallingObject
friend class InstrumentTrack;
- friend class InstrumentFunctionArpeggioView;
+ friend class gui::InstrumentFunctionArpeggioView;
} ;
+} // namespace lmms
+
#endif
diff --git a/include/InstrumentMidiIOView.h b/include/InstrumentMidiIOView.h
index 9b1e5adfdb2..399aee890b1 100644
--- a/include/InstrumentMidiIOView.h
+++ b/include/InstrumentMidiIOView.h
@@ -30,12 +30,19 @@
#include "ModelView.h"
+class QToolButton;
+
+namespace lmms
+{
+
+class InstrumentTrack;
+
+namespace gui
+{
class GroupBox;
class LcdSpinBox;
-class QToolButton;
class LedCheckBox;
-class InstrumentTrack;
class InstrumentMidiIOView : public QWidget, public ModelView
@@ -65,4 +72,9 @@ class InstrumentMidiIOView : public QWidget, public ModelView
} ;
+
+} // namespace gui
+
+} // namespace lmms
+
#endif
diff --git a/include/InstrumentMiscView.h b/include/InstrumentMiscView.h
index 6024436e8b5..25e16395d96 100644
--- a/include/InstrumentMiscView.h
+++ b/include/InstrumentMiscView.h
@@ -29,10 +29,16 @@
#include
+namespace lmms
+{
+
+class InstrumentTrack;
+
+namespace gui
+{
class ComboBox;
class GroupBox;
-class InstrumentTrack;
class LedCheckBox;
@@ -60,4 +66,9 @@ class InstrumentMiscView : public QWidget
LedCheckBox *m_rangeImportCheckbox;
};
+
+} // namespace gui
+
+} // namespace lmms
+
#endif
diff --git a/include/InstrumentPlayHandle.h b/include/InstrumentPlayHandle.h
index ac5fc322240..2d7bfa58732 100644
--- a/include/InstrumentPlayHandle.h
+++ b/include/InstrumentPlayHandle.h
@@ -30,6 +30,9 @@
#include "NotePlayHandle.h"
#include "lmms_export.h"
+namespace lmms
+{
+
class LMMS_EXPORT InstrumentPlayHandle : public PlayHandle
{
public:
@@ -81,4 +84,7 @@ class LMMS_EXPORT InstrumentPlayHandle : public PlayHandle
} ;
+
+} // namespace lmms
+
#endif
diff --git a/include/InstrumentSoundShaping.h b/include/InstrumentSoundShaping.h
index b037f615a77..00208392d09 100644
--- a/include/InstrumentSoundShaping.h
+++ b/include/InstrumentSoundShaping.h
@@ -27,11 +27,19 @@
#include "ComboBoxModel.h"
+namespace lmms
+{
+
class InstrumentTrack;
class EnvelopeAndLfoParameters;
class NotePlayHandle;
+namespace gui
+{
+class InstrumentSoundShapingView;
+}
+
class InstrumentSoundShaping : public Model, public JournallingObject
{
@@ -77,9 +85,11 @@ class InstrumentSoundShaping : public Model, public JournallingObject
static const char *const targetNames[InstrumentSoundShaping::NumTargets][3];
- friend class InstrumentSoundShapingView;
+ friend class gui::InstrumentSoundShapingView;
} ;
+} // namespace lmms
+
#endif
diff --git a/include/InstrumentSoundShapingView.h b/include/InstrumentSoundShapingView.h
index 06d53232ce3..9b4efcfab04 100644
--- a/include/InstrumentSoundShapingView.h
+++ b/include/InstrumentSoundShapingView.h
@@ -32,6 +32,9 @@
class QLabel;
+namespace lmms::gui
+{
+
class EnvelopeAndLfoView;
class ComboBox;
class GroupBox;
@@ -67,4 +70,7 @@ class InstrumentSoundShapingView : public QWidget, public ModelView
} ;
+
+} // namespace lmms::gui
+
#endif
diff --git a/include/InstrumentTrack.h b/include/InstrumentTrack.h
index 95288482902..d05da176bd8 100644
--- a/include/InstrumentTrack.h
+++ b/include/InstrumentTrack.h
@@ -39,9 +39,23 @@
#include "Track.h"
+namespace lmms
+{
+
+
class Instrument;
class DataFile;
+namespace gui
+{
+
+class InstrumentTrackView;
+class InstrumentTrackWindow;
+class InstrumentMiscView;
+class MidiCCRackView;
+
+} // namespace gui
+
class LMMS_EXPORT InstrumentTrack : public Track, public MidiEventProcessor
{
@@ -111,7 +125,7 @@ class LMMS_EXPORT InstrumentTrack : public Track, public MidiEventProcessor
virtual bool play( const TimePos & _start, const fpp_t _frames,
const f_cnt_t _frame_base, int _clip_num = -1 ) override;
// create new view for me
- TrackView * createView( TrackContainerView* tcv ) override;
+ gui::TrackView* createView( gui::TrackContainerView* tcv ) override;
// create new track-content-object = clip
Clip* createClip(const TimePos & pos) override;
@@ -223,8 +237,8 @@ class LMMS_EXPORT InstrumentTrack : public Track, public MidiEventProcessor
signals:
void instrumentChanged();
- void midiNoteOn( const Note& );
- void midiNoteOff( const Note& );
+ void midiNoteOn( const lmms::Note& );
+ void midiNoteOff( const lmms::Note& );
void nameChanged();
void newNote();
void endNote();
@@ -294,12 +308,16 @@ protected slots:
std::unique_ptr m_midiCCEnable;
std::unique_ptr m_midiCCModel[MidiControllerCount];
- friend class InstrumentTrackView;
- friend class InstrumentTrackWindow;
+ friend class gui::InstrumentTrackView;
+ friend class gui::InstrumentTrackWindow;
friend class NotePlayHandle;
- friend class InstrumentMiscView;
- friend class MidiCCRackView;
+ friend class gui::InstrumentMiscView;
+ friend class gui::MidiCCRackView;
} ;
+
+
+} // namespace lmms
+
#endif
diff --git a/include/InstrumentTrackView.h b/include/InstrumentTrackView.h
index d863d6c1926..a5297b332f4 100644
--- a/include/InstrumentTrackView.h
+++ b/include/InstrumentTrackView.h
@@ -30,6 +30,10 @@
#include "InstrumentTrack.h"
+namespace lmms::gui
+{
+
+
class InstrumentTrackWindow;
class Knob;
class MidiCCRackView;
@@ -114,5 +118,7 @@ private slots:
friend class InstrumentTrackWindow;
} ;
-#endif
+} // namespace lmms::gui
+
+#endif
diff --git a/include/InstrumentTrackWindow.h b/include/InstrumentTrackWindow.h
index a215e08f95f..cd208c165e4 100644
--- a/include/InstrumentTrackWindow.h
+++ b/include/InstrumentTrackWindow.h
@@ -30,6 +30,17 @@
#include "ModelView.h"
#include "SerializingObject.h"
+class QLabel;
+class QLineEdit;
+class QWidget;
+
+namespace lmms
+{
+
+class InstrumentTrack;
+
+namespace gui
+{
class EffectRackView;
class MixerLineLcdSpinBox;
@@ -38,7 +49,6 @@ class InstrumentFunctionNoteStackingView;
class InstrumentMidiIOView;
class InstrumentMiscView;
class InstrumentSoundShapingView;
-class InstrumentTrack;
class InstrumentTrackShapingView;
class InstrumentTrackView;
class Knob;
@@ -46,9 +56,6 @@ class LcdSpinBox;
class LeftRightNav;
class PianoView;
class PluginView;
-class QLabel;
-class QLineEdit;
-class QWidget;
class TabWidget;
@@ -157,5 +164,9 @@ protected slots:
friend class InstrumentTrackView;
} ;
-#endif
+} // namespace gui
+
+} // namespace lmms
+
+#endif
diff --git a/include/InstrumentView.h b/include/InstrumentView.h
index 838ed2d9121..695e8c47770 100644
--- a/include/InstrumentView.h
+++ b/include/InstrumentView.h
@@ -29,6 +29,10 @@
#include "Instrument.h"
#include "PluginView.h"
+
+namespace lmms::gui
+{
+
class InstrumentTrackWindow;
@@ -70,4 +74,6 @@ class LMMS_EXPORT InstrumentViewFixedSize : public InstrumentView
} ;
+} // namespace lmms::gui
+
#endif
diff --git a/include/IoHelper.h b/include/IoHelper.h
index 35ee8cb8721..4f08f5087dc 100644
--- a/include/IoHelper.h
+++ b/include/IoHelper.h
@@ -27,9 +27,23 @@
#include
-
#ifdef _WIN32
#include
+#endif
+
+#ifdef LMMS_BUILD_WIN32
+#include
+#else
+#ifdef LMMS_HAVE_UNISTD_H
+#include
+#endif
+#endif
+
+namespace lmms
+{
+
+
+#ifdef _WIN32
std::wstring toWString(const std::string& s)
{
@@ -44,16 +58,10 @@ std::wstring toWString(const std::string& s)
MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, s.data(), s.length(), &ret[0], len);
return ret;
}
-#endif
-#ifdef LMMS_BUILD_WIN32
-#include
-#else
-#ifdef LMMS_HAVE_UNISTD_H
-#include
-#endif
#endif
+
FILE* F_OPEN_UTF8(std::string const& fname, const char* mode){
#ifdef LMMS_BUILD_WIN32
return _wfopen(toWString(fname).data(), toWString(mode).data());
@@ -62,6 +70,7 @@ FILE* F_OPEN_UTF8(std::string const& fname, const char* mode){
#endif
}
+
int fileToDescriptor(FILE* f, bool closeFile = true)
{
int fh;
@@ -76,3 +85,6 @@ int fileToDescriptor(FILE* f, bool closeFile = true)
if (closeFile) {fclose(f);}
return fh;
}
+
+
+} // namespace lmms
\ No newline at end of file
diff --git a/include/JournallingObject.h b/include/JournallingObject.h
index 9e03225911a..cd853dc7f93 100644
--- a/include/JournallingObject.h
+++ b/include/JournallingObject.h
@@ -30,6 +30,8 @@
#include "lmms_basics.h"
#include "SerializingObject.h"
+namespace lmms
+{
class LMMS_EXPORT JournallingObject : public SerializingObject
{
@@ -99,5 +101,7 @@ class LMMS_EXPORT JournallingObject : public SerializingObject
} ;
+} // namespace lmms
+
#endif
diff --git a/include/Keymap.h b/include/Keymap.h
index 08a27c47380..6286f8362d1 100644
--- a/include/Keymap.h
+++ b/include/Keymap.h
@@ -31,6 +31,9 @@
#include "SerializingObject.h"
+namespace lmms
+{
+
class Keymap : public QObject, public SerializingObject
{
Q_OBJECT
@@ -75,4 +78,6 @@ class Keymap : public QObject, public SerializingObject
float m_baseFreq; //!< frequency of the base note (usually A4 @440 Hz)
};
+} // namespace lmms
+
#endif
diff --git a/include/Knob.h b/include/Knob.h
index f27328aa952..16ac7ed011a 100644
--- a/include/Knob.h
+++ b/include/Knob.h
@@ -36,6 +36,11 @@
class QPixmap;
+
+namespace lmms::gui
+{
+
+
class TextFloat;
enum knobTypes
@@ -206,4 +211,7 @@ private slots:
} ;
+
+} // namespace lmms::gui
+
#endif
diff --git a/include/Ladspa2LMMS.h b/include/Ladspa2LMMS.h
index 28fa25b894c..63db75cd94a 100644
--- a/include/Ladspa2LMMS.h
+++ b/include/Ladspa2LMMS.h
@@ -30,6 +30,9 @@
#include "LadspaManager.h"
+namespace lmms
+{
+
//! Class responsible for sorting found plugins (by LadspaManager)
//! into categories
class LMMS_EXPORT Ladspa2LMMS : public LadspaManager
@@ -73,8 +76,11 @@ class LMMS_EXPORT Ladspa2LMMS : public LadspaManager
l_sortable_plugin_t m_analysisTools;
l_sortable_plugin_t m_otherPlugins;
- friend class LmmsCore;
+ friend class Engine;
} ;
+
+} // namespace lmms
+
#endif
diff --git a/include/LadspaBase.h b/include/LadspaBase.h
index be4576f5503..68e91dd7a76 100644
--- a/include/LadspaBase.h
+++ b/include/LadspaBase.h
@@ -29,6 +29,10 @@
#include "LadspaManager.h"
#include "Plugin.h"
+namespace lmms
+{
+
+
class LadspaControl;
@@ -88,4 +92,6 @@ inline Plugin::Descriptor::SubPluginFeatures::Key ladspaKeyToSubPluginKey(
}
+} // namespace lmms
+
#endif
diff --git a/include/LadspaControl.h b/include/LadspaControl.h
index 34f6c9ae218..8b6fe3d1999 100644
--- a/include/LadspaControl.h
+++ b/include/LadspaControl.h
@@ -32,9 +32,19 @@
#include "TempoSyncKnobModel.h"
#include "ValueBuffer.h"
+namespace lmms
+{
+
typedef struct PortDescription port_desc_t;
+namespace gui
+{
+
+class LadspaControlView;
+
+} // namespace gui
+
class LMMS_EXPORT LadspaControl : public Model, public JournallingObject
{
@@ -115,8 +125,11 @@ protected slots:
TempoSyncKnobModel m_tempoSyncKnobModel;
- friend class LadspaControlView;
+ friend class gui::LadspaControlView;
} ;
+
+} // namespace lmms
+
#endif
diff --git a/include/LadspaControlView.h b/include/LadspaControlView.h
index d2d0ca44d85..15eb722a7a3 100644
--- a/include/LadspaControlView.h
+++ b/include/LadspaControlView.h
@@ -30,8 +30,13 @@
#include "ModelView.h"
+namespace lmms
+{
+
class LadspaControl;
+namespace gui
+{
class LMMS_EXPORT LadspaControlView : public QWidget, public ModelView
{
@@ -45,4 +50,9 @@ class LMMS_EXPORT LadspaControlView : public QWidget, public ModelView
} ;
+
+} // namespace gui
+
+} // namespace lmms
+
#endif
diff --git a/include/LadspaManager.h b/include/LadspaManager.h
index a87511161b5..565a7c89803 100644
--- a/include/LadspaManager.h
+++ b/include/LadspaManager.h
@@ -40,6 +40,9 @@
#include "lmms_basics.h"
+namespace lmms
+{
+
const float NOHINT = -99342.2243f;
typedef QPair ladspa_key_t;
@@ -346,4 +349,7 @@ class LMMS_EXPORT LadspaManager
} ;
+
+} // namespace lmms
+
#endif
diff --git a/include/LcdFloatSpinBox.h b/include/LcdFloatSpinBox.h
index 034168fbb9e..ab0de304e0f 100644
--- a/include/LcdFloatSpinBox.h
+++ b/include/LcdFloatSpinBox.h
@@ -32,6 +32,9 @@
#include "LcdWidget.h"
#include "AutomatableModelView.h"
+namespace lmms::gui
+{
+
class LMMS_EXPORT LcdFloatSpinBox : public QWidget, public FloatModelView
{
@@ -80,4 +83,6 @@ public slots:
using LcdFloatSpinBoxModel = FloatModel;
+} // namespace lmms::gui
+
#endif
diff --git a/include/LcdSpinBox.h b/include/LcdSpinBox.h
index 91ac8b4a78c..1c30bfcf631 100644
--- a/include/LcdSpinBox.h
+++ b/include/LcdSpinBox.h
@@ -29,6 +29,8 @@
#include "LcdWidget.h"
#include "AutomatableModelView.h"
+namespace lmms::gui
+{
class LMMS_EXPORT LcdSpinBox : public LcdWidget, public IntModelView
{
@@ -86,4 +88,6 @@ public slots:
typedef IntModel LcdSpinBoxModel;
+} // namespace lmms::gui
+
#endif
diff --git a/include/LcdWidget.h b/include/LcdWidget.h
index a04e7ae9148..aad1d189a85 100644
--- a/include/LcdWidget.h
+++ b/include/LcdWidget.h
@@ -31,6 +31,9 @@
#include "lmms_export.h"
+namespace lmms::gui
+{
+
class LMMS_EXPORT LcdWidget : public QWidget
{
Q_OBJECT
@@ -112,4 +115,6 @@ public slots:
};
+} // namespace lmms::gui
+
#endif
diff --git a/include/LedCheckBox.h b/include/LedCheckBox.h
index f5477704f1b..8eac9b56242 100644
--- a/include/LedCheckBox.h
+++ b/include/LedCheckBox.h
@@ -32,6 +32,9 @@
class QPixmap;
+namespace lmms::gui
+{
+
class LMMS_EXPORT LedCheckBox : public AutomatableButton
{
Q_OBJECT
@@ -78,4 +81,7 @@ class LMMS_EXPORT LedCheckBox : public AutomatableButton
} ;
+
+} // namespace lmms::gui
+
#endif
diff --git a/include/LeftRightNav.h b/include/LeftRightNav.h
index 4f3f4ecbb65..df72193dcd5 100644
--- a/include/LeftRightNav.h
+++ b/include/LeftRightNav.h
@@ -28,6 +28,9 @@
#include "PixmapButton.h"
+namespace lmms::gui
+{
+
class LeftRightNav : public QWidget
{
Q_OBJECT
@@ -45,4 +48,7 @@ class LeftRightNav : public QWidget
PixmapButton m_rightBtn;
};
+
+} // namespace lmms::gui
+
#endif
\ No newline at end of file
diff --git a/include/LfoController.h b/include/LfoController.h
index 8fc35fd0903..6ee136a1469 100644
--- a/include/LfoController.h
+++ b/include/LfoController.h
@@ -34,11 +34,21 @@
#include "TempoSyncKnobModel.h"
#include "Oscillator.h"
+namespace lmms
+{
+
+namespace gui
+{
+
class automatableButtonGroup;
-class Knob;
class LedCheckBox;
-class TempoSyncKnob;
class PixmapButton;
+class Knob;
+class TempoSyncKnob;
+
+class LfoControllerDialog;
+
+}
class LfoController : public Controller
@@ -55,7 +65,7 @@ class LfoController : public Controller
public slots:
- ControllerDialog * createDialog( QWidget * _parent ) override;
+ gui::ControllerDialog * createDialog( QWidget * _parent ) override;
protected:
@@ -83,11 +93,12 @@ protected slots:
void updateSampleFunction();
void updateDuration();
- friend class LfoControllerDialog;
+ friend class gui::LfoControllerDialog;
} ;
-
+namespace gui
+{
class LfoControllerDialog : public ControllerDialog
{
@@ -120,4 +131,9 @@ private slots:
} ;
+
+} // namespace gui
+
+} // namespace lmms
+
#endif
diff --git a/include/LinkedModelGroupViews.h b/include/LinkedModelGroupViews.h
index a70480d5c0f..50ef03596f3 100644
--- a/include/LinkedModelGroupViews.h
+++ b/include/LinkedModelGroupViews.h
@@ -31,6 +31,19 @@
#include
+namespace lmms
+{
+
+
+class LinkedModelGroup;
+class LinkedModelGroups;
+
+
+namespace gui
+{
+
+class Control;
+
/**
@file LinkedModelGroupViews.h
See Lv2ViewBase.h for example usage
@@ -55,17 +68,17 @@ class LinkedModelGroupView : public QWidget
@param colNum numbers of columns for the controls
(link LEDs not counted)
*/
- LinkedModelGroupView(QWidget *parent, class LinkedModelGroup* model,
+ LinkedModelGroupView(QWidget* parent, LinkedModelGroup* model,
std::size_t colNum);
~LinkedModelGroupView();
//! Reconnect models if model changed
- void modelChanged(class LinkedModelGroup *linkedModelGroup);
+ void modelChanged(LinkedModelGroup* linkedModelGroup);
protected:
//! Add a control to this widget
//! @warning This widget will own this control, do not free it
- void addControl(class Control *ctrl, const std::string &id,
+ void addControl(Control* ctrl, const std::string &id,
const std::string& display, bool removable);
void removeControl(const QString &key);
@@ -94,7 +107,7 @@ class LinkedModelGroupsView
~LinkedModelGroupsView() = default;
//! Reconnect models if model changed; to be called by child virtuals
- void modelChanged(class LinkedModelGroups* ctrlBase);
+ void modelChanged(LinkedModelGroups* ctrlBase);
private:
//! The base class must return the addressed group view,
@@ -103,4 +116,8 @@ class LinkedModelGroupsView
};
+} // namespace gui
+
+} // namespace lmms
+
#endif // LINKEDMODELGROUPVIEWS_H
diff --git a/include/LinkedModelGroups.h b/include/LinkedModelGroups.h
index 770518076d4..9fa0fefa6de 100644
--- a/include/LinkedModelGroups.h
+++ b/include/LinkedModelGroups.h
@@ -31,6 +31,12 @@
#include "Model.h"
+class QDomDocument;
+class QDomElement;
+
+namespace lmms
+{
+
/**
@file LinkedModelGroups.h
See Lv2ControlBase.h and Lv2Proc.h for example usage
@@ -107,8 +113,8 @@ class LinkedModelGroup : public Model
// (who would kno if the client is Qt, i.e. it may not have slots at all)
// In this case you'd e.g. send the UI something like
// "/added "
- void modelAdded(AutomatableModel* added);
- void modelRemoved(AutomatableModel* removed);
+ void modelAdded(lmms::AutomatableModel* added);
+ void modelRemoved(lmms::AutomatableModel* removed);
public:
AutomatableModel* getModel(const std::string& s)
@@ -170,4 +176,6 @@ class LinkedModelGroups
};
+} // namespace lmms
+
#endif // LINKEDMODELGROUPS_H
diff --git a/include/LmmsPalette.h b/include/LmmsPalette.h
index a8ee5d1c8ab..87ea186879a 100644
--- a/include/LmmsPalette.h
+++ b/include/LmmsPalette.h
@@ -30,6 +30,10 @@
#define LMMSPALETTE_H
+namespace lmms::gui
+{
+
+
class LMMS_EXPORT LmmsPalette : public QWidget
{
Q_OBJECT
@@ -83,5 +87,6 @@ class LMMS_EXPORT LmmsPalette : public QWidget
+} // namespace lmms::gui
#endif
diff --git a/include/LmmsStyle.h b/include/LmmsStyle.h
index ccf14396c8f..a4c9edd31aa 100644
--- a/include/LmmsStyle.h
+++ b/include/LmmsStyle.h
@@ -30,6 +30,9 @@
#include
+namespace lmms::gui
+{
+
class LmmsStyle : public QProxyStyle
{
@@ -92,4 +95,7 @@ class LmmsStyle : public QProxyStyle
};
+
+} // namespace lmms::gui
+
#endif
diff --git a/include/LocaleHelper.h b/include/LocaleHelper.h
index c5d9d4c46c5..b071a1596c1 100644
--- a/include/LocaleHelper.h
+++ b/include/LocaleHelper.h
@@ -33,8 +33,9 @@
#include
#include
-namespace LocaleHelper
+namespace lmms::LocaleHelper
{
+
inline double toDouble(QString str, bool* ok = nullptr)
{
bool isOkay;
@@ -62,6 +63,8 @@ inline float toFloat(QString str, bool* ok = nullptr)
}
return static_cast(d);
}
-}
+
+
+} // namespace lmms::LocaleHelper
#endif // LOCALEHELPER_H
diff --git a/include/LocklessAllocator.h b/include/LocklessAllocator.h
index d7977480ed4..17f5ebfb559 100644
--- a/include/LocklessAllocator.h
+++ b/include/LocklessAllocator.h
@@ -28,6 +28,11 @@
#include
#include
+
+namespace lmms
+{
+
+
class LocklessAllocator
{
public:
@@ -79,4 +84,6 @@ class LocklessAllocatorT : private LocklessAllocator
} ;
+} // namespace lmms
+
#endif
diff --git a/include/LocklessList.h b/include/LocklessList.h
index 05df56f41af..44b71805954 100644
--- a/include/LocklessList.h
+++ b/include/LocklessList.h
@@ -29,6 +29,9 @@
#include
+namespace lmms
+{
+
template
class LocklessList
{
@@ -92,4 +95,6 @@ class LocklessList
} ;
+} // namespace lmms
+
#endif
diff --git a/include/LocklessRingBuffer.h b/include/LocklessRingBuffer.h
index 5950b842fce..60f8ab98996 100644
--- a/include/LocklessRingBuffer.h
+++ b/include/LocklessRingBuffer.h
@@ -32,6 +32,9 @@
#include "../src/3rdparty/ringbuffer/include/ringbuffer/ringbuffer.h"
+namespace lmms
+{
+
//! A convenience layer for a realtime-safe and thread-safe multi-reader ringbuffer
template
class LocklessRingBuffer
@@ -83,4 +86,7 @@ class LocklessRingBufferReader : public ringbuffer_reader_t
QWaitCondition *m_notifier;
};
+
+} // namespace lmms
+
#endif //LOCKLESSRINGBUFFER_H
diff --git a/include/Lv2Basics.h b/include/Lv2Basics.h
index 0003f83e814..b935e6a02f9 100644
--- a/include/Lv2Basics.h
+++ b/include/Lv2Basics.h
@@ -36,6 +36,9 @@
#include
#include
+namespace lmms
+{
+
struct LilvNodeDeleter
{
void operator()(LilvNode* n) { lilv_node_free(n); }
@@ -63,5 +66,7 @@ QString qStringFromPortName(const LilvPlugin* plug, const LilvPort* port);
//! Return port name as std::string, everything will be freed automatically
std::string stdStringFromPortName(const LilvPlugin* plug, const LilvPort* port);
+} // namespace lmms
+
#endif // LMMS_HAVE_LV2
#endif // LV2BASICS_H
diff --git a/include/Lv2ControlBase.h b/include/Lv2ControlBase.h
index 6b72bec5de5..c6b08db8cf6 100644
--- a/include/Lv2ControlBase.h
+++ b/include/Lv2ControlBase.h
@@ -37,6 +37,10 @@
#include "lmms_export.h"
#include "Plugin.h"
+namespace lmms
+{
+
+
class Lv2Proc;
class PluginIssue;
@@ -155,5 +159,8 @@ class LMMS_EXPORT Lv2ControlBase : public LinkedModelGroups
const LilvPlugin* m_plugin;
};
+
+} // namespace lmms
+
#endif // LMMS_HAVE_LV2
#endif // LV2_CONTROL_BASE_H
diff --git a/include/Lv2Evbuf.h b/include/Lv2Evbuf.h
index 9cf6a6801fe..2f569f7d6ce 100644
--- a/include/Lv2Evbuf.h
+++ b/include/Lv2Evbuf.h
@@ -39,6 +39,11 @@
#include
+
+namespace lmms
+{
+
+
/**
An abstract/opaque LV2 event buffer.
*/
@@ -144,6 +149,9 @@ lv2_evbuf_write( LV2_Evbuf_Iterator* iter,
uint32_t size,
const uint8_t* data);
+
+} // namespace lmms
+
#endif // LMMS_HAVE_LV2
#endif // LV2_EVBUF_H
diff --git a/include/Lv2Features.h b/include/Lv2Features.h
index 272bb3a4d29..033273f3148 100644
--- a/include/Lv2Features.h
+++ b/include/Lv2Features.h
@@ -33,6 +33,10 @@
#include
#include "Lv2Manager.h"
+
+namespace lmms
+{
+
/**
Feature container
@@ -75,6 +79,9 @@ class Lv2Features
std::map m_featureByUri;
};
+
+} // namespace lmms
+
#endif // LMMS_HAVE_LV2
#endif // LV2FEATURES_H
diff --git a/include/Lv2Manager.h b/include/Lv2Manager.h
index dbea510ce39..7c4a4bcb799 100644
--- a/include/Lv2Manager.h
+++ b/include/Lv2Manager.h
@@ -39,6 +39,9 @@
#include "Plugin.h"
+namespace lmms
+{
+
/*
all Lv2 classes in relation (use our "4 spaces per tab rule" to view):
@@ -158,6 +161,9 @@ class Lv2Manager
bool isSubclassOf(const LilvPluginClass *clvss, const char *uriStr);
};
+
+} // namespace lmms
+
#endif // LMMS_HAVE_LV2
#endif // LV2MANAGER_H
diff --git a/include/Lv2Options.h b/include/Lv2Options.h
index 1453de2ea10..32225ea8918 100644
--- a/include/Lv2Options.h
+++ b/include/Lv2Options.h
@@ -41,6 +41,9 @@
#include "Lv2Manager.h"
#include "Lv2UridCache.h"
+namespace lmms
+{
+
/**
Option container
@@ -99,6 +102,9 @@ class Lv2Options
std::map> m_optionValues;
};
+
+} // namespace lmms
+
#endif // LMMS_HAVE_LV2
#endif // LV2OPTIONS_H
diff --git a/include/Lv2Ports.h b/include/Lv2Ports.h
index 529200793ad..22a051a21b4 100644
--- a/include/Lv2Ports.h
+++ b/include/Lv2Ports.h
@@ -36,6 +36,11 @@
#include "lmms_basics.h"
#include "PluginIssue.h"
+
+namespace lmms
+{
+
+
struct ConnectPortVisitor;
typedef struct LV2_Evbuf_Impl LV2_Evbuf;
@@ -200,7 +205,7 @@ struct Audio : public VisitablePort