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_configdisplay_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"
37 class KdenliveSettingsDialog : public KConfigDialog
42 KdenliveSettingsDialog(QWidget * parent = 0);
43 ~KdenliveSettingsDialog();
44 void showPage(int page, int option);
48 void updateSettings();
49 virtual bool hasChanged();
52 void slotUpdateDisplay();
53 void rebuildVideo4Commands();
55 void slotCheckShuttle(int state = 0);
56 void slotUpdateShuttleDevice(int ix = 0);
57 #endif /* NO_JOGSHUTTLE */
58 void slotEditImageApplication();
59 void slotEditAudioApplication();
60 void slotEditVideoApplication();
61 void slotReadAudioDevices();
62 void slotUpdateRmdRegionStatus();
63 void slotCheckAlsaDriver();
64 void slotAddTranscode();
65 void slotDeleteTranscode();
66 void slotDialogModified();
69 KPageWidgetItem *m_page1;
70 KPageWidgetItem *m_page2;
71 KPageWidgetItem *m_page3;
72 KPageWidgetItem *m_page4;
73 KPageWidgetItem *m_page5;
74 KPageWidgetItem *m_page6;
75 KPageWidgetItem *m_page7;
76 Ui::ConfigEnv_UI m_configEnv;
77 Ui::ConfigMisc_UI m_configMisc;
78 Ui::ConfigDisplay_UI m_configDisplay;
79 Ui::ConfigCapture_UI m_configCapture;
80 Ui::ConfigJogShuttle_UI m_configShuttle;
81 Ui::ConfigSdl_UI m_configSdl;
82 Ui::ConfigTranscode_UI m_configTranscode;
83 QString m_defaultProfile;
84 QString m_defaultPath;
85 KProcess m_readProcess;
88 void loadTranscodeProfiles();
89 void saveTranscodeProfiles();
93 void doResetProfile();
94 void updatePreviewSettings();
95 void updateCaptureFolder();