-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make
EffectControlDialog
inherit PluginView
Before this commit, `EffectView` inherits `PluginView` and `EffectControlDialog` inherits `ModelView`. This commit switches those base classes. The reason is that we previously had no base class for the 2 classes `InstrumentView` and `EffectControlDialog`: `PluginView` was the base class for `InstrumentView`, which does not contain the models for e.g. the "Volume" knob, and for `EffectView`, which does contain models for e.g. the "D/W" knob. This makes it questionable whether it is good that `Effect` contains an `m_wetDryModel`, but `Instrument` contains no "volume model" - but this commit does not fix this. Notes: 1. This commit should be a no-op, but isn't exactly: While before, `EffectControlDialog` passed `EffectControls*` to the `ModelView`, now, it passes `Effect*` to the `PluginView`, which passes it directly to the `ModelView`. 2. The function `Effect::instantiateView(QWidget*)` seemed to be never executed. Nonetheless, it needs an implementation in order to provide a virtual method - we thus replace the content of this function with an `assert(false)`.
- Loading branch information
1 parent
97b61bb
commit 833108a
Showing
7 changed files
with
31 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters