diff --git a/data/locale/ar.ts b/data/locale/ar.ts
index 8e989509d..1f159c42a 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 013585b5f..506b401bd 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 3512b4871..765cf3b60 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 7951c75b9..0ed175022 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 ef4d94634..51ca7d562 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 b543854d3..320a6657f 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 b58d27f30..e52ae39ab 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 b133d8029..005ee8100 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 8fb164421..4fc4951ef 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 9642a3ff2..25c165f81 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 4e72345fd..181ca0ca1 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 85f443309..2c65444a8 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 38a80a5da..cf04fd5d4 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 783b473b7..ee5a23613 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 5ba65acd6..15550231f 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 f82ff12c4..836059946 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 b55f6c98c..e381ea726 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 29865352a..ff146d471 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 28fda3123..e10ca5118 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 b48b3f2b0..1956d8d04 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 78cfbdd5c..7373b5ca9 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 533efdcad..209d51d10 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 41865ef0c..3675b7f58 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 2eaa6b154..ad630a249 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 8df1aa1a1..58c81c964 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 340be33d8..bb0c64ede 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 f94f22920..b375e289f 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 ca148f452..eceb45a64 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 40e385d2c..8235f291f 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 dd9680976..3ad55a4c0 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 a8c1fd96d..9b90164ab 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 882524c50..4963b07a9 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 fa4ccb696..387be6d8b 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 84cc81899..50df10e4b 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 301d54362..63b22df99 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 a190c831c..791a45599 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 ea3cbf4a2..58ec5dc09 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 b10e493e7..f4c651c9e 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 93aca988d..c7d65023f 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 @@ public:
} ;
+} // namespace lmms::gui
#endif
diff --git a/include/ActionGroup.h b/include/ActionGroup.h
index 226e39136..0fe9d78ed 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:
QList m_actions;
};
+} // namespace lmms::gui
+
#endif
diff --git a/include/AudioAlsa.h b/include/AudioAlsa.h
index c8452d003..e1024b030 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 @@ private:
} ;
-#endif
+} // namespace lmms
+
+#endif // LMMS_HAVE_ALSA
#endif
diff --git a/include/AudioAlsaSetupWidget.h b/include/AudioAlsaSetupWidget.h
index db88558a7..9e168934e 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 @@ private:
AudioAlsa::DeviceInfoCollection m_deviceInfos;
};
-#endif
+} // namespace lmms::gui
+
+#endif // LMMS_HAVE_ALSA
#endif
diff --git a/include/AudioDevice.h b/include/AudioDevice.h
index 627ba470c..6b4e9939a 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 @@ private:
surroundSampleFrame * m_buffer;
-} ;
+};
+} // namespace lmms
#endif
diff --git a/include/AudioDeviceSetupWidget.h b/include/AudioDeviceSetupWidget.h
index 9b82300bb..6bf656e0a 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 @@ public:
virtual void show();
};
+} // namespace lmms::gui
#endif
diff --git a/include/AudioDummy.h b/include/AudioDummy.h
index a0f2c528e..f2c198bbc 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 @@ public:
}
- 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 @@ private:
} ;
+} // namespace lmms
#endif
diff --git a/include/AudioEngine.h b/include/AudioEngine.h
index a86f540cb..08e03a113 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
@@ -361,7 +361,7 @@ public:
signals:
void qualitySettingsChanged();
void sampleRateChanged();
- void nextAudioBuffer( const surroundSampleFrame * buffer );
+ void nextAudioBuffer( const lmms::surroundSampleFrame * buffer );
private:
@@ -471,9 +471,11 @@ private:
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 19f0b612b..136c6dbea 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 @@ private:
QFile m_outputFile;
};
+} // namespace lmms
+
#endif
diff --git a/include/AudioEngineWorkerThread.h b/include/AudioEngineWorkerThread.h
index f86d41c9a..811f75753 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 @@ private:
volatile bool m_quit;
} ;
+} // namespace lmms
#endif
diff --git a/include/AudioFileDevice.h b/include/AudioFileDevice.h
index c21a55c4c..937cd9d00 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 75e86d368..675ab21d9 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 @@ private:
};
+
+} // namespace lmms
+
#endif //AUDIO_FILE_FLAC_H
diff --git a/include/AudioFileMP3.h b/include/AudioFileMP3.h
index ab72ed689..16c3617a8 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 @@ private:
lame_t m_lame;
};
-#endif
+} // namespace lmms
+
+#endif // LMMS_HAVE_MP3LAME
#endif
diff --git a/include/AudioFileOgg.h b/include/AudioFileOgg.h
index 9c7337e9c..7e6921015 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 @@ private:
} ;
-#endif
+} // namespace lmms
+
+#endif // LMMS_HAVE_OGGVORBIS
#endif
diff --git a/include/AudioFileWave.h b/include/AudioFileWave.h
index d8e537859..e9425dd86 100644
--- a/include/AudioFileWave.h
+++ b/include/AudioFileWave.h
@@ -31,6 +31,8 @@
#include
+namespace lmms
+{
class AudioFileWave : public AudioFileDevice
{
@@ -66,4 +68,7 @@ private:
SNDFILE * m_sf;
} ;
+
+} // namespace lmms
+
#endif
diff --git a/include/AudioJack.h b/include/AudioJack.h
index e74ac4782..648bb157d 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 @@ public:
}
- class setupWidget : public AudioDeviceSetupWidget
+class setupWidget : public gui::AudioDeviceSetupWidget
{
public:
setupWidget( QWidget * _parent );
@@ -76,7 +84,7 @@ public:
private:
QLineEdit * m_clientName;
- LcdSpinBox * m_channels;
+ gui::LcdSpinBox * m_channels;
} ;
@@ -132,6 +140,8 @@ signals:
} ;
-#endif
+} // namespace lmms
+
+#endif // LMMS_HAVE_JACK
#endif
diff --git a/include/AudioOss.h b/include/AudioOss.h
index b1b5d839c..4a552040b 100644
--- a/include/AudioOss.h
+++ b/include/AudioOss.h
@@ -34,10 +34,17 @@
#include "AudioDevice.h"
#include "AudioDeviceSetupWidget.h"
-
-class LcdSpinBox;
class QLineEdit;
+namespace lmms
+{
+
+namespace gui
+{
+class LcdSpinBox;
+}
+
+
class AudioOss : public QThread, public AudioDevice
{
@@ -54,7 +61,7 @@ public:
static QString probeDevice();
- class setupWidget : public AudioDeviceSetupWidget
+class setupWidget : public gui::AudioDeviceSetupWidget
{
public:
setupWidget( QWidget * _parent );
@@ -64,7 +71,7 @@ public:
private:
QLineEdit * m_device;
- LcdSpinBox * m_channels;
+ gui::LcdSpinBox * m_channels;
} ;
@@ -81,7 +88,8 @@ private:
} ;
-
-#endif
+} // namespace lmms
+
+#endif // LMMS_HAVE_OSS
#endif
diff --git a/include/AudioPort.h b/include/AudioPort.h
index 0f6c931d9..5a2645784 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 @@ private:
} ;
+} // namespace lmms
#endif
diff --git a/include/AudioPortAudio.h b/include/AudioPortAudio.h
index 2d78af1c4..10dab74eb 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 @@ public:
unsigned long _framesPerBuffer );
- class setupWidget : public AudioDeviceSetupWidget
+ class setupWidget : public gui::AudioDeviceSetupWidget
{
public:
setupWidget( QWidget * _parent );
@@ -90,8 +100,8 @@ public:
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 @@ private:
} ;
-#endif
+#endif // LMMS_HAVE_PORTAUDIO
+
+} // namespace lmms
#endif
diff --git a/include/AudioPulseAudio.h b/include/AudioPulseAudio.h
index 3fe098d68..70da08087 100644
--- a/include/AudioPulseAudio.h
+++ b/include/AudioPulseAudio.h
@@ -36,10 +36,16 @@
#include "AudioDevice.h"
#include "AudioDeviceSetupWidget.h"
-
-class LcdSpinBox;
class QLineEdit;
+namespace lmms
+{
+
+namespace gui
+{
+class LcdSpinBox;
+}
+
class AudioPulseAudio : public QThread, public AudioDevice
{
@@ -56,7 +62,7 @@ public:
static QString probeDevice();
- class setupWidget : public AudioDeviceSetupWidget
+ class setupWidget : public gui::AudioDeviceSetupWidget
{
public:
setupWidget( QWidget * _parent );
@@ -66,7 +72,7 @@ public:
private:
QLineEdit * m_device;
- LcdSpinBox * m_channels;
+ gui::LcdSpinBox * m_channels;
} ;
@@ -94,6 +100,8 @@ private:
} ;
+} // namespace lmms
+
#endif
#endif
diff --git a/include/AudioSampleRecorder.h b/include/AudioSampleRecorder.h
index f5d5985c1..294ffa17d 100644
--- a/include/AudioSampleRecorder.h
+++ b/include/AudioSampleRecorder.h
@@ -31,6 +31,9 @@
#include "AudioDevice.h"
+namespace lmms
+{
+
class SampleBuffer;
@@ -54,5 +57,6 @@ private:
} ;
+} // namespace lmms
#endif
diff --git a/include/AudioSdl.h b/include/AudioSdl.h
index 307973013..b49e2ebe9 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 @@ public:
}
- class setupWidget : public AudioDeviceSetupWidget
+ class setupWidget : public gui::AudioDeviceSetupWidget
{
public:
setupWidget( QWidget * _parent );
@@ -108,6 +110,9 @@ private:
} ;
-#endif
+
+} // namespace lmms
+
+#endif // LMMS_HAVE_SDL
#endif
diff --git a/include/AudioSndio.h b/include/AudioSndio.h
index 94fcfa93b..5fb7c78fc 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 @@ public:
return QT_TRANSLATE_NOOP( "AudioDeviceSetupWidget", "sndio" );
}
- class setupWidget : public AudioDeviceSetupWidget
+ class setupWidget : public gui::AudioDeviceSetupWidget
{
public:
setupWidget( QWidget * _parent );
@@ -62,7 +69,7 @@ public:
private:
QLineEdit * m_device;
- LcdSpinBox * m_channels;
+ gui::LcdSpinBox * m_channels;
} ;
private:
@@ -78,6 +85,8 @@ private:
} ;
+} // namespace lmms
+
#endif /* LMMS_HAVE_SNDIO */
#endif /* _AUDIO_SNDIO_H */
diff --git a/include/AudioSoundIo.h b/include/AudioSoundIo.h
index 5dbd35250..411f4ab22 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 @@ private:
};
-#endif
+
+} // namespace lmms
+
+#endif // LMMS_HAVE_SOUNDIO
#endif
diff --git a/include/AutomatableButton.h b/include/AutomatableButton.h
index d7859a10c..fefaf70e3 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:
} ;
+} // namespace lmms::gui
#endif
diff --git a/include/AutomatableModel.h b/include/AutomatableModel.h
index 2f4b31467..672abaf81 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 @@ private:
signals:
void initValueChanged( float val );
- void destroyed( jo_id_t id );
+ void destroyed( lmms::jo_id_t id );
} ;
@@ -502,5 +506,8 @@ public:
typedef QMap AutomatedValueMap;
+
+} // namespace lmms
+
#endif
diff --git a/include/AutomatableModelView.h b/include/AutomatableModelView.h
index a59961185..fa8926c0c 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 b51ef1e3f..d6a95f5d8 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 22af90ed1..376c1e9e7 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 @@ public:
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 @@ public:
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 @@ private:
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 641a58699..0b80ad2eb 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 @@ private:
} ;
+} // namespace gui
+
+} // namespace lmms
+
#endif
diff --git a/include/AutomationEditor.h b/include/AutomationEditor.h
index c655ffcdf..d9d1b0a10 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 @@ private:
signals:
void currentClipChanged();
- void positionChanged( const TimePos & );
+ void positionChanged( const lmms::TimePos & );
} ;
@@ -293,5 +300,8 @@ private:
ComboBox * m_quantizeComboBox;
};
+} // namespace gui
+
+} // namespace lmms
#endif
diff --git a/include/AutomationNode.h b/include/AutomationNode.h
index 6cd445662..11bd6d57d 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 @@ private:
float m_outTangent;
};
+} // namespace lmms
#endif
diff --git a/include/AutomationTrack.h b/include/AutomationTrack.h
index dc33f76c3..1bbc77b1c 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 @@ public:
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 @@ private:
} ;
+} // namespace lmms
+
#endif
diff --git a/include/AutomationTrackView.h b/include/AutomationTrackView.h
index 5ed993213..b5bafe58e 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 @@ public:
} ;
+} // namespace gui
+
+} // namespace lmms
+
#endif
diff --git a/include/BandLimitedWave.h b/include/BandLimitedWave.h
index 1cd8d69ed..30d28d4a1 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 @@ public:
static QString s_wavetableDir;
};
+} // namespace lmms
#endif
diff --git a/include/BasicFilters.h b/include/BasicFilters.h
index 07cdda06b..10b5b24b7 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 @@ private:
} ;
+} // namespace lmms
+
#endif
diff --git a/include/BufferManager.h b/include/BufferManager.h
index 20390644b..57729918e 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 @@ public:
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 a5da11663..9cf275fb3 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 @@ private:
} ;
+} // namespace lmms::gui
+
#endif
diff --git a/include/CaptionMenu.h b/include/CaptionMenu.h
index e6531fe31..2309cec6f 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 @@ public:
} ;
-
+} // namespace lmms::gui
#endif
diff --git a/include/Clip.h b/include/Clip.h
index 7b42fc91b..5c70aeaba 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 @@ public:
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 @@ private:
} ;
+} // namespace lmms
+
#endif
diff --git a/include/ClipView.h b/include/ClipView.h
index b3fd20920..00a8b261e 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 @@ private:
} ;
+} // namespace gui
+
+} // namespace lmms
+
#endif
diff --git a/include/Clipboard.h b/include/Clipboard.h
index 168134e9d..1c2dcb647 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 ac2a1b62d..9b3389c47 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 @@ private:
//! 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 1f7dd43ff..412279d15 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 a3c2a082b..faff03620 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 @@ private:
} ;
+} // namespace lmms
#endif
diff --git a/include/ConfigManager.h b/include/ConfigManager.h
index e9b2783ab..6aa7fc037 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 @@ private:
settingsMap m_settings;
- friend class LmmsCore;
+ friend class Engine;
};
+
+
+} // namespace lmms
+
#endif
diff --git a/include/ControlLayout.h b/include/ControlLayout.h
index 601820107..8c629f8e1 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:
// 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 092c684e0..c2e5205d2 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 @@ public:
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 @@ signals:
// 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 68fd2dc89..50b98539c 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 @@ signals:
// 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 95e55ce79..62980987f 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 @@ private:
AutoDetectMidiController * m_midiController;
} ;
+
+} // namespace gui
+
+} // namespace lmms
+
#endif
diff --git a/include/ControllerDialog.h b/include/ControllerDialog.h
index 05e8f3bfe..0592cadf3 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 @@ protected:
} ;
+
+} // namespace gui
+
+} // namespace lmms
+
#endif
diff --git a/include/ControllerRackView.h b/include/ControllerRackView.h
index 9ef2d9b7f..6d60562f6 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 @@ public:
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:
int m_nextIndex;
} ;
+} // namespace gui
+
+} // namespace lmms
+
#endif
diff --git a/include/ControllerView.h b/include/ControllerView.h
index d1284845e..2e18e1320 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 @@ private:
} ;
+
+} // namespace lmms::gui
+
#endif
diff --git a/include/Controls.h b/include/Controls.h
index 414258368..af2a5fa71 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 @@ public:
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 @@ public:
class KnobControl : public Control
{
- class Knob* m_knob;
+ Knob* m_knob;
public:
void setText(const QString& text) override;
@@ -68,7 +80,7 @@ public:
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 @@ public:
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 @@ public:
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 @@ public:
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 @@ public:
class CheckControl : public Control
{
QWidget* m_widget;
- class LedCheckBox* m_checkBox;
+ LedCheckBox* m_checkBox;
QLabel* m_label;
public:
@@ -122,12 +134,16 @@ public:
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 aa7b9d573..403799ff0 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 @@ protected:
QString m_value_text;
} ;
+
+} // namespace lmms::gui
+
#endif
diff --git a/include/DataFile.h b/include/DataFile.h
index 0600e85d4..c17b3546f 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 @@ private:
} ;
+} // namespace lmms
+
#endif
diff --git a/include/Delay.h b/include/Delay.h
index 5be1ac183..404782f90 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 bef4ea9b9..7786665a3 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 2157b6ba8..7444b8b22 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 @@ public:
} ;
+} // namespace lmms
+
#endif
diff --git a/include/DrumSynth.h b/include/DrumSynth.h
index f7e9b1d4c..79383a6d4 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 bf175df6d..df7588116 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 6bb8c873e..8d0f769b6 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 @@ public:
} ;
+}
class DummyEffectControls : public EffectControls
{
@@ -75,9 +82,9 @@ public:
return "DummyControls";
}
- EffectControlDialog * createView() override
+ gui::EffectControlDialog * createView() override
{
- return new DummyEffectControlDialog( this );
+ return new gui::DummyEffectControlDialog( this );
}
} ;
@@ -144,4 +151,6 @@ private:
} ;
+} // namespace lmms
+
#endif
diff --git a/include/DummyInstrument.h b/include/DummyInstrument.h
index ebfcfbefe..27246e6eb 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 @@ public:
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 61a399889..313649526 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 @@ public:
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 d755608a6..88cd84654 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 @@ protected:
};
+} // namespace lmms::gui
+
#endif
diff --git a/include/Effect.h b/include/Effect.h
index 6d1fea6bf..abd65f207 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 @@ protected:
*/
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 @@ private:
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 9ebc4d534..ca7648761 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 @@ private:
BoolModel m_enabledModel;
- friend class EffectRackView;
+ friend class gui::EffectRackView;
signals:
@@ -73,5 +83,7 @@ signals:
} ;
+} // namespace lmms
+
#endif
diff --git a/include/EffectControlDialog.h b/include/EffectControlDialog.h
index 4a59489da..ec0ef3f1d 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 @@ protected:
} ;
+} // namespace gui
+
+} // namespace lmms
+
#endif
diff --git a/include/EffectControls.h b/include/EffectControls.h
index 6af7a7d6c..b8e7d0041 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 @@ public:
}
virtual int controlCount() = 0;
- virtual EffectControlDialog * createView() = 0;
+ virtual gui::EffectControlDialog * createView() = 0;
void setViewVisible( bool _visible )
@@ -73,4 +81,7 @@ private:
} ;
+
+} // namespace lmms
+
#endif
diff --git a/include/EffectRackView.h b/include/EffectRackView.h
index b590d8eb1..014a07dfe 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 @@ public:
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:
} ;
+} // namespace lmms::gui
+
#endif
diff --git a/include/EffectSelectDialog.h b/include/EffectSelectDialog.h
index 19e0ca05f..bf1b6ba04 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 @@ private:
} ;
+} // namespace lmms::gui
+
#endif
diff --git a/include/EffectView.h b/include/EffectView.h
index a2509dc5b..9f30575e9 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 @@ private:
} ;
+
+} // namespace lmms::gui
+
#endif
diff --git a/include/Engine.h b/include/Engine.h
index 531e24220..b63308cde 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 @@ public:
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 @@ private:
// 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 @@ private:
#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 42502800e..0a4a0d0f2 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 @@ private:
void updateLfoShapeData();
- friend class EnvelopeAndLfoView;
+ friend class gui::EnvelopeAndLfoView;
} ;
+} // namespace lmms
+
#endif
diff --git a/include/EnvelopeAndLfoView.h b/include/EnvelopeAndLfoView.h
index f6d4fd0a8..2067f9291 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 @@ private:
float m_randomGraph;
} ;
+} // namespace gui
+
+} // namespace lmms
+
#endif
diff --git a/include/ExportFilter.h b/include/ExportFilter.h
index e60faef3a..29cb1c711 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 @@ private:
} ;
+} // namespace lmms
+
#endif
diff --git a/include/ExportProjectDialog.h b/include/ExportProjectDialog.h
index 06c1e3011..5e4418a28 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:
std::unique_ptr m_renderManager;
} ;
+
+} // namespace lmms::gui
+
+
#endif
diff --git a/include/FadeButton.h b/include/FadeButton.h
index dfffe93a2..ee0936ca7 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 @@ private:
} ;
+} // namespace lmms::gui
+
#endif
diff --git a/include/Fader.h b/include/Fader.h
index 86d7f0b96..355684c4a 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 @@ private:
} ;
+} // namespace lmms::gui
+
+
#endif
diff --git a/include/FifoBuffer.h b/include/FifoBuffer.h
index 5bbf8b702..d49e367c0 100644
--- a/include/FifoBuffer.h
+++ b/include/FifoBuffer.h
@@ -28,6 +28,10 @@
#include
+namespace lmms
+{
+
+
template
class FifoBuffer
{
@@ -88,4 +92,6 @@ private:
} ;
+} // namespace lmms
+
#endif
diff --git a/include/FileBrowser.h b/include/FileBrowser.h
index d99c619e9..eb50dd1bb 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 @@ private:
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 @@ private:
} ;
+} // namespace gui
+
+} // namespace lmms
+
#endif
diff --git a/include/FileDialog.h b/include/FileDialog.h
index 6e29703b8..ed5d2f231 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 @@ public:
void clearSelection();
};
-#endif // FILEDIALOG_HPP
+
+} // namespace lmms::gui
+
+#endif // FILEDIALOG_H
diff --git a/include/Graph.h b/include/Graph.h
index 2a6fc4f8a..7a9599f12 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 @@ private:
} ;
+} // namespace gui
+
+
/**
@brief 2 dimensional function plot
@@ -137,7 +147,7 @@ public:
graphModel( float _min,
float _max,
int _size,
- :: Model * _parent,
+ Model * _parent,
bool _default_constructed = false,
float _step = 0.0 );
@@ -211,8 +221,11 @@ private:
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 77b0ec578..6a282fedb 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 @@ private:
} ;
+} // namespace lmms::gui
#endif
diff --git a/include/GuiApplication.h b/include/GuiApplication.h
index ee5e83e2b..84697175f 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:
// Short-hand function
LMMS_EXPORT GuiApplication* getGUI();
+} // namespace lmms::gui
+
#endif // GUIAPPLICATION_H
diff --git a/include/ImportFilter.h b/include/ImportFilter.h
index ef58cce24..60eca6f80 100644
--- a/include/ImportFilter.h
+++ b/include/ImportFilter.h
@@ -30,6 +30,9 @@
#include "Plugin.h"
+namespace lmms
+{
+
class TrackContainer;
@@ -109,4 +112,6 @@ private:
} ;
+} // namespace lmms
+
#endif
diff --git a/include/InlineAutomation.h b/include/InlineAutomation.h
index 1ce486fde..453184329 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 @@ private:
} ;
+} // namespace lmms
+
#endif
diff --git a/include/Instrument.h b/include/Instrument.h
index c3cd56272..7ec3c66be 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 @@ private:
} ;
+
Q_DECLARE_OPERATORS_FOR_FLAGS(Instrument::Flags)
+
+} // namespace lmms
+
#endif
diff --git a/include/InstrumentFunctionViews.h b/include/InstrumentFunctionViews.h
index 6536a8db7..bf4b07668 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 @@ private:
} ;
+} // namespace gui
+
+} // namespace lmms
#endif
diff --git a/include/InstrumentFunctions.h b/include/InstrumentFunctions.h
index e1591ea27..ef1d17902 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 @@ private:
FloatModel m_chordRangeModel;
- friend class InstrumentFunctionNoteStackingView;
+ friend class gui::InstrumentFunctionNoteStackingView;
} ;
@@ -207,9 +216,11 @@ private:
friend class InstrumentTrack;
- friend class InstrumentFunctionArpeggioView;
+ friend class gui::InstrumentFunctionArpeggioView;
} ;
+} // namespace lmms
+
#endif
diff --git a/include/InstrumentMidiIOView.h b/include/InstrumentMidiIOView.h
index 9b1e5adfd..399aee890 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 @@ private:
} ;
+
+} // namespace gui
+
+} // namespace lmms
+
#endif
diff --git a/include/InstrumentMiscView.h b/include/InstrumentMiscView.h
index 6024436e8..25e16395d 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 @@ private:
LedCheckBox *m_rangeImportCheckbox;
};
+
+} // namespace gui
+
+} // namespace lmms
+
#endif
diff --git a/include/InstrumentPlayHandle.h b/include/InstrumentPlayHandle.h
index ac5fc3222..2d7bfa587 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 @@ private:
} ;
+
+} // namespace lmms
+
#endif
diff --git a/include/InstrumentSoundShaping.h b/include/InstrumentSoundShaping.h
index b037f615a..00208392d 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 @@ private:
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 06d53232c..9b4efcfab 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 @@ private:
} ;
+
+} // namespace lmms::gui
+
#endif
diff --git a/include/InstrumentTrack.h b/include/InstrumentTrack.h
index 952884829..d05da176b 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 @@ public:
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 @@ public:
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 @@ private:
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 d863d6c19..a5297b332 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:
friend class InstrumentTrackWindow;
} ;
-#endif
+} // namespace lmms::gui
+
+#endif
diff --git a/include/InstrumentTrackWindow.h b/include/InstrumentTrackWindow.h
index a215e08f9..cd208c165 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 @@ private:
friend class InstrumentTrackView;
} ;
-#endif
+} // namespace gui
+
+} // namespace lmms
+
+#endif
diff --git a/include/InstrumentView.h b/include/InstrumentView.h
index 838ed2d91..695e8c477 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 @@ public:
} ;
+} // namespace lmms::gui
+
#endif
diff --git a/include/IoHelper.h b/include/IoHelper.h
index 35ee8cb87..4f08f5087 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,15 +58,9 @@ 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
@@ -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 9e0322591..cd853dc7f 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 @@ private:
} ;
+} // namespace lmms
+
#endif
diff --git a/include/Keymap.h b/include/Keymap.h
index 08a27c473..6286f8362 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 @@ private:
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 f27328aa9..16ac7ed01 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:
} ;
+
+} // namespace lmms::gui
+
#endif
diff --git a/include/Ladspa2LMMS.h b/include/Ladspa2LMMS.h
index 28fa25b89..63db75cd9 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 @@ private:
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 be4576f55..68e91dd7a 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 34f6c9ae2..8b6fe3d19 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 @@ private:
TempoSyncKnobModel m_tempoSyncKnobModel;
- friend class LadspaControlView;
+ friend class gui::LadspaControlView;
} ;
+
+} // namespace lmms
+
#endif
diff --git a/include/LadspaControlView.h b/include/LadspaControlView.h
index d2d0ca44d..15eb722a7 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 @@ private:
} ;
+
+} // namespace gui
+
+} // namespace lmms
+
#endif
diff --git a/include/LadspaManager.h b/include/LadspaManager.h
index a87511161..565a7c898 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 @@ private:
} ;
+
+} // namespace lmms
+
#endif
diff --git a/include/LcdFloatSpinBox.h b/include/LcdFloatSpinBox.h
index 034168fbb..ab0de304e 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 @@ signals:
using LcdFloatSpinBoxModel = FloatModel;
+} // namespace lmms::gui
+
#endif
diff --git a/include/LcdSpinBox.h b/include/LcdSpinBox.h
index 91ac8b4a7..1c30bfcf6 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 @@ signals:
typedef IntModel LcdSpinBoxModel;
+} // namespace lmms::gui
+
#endif
diff --git a/include/LcdWidget.h b/include/LcdWidget.h
index a04e7ae91..aad1d189a 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 @@ private:
};
+} // namespace lmms::gui
+
#endif
diff --git a/include/LedCheckBox.h b/include/LedCheckBox.h
index f5477704f..8eac9b562 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 @@ private:
} ;
+
+} // namespace lmms::gui
+
#endif
diff --git a/include/LeftRightNav.h b/include/LeftRightNav.h
index 4f3f4ecbb..df72193dc 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 @@ private:
PixmapButton m_rightBtn;
};
+
+} // namespace lmms::gui
+
#endif
\ No newline at end of file
diff --git a/include/LfoController.h b/include/LfoController.h
index 8fc35fd09..6ee136a14 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 @@ public:
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 a70480d5c..50ef03596 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 @@ public:
@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 @@ protected:
~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 @@ private:
};
+} // namespace gui
+
+} // namespace lmms
+
#endif // LINKEDMODELGROUPVIEWS_H
diff --git a/include/LinkedModelGroups.h b/include/LinkedModelGroups.h
index 770518076..9fa0fefa6 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 @@ signals:
// (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 @@ public:
};
+} // namespace lmms
+
#endif // LINKEDMODELGROUPS_H
diff --git a/include/LmmsPalette.h b/include/LmmsPalette.h
index a8ee5d1c8..87ea18687 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 @@ private:
+} // namespace lmms::gui
#endif
diff --git a/include/LmmsStyle.h b/include/LmmsStyle.h
index ccf14396c..a4c9edd31 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 @@ private:
};
+
+} // namespace lmms::gui
+
#endif
diff --git a/include/LocaleHelper.h b/include/LocaleHelper.h
index c5d9d4c46..b071a1596 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 d7977480e..17f5ebfb5 100644
--- a/include/LocklessAllocator.h
+++ b/include/LocklessAllocator.h
@@ -28,6 +28,11 @@
#include
#include
+
+namespace lmms
+{
+
+
class LocklessAllocator
{
public:
@@ -79,4 +84,6 @@ public:
} ;
+} // namespace lmms
+
#endif
diff --git a/include/LocklessList.h b/include/LocklessList.h
index 05df56f41..44b718059 100644
--- a/include/LocklessList.h
+++ b/include/LocklessList.h
@@ -29,6 +29,9 @@
#include
+namespace lmms
+{
+
template
class LocklessList
{
@@ -92,4 +95,6 @@ private:
} ;
+} // namespace lmms
+
#endif
diff --git a/include/LocklessRingBuffer.h b/include/LocklessRingBuffer.h
index 5950b842f..60f8ab989 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 @@ private:
QWaitCondition *m_notifier;
};
+
+} // namespace lmms
+
#endif //LOCKLESSRINGBUFFER_H
diff --git a/include/Lv2Basics.h b/include/Lv2Basics.h
index 0003f83e8..b935e6a02 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 6b72bec5d..c6b08db8c 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 @@ private:
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 9cf6a6801..2f569f7d6 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 272bb3a4d..033273f31 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 @@ private:
std::map m_featureByUri;
};
+
+} // namespace lmms
+
#endif // LMMS_HAVE_LV2
#endif // LV2FEATURES_H
diff --git a/include/Lv2Manager.h b/include/Lv2Manager.h
index dbea510ce..7c4a4bcb7 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 @@ private:
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 1453de2ea..32225ea89 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 @@ private:
std::map> m_optionValues;
};
+
+} // namespace lmms
+
#endif // LMMS_HAVE_LV2
#endif // LV2OPTIONS_H
diff --git a/include/Lv2Ports.h b/include/Lv2Ports.h
index 529200793..22a051a21 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 @@ private:
bool m_sidechain;
// the only case when data of m_buffer may be referenced:
- friend struct ::ConnectPortVisitor;
+ friend struct lmms::ConnectPortVisitor;
};
struct AtomSeq : public VisitablePort
@@ -261,5 +266,8 @@ const Target* dcast(const PortBase* base)
} // namespace Lv2Ports
+
+} // namespace lmms
+
#endif // LMMS_HAVE_LV2
#endif // LV2PORTS_H
diff --git a/include/Lv2Proc.h b/include/Lv2Proc.h
index 06185a9ac..31a694044 100644
--- a/include/Lv2Proc.h
+++ b/include/Lv2Proc.h
@@ -40,6 +40,10 @@
#include "../src/3rdparty/ringbuffer/include/ringbuffer/ringbuffer.h"
#include "TimePos.h"
+
+namespace lmms
+{
+
class PluginIssue;
// forward declare port structs/enums
@@ -212,5 +216,8 @@ private:
static AutoLilvNode uri(const char* uriStr);
};
+
+} // namespace lmms
+
#endif // LMMS_HAVE_LV2
#endif // LV2PROC_H
diff --git a/include/Lv2SubPluginFeatures.h b/include/Lv2SubPluginFeatures.h
index fee3c3812..9ba2c76cb 100644
--- a/include/Lv2SubPluginFeatures.h
+++ b/include/Lv2SubPluginFeatures.h
@@ -36,6 +36,10 @@
#include "lmms_export.h"
#include "Plugin.h"
+namespace lmms
+{
+
+
class LMMS_EXPORT Lv2SubPluginFeatures : public Plugin::Descriptor::SubPluginFeatures
{
private:
@@ -57,6 +61,9 @@ public:
const Plugin::Descriptor *desc, KeyList &kl) const override;
};
+
+} // namespace lmms
+
#endif // LMMS_HAVE_LV2
#endif
diff --git a/include/Lv2UridCache.h b/include/Lv2UridCache.h
index e50fd4bab..bae42d318 100644
--- a/include/Lv2UridCache.h
+++ b/include/Lv2UridCache.h
@@ -31,6 +31,11 @@
#include
+
+namespace lmms
+{
+
+
//! Cached URIDs for fast access (for use in real-time code)
class Lv2UridCache
{
@@ -65,5 +70,8 @@ private:
template<> struct Lv2UridCache::IdForType { static constexpr auto value = Id::atom_Float; };
template<> struct Lv2UridCache::IdForType { static constexpr auto value = Id::atom_Int; };
+
+} // namespace lmms
+
#endif // LMMS_HAVE_LV2
#endif // LV2URIDCACHE_H
diff --git a/include/Lv2UridMap.h b/include/Lv2UridMap.h
index 39cfcc44f..9db9cb0c2 100644
--- a/include/Lv2UridMap.h
+++ b/include/Lv2UridMap.h
@@ -35,6 +35,11 @@
#include
#include
+
+namespace lmms
+{
+
+
/**
* Complete implementation of the Lv2 Urid Map extension
*/
@@ -66,5 +71,8 @@ public:
LV2_URID_Unmap* unmapFeature() { return &m_unmapFeature; }
};
+
+} // namespace lmms
+
#endif // LMMS_HAVE_LV2
#endif // LV2URIDMAP_H
diff --git a/include/Lv2ViewBase.h b/include/Lv2ViewBase.h
index 6eafbde88..74a0bd876 100644
--- a/include/Lv2ViewBase.h
+++ b/include/Lv2ViewBase.h
@@ -35,10 +35,23 @@
#include "lmms_export.h"
#include "Lv2Basics.h"
+
+class QPushButton;
+class QMdiSubWindow;
+
+namespace lmms
+{
+
+
class Lv2Proc;
class Lv2ControlBase;
+namespace gui
+{
+
+class LedCheckBox;
+
//! View for one processor, Lv2ViewBase contains 2 of those for mono plugins
class Lv2ViewProc : public LinkedModelGroupView
{
@@ -61,9 +74,9 @@ protected:
~Lv2ViewBase();
// these widgets must be connected by child widgets
- class QPushButton *m_reloadPluginButton = nullptr;
- class QPushButton *m_toggleUIButton = nullptr;
- class QPushButton *m_helpButton = nullptr;
+ QPushButton* m_reloadPluginButton = nullptr;
+ QPushButton* m_toggleUIButton = nullptr;
+ QPushButton* m_helpButton = nullptr;
void toggleUI();
void toggleHelp(bool visible);
@@ -87,10 +100,13 @@ private:
//! Numbers of controls per row; must be multiple of 2 for mono effects
const int m_colNum = 6;
- class QMdiSubWindow* m_helpWindow = nullptr;
- class LedCheckBox *m_multiChannelLink;
+ QMdiSubWindow* m_helpWindow = nullptr;
};
+} // namespace gui
+
+} // namespace lmms
+
#endif // LMMS_HAVE_LV2
#endif // LV2VIEWBASE_H
diff --git a/include/MainApplication.h b/include/MainApplication.h
index d28900213..04bc82226 100644
--- a/include/MainApplication.h
+++ b/include/MainApplication.h
@@ -34,6 +34,11 @@
#include
#endif
+
+namespace lmms::gui
+{
+
+
#if defined(LMMS_BUILD_WIN32)
class MainApplication : public QApplication, public QAbstractNativeEventFilter
#else
@@ -56,4 +61,7 @@ private:
QString m_queuedFile;
};
+
+} // namespace lmms::gui
+
#endif // MAINAPPLICATION_H
diff --git a/include/MainWindow.h b/include/MainWindow.h
index 145023161..8fbc20e6a 100644
--- a/include/MainWindow.h
+++ b/include/MainWindow.h
@@ -37,10 +37,18 @@ class QDomElement;
class QGridLayout;
class QMdiArea;
+namespace lmms
+{
+
class ConfigManager;
+
+namespace gui
+{
+
class PluginView;
class SubWindow;
class ToolButton;
+class GuiApplication;
class MainWindow : public QMainWindow
@@ -250,4 +258,9 @@ signals:
} ;
+
+} // namespace gui
+
+} // namespace lmms
+
#endif
diff --git a/include/MemoryHelper.h b/include/MemoryHelper.h
index f5c5bf11b..1def9d9c4 100644
--- a/include/MemoryHelper.h
+++ b/include/MemoryHelper.h
@@ -27,6 +27,10 @@
#include
+namespace lmms
+{
+
+
/**
* Helper class to alocate aligned memory and free it.
*/
@@ -40,5 +44,8 @@ public:
private:
};
+
+} // namespace lmms
+
#endif
diff --git a/include/MemoryManager.h b/include/MemoryManager.h
index a5899d922..014071617 100644
--- a/include/MemoryManager.h
+++ b/include/MemoryManager.h
@@ -32,6 +32,10 @@
#include "lmms_export.h"
+namespace lmms
+{
+
+
class LMMS_EXPORT MemoryManager
{
public:
@@ -99,4 +103,7 @@ void MM_FREE(T* ptr)
MemoryManager::free(ptr);
}
+
+} // namespace lmms
+
#endif
diff --git a/include/MeterDialog.h b/include/MeterDialog.h
index da254c7c7..e606a4482 100644
--- a/include/MeterDialog.h
+++ b/include/MeterDialog.h
@@ -30,6 +30,9 @@
#include "ModelView.h"
+namespace lmms::gui
+{
+
class LcdSpinBox;
@@ -49,4 +52,6 @@ private:
} ;
+} // namespace lmms::gui
+
#endif
diff --git a/include/MeterModel.h b/include/MeterModel.h
index 2b98bed0b..bcd3fa2b2 100644
--- a/include/MeterModel.h
+++ b/include/MeterModel.h
@@ -27,6 +27,9 @@
#include "AutomatableModel.h"
+namespace lmms
+{
+
class MeterModel : public Model
{
@@ -62,4 +65,7 @@ private:
} ;
+
+} // namespace lmms
+
#endif
diff --git a/include/MicroTimer.h b/include/MicroTimer.h
index 2026619e2..2eaf28b97 100644
--- a/include/MicroTimer.h
+++ b/include/MicroTimer.h
@@ -27,6 +27,9 @@
#include
+namespace lmms
+{
+
class MicroTimer
{
using time_point = std::chrono::steady_clock::time_point;
@@ -43,4 +46,6 @@ private:
} ;
+} // namespace lmms
+
#endif
diff --git a/include/Microtuner.h b/include/Microtuner.h
index 9ac732817..934739ff5 100644
--- a/include/Microtuner.h
+++ b/include/Microtuner.h
@@ -29,6 +29,9 @@
#include "ComboBoxModel.h"
#include "JournallingObject.h"
+namespace lmms
+{
+
class LMMS_EXPORT Microtuner : public Model, public JournallingObject
{
Q_OBJECT
@@ -68,4 +71,6 @@ private:
};
+} // namespace lmms
+
#endif
diff --git a/include/MicrotunerConfig.h b/include/MicrotunerConfig.h
index 58752026c..690587dd5 100644
--- a/include/MicrotunerConfig.h
+++ b/include/MicrotunerConfig.h
@@ -35,6 +35,10 @@
class QLineEdit;
class QPlainTextEdit;
+namespace lmms::gui
+{
+
+
class LMMS_EXPORT MicrotunerConfig : public QWidget, public SerializingObject
{
Q_OBJECT
@@ -89,4 +93,7 @@ private:
FloatModel m_baseFreqModel; //!< model for spinbox of currently edited base note frequency
};
+
+} // namespace lmms::gui
+
#endif
diff --git a/include/Midi.h b/include/Midi.h
index b922ac41f..9a97ae6e4 100644
--- a/include/Midi.h
+++ b/include/Midi.h
@@ -28,6 +28,10 @@
#include "lmms_basics.h"
+namespace lmms
+{
+
+
enum MidiEventTypes
{
// messages
@@ -137,4 +141,7 @@ const int MidiMinPanning = -128;
const int MidiMinPitchBend = 0;
const int MidiMaxPitchBend = 16383;
+
+} // namespace lmms
+
#endif
diff --git a/include/MidiAlsaRaw.h b/include/MidiAlsaRaw.h
index 60bf1e685..3ab2b8af7 100644
--- a/include/MidiAlsaRaw.h
+++ b/include/MidiAlsaRaw.h
@@ -40,6 +40,9 @@
struct pollfd;
+namespace lmms
+{
+
class MidiAlsaRaw : public QThread, public MidiClientRaw
{
Q_OBJECT
@@ -77,6 +80,9 @@ private:
} ;
-#endif
+
+} // namespace lmms
+
+#endif // LMMS_HAVE_ALSA
#endif
diff --git a/include/MidiAlsaSeq.h b/include/MidiAlsaSeq.h
index bbb3f7242..8a2d3a098 100644
--- a/include/MidiAlsaSeq.h
+++ b/include/MidiAlsaSeq.h
@@ -42,6 +42,10 @@
struct pollfd;
+namespace lmms
+{
+
+
class MidiAlsaSeq : public QThread, public MidiClient
{
Q_OBJECT
@@ -113,7 +117,7 @@ public:
private slots:
- void changeQueueTempo( bpm_t _bpm );
+ void changeQueueTempo( lmms::bpm_t _bpm );
void updatePortList();
@@ -149,7 +153,10 @@ signals:
} ;
-#endif
+
+} // namespace lmms
+
+#endif // LMMS_HAVE_ALSA
#endif
diff --git a/include/MidiApple.h b/include/MidiApple.h
index 4ea4805e5..d2a901698 100644
--- a/include/MidiApple.h
+++ b/include/MidiApple.h
@@ -38,6 +38,10 @@
class QLineEdit;
+namespace lmms
+{
+
+
class MidiApple : public QObject, public MidiClient
{
Q_OBJECT
@@ -146,7 +150,10 @@ signals:
} ;
-#endif
+
+} // namespace lmms
+
+#endif // LMMS_BUILD_APPLE
#endif
diff --git a/include/MidiCCRackView.h b/include/MidiCCRackView.h
index 982e06048..59f1de020 100644
--- a/include/MidiCCRackView.h
+++ b/include/MidiCCRackView.h
@@ -6,9 +6,16 @@
#include "Midi.h"
#include "SerializingObject.h"
-class GroupBox;
+namespace lmms
+{
+
class InstrumentTrack;
+
+namespace gui
+{
+
class Knob;
+class GroupBox;
class MidiCCRackView : public QWidget, public SerializingObject
{
@@ -37,4 +44,9 @@ private:
};
+
+} // namespace gui
+
+} // namespace lmms
+
#endif
diff --git a/include/MidiClient.h b/include/MidiClient.h
index 384a664ce..835d2e46a 100644
--- a/include/MidiClient.h
+++ b/include/MidiClient.h
@@ -31,9 +31,13 @@
#include "MidiEvent.h"
+class QObject;
+
+
+namespace lmms
+{
class MidiPort;
-class QObject;
class TimePos;
@@ -167,6 +171,7 @@ private:
} ;
+} // namespace lmms
#endif
diff --git a/include/MidiClip.h b/include/MidiClip.h
index 036f2771c..173ca5699 100644
--- a/include/MidiClip.h
+++ b/include/MidiClip.h
@@ -31,8 +31,17 @@
#include "Note.h"
+namespace lmms
+{
+
+
class InstrumentTrack;
+namespace gui
+{
+class MidiClipView;
+}
+
class LMMS_EXPORT MidiClip : public Clip
{
@@ -100,7 +109,7 @@ public:
bool empty();
- ClipView * createView( TrackView * _tv ) override;
+ gui::ClipView * createView( gui::TrackView * _tv ) override;
using Model::dataChanged;
@@ -136,13 +145,14 @@ private:
MidiClip * adjacentMidiClipByOffset(int offset) const;
- friend class MidiClipView;
+ friend class gui::MidiClipView;
signals:
- void destroyedMidiClip( MidiClip* );
+ void destroyedMidiClip( lmms::MidiClip* );
} ;
+} // namespace lmms
#endif
diff --git a/include/MidiClipView.h b/include/MidiClipView.h
index 82e552a8c..c9f1c3e1e 100644
--- a/include/MidiClipView.h
+++ b/include/MidiClipView.h
@@ -26,12 +26,17 @@
#define MIDI_CLIP_VIEW_H
#include
-
#include "ClipView.h"
+namespace lmms
+{
+
class MidiClip;
-
-
+
+namespace gui
+{
+
+
class MidiClipView : public ClipView
{
Q_OBJECT
@@ -58,7 +63,7 @@ public:
void setMutedNoteBorderColor(QColor const & color) { m_mutedNoteBorderColor = color; }
public slots:
- MidiClip* getMidiClip();
+ lmms::MidiClip* getMidiClip();
void update() override;
@@ -96,7 +101,10 @@ private:
bool m_legacySEPattern;
} ;
-
-
+
+
+} // namespace gui
+
+} // namespace lmms
#endif
diff --git a/include/MidiController.h b/include/MidiController.h
index 74b408f86..533f8ff03 100644
--- a/include/MidiController.h
+++ b/include/MidiController.h
@@ -33,8 +33,16 @@
#include "MidiPort.h"
+namespace lmms
+{
+
class MidiPort;
+namespace gui
+{
+class ControllerConnectionDialog;
+}
+
class MidiController : public Controller, public MidiEventProcessor
{
@@ -61,7 +69,7 @@ public:
public slots:
- ControllerDialog * createDialog( QWidget * _parent ) override;
+ gui::ControllerDialog* createDialog( QWidget * _parent ) override;
void updateName();
@@ -76,10 +84,12 @@ protected:
float m_lastValue;
float m_previousValue;
- friend class ControllerConnectionDialog;
+ friend class gui::ControllerConnectionDialog;
friend class AutoDetectMidiController;
} ;
+} // namespace lmms
+
#endif
diff --git a/include/MidiDummy.h b/include/MidiDummy.h
index f809d3c36..8744c6aa2 100644
--- a/include/MidiDummy.h
+++ b/include/MidiDummy.h
@@ -28,6 +28,10 @@
#include "MidiClient.h"
+namespace lmms
+{
+
+
class MidiDummy : public MidiClientRaw
{
public:
@@ -63,4 +67,6 @@ protected:
} ;
+} // namespace lmms
+
#endif
diff --git a/include/MidiEvent.h b/include/MidiEvent.h
index 29a3c5df6..e73a7d1a8 100644
--- a/include/MidiEvent.h
+++ b/include/MidiEvent.h
@@ -30,6 +30,9 @@
#include "panning_constants.h"
#include "volume.h"
+namespace lmms
+{
+
class MidiEvent
{
public:
@@ -225,4 +228,6 @@ private:
Source m_source;
} ;
+} // namespace lmms
+
#endif
diff --git a/include/MidiEventProcessor.h b/include/MidiEventProcessor.h
index 3ded20430..1398f4b6d 100644
--- a/include/MidiEventProcessor.h
+++ b/include/MidiEventProcessor.h
@@ -29,6 +29,9 @@
#include "MemoryManager.h"
#include "TimePos.h"
+namespace lmms
+{
+
// all classes being able to process MIDI-events should inherit from this
class MidiEventProcessor
{
@@ -48,4 +51,6 @@ public:
} ;
+} // namespace lmms
+
#endif
diff --git a/include/MidiEventToByteSeq.h b/include/MidiEventToByteSeq.h
index fba8cdeb4..f2e36f50a 100644
--- a/include/MidiEventToByteSeq.h
+++ b/include/MidiEventToByteSeq.h
@@ -30,6 +30,10 @@
#include "lmms_export.h"
+
+namespace lmms
+{
+
/**
Write MIDI event into byte sequence.
@@ -44,4 +48,7 @@
std::size_t LMMS_EXPORT writeToByteSeq( const class MidiEvent& ev,
uint8_t* data, std::size_t bufsize );
+
+} // namespace lmms
+
#endif // MIDIEVENTTOBYTESEQ_H
diff --git a/include/MidiJack.h b/include/MidiJack.h
index f12f9cebf..16d09d431 100644
--- a/include/MidiJack.h
+++ b/include/MidiJack.h
@@ -39,10 +39,14 @@
#include "MidiClient.h"
+class QLineEdit;
+
+namespace lmms
+{
+
constexpr size_t JACK_MIDI_BUFFER_MAX = 64; /* events */
class AudioJack;
-class QLineEdit;
class MidiJack : public QThread, public MidiClientRaw
{
@@ -93,6 +97,9 @@ private:
};
+
+} // namespace lmms
+
#endif // LMMS_HAVE_JACK
#endif // MIDIJACK_H
diff --git a/include/MidiOss.h b/include/MidiOss.h
index 68b970bc5..30f78bec1 100644
--- a/include/MidiOss.h
+++ b/include/MidiOss.h
@@ -35,6 +35,9 @@
#include "MidiClient.h"
+namespace lmms
+{
+
class MidiOss : public QThread, public MidiClientRaw
{
@@ -69,7 +72,11 @@ private:
} ;
-#endif
+
+} // namespace lmms
+
+
+#endif // LMMS_HAVE_OSS
#endif
diff --git a/include/MidiPort.h b/include/MidiPort.h
index b057f5d6c..3d3ceffdb 100644
--- a/include/MidiPort.h
+++ b/include/MidiPort.h
@@ -34,11 +34,21 @@
#include "TimePos.h"
#include "AutomatableModel.h"
+namespace lmms
+{
class MidiClient;
class MidiEvent;
class MidiEventProcessor;
+
+namespace gui
+{
+
class MidiPortMenu;
+class ControllerConnectionDialog;
+class InstrumentMidiIOView;
+
+}
// class for abstraction of MIDI-port
@@ -129,8 +139,8 @@ public:
void invalidateCilent();
- MidiPortMenu* m_readablePortsMenu;
- MidiPortMenu* m_writablePortsMenu;
+ gui::MidiPortMenu* m_readablePortsMenu;
+ gui::MidiPortMenu* m_writablePortsMenu;
public slots:
@@ -165,8 +175,8 @@ private:
Map m_writablePorts;
- friend class ControllerConnectionDialog;
- friend class InstrumentMidiIOView;
+ friend class gui::ControllerConnectionDialog;
+ friend class gui::InstrumentMidiIOView;
signals:
@@ -179,5 +189,6 @@ signals:
typedef QList MidiPortList;
+} // namespace lmms
#endif
diff --git a/include/MidiPortMenu.h b/include/MidiPortMenu.h
index ce39c4aac..7f7689edc 100644
--- a/include/MidiPortMenu.h
+++ b/include/MidiPortMenu.h
@@ -33,6 +33,8 @@
class QAction;
+namespace lmms::gui
+{
class MidiPortMenu : public QMenu, public ModelView
{
@@ -57,5 +59,6 @@ private:
} ;
+} // namespace lmms::gui
#endif
diff --git a/include/MidiSetupWidget.h b/include/MidiSetupWidget.h
index fcaa29408..4021db142 100644
--- a/include/MidiSetupWidget.h
+++ b/include/MidiSetupWidget.h
@@ -30,6 +30,10 @@
class QLineEdit;
+namespace lmms::gui
+{
+
+
class MidiSetupWidget : public TabWidget
{
Q_OBJECT
@@ -53,4 +57,7 @@ private:
};
+
+} // namespace lmms::gui
+
#endif
diff --git a/include/MidiSndio.h b/include/MidiSndio.h
index 2042a16ad..07c42186d 100644
--- a/include/MidiSndio.h
+++ b/include/MidiSndio.h
@@ -32,10 +32,15 @@
#include
-
#include "MidiClient.h"
+struct mio_hdl;
+
+namespace lmms
+{
+
+
class MidiSndio : public QThread, public MidiClientRaw
{
Q_OBJECT
@@ -61,10 +66,13 @@ protected:
void run(void) override;
private:
- struct mio_hdl *m_hdl;
+ mio_hdl *m_hdl;
volatile bool m_quit;
} ;
+
+} // namespace lmms
+
#endif /* LMMS_HAVE_SNDIO */
#endif /* _MIDI_SNDIO_H */
diff --git a/include/MidiWinMM.h b/include/MidiWinMM.h
index cbb139983..7cc7f0f77 100644
--- a/include/MidiWinMM.h
+++ b/include/MidiWinMM.h
@@ -38,6 +38,10 @@
class QLineEdit;
+namespace lmms
+{
+
+
class MidiWinMM : public QObject, public MidiClient
{
Q_OBJECT
@@ -141,7 +145,10 @@ signals:
} ;
-#endif
+
+} // namespace lmms
+
+#endif // LMMS_BUILD_WIN32
#endif
diff --git a/include/MixHelpers.h b/include/MixHelpers.h
index 872319f82..6599b40ec 100644
--- a/include/MixHelpers.h
+++ b/include/MixHelpers.h
@@ -27,6 +27,9 @@
#include "lmms_basics.h"
+namespace lmms
+{
+
class ValueBuffer;
namespace MixHelpers
{
@@ -73,7 +76,10 @@ void multiplyAndAddMultiplied( sampleFrame* dst, const sampleFrame* src, float c
/*! \brief Multiply dst by coeffDst and add samples from srcLeft/srcRight multiplied by coeffSrc */
void multiplyAndAddMultipliedJoined( sampleFrame* dst, const sample_t* srcLeft, const sample_t* srcRight, float coeffDst, float coeffSrc, int frames );
-}
+} // namespace MixHelpers
+
+
+} // namespace lmms
#endif
diff --git a/include/Mixer.h b/include/Mixer.h
index 7a6e3d0ff..36aa9f5d0 100644
--- a/include/Mixer.h
+++ b/include/Mixer.h
@@ -34,6 +34,10 @@
#include
+namespace lmms
+{
+
+
class MixerRoute;
typedef QVector MixerRouteVector;
@@ -220,4 +224,6 @@ private:
} ;
+} // namespace lmms
+
#endif
diff --git a/include/MixerLine.h b/include/MixerLine.h
index 4f7f7242f..12ac3df75 100644
--- a/include/MixerLine.h
+++ b/include/MixerLine.h
@@ -23,16 +23,18 @@
*
*/
-#ifndef MIXER_LINE_H
-#define MIXER_LINE_H
+#ifndef MIXERLINE_H
+#define MIXERLINE_H
#include
-
-
-
class QGraphicsView;
class QLineEdit;
+
+namespace lmms::gui
+{
+
+
class Knob;
class LcdWidget;
class MixerView;
@@ -113,4 +115,6 @@ private slots:
};
+} // namespace lmms::gui
+
#endif // MIXERLINE_H
diff --git a/include/MixerLineLcdSpinBox.h b/include/MixerLineLcdSpinBox.h
index 6de8fcb47..7e739093d 100644
--- a/include/MixerLineLcdSpinBox.h
+++ b/include/MixerLineLcdSpinBox.h
@@ -27,6 +27,10 @@
#include "LcdSpinBox.h"
+namespace lmms::gui
+{
+
+
class TrackView;
@@ -49,4 +53,7 @@ private:
TrackView * m_tv;
};
+
+} // namespace lmms::gui
+
#endif
diff --git a/include/MixerView.h b/include/MixerView.h
index 6c586a607..5e63194c9 100644
--- a/include/MixerView.h
+++ b/include/MixerView.h
@@ -38,6 +38,11 @@
#include "EffectRackView.h"
class QButtonGroup;
+
+
+namespace lmms::gui
+{
+
class MixerLine;
class LMMS_EXPORT MixerView : public QWidget, public ModelView,
@@ -131,4 +136,7 @@ private:
friend class MixerChannelView;
} ;
+
+} // namespace lmms::gui
+
#endif
diff --git a/include/Model.h b/include/Model.h
index 623d3a9f9..1c96de21c 100644
--- a/include/Model.h
+++ b/include/Model.h
@@ -30,6 +30,8 @@
#include "lmms_export.h"
+namespace lmms
+{
class LMMS_EXPORT Model : public QObject
{
@@ -88,5 +90,7 @@ signals:
} ;
+} // namespace lmms
+
#endif
diff --git a/include/ModelView.h b/include/ModelView.h
index 7aad9ce7f..a858dc7ec 100644
--- a/include/ModelView.h
+++ b/include/ModelView.h
@@ -28,6 +28,8 @@
#include
#include "Model.h"
+namespace lmms::gui
+{
class LMMS_EXPORT ModelView
{
@@ -81,6 +83,7 @@ private:
} ;
+} // namespace lmms::gui
#endif
diff --git a/include/ModelVisitor.h b/include/ModelVisitor.h
index f9d156e30..cf0740b1c 100644
--- a/include/ModelVisitor.h
+++ b/include/ModelVisitor.h
@@ -25,6 +25,10 @@
#ifndef MODELVISITOR_H
#define MODELVISITOR_H
+namespace lmms
+{
+
+
class AutomatableModel;
class BoolModel;
class IntModel;
@@ -61,4 +65,7 @@ public:
virtual ~ConstModelVisitor();
};
+
+} // namespace lmms
+
#endif // MODELVISITOR_H
diff --git a/include/NStateButton.h b/include/NStateButton.h
index 10cb151ae..ff48593a7 100644
--- a/include/NStateButton.h
+++ b/include/NStateButton.h
@@ -32,6 +32,9 @@
#include "ToolButton.h"
+namespace lmms::gui
+{
+
class NStateButton : public ToolButton
{
@@ -72,4 +75,7 @@ private:
} ;
+
+} // namespace lmms::gui
+
#endif
diff --git a/include/Note.h b/include/Note.h
index 31ba6995e..d6e0b85c2 100644
--- a/include/Note.h
+++ b/include/Note.h
@@ -33,6 +33,11 @@
#include "SerializingObject.h"
#include "TimePos.h"
+
+namespace lmms
+{
+
+
class DetuningHelper;
@@ -247,4 +252,6 @@ private:
typedef QVector NoteVector;
+} // namespace lmms
+
#endif
diff --git a/include/NotePlayHandle.h b/include/NotePlayHandle.h
index 778acd46e..396d00e71 100644
--- a/include/NotePlayHandle.h
+++ b/include/NotePlayHandle.h
@@ -35,6 +35,10 @@
#include "MemoryManager.h"
class QReadWriteLock;
+
+namespace lmms
+{
+
class InstrumentTrack;
class NotePlayHandle;
@@ -359,4 +363,6 @@ private:
};
+} // namespace lmms
+
#endif
diff --git a/include/Oscillator.h b/include/Oscillator.h
index da9bea4eb..e9f64008c 100644
--- a/include/Oscillator.h
+++ b/include/Oscillator.h
@@ -37,6 +37,10 @@
#include "OscillatorConstants.h"
#include "SampleBuffer.h"
+namespace lmms
+{
+
+
class IntModel;
@@ -307,4 +311,6 @@ private:
} ;
+} // namespace lmms
+
#endif
diff --git a/include/OscillatorConstants.h b/include/OscillatorConstants.h
index dcdad8dc4..47b13a875 100644
--- a/include/OscillatorConstants.h
+++ b/include/OscillatorConstants.h
@@ -30,8 +30,9 @@
#include "lmms_basics.h"
-namespace OscillatorConstants
+namespace lmms::OscillatorConstants
{
+
// Limit wavetables to the audible audio spectrum
const int MAX_FREQ = 20000;
// Minimum size of table to have all audible bands for midi note 1 (i.e. 20 000 Hz / 8.176 Hz)
@@ -51,7 +52,8 @@ namespace OscillatorConstants
// - wavetable: a table containing one period of a wave, with frequency content optimized for a specific pitch.
typedef std::array wavetable_t;
typedef std::array waveform_t;
-};
+} // namespace lmms::OscillatorConstants
+
#endif // OSCILLATORCONSTANTS_H
diff --git a/include/Oscilloscope.h b/include/Oscilloscope.h
index 4072df478..4404fd98b 100644
--- a/include/Oscilloscope.h
+++ b/include/Oscilloscope.h
@@ -31,6 +31,9 @@
#include "lmms_basics.h"
+namespace lmms::gui
+{
+
class Oscilloscope : public QWidget
{
@@ -57,7 +60,7 @@ protected:
protected slots:
- void updateAudioBuffer( const surroundSampleFrame * buffer );
+ void updateAudioBuffer( const lmms::surroundSampleFrame * buffer );
private:
QColor const & determineLineColor(float level) const;
@@ -73,4 +76,7 @@ private:
QColor m_clippingColor;
} ;
+
+} // namespace lmms::gui
+
#endif // OSCILLOSCOPE_H
diff --git a/include/OutputSettings.h b/include/OutputSettings.h
index 4a375d244..03e3333ac 100644
--- a/include/OutputSettings.h
+++ b/include/OutputSettings.h
@@ -28,6 +28,11 @@
#include "lmms_basics.h"
+
+namespace lmms
+{
+
+
class OutputSettings
{
public:
@@ -112,4 +117,7 @@ private:
double m_compressionLevel;
};
+
+} // namespace lmms
+
#endif
diff --git a/include/PathUtil.h b/include/PathUtil.h
index b1eec517e..8b1ef1097 100644
--- a/include/PathUtil.h
+++ b/include/PathUtil.h
@@ -1,3 +1,27 @@
+/*
+ * PathUtil.h
+ *
+ * Copyright (c) 2019-2022 Spekular
+ *
+ * This file is part of LMMS - https://lmms.io
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program (see COPYING); if not, write to the
+ * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301 USA.
+ *
+ */
+
#ifndef PATHUTIL_H
#define PATHUTIL_H
@@ -5,7 +29,7 @@
#include
-namespace PathUtil
+namespace lmms::PathUtil
{
enum class Base { Absolute, ProjectDir, FactorySample, UserSample, UserVST, Preset,
UserLADSPA, DefaultLADSPA, UserSoundfont, DefaultSoundfont, UserGIG, DefaultGIG,
@@ -44,6 +68,6 @@ namespace PathUtil
//! Defaults to an absolute path if all bases fail.
QString LMMS_EXPORT toShortestRelative(const QString & input, bool allowLocal = false);
-}
+} // namespace lmms::PathUtil
#endif
diff --git a/include/PatternClip.h b/include/PatternClip.h
index a6543267b..a1beb00f5 100644
--- a/include/PatternClip.h
+++ b/include/PatternClip.h
@@ -28,6 +28,9 @@
#include "Clip.h"
+namespace lmms
+{
+
/*! \brief Dummy clip for PatternTracks
*
* Only used in the Song (Editor). See PatternStore.h for more info.
@@ -47,12 +50,13 @@ public:
int patternIndex();
- ClipView * createView( TrackView * _tv ) override;
+ gui::ClipView * createView( gui::TrackView * _tv ) override;
private:
friend class PatternClipView;
} ;
+} // namespace lmms
#endif
diff --git a/include/PatternClipView.h b/include/PatternClipView.h
index 9cda17688..d66de70f0 100644
--- a/include/PatternClipView.h
+++ b/include/PatternClipView.h
@@ -31,8 +31,13 @@
#include "ClipView.h"
+namespace lmms
+{
+
class PatternClip;
+namespace gui
+{
class PatternClipView : public ClipView
{
@@ -65,5 +70,8 @@ private:
} ;
+} // namespace gui
+
+} // namespace lmms
#endif
diff --git a/include/PatternEditor.h b/include/PatternEditor.h
index 03861c1b0..15b141580 100644
--- a/include/PatternEditor.h
+++ b/include/PatternEditor.h
@@ -30,8 +30,14 @@
#include "Editor.h"
#include "TrackContainerView.h"
+namespace lmms
+{
class PatternStore;
+
+namespace gui
+{
+
class ComboBox;
@@ -69,11 +75,9 @@ private:
};
-
-
class PatternEditorWindow : public Editor
{
- Q_OBJECT
+Q_OBJECT
public:
PatternEditorWindow(PatternStore* ps);
~PatternEditorWindow();
@@ -90,4 +94,9 @@ private:
ComboBox* m_patternComboBox;
};
+
+} // namespace gui
+
+} // namespace lmms
+
#endif
diff --git a/include/PatternStore.h b/include/PatternStore.h
index e11328c16..39b65d1c1 100644
--- a/include/PatternStore.h
+++ b/include/PatternStore.h
@@ -29,6 +29,13 @@
#include "TrackContainer.h"
#include "ComboBoxModel.h"
+namespace lmms
+{
+
+namespace gui
+{
+ class PatternEditorWindow;
+}
/*
* PatternStore is the backend of Pattern Editor:
@@ -100,9 +107,11 @@ private:
// Where the pattern selection combo box is
- friend class PatternEditorWindow;
+ friend class gui::PatternEditorWindow;
} ;
+} // namespace lmms
+
#endif
diff --git a/include/PatternTrack.h b/include/PatternTrack.h
index c594b4cf5..a8e7a505c 100644
--- a/include/PatternTrack.h
+++ b/include/PatternTrack.h
@@ -31,9 +31,19 @@
#include "Track.h"
-class TrackLabelButton;
+namespace lmms
+{
+
class TrackContainer;
+namespace gui
+{
+
+class TrackLabelButton;
+class PatternTrackView;
+
+} // namespace gui
+
/*! Track type used in the Song (Editor) to reference a pattern in the PatternStore */
class LMMS_EXPORT PatternTrack : public Track
@@ -44,8 +54,9 @@ public:
virtual ~PatternTrack();
virtual bool play( const TimePos & _start, const fpp_t _frames,
+
const f_cnt_t _frame_base, int _clip_num = -1 ) override;
- TrackView * createView( TrackContainerView* tcv ) override;
+ gui::TrackView * createView( gui::TrackContainerView* tcv ) override;
Clip* createClip(const TimePos & pos) override;
virtual void saveTrackSpecificSettings( QDomDocument & _doc,
@@ -86,9 +97,11 @@ private:
typedef QMap infoMap;
static infoMap s_infoMap;
- friend class PatternTrackView;
+ friend class gui::PatternTrackView;
} ;
+} // namespace lmms
+
#endif
diff --git a/include/PatternTrackView.h b/include/PatternTrackView.h
index ecc209f04..41f8fac33 100644
--- a/include/PatternTrackView.h
+++ b/include/PatternTrackView.h
@@ -29,7 +29,14 @@
#include "TrackView.h"
+namespace lmms
+{
+
class PatternTrack;
+
+namespace gui
+{
+
class TrackLabelButton;
@@ -59,4 +66,8 @@ private:
+} // namespace gui
+
+} // namespace lmms
+
#endif
diff --git a/include/PeakController.h b/include/PeakController.h
index 341d4f47a..d50c0b06f 100644
--- a/include/PeakController.h
+++ b/include/PeakController.h
@@ -30,6 +30,10 @@
class QWidget;
+namespace lmms
+{
+
+
class PeakControllerEffect;
typedef QVector PeakControllerEffectVector;
@@ -56,7 +60,7 @@ public:
public slots:
- ControllerDialog * createDialog( QWidget * _parent ) override;
+ gui::ControllerDialog * createDialog( QWidget * _parent ) override;
void handleDestroyedEffect( );
void updateCoeffs();
@@ -80,7 +84,8 @@ private:
bool m_coeffNeedsUpdate;
} ;
-
+namespace gui
+{
class PeakControllerDialog : public ControllerDialog
{
@@ -96,6 +101,11 @@ protected:
PeakController * m_peakController;
-} ;
+};
+
+
+} // namespace gui
+
+} // namespace lmms
#endif
diff --git a/include/PerfLog.h b/include/PerfLog.h
index 5d1efc14c..b8cc35f45 100644
--- a/include/PerfLog.h
+++ b/include/PerfLog.h
@@ -28,6 +28,10 @@
#include
#include
+namespace lmms
+{
+
+
/// \brief CPU time point
///
/// Represents a point in CPU time (not wall-clock time) intended for measuring
@@ -70,4 +74,7 @@ class PerfLogTimer
PerfTime begin_time;
};
+
+} // namespace lmms
+
#endif
diff --git a/include/Piano.h b/include/Piano.h
index ece3abb06..b9f5e9797 100644
--- a/include/Piano.h
+++ b/include/Piano.h
@@ -28,6 +28,10 @@
#include "Note.h"
#include "Model.h"
+namespace lmms
+{
+
+
class InstrumentTrack;
class MidiEventProcessor;
@@ -82,5 +86,8 @@ private:
} ;
+
+} // namespace lmms
+
#endif
diff --git a/include/PianoRoll.h b/include/PianoRoll.h
index f00e8a79c..73a2e5b76 100644
--- a/include/PianoRoll.h
+++ b/include/PianoRoll.h
@@ -47,13 +47,23 @@ class QString;
class QMenu;
class QToolButton;
-class ComboBox;
+namespace lmms
+{
+
+
class NotePlayHandle;
class MidiClip;
+
+
+namespace gui
+{
+
+class ComboBox;
class PositionLine;
class TextFloat;
class TimeLineWidget;
+
class PianoRoll : public QWidget
{
Q_OBJECT
@@ -186,8 +196,8 @@ protected slots:
bool toggleStepRecording();
void stop();
- void startRecordNote( const Note & n );
- void finishRecordNote( const Note & n );
+ void startRecordNote( const lmms::Note & n );
+ void finishRecordNote( const lmms::Note & n );
void horScrolled( int new_pos );
void verScrolled( int new_pos );
@@ -199,23 +209,23 @@ protected slots:
void pasteNotes();
bool deleteSelectedNotes();
- void updatePosition(const TimePos & t );
- void updatePositionAccompany(const TimePos & t );
- void updatePositionStepRecording(const TimePos & t );
+ void updatePosition(const lmms::TimePos & t );
+ void updatePositionAccompany(const lmms::TimePos & t );
+ void updatePositionStepRecording(const lmms::TimePos & t );
void zoomingChanged();
void zoomingYChanged();
void quantizeChanged();
void noteLengthChanged();
void keyChanged();
- void quantizeNotes(QuantizeActions mode = QuantizeBoth);
+ void quantizeNotes(lmms::gui::PianoRoll::QuantizeActions mode = QuantizeBoth);
void updateSemiToneMarkerMenu();
void changeNoteEditMode( int i );
void markSemiTone(int i, bool fromMenu = true);
- void hideMidiClip( MidiClip* clip );
+ void hideMidiClip( lmms::MidiClip* clip );
void selectRegionFromPixels( int xStart, int xEnd );
@@ -484,7 +494,7 @@ private:
QBrush m_blackKeyDisabledBackground;
signals:
- void positionChanged( const TimePos & );
+ void positionChanged( const lmms::TimePos & );
} ;
@@ -559,4 +569,8 @@ private:
};
+} // namespace gui
+
+} // namespace lmms
+
#endif
diff --git a/include/PianoView.h b/include/PianoView.h
index 888549431..7a6ab6479 100644
--- a/include/PianoView.h
+++ b/include/PianoView.h
@@ -31,8 +31,13 @@
#include "AutomatableModel.h"
#include "ModelView.h"
+namespace lmms
+{
+
class Piano;
+namespace gui
+{
class PianoView : public QWidget, public ModelView
{
@@ -94,4 +99,8 @@ signals:
} ;
+} // namespace gui
+
+} // namespace lmms
+
#endif
diff --git a/include/Pitch.h b/include/Pitch.h
index 17de48b94..3f58785ea 100644
--- a/include/Pitch.h
+++ b/include/Pitch.h
@@ -27,6 +27,10 @@
#include
+namespace lmms
+{
+
+
typedef int16_t pitch_t;
constexpr pitch_t CentsPerSemitone = 100;
@@ -34,4 +38,7 @@ constexpr pitch_t MinPitchDefault = -CentsPerSemitone;
constexpr pitch_t MaxPitchDefault = CentsPerSemitone;
constexpr pitch_t DefaultPitch = 0;
+
+} // namespace lmms
+
#endif
diff --git a/include/PixmapButton.h b/include/PixmapButton.h
index e2fb58885..f4062826d 100644
--- a/include/PixmapButton.h
+++ b/include/PixmapButton.h
@@ -30,6 +30,9 @@
#include "AutomatableButton.h"
+namespace lmms::gui
+{
+
class LMMS_EXPORT PixmapButton : public AutomatableButton
{
@@ -62,4 +65,7 @@ private:
} ;
+
+} // namespace lmms::gui
+
#endif
diff --git a/include/PlayHandle.h b/include/PlayHandle.h
index 6de358acd..53457f916 100644
--- a/include/PlayHandle.h
+++ b/include/PlayHandle.h
@@ -36,6 +36,9 @@
class QThread;
+namespace lmms
+{
+
class Track;
class AudioPort;
@@ -162,5 +165,6 @@ private:
typedef QList PlayHandleList;
typedef QList ConstPlayHandleList;
+} // namespace lmms
#endif
diff --git a/include/Plugin.h b/include/Plugin.h
index fb9ebd567..b50d81116 100644
--- a/include/Plugin.h
+++ b/include/Plugin.h
@@ -35,9 +35,18 @@
class QWidget;
-class PixmapLoader;
-class PluginView;
+namespace lmms
+{
+
class AutomatableModel;
+class PixmapLoader;
+
+namespace gui
+{
+
+class PluginView;
+
+}
/**
Abstract representation of a plugin
@@ -286,11 +295,11 @@ public:
static Plugin * instantiate(const QString& pluginName, Model * parent, void *data);
//! Create a view for the model
- PluginView * createView( QWidget * parent );
+ gui::PluginView * createView( QWidget * parent );
protected:
//! Create a view for the model
- virtual PluginView* instantiateView( QWidget * ) = 0;
+ virtual gui::PluginView* instantiateView( QWidget * ) = 0;
void collectErrorForUI( QString errMsg );
@@ -305,4 +314,6 @@ private:
} ;
+} // namespace lmms
+
#endif
diff --git a/include/PluginBrowser.h b/include/PluginBrowser.h
index 9c74ed643..0b2a59d15 100644
--- a/include/PluginBrowser.h
+++ b/include/PluginBrowser.h
@@ -33,6 +33,8 @@
class QLineEdit;
class QTreeWidget;
+namespace lmms::gui
+{
class PluginBrowser : public SideBarWidget
{
@@ -81,4 +83,6 @@ private:
};
+} // namespace lmms::gui
+
#endif
diff --git a/include/PluginFactory.h b/include/PluginFactory.h
index 80627f351..c0e2ff8e0 100644
--- a/include/PluginFactory.h
+++ b/include/PluginFactory.h
@@ -38,6 +38,9 @@
class QLibrary;
+namespace lmms
+{
+
class LMMS_EXPORT PluginFactory
{
public:
@@ -105,4 +108,7 @@ private:
//Short-hand function
LMMS_EXPORT PluginFactory* getPluginFactory();
+
+} // namespace lmms
+
#endif // PLUGINFACTORY_H
diff --git a/include/PluginIssue.h b/include/PluginIssue.h
index 8bfad5bf1..f0fa275f3 100644
--- a/include/PluginIssue.h
+++ b/include/PluginIssue.h
@@ -28,6 +28,10 @@
#include
#include
+
+namespace lmms
+{
+
//! Types of issues that can cause LMMS to not load a plugin
//! LMMS Plugins should use this to indicate errors
enum PluginIssueType
@@ -79,4 +83,7 @@ public:
QDebug operator<<(QDebug stream, const PluginIssue& iss);
+} // namespace lmms
+
+
#endif // PLUGINISSUE_H
diff --git a/include/PluginView.h b/include/PluginView.h
index 476d65acf..2c06b9ba2 100644
--- a/include/PluginView.h
+++ b/include/PluginView.h
@@ -30,6 +30,8 @@
#include "Plugin.h"
#include "ModelView.h"
+namespace lmms::gui
+{
class LMMS_EXPORT PluginView : public QWidget, public ModelView
{
@@ -43,4 +45,6 @@ public:
} ;
+} // namespace lmms::gui
+
#endif
diff --git a/include/PositionLine.h b/include/PositionLine.h
index e9ec8c3d5..cc1313e57 100644
--- a/include/PositionLine.h
+++ b/include/PositionLine.h
@@ -28,6 +28,9 @@
#include
+namespace lmms::gui
+{
+
class PositionLine : public QWidget
{
Q_OBJECT
@@ -46,4 +49,6 @@ private:
QColor m_lineColor;
};
+} // namespace lmms::gui
+
#endif
diff --git a/include/PresetPreviewPlayHandle.h b/include/PresetPreviewPlayHandle.h
index fcdecf6b8..9dd151330 100644
--- a/include/PresetPreviewPlayHandle.h
+++ b/include/PresetPreviewPlayHandle.h
@@ -28,6 +28,9 @@
#include "NotePlayHandle.h"
+namespace lmms
+{
+
class DataFile;
class InstrumentTrack;
@@ -64,4 +67,6 @@ private:
} ;
+} // namespace lmms
+
#endif
diff --git a/include/ProjectJournal.h b/include/ProjectJournal.h
index f8b9e642b..69e0752cb 100644
--- a/include/ProjectJournal.h
+++ b/include/ProjectJournal.h
@@ -31,6 +31,11 @@
#include "lmms_basics.h"
#include "DataFile.h"
+
+namespace lmms
+{
+
+
class JournallingObject;
@@ -119,5 +124,7 @@ private:
} ;
+} // namespace lmms
+
#endif
diff --git a/include/ProjectNotes.h b/include/ProjectNotes.h
index 03add4b04..fda5c9b51 100644
--- a/include/ProjectNotes.h
+++ b/include/ProjectNotes.h
@@ -35,6 +35,9 @@ class QComboBox;
class QTextCharFormat;
class QTextEdit;
+namespace lmms::gui
+{
+
class LMMS_EXPORT ProjectNotes : public QMainWindow, public SerializingObject
{
@@ -89,4 +92,6 @@ private:
} ;
+} // namespace lmms::gui
+
#endif
diff --git a/include/ProjectRenderer.h b/include/ProjectRenderer.h
index ce5d6af3c..bd61c4730 100644
--- a/include/ProjectRenderer.h
+++ b/include/ProjectRenderer.h
@@ -32,6 +32,10 @@
#include "lmms_export.h"
+namespace lmms
+{
+
+
class LMMS_EXPORT ProjectRenderer : public QThread
{
Q_OBJECT
@@ -96,4 +100,7 @@ private:
} ;
+
+} // namespace lmms
+
#endif
diff --git a/include/ProjectVersion.h b/include/ProjectVersion.h
index d72704ba3..5be259c97 100644
--- a/include/ProjectVersion.h
+++ b/include/ProjectVersion.h
@@ -32,6 +32,10 @@
#include
+namespace lmms
+{
+
+
/*! \brief Version number parsing and comparison
*
* Parses and compares version information. i.e. "1.0.3" < "1.0.10"
@@ -75,4 +79,7 @@ inline bool operator>=(const ProjectVersion & v1, const ProjectVersion & v2) { r
inline bool operator==(const ProjectVersion & v1, const ProjectVersion & v2) { return ProjectVersion::compare(v1, v2) == 0; }
inline bool operator!=(const ProjectVersion & v1, const ProjectVersion & v2) { return ProjectVersion::compare(v1, v2) != 0; }
+
+} // namespace lmms
+
#endif
diff --git a/include/QuadratureLfo.h b/include/QuadratureLfo.h
index b530937b0..42d4d32c0 100644
--- a/include/QuadratureLfo.h
+++ b/include/QuadratureLfo.h
@@ -27,6 +27,10 @@
#include "lmms_math.h"
+namespace lmms
+{
+
+
class QuadratureLfo
{
public:
@@ -93,4 +97,7 @@ private:
};
+
+} // namespace lmms
+
#endif // QUADRATURELFO_H
diff --git a/include/RaiiHelpers.h b/include/RaiiHelpers.h
index bebd91ff9..0cfa2c4ac 100644
--- a/include/RaiiHelpers.h
+++ b/include/RaiiHelpers.h
@@ -27,6 +27,10 @@
#include
#include
+
+namespace lmms
+{
+
template
class NullableResource
{
@@ -57,4 +61,6 @@ struct NullableResourceDeleter
template
using UniqueNullableResource = std::unique_ptr>;
+} // namespace lmms
+
#endif // RAII_HELPERS_H
diff --git a/include/RecentProjectsMenu.h b/include/RecentProjectsMenu.h
index b3837ee2e..ac3638298 100644
--- a/include/RecentProjectsMenu.h
+++ b/include/RecentProjectsMenu.h
@@ -1,8 +1,36 @@
+/*
+ * RecentProjectsMenu.h
+ *
+ * Copyright (c) 2004-2022 Tobias Doerffel
+ *
+ * This file is part of LMMS - https://lmms.io
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program (see COPYING); if not, write to the
+ * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301 USA.
+ *
+ */
+
#ifndef RECENTPROJECTSMENU_H
#define RECENTPROJECTSMENU_H
#include
+namespace lmms::gui
+{
+
+
class RecentProjectsMenu : public QMenu
{
Q_OBJECT
@@ -14,4 +42,7 @@ private slots:
void openProject(QAction * _action );
};
+
+} // namespace lmms::gui
+
#endif // RECENTPROJECTSMENU_H
diff --git a/include/RemotePlugin.h b/include/RemotePlugin.h
index 615cce2c8..ec08896e2 100644
--- a/include/RemotePlugin.h
+++ b/include/RemotePlugin.h
@@ -28,6 +28,10 @@
#include "RemotePluginBase.h"
#include "SharedMemory.h"
+namespace lmms
+{
+
+
class RemotePlugin;
class ProcessWatcher : public QThread
@@ -70,7 +74,7 @@ public:
return true;
#else
return m_process.state() != QProcess::NotRunning;
-#endif
+#endif // DEBUG_REMOTE_PLUGIN
}
bool init( const QString &pluginExecutable, bool waitForInitDoneMsg, QStringList extraArgs = {} );
@@ -166,7 +170,7 @@ private:
#ifndef SYNC_WITH_SHM_FIFO
int m_server;
QString m_socketFile;
-#endif
+#endif // not SYNC_WITH_SHM_FIFO
friend class ProcessWatcher;
@@ -176,9 +180,13 @@ private slots:
void processErrored(QProcess::ProcessError err );
} ;
+
LMMS_EXPORT inline std::string QSTR_TO_STDSTR(QString const& qstr)
{
return qstr.toStdString();
}
+
+} // namespace lmms
+
#endif // REMOTE_PLUGIN_H
diff --git a/include/RemotePluginBase.h b/include/RemotePluginBase.h
index a5646ad11..4d5627a92 100644
--- a/include/RemotePluginBase.h
+++ b/include/RemotePluginBase.h
@@ -47,11 +47,11 @@
#include
#include
#include
-#else
+#else // !(LMMS_HAVE_SYS_IPC_H && LMMS_HAVE_SEMAPHORE_H)
#ifdef LMMS_HAVE_UNISTD_H
#include
#endif
-#endif
+#endif // !(LMMS_HAVE_SYS_IPC_H && LMMS_HAVE_SEMAPHORE_H)
#ifdef LMMS_HAVE_LOCALE_H
#include
@@ -69,9 +69,9 @@
#ifndef SYNC_WITH_SHM_FIFO
#include
#include
-#endif
+#endif // SYNC_WITH_SHM_FIFO
-#else
+#else // BUILD_REMOTE_PLUGIN_CLIENT
#include "lmms_export.h"
#include
#include
@@ -81,13 +81,20 @@
#ifndef SYNC_WITH_SHM_FIFO
#include
#include
+#endif // SYNC_WITH_SHM_FIFO
+
+#endif // BUILD_REMOTE_PLUGIN_CLIENT
+
+#ifdef SYNC_WITH_SHM_FIFO
+#include "SharedMemory.h"
#endif
-#endif
+namespace lmms
+{
+
#ifdef SYNC_WITH_SHM_FIFO
-#include "SharedMemory.h"
// sometimes we need to exchange bigger messages (e.g. for VST parameter dumps)
// so set a usable value here
@@ -669,4 +676,6 @@ private:
} ;
+} // namespace lmms
+
#endif // REMOTE_PLUGIN_BASE_H
diff --git a/include/RemotePluginClient.h b/include/RemotePluginClient.h
index 94f05af0f..69a9d41e9 100644
--- a/include/RemotePluginClient.h
+++ b/include/RemotePluginClient.h
@@ -40,6 +40,9 @@
#include "SharedMemory.h"
+namespace lmms
+{
+
class RemotePluginClient : public RemotePluginBase
{
public:
@@ -355,4 +358,6 @@ void RemotePluginClient::doProcessing()
}
+} // namespace lmms
+
#endif // REMOTE_PLUGIN_CLIENT_H
diff --git a/include/RenameDialog.h b/include/RenameDialog.h
index 8f526badd..c1e30b9d8 100644
--- a/include/RenameDialog.h
+++ b/include/RenameDialog.h
@@ -32,6 +32,8 @@
class QLineEdit;
+namespace lmms::gui
+{
class RenameDialog : public QDialog
{
@@ -58,4 +60,6 @@ private:
} ;
+} // namespace lmms::gui
+
#endif
diff --git a/include/RenderManager.h b/include/RenderManager.h
index 935983702..ff59cb953 100644
--- a/include/RenderManager.h
+++ b/include/RenderManager.h
@@ -32,6 +32,10 @@
#include "OutputSettings.h"
+namespace lmms
+{
+
+
class RenderManager : public QObject
{
Q_OBJECT
@@ -78,4 +82,7 @@ private:
QVector