strawberry-audio-player-win.../src/settings/moodbarsettingspage.h

58 lines
1.5 KiB
C
Raw Normal View History

2019-04-18 15:03:01 +02:00
/*
* Strawberry Music Player
* This file was part of Clementine.
* Copyright 2012, David Sansome <me@davidsansome.com>
2021-03-20 21:14:47 +01:00
* Copyright 2019-2021, Jonas Kvinge <jonas@jkvinge.net>
2019-04-18 15:03:01 +02:00
*
* Strawberry 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 3 of the License, or
* (at your option) any later version.
*
* Strawberry 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 Strawberry. If not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef MOODBARSETTINGSPAGE_H
#define MOODBARSETTINGSPAGE_H
#include "settingspage.h"
#include <QObject>
2020-02-09 02:29:35 +01:00
#include <QString>
2019-04-18 15:03:01 +02:00
2020-02-09 02:29:35 +01:00
class SettingsDialog;
2019-04-18 15:03:01 +02:00
class Ui_MoodbarSettingsPage;
class MoodbarSettingsPage : public SettingsPage {
Q_OBJECT
public:
2021-06-20 19:04:08 +02:00
explicit MoodbarSettingsPage(SettingsDialog *dialog, QWidget *parent = nullptr);
2020-06-15 21:55:05 +02:00
~MoodbarSettingsPage() override;
2019-04-18 15:03:01 +02:00
static const char *kSettingsGroup;
2020-06-15 21:55:05 +02:00
void Load() override;
void Save() override;
void Cancel() override;
2019-04-18 15:03:01 +02:00
private:
static const int kMoodbarPreviewWidth;
static const int kMoodbarPreviewHeight;
void InitMoodbarPreviews();
2021-06-12 20:53:23 +02:00
Ui_MoodbarSettingsPage *ui_;
2019-04-18 15:03:01 +02:00
2020-10-17 17:29:09 +02:00
bool initialized_;
2019-04-18 15:03:01 +02:00
};
#endif // MOODBARSETTINGSPAGE_H