-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainwindow.h
107 lines (67 loc) · 2.24 KB
/
mainwindow.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QListWidgetItem>
#include <QTreeWidgetItem>
#include <QLayout>
#include <QPushButton>
#include <QTimer>
#include "QPushButtonLoop.h"
#include "processfile.h"
#include "recentfiles.h"
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = nullptr);
~MainWindow();
private slots:
void triggerloopContextMenu(loopContextMenu,int);
void editedNameLoop( int i, QString txt );
void filesDropped(QStringList* fileList);
void droppedLoopButOnOtherLoopBut( int orig, int dest);
void doDelayedSetButtonLoop();
void on_checkByPass_stateChanged(int arg1);
void setCurrentTimePlayed(double i);
void onButtonLoopClicked();
void on_currentTimePlayed_sliderPressed();
void on_currentTimePlayed_sliderReleased();
void on_valueTempo_editingFinished();
void on_sliderPitch_valueChanged(int value);
void on_sliderTempo_valueChanged(int value);
void on_valueSemiTone_editingFinished();
void updateRecentFilesWidget();
void on_recentFilesWidget_itemActivated(QTreeWidgetItem *item, int column);
void on_openFile_triggered();
void startNewaudioFile( QString fileName, bool launchPlay );
void on_actionPlay_triggered();
void on_actionPause_triggered();
void on_recentFilesWidget_currentItemChanged(QTreeWidgetItem *current, QTreeWidgetItem *previous);
void onContextMenuNewLoopClicked();
void onContextMenuDeleteLoopClicked();
void onContextMenuInsertLoopClicked();
void setPlayConfigFromCurrentLoop();
void slotPercChanged(double newPerc, QString markName);
void requestPause();
void loopRemaining(int nbLoop);
protected:
void keyPressEvent(QKeyEvent *event);
private:
Ui::MainWindow *ui;
void deleteLayout(QLayout *item);
void setButtonLoops();
void displayLoopsInfo(int nb, int tot );
QTimer *delayedSetButtonLoop;
QTimer *endEditButtonLoop;
int origButton = -1;
int destButton = -1;
processFile *pFileObj;
bool flagUpdateSliderTimePlayed = true;
recentFiles *rFiles = nullptr;
// QLineEdit *qle;
// QVBoxLayout *hbl;
};
#endif // MAINWINDOW_H