]> git.sesse.net Git - kdenlive/blob - src/kdenlivesettingsdialog.h
05f01c0c2c7c5468fff84c63252507d80d08f5d7
[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_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"
37
38 class KdenliveSettingsDialog : public KConfigDialog
39 {
40     Q_OBJECT
41
42 public:
43     KdenliveSettingsDialog(QWidget * parent = 0);
44     ~KdenliveSettingsDialog();
45     void showPage(int page, int option);
46     void checkProfile();
47
48 protected slots:
49     void updateSettings();
50     virtual bool hasChanged();
51
52 private slots:
53     void slotUpdateDisplay();
54     void rebuildVideo4Commands();
55 #ifndef NO_JOGSHUTTLE
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();
71
72 private:
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;
92     bool m_modified;
93     void initDevices();
94     void loadTranscodeProfiles();
95     void saveTranscodeProfiles();
96
97 signals:
98     void customChanged();
99     void doResetProfile();
100     void updatePreviewSettings();
101     void updateCaptureFolder();
102 };
103
104
105 #endif
106