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
filespage.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
18#ifndef FILESPAGE_H
19#define FILESPAGE_H
20
21#include <QDir>
22
23class PreferenceManager;
24class QListWidgetItem;
25class QSettings;
26
27namespace Ui {
28class FilesPage;
29}
30
31class FilesPage : public QWidget
32{
33Q_OBJECT
34
35public:
36 FilesPage();
37 ~FilesPage() override;
38 void setManager(PreferenceManager* p) { mManager = p; }
39
40public slots:
41 void initPreset();
42 void addPreset();
43 void removePreset();
44 void setDefaultPreset();
45 void presetNameChanged(QListWidgetItem* item);
46
47 void updateValues();
48 void askForPresetChange(int b);
49 void loadMostRecentChange(int b);
50 void loadDefaultPreset(int b);
51 void autoSaveChange(int b);
52 void autoSaveNumberChange(int number);
53 void autoSaveByTimeChange(int b);
54 void autoSaveByTimeTimerChange(int number);
55
56signals:
57 void clearRecentList();
58
59private:
60 Ui::FilesPage* ui = nullptr;
61 PreferenceManager* mManager = nullptr;
62 QSettings* mPresetSettings = nullptr;
63 QDir mPresetDir;
64 int mMaxPresetIndex = 0;
65};
66
67#endif // FILESPAGE_H
FilesPage
Definition: filespage.h:32
PreferenceManager
Definition: preferencemanager.h:28
QDir
QListWidgetItem
QObject::Q_OBJECT
Q_OBJECTQ_OBJECT
QSettings
QWidget
Generated on Mon May 4 2026 07:50:47 for Pencil2D by doxygen 1.9.6 based on revision 3ed50cdd696e72315cedf30508d3572536c3876e