]> git.sesse.net Git - kdenlive/blob - src/kdenlivesettingsdialog.h
Merge branch 'master' into buildsystem
[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     void slotShuttleModified();
69     void slotDialogModified();
70     void slotEnableCaptureFolder();
71     void slotUpdateHDMIModes();
72     void slotUpdatev4lDevice();
73     void slotUpdatev4lCaptureProfile();
74     void slotManageEncodingProfile();
75     void slotUpdateDecklinkProfile(int ix = 0);
76     void slotUpdateProxyProfile(int ix = 0);
77     void slotUpdateV4lProfile(int ix = 0);
78     void slotEditVideo4LinuxProfile();
79
80 private:
81     KPageWidgetItem *m_page1;
82     KPageWidgetItem *m_page2;
83     KPageWidgetItem *m_page3;
84     KPageWidgetItem *m_page4;
85     KPageWidgetItem *m_page5;
86     KPageWidgetItem *m_page6;
87     KPageWidgetItem *m_page7;
88     KPageWidgetItem *m_page8;
89     Ui::ConfigEnv_UI m_configEnv;
90     Ui::ConfigMisc_UI m_configMisc;
91     Ui::ConfigTimeline_UI m_configTimeline;
92     Ui::ConfigCapture_UI m_configCapture;
93     Ui::ConfigJogShuttle_UI m_configShuttle;
94     Ui::ConfigSdl_UI m_configSdl;
95     Ui::ConfigTranscode_UI m_configTranscode;
96     Ui::ConfigProject_UI m_configProject;
97     QString m_defaultProfile;
98     QString m_defaultPath;
99     KProcess m_readProcess;
100     bool m_modified;
101     bool m_shuttleModified;
102     QMap<QString, QString> m_mappable_actions;
103     QVector<KComboBox*> m_shuttle_buttons;
104     void initDevices();
105     void loadTranscodeProfiles();
106     void saveTranscodeProfiles();
107     void loadCurrentV4lProfileInfo();
108     void saveCurrentV4lProfile();
109     void loadEncodingProfiles();
110
111 signals:
112     void customChanged();
113     void doResetProfile();
114     void updateCaptureFolder();
115 };
116
117
118 #endif
119