All Classes Namespaces Functions Variables Enumerations Properties Pages
generalpage.h
1 /*
2 
3 Pencil2D - Traditional Animation Software
4 Copyright (C) 2005-2007 Patrick Corrieri & Pascal Naidon
5 Copyright (C) 2012-2020 Matthew Chiawen Chang
6 
7 This program is free software; you can redistribute it and/or
8 modify it under the terms of the GNU General Public License
9 as published by the Free Software Foundation; version 2 of the License.
10 
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15 
16 */
17 
18 #ifndef GENERALPAGE_H
19 #define GENERALPAGE_H
20 
21 class PreferenceManager;
22 
23 namespace Ui {
24 class GeneralPage;
25 }
26 
27 class GeneralPage : public QWidget
28 {
30 public:
31  GeneralPage();
32  ~GeneralPage() override;
33  void setManager(PreferenceManager* p) { mManager = p; }
34 
35 public slots:
36  void updateValues();
37  void gridWidthChanged(int value);
38  void gridHeightChanged(int value);
39  void actionSafeCheckBoxStateChanged(int b);
40  void actionSafeAreaChanged(int value);
41  void titleSafeCheckBoxStateChanged(int b);
42  void titleSafeAreaChanged(int value);
43  void SafeAreaHelperTextCheckBoxStateChanged(int b);
44 
45 signals:
46  void windowOpacityChange(int value);
47 
48 private slots:
49  void languageChanged(int i);
50  void shadowsCheckboxStateChanged(int b);
51  void antiAliasCheckboxStateChanged(int b);
52  void toolCursorsCheckboxStateChanged(int b);
53  void dottedCursorCheckboxStateChanged(int b);
54  void highResCheckboxStateChanged(int b);
55  void gridCheckBoxStateChanged(int b);
56  void curveSmoothingChanged(int value);
57  void backgroundChanged(int value);
58  void frameCacheNumberChanged(int value);
59 
60 private:
61 
62  void updateSafeHelperTextEnabledState();
63 
64  Ui::GeneralPage* ui = nullptr;
65  PreferenceManager* mManager = nullptr;
66 };
67 
68 #endif // GENERALPAGE_H
Q_OBJECTQ_OBJECT