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
generalpage.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 GENERALPAGE_H
19#define GENERALPAGE_H
20
21class QAbstractButton;
22class PreferenceManager;
23
24namespace Ui {
25class GeneralPage;
26}
27
28class GeneralPage : public QWidget
29{
30Q_OBJECT
31public:
32 GeneralPage();
33 ~GeneralPage() override;
34 void setManager(PreferenceManager* p) { mManager = p; }
35
36public slots:
37 void updateValues();
38 void gridWidthChanged(int value);
39 void gridHeightChanged(int value);
40 void actionSafeCheckBoxStateChanged(int b);
41 void actionSafeAreaChanged(int value);
42 void titleSafeCheckBoxStateChanged(int b);
43 void titleSafeAreaChanged(int value);
44 void SafeAreaHelperTextCheckBoxStateChanged(int b);
45
46signals:
47 void windowOpacityChange(int value);
48
49private slots:
50 void languageChanged(int i);
51 void shadowsCheckboxStateChanged(int b);
52 void antiAliasCheckboxStateChanged(int b);
53 void toolCursorsCheckboxStateChanged(int b);
54 void canvasCursorCheckboxStateChanged(int b);
55 void highResCheckboxStateChanged(int b);
56 void gridCheckBoxStateChanged(int b);
57 void curveSmoothingChanged(int value);
58 void backgroundChanged(QAbstractButton* button);
59 void frameCacheNumberChanged(int value);
60 void invertScrollDirectionBoxStateChanged(int b);
61 void newUndoRedoCheckBoxStateChanged();
62 void undoRedoMaxStepsChanged();
63
64 void undoRedoApplyButtonPressed();
65 void undoRedoCancelButtonPressed();
66
67private:
68
69 bool canApplyOrCancelUndoRedoChanges() const;
70 void updateSafeHelperTextEnabledState();
71
72 Ui::GeneralPage* ui = nullptr;
73 PreferenceManager* mManager = nullptr;
74};
75
76#endif // GENERALPAGE_H
GeneralPage
Definition: generalpage.h:29
PreferenceManager
Definition: preferencemanager.h:28
QAbstractButton
QObject::Q_OBJECT
Q_OBJECTQ_OBJECT
QWidget
Generated on Thu May 8 2025 04:47:53 for Pencil2D by doxygen 1.9.6 based on revision 4513250b1d5b1a3676ec0e67b06b7a885ceaae39