-
-
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.
Merge branch 'master' into sample-thumbnail
- Loading branch information
Showing
57 changed files
with
640 additions
and
611 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* MixerChannelView.h - the mixer channel view | ||
* MixerChannelView.h | ||
* | ||
* Copyright (c) 2022 saker <[email protected]> | ||
* Copyright (c) 2024 saker | ||
* | ||
* This file is part of LMMS - https://lmms.io | ||
* | ||
|
@@ -22,8 +22,8 @@ | |
* | ||
*/ | ||
|
||
#ifndef MIXER_CHANNEL_VIEW_H | ||
#define MIXER_CHANNEL_VIEW_H | ||
#ifndef LMMS_GUI_MIXER_CHANNEL_VIEW_H | ||
#define LMMS_GUI_MIXER_CHANNEL_VIEW_H | ||
|
||
#include <QGraphicsView> | ||
#include <QLabel> | ||
|
@@ -46,8 +46,6 @@ class MixerChannel; | |
namespace lmms::gui { | ||
class PeakIndicator; | ||
|
||
constexpr int MIXER_CHANNEL_INNER_BORDER_SIZE = 3; | ||
constexpr int MIXER_CHANNEL_OUTER_BORDER_SIZE = 1; | ||
|
||
class MixerChannelView : public QWidget | ||
{ | ||
|
@@ -65,25 +63,24 @@ class MixerChannelView : public QWidget | |
void mouseDoubleClickEvent(QMouseEvent*) override; | ||
bool eventFilter(QObject* dist, QEvent* event) override; | ||
|
||
int channelIndex() const; | ||
void reset(); | ||
int channelIndex() const { return m_channelIndex; } | ||
void setChannelIndex(int index); | ||
|
||
QBrush backgroundActive() const; | ||
void setBackgroundActive(const QBrush& c); | ||
|
||
QColor strokeOuterActive() const; | ||
void setStrokeOuterActive(const QColor& c); | ||
QBrush backgroundActive() const { return m_backgroundActive; } | ||
void setBackgroundActive(const QBrush& c) { m_backgroundActive = c; } | ||
|
||
QColor strokeOuterInactive() const; | ||
void setStrokeOuterInactive(const QColor& c); | ||
QColor strokeOuterActive() const { return m_strokeOuterActive; } | ||
void setStrokeOuterActive(const QColor& c) { m_strokeOuterActive = c; } | ||
|
||
QColor strokeInnerActive() const; | ||
void setStrokeInnerActive(const QColor& c); | ||
QColor strokeOuterInactive() const { return m_strokeOuterInactive; } | ||
void setStrokeOuterInactive(const QColor& c) { m_strokeOuterInactive = c; } | ||
|
||
QColor strokeInnerInactive() const; | ||
void setStrokeInnerInactive(const QColor& c); | ||
QColor strokeInnerActive() const { return m_strokeInnerActive; } | ||
void setStrokeInnerActive(const QColor& c) { m_strokeInnerActive = c; } | ||
|
||
void reset(); | ||
QColor strokeInnerInactive() const { return m_strokeInnerInactive; } | ||
void setStrokeInnerInactive(const QColor& c) { m_strokeInnerInactive = c; } | ||
|
||
public slots: | ||
void renameChannel(); | ||
|
@@ -135,4 +132,4 @@ private slots: | |
}; | ||
} // namespace lmms::gui | ||
|
||
#endif // MIXER_CHANNEL_VIEW_H | ||
#endif // LMMS_GUI_MIXER_CHANNEL_VIEW_H |
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
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
Oops, something went wrong.