Changeset 175 for smplayer/vendor/current/src/preferences.h
- Timestamp:
- May 3, 2016, 2:14:41 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
smplayer/vendor/current/src/preferences.h
r168 r175 1 1 /* smplayer, GUI front-end for mplayer. 2 Copyright (C) 2006-201 4Ricardo Villalba <rvm@users.sourceforge.net>2 Copyright (C) 2006-2016 Ricardo Villalba <rvm@users.sourceforge.net> 3 3 4 4 This program is free software; you can redistribute it and/or modify … … 18 18 19 19 20 #ifndef _PREFERENCES_H_21 #define _PREFERENCES_H_20 #ifndef PREFERENCES_H 21 #define PREFERENCES_H 22 22 23 23 /* Global settings */ … … 31 31 32 32 #ifdef UPDATE_CHECKER 33 #include "updatechecker .h"33 #include "updatecheckerdata.h" 34 34 #endif 35 35 … … 48 48 enum WheelFunction { DoNothing = 1, Seeking = 2, Volume = 4, Zoom = 8, 49 49 ChangeSpeed = 16 }; 50 enum DragFunction { DragDisabled = 0, MoveWindow = 1, Gestures = 2 }; 50 51 enum OptionState { Detect = -1, Disabled = 0, Enabled = 1 }; 51 52 enum H264LoopFilter { LoopDisabled = 0, LoopEnabled = 1, LoopDisabledOnHD = 2 }; 52 53 enum AutoAddToPlaylistFilter { NoFiles = 0, VideoFiles = 1, AudioFiles = 2, MultimediaFiles = 3, ConsecutiveFiles = 4 }; 54 enum Streaming { NoStreaming = 0, StreamingAuto = 1, StreamingYT = 2, StreamingYTDL = 3 }; 53 55 54 56 Q_DECLARE_FLAGS(WheelFunctions, WheelFunction); … … 80 82 81 83 bool use_screenshot; 84 #ifdef MPV_SUPPORT 85 QString screenshot_template; 86 QString screenshot_format; 87 #endif 82 88 QString screenshot_directory; 89 #ifdef CAPTURE_STREAM 90 QString capture_directory; 91 #endif 83 92 84 93 // SMPlayer will remember all media settings for all videos. … … 149 158 // Misc 150 159 int osd; 160 double osd_scale; // mpv 161 double subfont_osd_scale; // mplayer 151 162 int osd_delay; //<! Delay in ms to show the OSD. 152 163 … … 186 197 int HD_height; //!< An HD is a video which height is equal or greater than this. 187 198 199 #ifdef OBSOLETE_FAST_AUDIO_CHANGE 188 200 OptionState fast_audio_change; // If activated, not restart mplayer 201 #endif 202 189 203 #if !SMART_DVD_CHAPTERS 190 204 bool fast_chapter_change; … … 192 206 193 207 int threads; //!< number of threads to use for decoding (-lavdopts threads <1-8>) 208 QString hwdec; //!< hardware video decoding (mpv only) 194 209 195 210 int cache_for_files; … … 200 215 int cache_for_tv; 201 216 202 #ifdef YOUTUBE_SUPPORT203 int yt_quality;204 QString yt_user_agent;205 bool yt_use_https_main;206 bool yt_use_https_vi;207 #endif208 209 217 210 218 /* ********* … … 212 220 ********* */ 213 221 214 QString font_file;215 QString font_name;216 bool use_fontconfig;217 222 QString subcp; // -subcp 218 223 bool use_enca; 219 224 QString enca_lang; 220 int font_autoscale; // -subfont-autoscale221 225 int subfuzziness; 222 226 bool autoload_sub; 223 227 224 228 bool use_ass_subtitles; 229 bool enable_ass_styles; 225 230 int ass_line_spacing; 226 231 … … 231 236 bool subtitles_on_screenshots; 232 237 233 //! Use the new sub_vob, sub_demux and sub_file commands234 //! instead of sub_select235 OptionState use_new_sub_commands;236 238 OptionState change_sub_scale_should_restart; 237 239 … … 248 250 //! If false, options requiring freetype won't be used 249 251 bool freetype_support; 250 #ifdef Q_OS_WIN252 #ifdef FONTS_HACK 251 253 bool use_windowsfontdir; 252 254 #endif … … 299 301 bool use_edl_files; 300 302 303 #ifdef MPLAYER_SUPPORT 304 //! If true it will pass to mplayer the -playlist option 305 bool use_playlist_option; 306 #endif 307 301 308 //! Preferred connection method: ipv4 or ipv6 302 309 bool prefer_ipv4; … … 323 330 324 331 int time_to_kill_mplayer; 332 333 #ifdef MPRIS2 334 bool use_mpris2; 335 #endif 325 336 326 337 … … 341 352 #endif 342 353 343 bool move_when_dragging; //!< Move the main window when the video area is dragged 354 bool center_window; //!< Center the main window when playback starts 355 bool center_window_if_outside; //!< Center the main window after an autoresize if it's outside of the screen 344 356 345 357 // Function of mouse buttons: … … 355 367 bool wheel_function_seeking_reverse; 356 368 369 int drag_function; 370 357 371 // Configurable seeking 358 372 int seeking1; // By default 10s … … 370 384 bool relative_seeking; 371 385 #endif 372 bool precise_seeking; //! Enable precise_seeking (only available with mp layer2)386 bool precise_seeking; //! Enable precise_seeking (only available with mpv) 373 387 374 388 bool reset_stop; //! Pressing the stop button resets the position … … 440 454 QString last_dvb_channel; 441 455 QString last_tv_channel; 442 456 457 458 /* ******** 459 Network 460 ******** */ 461 462 // Streaming 463 int streaming_type; 464 #ifdef YOUTUBE_SUPPORT 465 int yt_quality; 466 QString yt_user_agent; 467 bool yt_use_https_main; 468 bool yt_use_https_vi; 469 #endif 470 471 // Proxy 472 bool use_proxy; 473 int proxy_type; 474 QString proxy_host; 475 int proxy_port; 476 QString proxy_username; 477 QString proxy_password; 478 443 479 444 480 /* *********** … … 494 530 int mplayer_user_supplied_version; 495 531 532 #ifdef MPLAYER2_SUPPORT 496 533 bool mplayer_is_mplayer2; //! True if the detected version is mplayer2 497 534 QString mplayer2_detected_version; 535 #endif 498 536 499 537
Note:
See TracChangeset
for help on using the changeset viewer.