Changeset 140 for smplayer/vendor/current/src/preferences.cpp
- Timestamp:
- May 23, 2013, 5:06:17 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
smplayer/vendor/current/src/preferences.cpp
r137 r140 1 1 /* smplayer, GUI front-end for mplayer. 2 Copyright (C) 2006-201 2Ricardo Villalba <rvm@users.sourceforge.net>2 Copyright (C) 2006-2013 Ricardo Villalba <rvm@users.sourceforge.net> 3 3 4 4 This program is free software; you can redistribute it and/or modify … … 39 39 #endif 40 40 41 #define CURRENT_CONFIG_VERSION 241 #define CURRENT_CONFIG_VERSION 4 42 42 43 43 using namespace Global; … … 140 140 mc_value = 0; 141 141 142 osd = Seek;142 osd = None; 143 143 osd_delay = 2200; 144 144 … … 175 175 176 176 priority = AboveNormal; // Option only for windows 177 frame_drop = true;177 frame_drop = false; 178 178 hard_frame_drop = false; 179 179 coreavc = false; … … 189 189 threads = 1; 190 190 191 cache_for_files = 0;192 cache_for_streams = 1000;191 cache_for_files = 2048; 192 cache_for_streams = 2048; 193 193 cache_for_dvds = 0; // not recommended to use cache for dvds 194 cache_for_vcds = 10 00;195 cache_for_audiocds = 10 00;194 cache_for_vcds = 1024; 195 cache_for_audiocds = 1024; 196 196 cache_for_tv = 3000; 197 197 … … 302 302 show_tag_in_window_title = true; 303 303 304 time_to_kill_mplayer = 5000;304 time_to_kill_mplayer = 1000; 305 305 306 306 … … 315 315 size_factor = 100; // 100% 316 316 317 resize_method = Always;317 resize_method = Never; 318 318 319 319 #if STYLE_SWITCHING 320 320 style=""; 321 321 #endif 322 323 move_when_dragging = false; 322 324 323 325 … … 350 352 precise_seeking = true; 351 353 354 reset_stop = false; 355 352 356 language = ""; 353 iconset = "";354 357 355 358 balloon_count = 5; … … 371 374 allow_video_movement = false; 372 375 373 gui = "DefaultGui"; 376 #ifdef SKINS 377 gui = "SkinGUI"; 378 iconset = "Gonzo"; 379 #else 380 gui = "DefaultGUI"; 381 iconset = ""; 382 #endif 374 383 375 384 #if USE_MINIMUMSIZE 376 385 gui_minimum_width = 0; // 0 == disabled 377 386 #endif 378 default_size = QSize( 580, 440);387 default_size = QSize(683, 509); 379 388 380 389 #if ALLOW_TO_HIDE_VIDEO_WINDOW_ON_AUDIO_FILES … … 755 764 set->setValue("style", style); 756 765 #endif 766 767 set->setValue("move_when_dragging", move_when_dragging); 757 768 758 769 set->setValue("mouse_left_click_function", mouse_left_click_function); … … 779 790 #endif 780 791 set->setValue("precise_seeking", precise_seeking); 792 793 set->setValue("reset_stop", reset_stop); 781 794 782 795 set->setValue("language", language); … … 1215 1228 #endif 1216 1229 1230 move_when_dragging = set->value("move_when_dragging", move_when_dragging).toBool(); 1231 1217 1232 mouse_left_click_function = set->value("mouse_left_click_function", mouse_left_click_function).toString(); 1218 1233 mouse_right_click_function = set->value("mouse_right_click_function", mouse_right_click_function).toString(); … … 1240 1255 precise_seeking = set->value("precise_seeking", precise_seeking).toBool(); 1241 1256 1257 reset_stop = set->value("reset_stop", reset_stop).toBool(); 1258 1242 1259 language = set->value("language", language).toString(); 1243 1260 iconset= set->value("iconset", iconset).toString(); … … 1415 1432 if (config_version < CURRENT_CONFIG_VERSION) { 1416 1433 qDebug("Preferences::load: config version is old, updating it"); 1434 /* 1435 if (config_version <= 2) { 1436 use_slices = false; 1437 } 1438 if (config_version <= 3) { 1439 osd = None; 1440 frame_drop = false; 1441 cache_for_files = 2048; 1442 cache_for_streams = 2048; 1443 time_to_kill_mplayer = 1000; 1444 } 1445 */ 1446 if (config_version <= 4) { 1447 use_slices = false; 1448 osd = None; 1449 frame_drop = false; 1450 cache_for_files = 2048; 1451 cache_for_streams = 2048; 1452 time_to_kill_mplayer = 1000; 1453 1454 resize_method = Never; 1455 move_when_dragging = false; 1456 } 1417 1457 config_version = CURRENT_CONFIG_VERSION; 1418 use_slices = false;1419 1458 } 1459 1460 #ifdef Q_OS_WIN 1461 // Check if the mplayer binary exists and try to fix it 1462 if (!QFile::exists(mplayer_bin)) { 1463 qWarning("mplayer_bin '%s' doesn' exist", mplayer_bin.toLatin1().constData()); 1464 bool fixed = false; 1465 if (QFile::exists("mplayer/mplayer.exe")) { 1466 mplayer_bin = "mplayer/mplayer.exe"; 1467 fixed = true; 1468 } else 1469 if (QFile::exists("mplayer/mplayer2.exe")) { 1470 mplayer_bin = "mplayer/mplayer2.exe"; 1471 fixed = true; 1472 } 1473 if (fixed) { 1474 qWarning("mplayer_bin changed to '%s'", mplayer_bin.toLatin1().constData()); 1475 } 1476 } 1477 #endif 1420 1478 } 1421 1479
Note:
See TracChangeset
for help on using the changeset viewer.