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
26 #include <KConfigDialog>
29 #include "ui_configmisc_ui.h"
30 #include "ui_configenv_ui.h"
31 #include "ui_configtimeline_ui.h"
32 #include "ui_configcapture_ui.h"
33 #include "ui_configjogshuttle_ui.h"
34 #include "ui_configsdl_ui.h"
35 #include "ui_configtranscode_ui.h"
36 #include "ui_configproject_ui.h"
38 class KdenliveSettingsDialog : public KConfigDialog
43 KdenliveSettingsDialog(QWidget * parent = 0);
44 ~KdenliveSettingsDialog();
45 void showPage(int page, int option);
49 void updateSettings();
50 virtual bool hasChanged();
53 void slotUpdateDisplay();
54 void rebuildVideo4Commands();
56 void slotCheckShuttle(int state = 0);
57 void slotUpdateShuttleDevice(int ix = 0);
58 #endif /* NO_JOGSHUTTLE */
59 void slotEditImageApplication();
60 void slotEditAudioApplication();
61 void slotEditVideoApplication();
62 void slotReadAudioDevices();
63 void slotUpdateRmdRegionStatus();
64 void slotCheckAlsaDriver();
65 void slotAddTranscode();
66 void slotDeleteTranscode();
67 void slotDialogModified();
70 KPageWidgetItem *m_page1;
71 KPageWidgetItem *m_page2;
72 KPageWidgetItem *m_page3;
73 KPageWidgetItem *m_page4;
74 KPageWidgetItem *m_page5;
75 KPageWidgetItem *m_page6;
76 KPageWidgetItem *m_page7;
77 KPageWidgetItem *m_page8;
78 Ui::ConfigEnv_UI m_configEnv;
79 Ui::ConfigMisc_UI m_configMisc;
80 Ui::ConfigTimeline_UI m_configTimeline;
81 Ui::ConfigCapture_UI m_configCapture;
82 Ui::ConfigJogShuttle_UI m_configShuttle;
83 Ui::ConfigSdl_UI m_configSdl;
84 Ui::ConfigTranscode_UI m_configTranscode;
85 Ui::ConfigProject_UI m_configProject;
86 QString m_defaultProfile;
87 QString m_defaultPath;
88 KProcess m_readProcess;
91 void loadTranscodeProfiles();
92 void saveTranscodeProfiles();
96 void doResetProfile();
97 void updatePreviewSettings();
98 void updateCaptureFolder();