/*************************************************************************** * Copyright (C) 2008 by Jean-Baptiste Mardelle (jb@kdenlive.org) * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * ***************************************************************************/ #ifndef KDENLIVESETTINGSDIALOG_H #define KDENLIVESETTINGSDIALOG_H #include <QDialog> #include <KConfigDialog> #include <KProcess> #include "ui_configmisc_ui.h" #include "ui_configenv_ui.h" #include "ui_configtimeline_ui.h" #include "ui_configcapture_ui.h" #include "ui_configjogshuttle_ui.h" #include "ui_configsdl_ui.h" #include "ui_configtranscode_ui.h" #include "ui_configproject_ui.h" 00038 class KdenliveSettingsDialog : public KConfigDialog { Q_OBJECT public: KdenliveSettingsDialog(QWidget * parent = 0); ~KdenliveSettingsDialog(); void showPage(int page, int option); void checkProfile(); protected slots: void updateSettings(); virtual bool hasChanged(); private slots: void slotUpdateDisplay(); void rebuildVideo4Commands(); #ifndef NO_JOGSHUTTLE void slotCheckShuttle(int state = 0); void slotUpdateShuttleDevice(int ix = 0); #endif /* NO_JOGSHUTTLE */ void slotEditImageApplication(); void slotEditAudioApplication(); void slotEditVideoApplication(); void slotReadAudioDevices(); void slotUpdateRmdRegionStatus(); void slotCheckAlsaDriver(); void slotAddTranscode(); void slotDeleteTranscode(); void slotDialogModified(); private: KPageWidgetItem *m_page1; KPageWidgetItem *m_page2; KPageWidgetItem *m_page3; KPageWidgetItem *m_page4; KPageWidgetItem *m_page5; KPageWidgetItem *m_page6; KPageWidgetItem *m_page7; KPageWidgetItem *m_page8; Ui::ConfigEnv_UI m_configEnv; Ui::ConfigMisc_UI m_configMisc; Ui::ConfigTimeline_UI m_configTimeline; Ui::ConfigCapture_UI m_configCapture; Ui::ConfigJogShuttle_UI m_configShuttle; Ui::ConfigSdl_UI m_configSdl; Ui::ConfigTranscode_UI m_configTranscode; Ui::ConfigProject_UI m_configProject; QString m_defaultProfile; QString m_defaultPath; KProcess m_readProcess; bool m_modified; void initDevices(); void loadTranscodeProfiles(); void saveTranscodeProfiles(); signals: void customChanged(); void doResetProfile(); void updatePreviewSettings(); void updateCaptureFolder(); }; #endif