]> git.sesse.net Git - kdenlive/blob - src/kdenlivesettingsdialog.h
Merge branch 'next' into audioAlign
[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 <QMap>
27 #include <KConfigDialog>
28 #include <KProcess>
29
30 #include "ui_configmisc_ui.h"
31 #include "ui_configenv_ui.h"
32 #include "ui_configtimeline_ui.h"
33 #include "ui_configcapture_ui.h"
34 #include "ui_configjogshuttle_ui.h"
35 #include "ui_configsdl_ui.h"
36 #include "ui_configtranscode_ui.h"
37 #include "ui_configproject_ui.h"
38
39 class KdenliveSettingsDialog : public KConfigDialog
40 {
41     Q_OBJECT
42
43 public:
44     KdenliveSettingsDialog(const QMap<QString, QString>& mappable_actions, QWidget * parent = 0);
45     ~KdenliveSettingsDialog();
46     void showPage(int page, int option);
47     void checkProfile();
48
49 protected slots:
50     void updateSettings();
51     void updateWidgets();
52     virtual bool hasChanged();
53
54 private slots:
55     void slotUpdateDisplay();
56 #ifdef USE_JOGSHUTTLE
57     void slotCheckShuttle(int state = 0);
58     void slotUpdateShuttleDevice(int ix = 0);
59 #endif
60     void slotEditImageApplication();
61     void slotEditAudioApplication();
62     void slotEditVideoApplication();
63     void slotReadAudioDevices();
64     void slotUpdateRmdRegionStatus();
65     void slotCheckAlsaDriver();
66     void slotAddTranscode();
67     void slotDeleteTranscode();
68     /** @brief Update current transcoding profile. */
69     void slotUpdateTranscodingProfile();
70     /** @brief Enable / disable the update profile button. */
71     void slotEnableTranscodeUpdate();
72     /** @brief Update display of current transcoding profile parameters. */
73     void slotSetTranscodeProfile();
74     void slotShuttleModified();
75     void slotDialogModified();
76     void slotEnableCaptureFolder();
77     void slotUpdateHDMIModes();
78     void slotUpdatev4lDevice();
79     void slotUpdatev4lCaptureProfile();
80     void slotManageEncodingProfile();
81     void slotUpdateDecklinkProfile(int ix = 0);
82     void slotUpdateProxyProfile(int ix = 0);
83     void slotUpdateV4lProfile(int ix = 0);
84     void slotEditVideo4LinuxProfile();
85
86 private:
87     KPageWidgetItem *m_page1;
88     KPageWidgetItem *m_page2;
89     KPageWidgetItem *m_page3;
90     KPageWidgetItem *m_page4;
91     KPageWidgetItem *m_page5;
92     KPageWidgetItem *m_page6;
93     KPageWidgetItem *m_page7;
94     KPageWidgetItem *m_page8;
95     Ui::ConfigEnv_UI m_configEnv;
96     Ui::ConfigMisc_UI m_configMisc;
97     Ui::ConfigTimeline_UI m_configTimeline;
98     Ui::ConfigCapture_UI m_configCapture;
99     Ui::ConfigJogShuttle_UI m_configShuttle;
100     Ui::ConfigSdl_UI m_configSdl;
101     Ui::ConfigTranscode_UI m_configTranscode;
102     Ui::ConfigProject_UI m_configProject;
103     QString m_defaultProfile;
104     QString m_defaultPath;
105     KProcess m_readProcess;
106     bool m_modified;
107     bool m_shuttleModified;
108     QMap<QString, QString> m_mappable_actions;
109     QVector<KComboBox*> m_shuttle_buttons;
110     void initDevices();
111     void loadTranscodeProfiles();
112     void saveTranscodeProfiles();
113     void loadCurrentV4lProfileInfo();
114     void saveCurrentV4lProfile();
115     void loadEncodingProfiles();
116
117 signals:
118     void customChanged();
119     void doResetProfile();
120     void updateCaptureFolder();
121 };
122
123
124 #endif
125