Olive
embeddedfilechooser.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 EMBEDDEDFILECHOOSER_H
22 #define EMBEDDEDFILECHOOSER_H
23 
24 #include <QWidget>
25 
26 class QLabel;
27 
28 class EmbeddedFileChooser : public QWidget {
29  Q_OBJECT
30 public:
31  EmbeddedFileChooser(QWidget* parent = 0);
32 
33  const QString& getFilename();
34  const QString& getPreviousValue();
35  void setFilename(const QString& s);
36 signals:
37  void changed();
38 private:
39  QLabel* file_label;
40  QString filename;
41  QString old_filename;
42  void update_label();
43 private slots:
44  void browse();
45 };
46 
47 #endif // EMBEDDEDFILECHOOSER_H
QString old_filename
Definition: embeddedfilechooser.h:41
const QString & getPreviousValue()
Definition: embeddedfilechooser.cpp:45
QString filename
Definition: embeddedfilechooser.h:40
void update_label()
Definition: embeddedfilechooser.cpp:56
Definition: embeddedfilechooser.h:28
QLabel * file_label
Definition: embeddedfilechooser.h:39
void browse()
Definition: embeddedfilechooser.cpp:75
void setFilename(const QString &s)
Definition: embeddedfilechooser.cpp:49
EmbeddedFileChooser(QWidget *parent=0)
Definition: embeddedfilechooser.cpp:29
const QString & getFilename()
Definition: embeddedfilechooser.cpp:41