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
54signals:
55 void clearRecentList();
56
57private:
58 Ui::FilesPage* ui = nullptr;
59 PreferenceManager* mManager = nullptr;
60 QSettings* mPresetSettings = nullptr;
61 QDir mPresetDir;
62 int mMaxPresetIndex = 0;
63};
64
65#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 Thu May 8 2025 04:47:53 for Pencil2D by doxygen 1.9.6 based on revision 4513250b1d5b1a3676ec0e67b06b7a885ceaae39