]> git.sesse.net Git - kdenlive/blob - src/kdenlivesettingsdialog.h
971036111294fbfd9312f070a99e25c367b600bc
[kdenlive] / src / kdenlivesettingsdialog.h
1 /***************************************************************************
2  *   Copyright (C) 2008 by Jean-Baptiste Mardelle (jb@kdenlive.org)        *
3  *                                                                         *
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.                                   *
8  *                                                                         *
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.                          *
13  *                                                                         *
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  ***************************************************************************/
19
20
21 #ifndef KDENLIVESETTINGSDIALOG_H
22 #define KDENLIVESETTINGSDIALOG_H
23
24 #include <QDialog>
25
26 #include <KConfigDialog>
27 #include <KProcess>
28
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"
36
37 class KdenliveSettingsDialog : public KConfigDialog
38 {
39     Q_OBJECT
40
41 public:
42     KdenliveSettingsDialog(QWidget * parent = 0);
43     ~KdenliveSettingsDialog();
44     void showPage(int page, int option);
45     void checkProfile();
46
47 protected slots:
48     void updateSettings();
49     virtual bool hasChanged();
50
51 private slots:
52     void slotUpdateDisplay();
53     void rebuildVideo4Commands();
54 #ifndef NO_JOGSHUTTLE
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();
67
68 private:
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;
86     bool m_modified;
87     void initDevices();
88     void loadTranscodeProfiles();
89     void saveTranscodeProfiles();
90
91 signals:
92     void customChanged();
93     void doResetProfile();
94     void updatePreviewSettings();
95     void updateCaptureFolder();
96 };
97
98
99 #endif
100