Pencil2D Animation
Download Community News Docs Contribute
  • Overview
  • Articles
  • Code
  •  
  • Class List
  • Class Index
  • Class Hierarchy
  • Class Members
  • File List
Loading...
Searching...
No Matches
  • app
  • src
preferencesdialog.h
1/*
2
3Pencil2D - Traditional Animation Software
4Copyright (C) 2005-2007 Patrick Corrieri & Pascal Naidon
5Copyright (C) 2012-2020 Matthew Chiawen Chang
6
7This program is free software; you can redistribute it and/or
8modify it under the terms of the GNU General Public License
9as published by the Free Software Foundation; version 2 of the License.
10
11This program is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16*/
17#ifndef PREFERENCESDIALOG_H
18#define PREFERENCESDIALOG_H
19
20#include <QDialog>
21
22class PreferenceManager;
23class QListWidgetItem;
24
25namespace Ui {
26class PreferencesDialog;
27}
28
29class PreferencesDialog : public QDialog
30{
31 Q_OBJECT
32
33public:
34 explicit PreferencesDialog(QWidget* parent);
35 ~PreferencesDialog() override;
36
37 void init(PreferenceManager* m);
38 void updateRecentListBtn(bool isEmpty);
39
40public slots:
41 void changePage(QListWidgetItem* current, QListWidgetItem* previous);
42
43signals:
44 void windowOpacityChange(int);
45 void soundScrubChanged(bool b);
46 void soundScrubMsecChanged(int mSec);
47 void curveOpacityChange(int);
48 void clearRecentList();
49 void updateRecentFileListBtn();
50
51protected:
52 void closeEvent(QCloseEvent*) override;
53
54private:
55 Ui::PreferencesDialog* ui = nullptr;
56
57 PreferenceManager* mPrefManager = nullptr;
58};
59
60#endif // PREFERENCESDIALOG_H
PreferenceManager
Definition: preferencemanager.h:28
PreferencesDialog
Definition: preferencesdialog.h:30
QCloseEvent
QDialog
QListWidgetItem
QObject::Q_OBJECT
Q_OBJECTQ_OBJECT
QObject::parent
QObject * parent() const const
QWidget
Generated on Thu May 8 2025 04:47:53 for Pencil2D by doxygen 1.9.6 based on revision 4513250b1d5b1a3676ec0e67b06b7a885ceaae39