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);
59 #endif /* NO_JOGSHUTTLE */
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);
80 KPageWidgetItem *m_page1;
81 KPageWidgetItem *m_page2;
82 KPageWidgetItem *m_page3;
83 KPageWidgetItem *m_page4;
84 KPageWidgetItem *m_page5;
85 KPageWidgetItem *m_page6;
86 KPageWidgetItem *m_page7;
87 KPageWidgetItem *m_page8;
88 Ui::ConfigEnv_UI m_configEnv;
89 Ui::ConfigMisc_UI m_configMisc;
90 Ui::ConfigTimeline_UI m_configTimeline;
91 Ui::ConfigCapture_UI m_configCapture;
92 Ui::ConfigJogShuttle_UI m_configShuttle;
93 Ui::ConfigSdl_UI m_configSdl;
94 Ui::ConfigTranscode_UI m_configTranscode;
95 Ui::ConfigProject_UI m_configProject;
96 QString m_defaultProfile;
97 QString m_defaultPath;
98 KProcess m_readProcess;
100 bool m_shuttleModified;
101 QMap<QString, QString> m_mappable_actions;
102 QVector<KComboBox*> m_shuttle_buttons;
104 void loadTranscodeProfiles();
105 void saveTranscodeProfiles();
106 void loadCurrentV4lProfileInfo();
107 void saveCurrentV4lProfile();
108 void loadEncodingProfiles();
111 void customChanged();
112 void doResetProfile();
113 void updateCaptureFolder();