CuteLogger
Fast and simple logging solution for Qt based applications
openotherdialog.h
1 /*
2  * Copyright (c) 2012-2017 Meltytech, LLC
3  * Author: Dan Dennedy <dan@dennedy.org>
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #ifndef OPENOTHERDIALOG_H
20 #define OPENOTHERDIALOG_H
21 
22 #include <QDialog>
23 #include <QTreeWidgetItem>
24 
25 namespace Ui {
26  class OpenOtherDialog;
27 }
28 namespace Mlt {
29  class Properties;
30  class Producer;
31  class Profile;
32 }
33 
34 class OpenOtherDialog : public QDialog
35 {
36  Q_OBJECT
37 
38 public:
39  explicit OpenOtherDialog(QWidget *parent = 0);
40  ~OpenOtherDialog();
41 
42  Mlt::Producer* newProducer(Mlt::Profile&) const;
43  void load(Mlt::Producer*);
44 
45 private slots:
46  void on_treeWidget_currentItemChanged(QTreeWidgetItem *current, QTreeWidgetItem *previous);
47 
48 private:
49  Ui::OpenOtherDialog *ui;
50  QObject* m_current;
51 
52  Mlt::Producer* newProducer(Mlt::Profile&, QObject* widget) const;
53  void selectTreeWidget(const QString& s);
54 };
55 
56 #endif // OPENOTHERDIALOG_H
Definition: encodedock.h:35
Definition: addencodepresetdialog.h:24