Olive
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
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  void setFilename(const QString& s);
35 signals:
36  void changed(const QString& s);
37 private:
38  QLabel* file_label;
39  QString filename;
40  void update_label();
41 private slots:
42  void browse();
43 };
44 
45 #endif // EMBEDDEDFILECHOOSER_H
EmbeddedFileChooser(QWidget *parent=0)
Definition: embeddedfilechooser.cpp:29
const QString & getFilename()
Definition: embeddedfilechooser.cpp:41
QString filename
Definition: embeddedfilechooser.h:39
Definition: embeddedfilechooser.h:28
void browse()
Definition: embeddedfilechooser.cpp:70
void setFilename(const QString &s)
Definition: embeddedfilechooser.cpp:45
QLabel * file_label
Definition: embeddedfilechooser.h:38
void update_label()
Definition: embeddedfilechooser.cpp:51
void changed(const QString &s)