Olive
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
autocutsilencedialog.h
Go to the documentation of this file.
1 /***
2 
3  Olive - Non-Linear Video Editor
4  Copyright (C) 2019 Olive Team
5 
6  This program is free software: you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  This program 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 General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with this program. If not, see <http://www.gnu.org/licenses/>.
18 
19 ***/
20 
21 #ifndef SILENCEDIALOG_H
22 #define SILENCEDIALOG_H
23 
24 #include <QDialog>
25 #include <QCheckBox>
26 
27 #include "timeline/clip.h"
28 #include "ui/labelslider.h"
29 
30 class AutoCutSilenceDialog : public QDialog
31 {
32  Q_OBJECT
33 public:
34  AutoCutSilenceDialog(QWidget* parent, QVector<int> clips);
35 public slots:
36  virtual int exec() override;
37 private slots:
38  virtual void accept() override;
39 private:
40  void cut_silence();
41 
42  QVector<int> clips_;
43 
48 
57 };
58 
59 #endif // SILENCEDIALOG_H
int current_attack_threshold
Definition: autocutsilencedialog.h:50
virtual void accept() override
Definition: autocutsilencedialog.cpp:108
AutoCutSilenceDialog(QWidget *parent, QVector< int > clips)
Definition: autocutsilencedialog.cpp:34
QVector< int > clips_
Definition: autocutsilencedialog.h:42
int default_attack_threshold
Definition: autocutsilencedialog.h:49
The LabelSlider class.
Definition: labelslider.h:33
LabelSlider * attack_threshold
Definition: autocutsilencedialog.h:44
void cut_silence()
Definition: autocutsilencedialog.cpp:121
LabelSlider * release_time
Definition: autocutsilencedialog.h:47
int current_release_threshold
Definition: autocutsilencedialog.h:52
int default_release_threshold
Definition: autocutsilencedialog.h:51
int default_attack_time
Definition: autocutsilencedialog.h:53
int current_attack_time
Definition: autocutsilencedialog.h:54
int default_release_time
Definition: autocutsilencedialog.h:55
LabelSlider * attack_time
Definition: autocutsilencedialog.h:46
LabelSlider * release_threshold
Definition: autocutsilencedialog.h:45
int current_release_time
Definition: autocutsilencedialog.h:56
Definition: autocutsilencedialog.h:30
virtual int exec() override
Definition: autocutsilencedialog.cpp:74