17 #ifndef _PREFERENCES_H_
18 #define _PREFERENCES_H_
21 #include <QListWidget>
22 #include <QStackedWidget>
23 #include <QButtonGroup>
26 #include <QHBoxLayout>
27 #include <QVBoxLayout>
28 #include <QRadioButton>
31 #include <QScrollArea>
33 #include <QPushButton>
35 #include "pencildef.h"
36 #include "scribblearea.h"
37 #include "shortcutspage.h"
38 #include "preferencemanager.h"
41 class QListWidgetItem;
58 void changePage(QListWidgetItem* current, QListWidgetItem* previous);
59 void updateRecentListBtn(
bool isEmpty);
62 void windowOpacityChange(
int);
63 void curveOpacityChange(
int);
64 void clearRecentList();
65 void updateRecentFileListBtn();
68 void closeEvent( QCloseEvent* )
override;
73 QListWidget* contentsWidget =
nullptr;
74 QStackedWidget* pagesWidget =
nullptr;
75 QScrollArea* scrollArea =
nullptr;
92 void gridSizeChange(
int value);
95 void resizeEvent(QResizeEvent *event)
override;
98 void languageChanged(
int i );
99 void shadowsCheckboxStateChanged(
bool b);
100 void antiAliasCheckboxStateChanged(
bool b );
101 void toolCursorsCheckboxStateChanged(
bool b );
102 void dottedCursorCheckboxStateChanged(
bool b );
103 void highResCheckboxStateChanged(
bool b);
104 void gridCheckBoxStateChanged(
bool b);
105 void curveSmoothingChange(
int value);
106 void backgroundChange(
int value);
109 QScrollArea* scrollArea;
112 QComboBox* mLanguageCombo =
nullptr;
113 QSlider* mWindowOpacityLevel;
114 QSlider* mCurveSmoothingLevel;
115 QCheckBox* mShadowsBox;
116 QCheckBox* mToolCursorsBox;
117 QCheckBox* mAntialiasingBox;
118 QCheckBox* mHighResBox;
119 QButtonGroup *mBackgroundButtons;
120 QCheckBox* mDottedCursorBox;
121 QSpinBox* mGridSizeInput;
122 QCheckBox* mGridCheckBox;
138 void lengthSizeChange(QString);
139 void fontSizeChange(
int);
140 void frameSizeChange(
int);
141 void labelChange(
bool);
142 void scrubChange(
bool);
146 QCheckBox* mDrawLabel;
149 QLineEdit* mLengthSize;
150 QCheckBox* mScrubBox;
163 void autosaveChange(
bool b);
164 void autosaveNumberChange(
int number);
165 void clearRecentFilesList();
166 QPushButton *getClearRecentFilesBtn() {
return mClearRecentFilesBtn; }
167 void updateClearRecentListButton();
170 void clearRecentList();
174 QCheckBox *mAutosaveCheckBox;
175 QSpinBox *mAutosaveNumberBox;
176 QPushButton *mClearRecentFilesBtn;
190 void onionMaxOpacityChange(
int);
191 void onionMinOpacityChange(
int);
192 void onionPrevFramesNumChange(
int);
193 void onionNextFramesNumChange(
int);
194 void quickSizingChange(
bool);
197 QSpinBox* mOnionMaxOpacityBox;
198 QSpinBox* mOnionMinOpacityBox;
199 QSpinBox* mOnionPrevFramesNumBox;
200 QSpinBox* mOnionNextFramesNumBox;
201 QCheckBox * mUseQuickSizingBox;