1 /***************************************************************************
2 * Copyright (C) 2008 by Jean-Baptiste Mardelle (jb@kdenlive.org) *
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. *
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. *
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 ***************************************************************************/
21 #ifndef KDENLIVESETTINGSDIALOG_H
22 #define KDENLIVESETTINGSDIALOG_H
27 #include <KConfigDialog>
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"
39 class KdenliveSettingsDialog : public KConfigDialog
44 KdenliveSettingsDialog(const QMap<QString, QString>& mappable_actions, QWidget * parent = 0);
45 ~KdenliveSettingsDialog();
46 void showPage(int page, int option);
50 void updateSettings();
52 virtual bool hasChanged();
55 void slotUpdateDisplay();
57 void slotCheckShuttle(int state = 0);
58 void slotUpdateShuttleDevice(int ix = 0);
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 slotUpdatev4lDevice();
78 void slotUpdatev4lCaptureProfile();
79 void slotManageEncodingProfile();
80 void slotUpdateDecklinkProfile(int ix = 0);
81 void slotUpdateProxyProfile(int ix = 0);
82 void slotUpdateV4lProfile(int ix = 0);
83 void slotEditVideo4LinuxProfile();
86 KPageWidgetItem *m_page1;
87 KPageWidgetItem *m_page2;
88 KPageWidgetItem *m_page3;
89 KPageWidgetItem *m_page4;
90 KPageWidgetItem *m_page5;
91 KPageWidgetItem *m_page6;
92 KPageWidgetItem *m_page7;
93 KPageWidgetItem *m_page8;
94 Ui::ConfigEnv_UI m_configEnv;
95 Ui::ConfigMisc_UI m_configMisc;
96 Ui::ConfigTimeline_UI m_configTimeline;
97 Ui::ConfigCapture_UI m_configCapture;
98 Ui::ConfigJogShuttle_UI m_configShuttle;
99 Ui::ConfigSdl_UI m_configSdl;
100 Ui::ConfigTranscode_UI m_configTranscode;
101 Ui::ConfigProject_UI m_configProject;
102 QString m_defaultProfile;
103 QString m_defaultPath;
104 KProcess m_readProcess;
106 bool m_shuttleModified;
107 QMap<QString, QString> m_mappable_actions;
108 QVector<KComboBox*> m_shuttle_buttons;
110 void loadTranscodeProfiles();
111 void saveTranscodeProfiles();
112 void loadCurrentV4lProfileInfo();
113 void saveCurrentV4lProfile();
114 void loadEncodingProfiles();
117 void customChanged();
118 void doResetProfile();
119 void updateCaptureFolder();