Graphic record GIF support

This commit is contained in:
Бычков Андрей
2022-06-23 18:12:06 +03:00
parent 9c17b39409
commit a4011eca4b
5 changed files with 908 additions and 9 deletions

View File

@@ -143,7 +143,8 @@ public:
Clear = 0x800,
Close = 0x1000,
Pause = 0x2000,
StandartButtons = 0x2FFF
Record = 0x4000,
StandartButtons = 0x2BFF
};
enum Alignment {Left, Right};
enum Graduation {Auto, Fixed};
@@ -361,7 +362,7 @@ protected:
virtual void resizeEvent(QResizeEvent * );
virtual void showEvent(QShowEvent * );
virtual QSize sizeHint() const {return QSize(400, 300);}
virtual void timerEvent(QTimerEvent * );
virtual void timerEvent(QTimerEvent * e);
virtual bool eventFilter(QObject * o, QEvent * e);
void prepareCanvas(QWidget * w);
@@ -428,10 +429,12 @@ protected:
FloatingAxisType floating_axis_type;
double gridx, gridy, history, visible_time, inc_x, grid_numbers_x, grid_numbers_y, LN10;
double eminx, eminy, emaxx, emaxy, pause_phase, gesture_angle;
int lastw, lasth, min_repaint_int, timer_pause, thick;
int lastw, lasth, min_repaint_int, thick;
int timer_pause, timer_record;
bool aalias, aupdate, grid, guides, isFit, isOGL, isHover, bufferActive, cancel, pause_, gestures, m_LODOptimization, m_fakeGL, need_createGL;
bool hasLblX, hasLblY, navigation, only_expand_y, only_expand_x, is_lines_update, leg_update, visible_update, fullscr, need_mouse_pan, was_trace;
std::function<QString(double val)> func_gridMarkX, func_gridMarkY;
QList<QImage> record_imgs;
protected slots:
void canvasPaintEvent();
@@ -455,6 +458,7 @@ protected slots:
void on_graphic_buttonFullscreen_clicked() {fullscreen();}
void on_graphic_buttonSave_clicked();
void on_graphic_buttonExport_clicked();
void on_graphic_buttonRecord_clicked(bool checked);
void on_graphic_checkGrid_toggled(bool checked) {grid = checked; update();}
void on_graphic_checkGuides_toggled(bool checked);
void on_graphic_actionExpandX_triggered(bool checked);