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();
68 void slotEnableCaptureFolder();
69 void slotUpdateHDMIModes();
70 void slotUpdatev4lDevice();
73 KPageWidgetItem *m_page1;
74 KPageWidgetItem *m_page2;
75 KPageWidgetItem *m_page3;
76 KPageWidgetItem *m_page4;
77 KPageWidgetItem *m_page5;
78 KPageWidgetItem *m_page6;
79 KPageWidgetItem *m_page7;
80 KPageWidgetItem *m_page8;
81 Ui::ConfigEnv_UI m_configEnv;
82 Ui::ConfigMisc_UI m_configMisc;
83 Ui::ConfigTimeline_UI m_configTimeline;
84 Ui::ConfigCapture_UI m_configCapture;
85 Ui::ConfigJogShuttle_UI m_configShuttle;
86 Ui::ConfigSdl_UI m_configSdl;
87 Ui::ConfigTranscode_UI m_configTranscode;
88 Ui::ConfigProject_UI m_configProject;
89 QString m_defaultProfile;
90 QString m_defaultPath;
91 KProcess m_readProcess;
94 void loadTranscodeProfiles();
95 void saveTranscodeProfiles();
99 void doResetProfile();
100 void updateCaptureFolder();