// This file is generated by kconfig_compiler from kdenlive.kcfg. // All changes you do to this file will be lost. #ifndef KDENLIVESETTINGS_H #define KDENLIVESETTINGS_H #include <kconfigskeleton.h> #include <kdebug.h> class KdenliveSettings : public KConfigSkeleton { public: static KdenliveSettings *self(); ~KdenliveSettings(); /** Set Open last project on startup. */ static void setOpenlast( bool v ) { if (!self()->isImmutable( QString::fromLatin1( "openlast" ) )) self()->mOpenlast = v; } /** Get Open last project on startup. */ static bool openlast() { return self()->mOpenlast; } /** Set Open blank project on startup. */ static void setOpenblank( bool v ) { if (!self()->isImmutable( QString::fromLatin1( "openblank" ) )) self()->mOpenblank = v; } /** Get Open blank project on startup. */ static bool openblank() { return self()->mOpenblank; } /** Set Ask user to choose project at startup. */ static void setAlwaysask( bool v ) { if (!self()->isImmutable( QString::fromLatin1( "alwaysask" ) )) self()->mAlwaysask = v; } /** Get Ask user to choose project at startup. */ static bool alwaysask() { return self()->mAlwaysask; } /** Set Autosave project. */ static void setAutosave( bool v ) { if (!self()->isImmutable( QString::fromLatin1( "autosave" ) )) self()->mAutosave = v; } /** Get Autosave project. */ static bool autosave() { return self()->mAutosave; } /** Set Autosave interval. */ static void setAutosavetime( int v ) { if (!self()->isImmutable( QString::fromLatin1( "autosavetime" ) )) self()->mAutosavetime = v; } /** Get Autosave interval. */ static int autosavetime() { return self()->mAutosavetime; } /** Set Show splash screen on startup. */ static void setShowsplash( bool v ) { if (!self()->isImmutable( QString::fromLatin1( "showsplash" ) )) self()->mShowsplash = v; } /** Get Show splash screen on startup. */ static bool showsplash() { return self()->mShowsplash; } /** Set Mouse Wheel moves timeline horizontally. */ static void setHorizontalmouse( bool v ) { if (!self()->isImmutable( QString::fromLatin1( "horizontalmouse" ) )) self()->mHorizontalmouse = v; } /** Get Mouse Wheel moves timeline horizontally. */ static bool horizontalmouse() { return self()->mHorizontalmouse; } /** Set Size of video tracks. */ static void setVideotracksize( int v ) { if (!self()->isImmutable( QString::fromLatin1( "videotracksize" ) )) self()->mVideotracksize = v; } /** Get Size of video tracks. */ static int videotracksize() { return self()->mVideotracksize; } /** Set Size of audio tracks. */ static void setAudiotracksize( int v ) { if (!self()->isImmutable( QString::fromLatin1( "audiotracksize" ) )) self()->mAudiotracksize = v; } /** Get Size of audio tracks. */ static int audiotracksize() { return self()->mAudiotracksize; } /** Set Show video thumbnails. */ static void setVideothumbnails( bool v ) { if (!self()->isImmutable( QString::fromLatin1( "videothumbnails" ) )) self()->mVideothumbnails = v; } /** Get Show video thumbnails. */ static bool videothumbnails() { return self()->mVideothumbnails; } /** Set Show audio preview. */ static void setAudiothumbnails( bool v ) { if (!self()->isImmutable( QString::fromLatin1( "audiothumbnails" ) )) self()->mAudiothumbnails = v; } /** Get Show audio preview. */ static bool audiothumbnails() { return self()->mAudiothumbnails; } /** Set disable audio thumbs for large clips when zooming out. */ static void setLimitedaudiothumbs( bool v ) { if (!self()->isImmutable( QString::fromLatin1( "limitedaudiothumbs" ) )) self()->mLimitedaudiothumbs = v; } /** Get disable audio thumbs for large clips when zooming out. */ static bool limitedaudiothumbs() { return self()->mLimitedaudiothumbs; } /** Set Normalise audio volume for thumbail creation. */ static void setNormaliseaudiothumbs( bool v ) { if (!self()->isImmutable( QString::fromLatin1( "normaliseaudiothumbs" ) )) self()->mNormaliseaudiothumbs = v; } /** Get Normalise audio volume for thumbail creation. */ static bool normaliseaudiothumbs() { return self()->mNormaliseaudiothumbs; } /** Set Color of the clips on video track */ static void setVideoclipcolor( const QColor & v ) { if (!self()->isImmutable( QString::fromLatin1( "videoclipcolor" ) )) self()->mVideoclipcolor = v; } /** Get Color of the clips on video track */ static QColor videoclipcolor() { return self()->mVideoclipcolor; } /** Set Color of the clips on video track */ static void setAudioclipcolor( const QColor & v ) { if (!self()->isImmutable( QString::fromLatin1( "audioclipcolor" ) )) self()->mAudioclipcolor = v; } /** Get Color of the clips on video track */ static QColor audioclipcolor() { return self()->mAudioclipcolor; } /** Set Automatically scroll timeline while playing. */ static void setAutoscroll( bool v ) { if (!self()->isImmutable( QString::fromLatin1( "autoscroll" ) )) self()->mAutoscroll = v; } /** Get Automatically scroll timeline while playing. */ static bool autoscroll() { return self()->mAutoscroll; } /** Set Number of video tracks in a blank project. */ static void setVideotracks( int v ) { if (!self()->isImmutable( QString::fromLatin1( "videotracks" ) )) self()->mVideotracks = v; } /** Get Number of video tracks in a blank project. */ static int videotracks() { return self()->mVideotracks; } /** Set Number of audio tracks in a blank project. */ static void setAudiotracks( int v ) { if (!self()->isImmutable( QString::fromLatin1( "audiotracks" ) )) self()->mAudiotracks = v; } /** Get Number of audio tracks in a blank project. */ static int audiotracks() { return self()->mAudiotracks; } /** Set Default video project template */ static void setDefaultprojectformat( const QString & v ) { if (!self()->isImmutable( QString::fromLatin1( "defaultprojectformat" ) )) self()->mDefaultprojectformat = v; } /** Get Default video project template */ static QString defaultprojectformat() { return self()->mDefaultprojectformat; } /** Set Width of the project's video image. */ static void setDefaultwidth( int v ) { if (!self()->isImmutable( QString::fromLatin1( "defaultwidth" ) )) self()->mDefaultwidth = v; } /** Get Width of the project's video image. */ static int defaultwidth() { return self()->mDefaultwidth; } /** Set Width of the project's displayed video image (with aspect ratio correction). */ static void setDisplaywidth( int v ) { if (!self()->isImmutable( QString::fromLatin1( "displaywidth" ) )) self()->mDisplaywidth = v; } /** Get Width of the project's displayed video image (with aspect ratio correction). */ static int displaywidth() { return self()->mDisplaywidth; } /** Set Height of the project's video image. */ static void setDefaultheight( int v ) { if (!self()->isImmutable( QString::fromLatin1( "defaultheight" ) )) self()->mDefaultheight = v; } /** Get Height of the project's video image. */ static int defaultheight() { return self()->mDefaultheight; } /** Set Project's Frames per second value. */ static void setDefaultfps( double v ) { if (!self()->isImmutable( QString::fromLatin1( "defaultfps" ) )) self()->mDefaultfps = v; } /** Get Project's Frames per second value. */ static double defaultfps() { return self()->mDefaultfps; } /** Set Aspect ratio. */ static void setAspectratio( double v ) { if (!self()->isImmutable( QString::fromLatin1( "aspectratio" ) )) self()->mAspectratio = v; } /** Get Aspect ratio. */ static double aspectratio() { return self()->mAspectratio; } /** Set Render ratio. */ static void setRenderratio( double v ) { if (!self()->isImmutable( QString::fromLatin1( "renderratio" ) )) self()->mRenderratio = v; } /** Get Render ratio. */ static double renderratio() { return self()->mRenderratio; } /** Set MLT correction ratio. */ static void setCorrectionratio( double v ) { if (!self()->isImmutable( QString::fromLatin1( "correctionratio" ) )) self()->mCorrectionratio = v; } /** Get MLT correction ratio. */ static double correctionratio() { return self()->mCorrectionratio; } /** Set Aspect ratio. */ static void setDisplayratio( double v ) { if (!self()->isImmutable( QString::fromLatin1( "displayratio" ) )) self()->mDisplayratio = v; } /** Get Aspect ratio. */ static double displayratio() { return self()->mDisplayratio; } /** Set Normal or 16:9 profile. */ static void setVideoprofile( const QString & v ) { if (!self()->isImmutable( QString::fromLatin1( "videoprofile" ) )) self()->mVideoprofile = v; } /** Get Normal or 16:9 profile. */ static QString videoprofile() { return self()->mVideoprofile; } /** Set Add newly created clip / image to current project. */ static void setAddnewlysaved( bool v ) { if (!self()->isImmutable( QString::fromLatin1( "addnewlysaved" ) )) self()->mAddnewlysaved = v; } /** Get Add newly created clip / image to current project. */ static bool addnewlysaved() { return self()->mAddnewlysaved; } /** Set Show effects in timeline. */ static void setShoweffects( bool v ) { if (!self()->isImmutable( QString::fromLatin1( "showeffects" ) )) self()->mShoweffects = v; } /** Get Show effects in timeline. */ static bool showeffects() { return self()->mShoweffects; } /** Set Show markers text in timeline. */ static void setShowallmarkers( bool v ) { if (!self()->isImmutable( QString::fromLatin1( "showallmarkers" ) )) self()->mShowallmarkers = v; } /** Get Show markers text in timeline. */ static bool showallmarkers() { return self()->mShowallmarkers; } /** Set Show transitions in timeline. */ static void setShowtransitions( bool v ) { if (!self()->isImmutable( QString::fromLatin1( "showtransitions" ) )) self()->mShowtransitions = v; } /** Get Show transitions in timeline. */ static bool showtransitions() { return self()->mShowtransitions; } /** Set Audio device used for sound output. */ static void setAudiodevice( const QString & v ) { if (!self()->isImmutable( QString::fromLatin1( "audiodevice" ) )) self()->mAudiodevice = v; } /** Get Audio device used for sound output. */ static QString audiodevice() { return self()->mAudiodevice; } /** Set Audio driver used for sound output. */ static void setAudiodriver( const QString & v ) { if (!self()->isImmutable( QString::fromLatin1( "audiodriver" ) )) self()->mAudiodriver = v; } /** Get Audio driver used for sound output. */ static QString audiodriver() { return self()->mAudiodriver; } /** Set Video driver used for output. */ static void setVideodriver( const QString & v ) { if (!self()->isImmutable( QString::fromLatin1( "videodriver" ) )) self()->mVideodriver = v; } /** Get Video driver used for output. */ static QString videodriver() { return self()->mVideodriver; } /** Set Folder where the MLT video framework is installed */ static void setMltpath( const QString & v ) { if (!self()->isImmutable( QString::fromLatin1( "mltpath" ) )) self()->mMltpath = v; } /** Get Folder where the MLT video framework is installed */ static QString mltpath() { return self()->mMltpath; } /** Set User defined temporary folder. */ static void setUserdefinedtmp( bool v ) { if (!self()->isImmutable( QString::fromLatin1( "userdefinedtmp" ) )) self()->mUserdefinedtmp = v; } /** Get User defined temporary folder. */ static bool userdefinedtmp() { return self()->mUserdefinedtmp; } /** Set Default folder for temporary files (to store thumbnails and previews). */ static void setDefaulttmpfolder( const QString & v ) { if (!self()->isImmutable( QString::fromLatin1( "defaulttmpfolder" ) )) self()->mDefaulttmpfolder = v; } /** Get Default folder for temporary files (to store thumbnails and previews). */ static QString defaulttmpfolder() { return self()->mDefaulttmpfolder; } /** Set Default folder for the current project (used to store the project file, thumbnails and previews). */ static void setCurrentdefaultfolder( const QString & v ) { if (!self()->isImmutable( QString::fromLatin1( "currentdefaultfolder" ) )) self()->mCurrentdefaultfolder = v; } /** Get Default folder for the current project (used to store the project file, thumbnails and previews). */ static QString currentdefaultfolder() { return self()->mCurrentdefaultfolder; } /** Set Default folder for the current project tmp files (thumbnails and previews). */ static void setCurrenttmpfolder( const QString & v ) { if (!self()->isImmutable( QString::fromLatin1( "currenttmpfolder" ) )) self()->mCurrenttmpfolder = v; } /** Get Default folder for the current project tmp files (thumbnails and previews). */ static QString currenttmpfolder() { return self()->mCurrenttmpfolder; } /** Set Default duration for new text clips. */ static void setTextclipduration( const QString & v ) { if (!self()->isImmutable( QString::fromLatin1( "textclipduration" ) )) self()->mTextclipduration = v; } /** Get Default duration for new text clips. */ static QString textclipduration() { return self()->mTextclipduration; } /** Set Default duration for new color clips. */ static void setColorclipduration( const QString & v ) { if (!self()->isImmutable( QString::fromLatin1( "colorclipduration" ) )) self()->mColorclipduration = v; } /** Get Default duration for new color clips. */ static QString colorclipduration() { return self()->mColorclipduration; } /** Set Distort images to fill screen. */ static void setDistortimages( bool v ) { if (!self()->isImmutable( QString::fromLatin1( "distortimages" ) )) self()->mDistortimages = v; } /** Get Distort images to fill screen. */ static bool distortimages() { return self()->mDistortimages; } /** Set Display Timecode on the video image. */ static void setOsdtimecode( bool v ) { if (!self()->isImmutable( QString::fromLatin1( "osdtimecode" ) )) self()->mOsdtimecode = v; } /** Get Display Timecode on the video image. */ static bool osdtimecode() { return self()->mOsdtimecode; } /** Set Display several tracks at same time. */ static void setMultitrackview( bool v ) { if (!self()->isImmutable( QString::fromLatin1( "multitrackview" ) )) self()->mMultitrackview = v; } /** Get Display several tracks at same time. */ static bool multitrackview() { return self()->mMultitrackview; } /** Set Quality of image resize in video preview */ static void setPreviewquality( const QString & v ) { if (!self()->isImmutable( QString::fromLatin1( "previewquality" ) )) self()->mPreviewquality = v; } /** Get Quality of image resize in video preview */ static QString previewquality() { return self()->mPreviewquality; } /** Set Executable name for external audio editor. */ static void setExternalaudioeditor( const QString & v ) { if (!self()->isImmutable( QString::fromLatin1( "externalaudioeditor" ) )) self()->mExternalaudioeditor = v; } /** Get Executable name for external audio editor. */ static QString externalaudioeditor() { return self()->mExternalaudioeditor; } /** Set Executable name for external image editor. */ static void setExternalimageeditor( const QString & v ) { if (!self()->isImmutable( QString::fromLatin1( "externalimageeditor" ) )) self()->mExternalimageeditor = v; } /** Get Executable name for external image editor. */ static QString externalimageeditor() { return self()->mExternalimageeditor; } /** Set Default font for titles */ static void setTitlerfont( const QFont & v ) { if (!self()->isImmutable( QString::fromLatin1( "titlerfont" ) )) self()->mTitlerfont = v; } /** Get Default font for titles */ static QFont titlerfont() { return self()->mTitlerfont; } /** Set Color of title text */ static void setTitlercolor( const QColor & v ) { if (!self()->isImmutable( QString::fromLatin1( "titlercolor" ) )) self()->mTitlercolor = v; } /** Get Color of title text */ static QColor titlercolor() { return self()->mTitlercolor; } /** Set Automatically split capture file on new scene detection. */ static void setAutosplit( bool v ) { if (!self()->isImmutable( QString::fromLatin1( "autosplit" ) )) self()->mAutosplit = v; } /** Get Automatically split capture file on new scene detection. */ static bool autosplit() { return self()->mAutosplit; } /** Set Put recording time info in captured file name. */ static void setTimestamp( bool v ) { if (!self()->isImmutable( QString::fromLatin1( "timestamp" ) )) self()->mTimestamp = v; } /** Get Put recording time info in captured file name. */ static bool timestamp() { return self()->mTimestamp; } /** Set DVgrab capture format. */ static void setCaptureformat( int v ) { if (!self()->isImmutable( QString::fromLatin1( "captureformat" ) )) self()->mCaptureformat = v; } /** Get DVgrab capture format. */ static int captureformat() { return self()->mCaptureformat; } /** Set Use external monitor for video output. */ static void setUseexternalmonitor( bool v ) { if (!self()->isImmutable( QString::fromLatin1( "useexternalmonitor" ) )) self()->mUseexternalmonitor = v; } /** Get Use external monitor for video output. */ static bool useexternalmonitor() { return self()->mUseexternalmonitor; } /** Set Monitor number. */ static void setExternalmonitor( int v ) { if (!self()->isImmutable( QString::fromLatin1( "externalmonitor" ) )) self()->mExternalmonitor = v; } /** Get Monitor number. */ static int externalmonitor() { return self()->mExternalmonitor; } static void writeConfig() { static_cast<KConfigSkeleton*>(self())->writeConfig(); } protected: KdenliveSettings(); static KdenliveSettings *mSelf; // Interface bool mOpenlast; bool mOpenblank; bool mAlwaysask; bool mAutosave; int mAutosavetime; bool mShowsplash; bool mHorizontalmouse; // Timeline int mVideotracksize; int mAudiotracksize; bool mVideothumbnails; bool mAudiothumbnails; bool mLimitedaudiothumbs; bool mNormaliseaudiothumbs; QColor mVideoclipcolor; QColor mAudioclipcolor; bool mAutoscroll; // Default Project int mVideotracks; int mAudiotracks; // Unmanaged Settings QString mDefaultprojectformat; int mDefaultwidth; int mDisplaywidth; int mDefaultheight; double mDefaultfps; double mAspectratio; double mRenderratio; double mCorrectionratio; double mDisplayratio; QString mVideoprofile; bool mAddnewlysaved; bool mShoweffects; bool mShowallmarkers; bool mShowtransitions; QString mAudiodevice; QString mAudiodriver; QString mVideodriver; // Misc QString mMltpath; bool mUserdefinedtmp; QString mDefaulttmpfolder; QString mCurrentdefaultfolder; QString mCurrenttmpfolder; QString mTextclipduration; QString mColorclipduration; bool mDistortimages; bool mOsdtimecode; bool mMultitrackview; QString mPreviewquality; QString mExternalaudioeditor; QString mExternalimageeditor; // Titler QFont mTitlerfont; QColor mTitlercolor; // Capture bool mAutosplit; bool mTimestamp; int mCaptureformat; // Hardware bool mUseexternalmonitor; int mExternalmonitor; private: }; #endif