41 lines
938 B
C++
41 lines
938 B
C++
#ifndef PREF_DIALOG_H
|
|
#define PREF_DIALOG_H
|
|
|
|
// This file is part of JustVideo.
|
|
|
|
// JustVideo 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.
|
|
|
|
// JustVideo 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.
|
|
|
|
#include "common.h"
|
|
|
|
class PrefDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
private:
|
|
|
|
shared_t *shared;
|
|
QSpinBox *maxRecents;
|
|
QSpinBox *maxViewsPerPage;
|
|
|
|
void rd();
|
|
void wr();
|
|
|
|
private slots:
|
|
|
|
void preAccept();
|
|
|
|
public:
|
|
|
|
explicit PrefDialog(shared_t *conf, QWidget *parent = nullptr);
|
|
};
|
|
|
|
#endif // PREF_DIALOG_H
|