2020-10-24 11:21:24 +08:00
|
|
|
#ifndef TOOLS_INDEX2_H
|
2020-06-04 18:20:13 +08:00
|
|
|
#define TOOLS_INDEX2_H
|
|
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
|
#include "QFile"
|
|
|
|
|
#include "QTextStream"
|
|
|
|
|
|
|
|
|
|
#include "QDebug"
|
|
|
|
|
|
2020-08-19 22:21:48 +08:00
|
|
|
#include "QFileDialog"
|
2020-06-04 18:20:13 +08:00
|
|
|
|
2020-10-24 11:21:24 +08:00
|
|
|
#include "QAction"
|
|
|
|
|
#include "QContextMenuEvent"
|
|
|
|
|
#include "QMenu"
|
|
|
|
|
#include "QScreen"
|
2020-06-04 18:20:13 +08:00
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
|
class Tools_Index2;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Tools_Index2 : public QWidget
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
explicit Tools_Index2(QWidget *parent = nullptr);
|
|
|
|
|
~Tools_Index2();
|
|
|
|
|
|
2020-10-24 11:21:24 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
void closeEvent(QCloseEvent *event);
|
2020-06-04 18:20:13 +08:00
|
|
|
void resizeEvent(QResizeEvent *event);
|
2020-10-24 11:21:24 +08:00
|
|
|
void contextMenuEvent(QContextMenuEvent *event);
|
2020-06-04 18:20:13 +08:00
|
|
|
|
|
|
|
|
public slots:
|
2020-10-24 11:21:24 +08:00
|
|
|
void setFloat(void);
|
2020-08-19 22:21:48 +08:00
|
|
|
void setCurrentPercentage(float value);
|
2020-06-04 18:20:13 +08:00
|
|
|
|
2020-08-19 22:21:48 +08:00
|
|
|
void ReplayComplete();
|
2020-06-04 18:20:13 +08:00
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
|
|
|
|
|
|
|
2020-08-19 22:21:48 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
void on_horizontalSlider_sliderReleased();
|
|
|
|
|
|
|
|
|
|
void on_horizontalSlider_sliderPressed();
|
|
|
|
|
|
|
|
|
|
void on_horizontalSlider_sliderMoved(int position);
|
|
|
|
|
|
|
|
|
|
void on_pushButton_file_clicked();
|
|
|
|
|
|
2020-10-16 17:06:18 +08:00
|
|
|
void on_pushButton_Play_clicked();
|
|
|
|
|
|
2020-12-15 13:47:14 +08:00
|
|
|
void on_comboBox_MultiSpeed_currentIndexChanged(int index);
|
|
|
|
|
|
|
|
|
|
void on_pushButton_NextFrame_clicked();
|
|
|
|
|
|
|
|
|
|
void on_pushButton_LastFrame_clicked();
|
|
|
|
|
|
|
|
|
|
void on_doubleSpinBox_Percent_valueChanged(double arg1);
|
|
|
|
|
|
|
|
|
|
void on_pushButton_setPercent_clicked();
|
|
|
|
|
|
2020-06-04 18:20:13 +08:00
|
|
|
signals:
|
|
|
|
|
|
2020-08-19 22:21:48 +08:00
|
|
|
void setFileName(QString name);
|
|
|
|
|
|
|
|
|
|
void setMinValue(int value);
|
|
|
|
|
void setMaxValue(int value);
|
|
|
|
|
|
|
|
|
|
void setPlay(bool flag);
|
|
|
|
|
void setPause(bool flag);
|
|
|
|
|
void setPosition(int position);
|
|
|
|
|
void setPercentage(float p);
|
2020-06-04 18:20:13 +08:00
|
|
|
|
2020-12-15 13:47:14 +08:00
|
|
|
void setMultiple(double times);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void setFrame(int index);
|
|
|
|
|
|
2020-06-04 18:20:13 +08:00
|
|
|
private:
|
|
|
|
|
Ui::Tools_Index2 *ui;
|
2020-10-24 11:21:24 +08:00
|
|
|
QWidget *m_parent;
|
2020-06-04 18:20:13 +08:00
|
|
|
|
2020-08-20 17:48:09 +08:00
|
|
|
bool isMove = false;
|
2020-08-19 22:21:48 +08:00
|
|
|
bool PlayState = false;//未播放
|
|
|
|
|
|
|
|
|
|
|
2020-06-04 18:20:13 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // INDEX0_H
|