Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds Item Starring and other FileBrowser changes #7419

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
444 changes: 227 additions & 217 deletions include/ConfigManager.h

Large diffs are not rendered by default.

449 changes: 239 additions & 210 deletions include/FileBrowser.h

Large diffs are not rendered by default.

416 changes: 214 additions & 202 deletions include/MainWindow.h

Large diffs are not rendered by default.

124 changes: 62 additions & 62 deletions include/SideBarWidget.h
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
/*
* SideBarWidget.h - base-class for all side-bar-widgets
*
* Copyright (c) 2004-2009 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
* 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.
*
*/
* SideBarWidget.h - base-class for all side-bar-widgets
*
* Copyright (c) 2004-2009 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
* 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_SIDE_BAR_WIDGET_H
#define LMMS_GUI_SIDE_BAR_WIDGET_H
Expand All @@ -37,53 +37,53 @@ namespace lmms::gui

class SideBarWidget : public QWidget
{
Q_OBJECT
Q_OBJECT
public:
SideBarWidget( const QString & _title, const QPixmap & _icon,
QWidget * _parent );
~SideBarWidget() override = default;

inline const QPixmap & icon() const
{
return m_icon;
}
inline const QString & title() const
{
return m_title;
}
SideBarWidget( const QString & _title, const QPixmap & _icon,
QWidget * _parent );
~SideBarWidget() override = default;

inline const QPixmap & icon() const
{
return m_icon;
}
inline const QString & title() const
{
return m_title;
}

QWidget * contentParent()
{
return m_contents;
}

signals:
void closeButtonClicked();
void closeButtonClicked();

protected:
void paintEvent( QPaintEvent * _pe ) override;
void resizeEvent( QResizeEvent * _re ) override;
void contextMenuEvent( QContextMenuEvent * ) override
{
}

QWidget * contentParent()
{
return m_contents;
}

void addContentWidget( QWidget * _w )
{
m_layout->addWidget( _w );
}

void addContentLayout( QLayout * _l )
{
m_layout->addLayout( _l );
}
void paintEvent( QPaintEvent * _pe ) override;
void resizeEvent( QResizeEvent * _re ) override;
void contextMenuEvent( QContextMenuEvent * ) override
{
}

void addContentWidget( QWidget * _w )
{
m_layout->addWidget( _w );
}

void addContentLayout( QLayout * _l )
{
m_layout->addLayout( _l );
}

private:
QWidget * m_contents;
QVBoxLayout * m_layout;
QString m_title;
QPixmap m_icon;
QPushButton * m_closeBtn;
const QSize m_buttonSize;
QWidget * m_contents;
QVBoxLayout * m_layout;
QString m_title;
QPixmap m_icon;
QPushButton * m_closeBtn;
const QSize m_buttonSize;

} ;

Expand Down
Loading
Loading