mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-01-22 13:40:06 -05:00
a800b08b67
-Add variations changes to the list of functionality that can be applied to all xforms using the Select tab. -Allow for graphical affine adjustments to apply to multiple selected xforms. -Slight optimization of the pie variation. -Undo state is only saved when the render completes and the mouse buttons are released. This helps avoid intermediate steps for quickly completing renders while dragging. -Add some keyboard shortcuts for toolbar and menu items. -Make info tab tree always expanded. --Bug fixes -Make precalcs for all hypertile variations safer by using Zeps() for denominators. -Changing the current xform with more than one selected would set all xform's color index value that of the current one. -Use hard found palette path information for randoms as well. -OpenCL build and assignment errors for Z value in epispiral variation. -Unitialized local variables in hexaplay3D, crob, pRose3D. --Code changes -Change static member variables from m_ to s_. -Get rid of excessive endl and replace with "\n". -Remove old IMAGEGL2D define from before Nvidia supported OpenCL 1.2. -Remove old CriticalSection code and use std::recursive_mutex. -Make Affine2D Rotate() and RotateTrans() take radians instead of angles. -More C++11 work. -General cleanup.
53 lines
1.1 KiB
C++
53 lines
1.1 KiB
C++
#pragma once
|
|
|
|
#include "FractoriumPch.h"
|
|
|
|
/// <summary>
|
|
/// SpinBox class.
|
|
/// </summary>
|
|
|
|
/// <summary>
|
|
/// A derivation to prevent the spin box from selecting its own text
|
|
/// when editing. Also to prevent multiple spin boxes from all having
|
|
/// selected text at once.
|
|
/// </summary>
|
|
class SpinBox : public QSpinBox
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit SpinBox(QWidget* p = 0, int height = 16, int step = 1);
|
|
virtual ~SpinBox() { }
|
|
void SetValueStealth(int d);
|
|
void DoubleClick(bool b);
|
|
void DoubleClickZero(int val);
|
|
void DoubleClickNonZero(int val);
|
|
void SmallStep(int step);
|
|
QLineEdit* lineEdit();
|
|
|
|
public slots:
|
|
void onSpinBoxValueChanged(int i);
|
|
void OnTimeout();
|
|
|
|
protected:
|
|
bool eventFilter(QObject* o, QEvent* e);
|
|
virtual void focusInEvent(QFocusEvent* e);
|
|
virtual void focusOutEvent(QFocusEvent* e);
|
|
virtual void enterEvent(QEvent* e);
|
|
virtual void leaveEvent(QEvent* e);
|
|
|
|
private:
|
|
void StartTimer();
|
|
void StopTimer();
|
|
|
|
bool m_Select;
|
|
bool m_DoubleClick;
|
|
int m_DoubleClickNonZero;
|
|
int m_DoubleClickZero;
|
|
int m_Step;
|
|
int m_SmallStep;
|
|
QPoint m_MouseDownPoint;
|
|
QPoint m_MouseMovePoint;
|
|
static QTimer s_Timer;
|
|
};
|