| 1 |
/**************************************************************************** |
| 2 |
* Copyright (c) 2020 Zheng Lei (realthunder) <[email protected]> * |
| 3 |
* * |
| 4 |
* This file is part of the FreeCAD CAx development system. * |
| 5 |
* * |
| 6 |
* This library is free software; you can redistribute it and/or * |
| 7 |
* modify it under the terms of the GNU Library General Public * |
| 8 |
* License as published by the Free Software Foundation; either * |
| 9 |
* version 2 of the License, or (at your option) any later version. * |
| 10 |
* * |
| 11 |
* This library 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 Library General Public License for more details. * |
| 15 |
* * |
| 16 |
* You should have received a copy of the GNU Library General Public * |
| 17 |
* License along with this library; see the file COPYING.LIB. If not, * |
| 18 |
* write to the Free Software Foundation, Inc., 59 Temple Place, * |
| 19 |
* Suite 330, Boston, MA 02111-1307, USA * |
| 20 |
* * |
| 21 |
****************************************************************************/ |
| 22 |
|
| 23 |
#ifndef GUI_DIALOG_DLGSETTINGSADVANCED_H |
| 24 |
#define GUI_DIALOG_DLGSETTINGSADVANCED_H |
| 25 |
|
| 26 |
class QTimer; |
| 27 |
class QPropertyAnimation; |
| 28 |
|
| 29 |
/*[[[cog |
| 30 |
import DlgSettingsAdvanced |
| 31 |
DlgSettingsAdvanced.declare_begin() |
| 32 |
]]]*/ |
| 33 |
|
| 34 |
// Auto generated code (Tools/params_utils.py:482) |
| 35 |
#include <Gui/PropertyPage.h> |
| 36 |
#include <Gui/PrefWidgets.h> |
| 37 |
// Auto generated code (Tools/params_utils.py:489) |
| 38 |
class QLabel; |
| 39 |
class QGroupBox; |
| 40 |
|
| 41 |
namespace Gui |
| 42 |
{ |
| 43 |
namespace Dialog |
| 44 |
{ |
| 45 |
/** Preference dialog for various advanced UI settings |
| 46 |
|
| 47 |
* This class is auto generated by Gui/PreferencePages/DlgSettingsAdvanced.py. Modify that file |
| 48 |
* instead of this one, if you want to make any change. You need |
| 49 |
* to install Cog Python package for code generation: |
| 50 |
* @code |
| 51 |
* pip install cogapp |
| 52 |
* @endcode |
| 53 |
* |
| 54 |
* Once modified, you can regenerate the header and the source file, |
| 55 |
* @code |
| 56 |
* python3 -m cogapp -r Gui/PreferencePages/DlgSettingsAdvanced.h |
| 57 |
Gui/PreferencePages/DlgSettingsAdvanced.cpp |
| 58 |
* @endcode |
| 59 |
*/ |
| 60 |
class DlgSettingsAdvanced: public Gui::Dialog::PreferencePage |
| 61 |
{ |
| 62 |
Q_OBJECT |
| 63 |
|
| 64 |
public: |
| 65 |
DlgSettingsAdvanced(QWidget* parent = 0); |
| 66 |
~DlgSettingsAdvanced(); |
| 67 |
|
| 68 |
void saveSettings(); |
| 69 |
void loadSettings(); |
| 70 |
void retranslateUi(); |
| 71 |
|
| 72 |
protected: |
| 73 |
void changeEvent(QEvent* e); |
| 74 |
|
| 75 |
private: |
| 76 |
// Auto generated code (Tools/params_utils.py:400) |
| 77 |
QGroupBox* groupOverlay = nullptr; |
| 78 |
QLabel* labelDockOverlayWheelDelay = nullptr; |
| 79 |
Gui::PrefSpinBox* DockOverlayWheelDelay = nullptr; |
| 80 |
QLabel* labelDockOverlayAlphaRadius = nullptr; |
| 81 |
Gui::PrefSpinBox* DockOverlayAlphaRadius = nullptr; |
| 82 |
Gui::PrefCheckBox* DockOverlayCheckNaviCube = nullptr; |
| 83 |
QLabel* labelDockOverlayHintTriggerSize = nullptr; |
| 84 |
Gui::PrefSpinBox* DockOverlayHintTriggerSize = nullptr; |
| 85 |
QLabel* labelDockOverlayHintSize = nullptr; |
| 86 |
Gui::PrefSpinBox* DockOverlayHintSize = nullptr; |
| 87 |
QLabel* labelDockOverlayHintLeftOffset = nullptr; |
| 88 |
Gui::PrefSpinBox* DockOverlayHintLeftOffset = nullptr; |
| 89 |
QLabel* labelDockOverlayHintLeftLength = nullptr; |
| 90 |
Gui::PrefSpinBox* DockOverlayHintLeftLength = nullptr; |
| 91 |
QLabel* labelDockOverlayHintRightOffset = nullptr; |
| 92 |
Gui::PrefSpinBox* DockOverlayHintRightOffset = nullptr; |
| 93 |
QLabel* labelDockOverlayHintRightLength = nullptr; |
| 94 |
Gui::PrefSpinBox* DockOverlayHintRightLength = nullptr; |
| 95 |
QLabel* labelDockOverlayHintTopOffset = nullptr; |
| 96 |
Gui::PrefSpinBox* DockOverlayHintTopOffset = nullptr; |
| 97 |
QLabel* labelDockOverlayHintTopLength = nullptr; |
| 98 |
Gui::PrefSpinBox* DockOverlayHintTopLength = nullptr; |
| 99 |
QLabel* labelDockOverlayHintBottomOffset = nullptr; |
| 100 |
Gui::PrefSpinBox* DockOverlayHintBottomOffset = nullptr; |
| 101 |
QLabel* labelDockOverlayHintBottomLength = nullptr; |
| 102 |
Gui::PrefSpinBox* DockOverlayHintBottomLength = nullptr; |
| 103 |
QLabel* labelDockOverlayHintDelay = nullptr; |
| 104 |
Gui::PrefSpinBox* DockOverlayHintDelay = nullptr; |
| 105 |
QLabel* labelDockOverlaySplitterHandleTimeout = nullptr; |
| 106 |
Gui::PrefSpinBox* DockOverlaySplitterHandleTimeout = nullptr; |
| 107 |
Gui::PrefCheckBox* DockOverlayActivateOnHover = nullptr; |
| 108 |
QLabel* labelDockOverlayDelay = nullptr; |
| 109 |
Gui::PrefSpinBox* DockOverlayDelay = nullptr; |
| 110 |
QLabel* labelDockOverlayAnimationDuration = nullptr; |
| 111 |
Gui::PrefSpinBox* DockOverlayAnimationDuration = nullptr; |
| 112 |
QLabel* labelDockOverlayAnimationCurve = nullptr; |
| 113 |
Gui::PrefComboBox* DockOverlayAnimationCurve = nullptr; |
| 114 |
//[[[end]]] |
| 115 |
|
| 116 |
// ----------------------------------------------------------------------------------- |
| 117 |
// user code start |
| 118 |
|
| 119 |
Q_PROPERTY(qreal offset1 READ offset1 WRITE setOffset1 DESIGNABLE true SCRIPTABLE true) |
| 120 |
qreal offset1() const; |
| 121 |
void setOffset1(qreal); |
| 122 |
|
| 123 |
private: |
| 124 |
void init(); |
| 125 |
void onCurveChange(int index); |
| 126 |
|
| 127 |
private: |
| 128 |
QTimer* timer; |
| 129 |
QPropertyAnimation* animator1; |
| 130 |
qreal t1 = 0; |
| 131 |
qreal a1 = 0, b1 = 0; |
| 132 |
|
| 133 |
// user code end |
| 134 |
// ----------------------------------------------------------------------------------- |
| 135 |
|
| 136 |
/*[[[cog |
| 137 |
import DlgSettingsAdvanced |
| 138 |
DlgSettingsAdvanced.declare_end() |
| 139 |
]]]*/ |
| 140 |
|
| 141 |
// Auto generated code (Tools/params_utils.py:536) |
| 142 |
}; |
| 143 |
} // namespace Dialog |
| 144 |
} // namespace Gui |
| 145 |
//[[[end]]] |
| 146 |
#endif // GUI_DIALOG_DLGSETTINGSADVANCED_H |