]> git.sesse.net Git - kdenlive/blob - src/kdenlivesettingsdialog.h
Reindent the codebase using 'linux' bracket placement.
[kdenlive] / src / kdenlivesettingsdialog.h
1 /***************************************************************************
2  *   Copyright (C) 2008 by Jean-Baptiste Mardelle (jb@kdenlive.org)        *
3  *                                                                         *
4  *   This program is free software; you can redistribute it and/or modify  *
5  *   it under the terms of the GNU General Public License as published by  *
6  *   the Free Software Foundation; either version 2 of the License, or     *
7  *   (at your option) any later version.                                   *
8  *                                                                         *
9  *   This program is distributed in the hope that it will be useful,       *
10  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
11  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
12  *   GNU General Public License for more details.                          *
13  *                                                                         *
14  *   You should have received a copy of the GNU General Public License     *
15  *   along with this program; if not, write to the                         *
16  *   Free Software Foundation, Inc.,                                       *
17  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA          *
18  ***************************************************************************/
19
20
21 #ifndef KDENLIVESETTINGSDIALOG_H
22 #define KDENLIVESETTINGSDIALOG_H
23
24 #include <QDialog>
25
26 #include <KConfigDialog>
27 #include <KProcess>
28
29 #include "ui_configmisc_ui.h"
30 #include "ui_configenv_ui.h"
31 #include "ui_configdisplay_ui.h"
32 #include "ui_configcapture_ui.h"
33 #include "ui_configjogshuttle_ui.h"
34 #include "ui_configsdl_ui.h"
35
36 class KdenliveSettingsDialog : public KConfigDialog
37 {
38     Q_OBJECT
39
40 public:
41     KdenliveSettingsDialog(QWidget * parent = 0);
42     ~KdenliveSettingsDialog();
43     void showPage(int page, int option);
44     void checkProfile();
45
46 protected slots:
47     void updateSettings();
48
49
50 private slots:
51     void slotUpdateDisplay();
52     void rebuildVideo4Commands();
53 #ifndef NO_JOGSHUTTLE
54     void slotCheckShuttle(int state = 0);
55     void slotUpdateShuttleDevice(int ix = 0);
56 #endif /* NO_JOGSHUTTLE */
57     void slotEditImageApplication();
58     void slotEditAudioApplication();
59     void slotEditVideoApplication();
60     void slotReadAudioDevices();
61     void slotUpdateRmdRegionStatus();
62
63 private:
64     KPageWidgetItem *page1;
65     KPageWidgetItem *page2;
66     KPageWidgetItem *page3;
67     KPageWidgetItem *page4;
68     KPageWidgetItem *page5;
69     KPageWidgetItem *page6;
70     Ui::ConfigEnv_UI m_configEnv;
71     Ui::ConfigMisc_UI m_configMisc;
72     Ui::ConfigDisplay_UI m_configDisplay;
73     Ui::ConfigCapture_UI m_configCapture;
74     Ui::ConfigJogShuttle_UI m_configShuttle;
75     Ui::ConfigSdl_UI m_configSdl;
76     QStringList m_mltProfilesList;
77     QStringList m_customProfilesList;
78     bool m_isCustomProfile;
79     QString m_defaultProfile;
80     QString m_defaultPath;
81     KProcess m_readProcess;
82     QString m_captureFolder;
83     void initDevices();
84
85 signals:
86     void customChanged();
87     void doResetProfile();
88     void updatePreviewSettings();
89     void updateCaptureFolder();
90 };
91
92
93 #endif
94