mirror of
https://github.com/LMMS/lmms.git
synced 2025-12-23 22:58:33 -05:00
* SVG-ify arrow buttons These buttons are used in the instrument window, Vestige, and VST effects. Separate versions of the arrow icons are used for the classic theme. * Fix some unrelated SVG formatting and metadata * Revert accidental change to classic border radius * Add some XML stuff back to appease Github LMMS renders these SVGs just fine, but apparently the removal of the XML declaration completely breaks Github's ability to render the image, so I am adding these back for the sake of those who want to actually look at the diff on the website lmao * Attempt to fix Github SVG previews again (`xmlns`) * Fix crossover eq band mute button icon size You may ask, "what does this have to do with the arrow buttons?" and you would be right to assume this is unrelated. However, I'm already touching the relevant lines of the stylesheet so I may as well sneak it in there. * Add missing metadata to fader_knob.svg And fix mixed indentation in headphones.svg * Add missing `xmlns` to fader_knob.svg GRADIENTS!!!!!!!!!!!! * Fix classic theme arrow buttons The originals were right angle chevrons * Remove unused getters
53 lines
1.5 KiB
C++
53 lines
1.5 KiB
C++
/*
|
|
* LeftRightNav.h - side-by-side left-facing and right-facing arrows for navigation (looks like < > )
|
|
*
|
|
* Copyright (c) 2015 Colin Wallace <wallacoloo/at/gmail.com>
|
|
*
|
|
* 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 LMMS_GUI_LEFT_RIGHT_NAV_H
|
|
#define LMMS_GUI_LEFT_RIGHT_NAV_H
|
|
|
|
#include <QPushButton>
|
|
|
|
|
|
namespace lmms::gui
|
|
{
|
|
|
|
class LeftRightNav : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
LeftRightNav(QWidget *parent=nullptr);
|
|
void setShortcuts(const QKeySequence &leftShortcut=Qt::Key_Minus, const QKeySequence &rightShortcut=Qt::Key_Plus);
|
|
signals:
|
|
void onNavLeft();
|
|
void onNavRight();
|
|
private:
|
|
QHBoxLayout m_layout;
|
|
QPushButton m_leftBtn;
|
|
QPushButton m_rightBtn;
|
|
};
|
|
|
|
|
|
} // namespace lmms::gui
|
|
|
|
#endif // LMMS_GUI_LEFT_RIGHT_NAV_H
|