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();
56 void rebuildVideo4Commands();
58 void slotCheckShuttle(int state = 0);
59 void slotUpdateShuttleDevice(int ix = 0);
60 #endif /* NO_JOGSHUTTLE */
61 void slotEditImageApplication();
62 void slotEditAudioApplication();
63 void slotEditVideoApplication();
64 void slotReadAudioDevices();
65 void slotUpdateRmdRegionStatus();
66 void slotCheckAlsaDriver();
67 void slotAddTranscode();
68 void slotDeleteTranscode();
69 void slotShuttleModified();
70 void slotDialogModified();
71 void slotEnableCaptureFolder();
72 void slotUpdateHDMIModes();
73 void slotUpdatev4lDevice();
76 KPageWidgetItem *m_page1;
77 KPageWidgetItem *m_page2;
78 KPageWidgetItem *m_page3;
79 KPageWidgetItem *m_page4;
80 KPageWidgetItem *m_page5;
81 KPageWidgetItem *m_page6;
82 KPageWidgetItem *m_page7;
83 KPageWidgetItem *m_page8;
84 Ui::ConfigEnv_UI m_configEnv;
85 Ui::ConfigMisc_UI m_configMisc;
86 Ui::ConfigTimeline_UI m_configTimeline;
87 Ui::ConfigCapture_UI m_configCapture;
88 Ui::ConfigJogShuttle_UI m_configShuttle;
89 Ui::ConfigSdl_UI m_configSdl;
90 Ui::ConfigTranscode_UI m_configTranscode;
91 Ui::ConfigProject_UI m_configProject;
92 QString m_defaultProfile;
93 QString m_defaultPath;
94 KProcess m_readProcess;
96 bool m_shuttleModified;
97 QMap<QString, QString> m_mappable_actions;
98 QVector<KComboBox*> m_shuttle_buttons;
100 void loadTranscodeProfiles();
101 void saveTranscodeProfiles();
104 void customChanged();
105 void doResetProfile();
106 void updateCaptureFolder();