Changeset 137 for smplayer/vendor/current/src/smplayer.cpp
- Timestamp:
- Dec 3, 2012, 5:29:00 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
smplayer/vendor/current/src/smplayer.cpp
r133 r137 29 29 #include "myapplication.h" 30 30 31 #ifdef SKINS 32 #include "skingui.h" 33 #endif 34 31 35 #include <QDir> 32 36 #include <QUrl> … … 39 43 #include "winfileassoc.h" //required for Uninstall 40 44 #endif 45 #endif 46 47 #ifdef FONTCACHE_DIALOG 48 #include "fontcache.h" 49 #include "version.h" 41 50 #endif 42 51 … … 109 118 BaseGui * gui = 0; 110 119 120 #ifdef SKINS 121 if (gui_name.toLower() == "skingui") 122 gui = new SkinGui(0); 123 else 124 #endif 111 125 if (gui_name.toLower() == "minigui") 112 126 gui = new MiniGui(0); … … 354 368 355 369 void SMPlayer::start() { 370 #ifdef FONTCACHE_DIALOG 371 #ifndef PORTABLE_APP 372 if (smplayerVersion() != pref->smplayer_version) { 373 FontCacheDialog d(0); 374 d.run(pref->mplayer_bin, "sample.avi"); 375 pref->smplayer_version = smplayerVersion(); 376 } 377 #endif 378 #endif 379 356 380 if (!gui()->startHidden() || !files_to_play.isEmpty() ) gui()->show(); 357 381 if (!files_to_play.isEmpty()) { … … 394 418 case QSysInfo::WV_2000: win_ver = "Windows 2000"; break; 395 419 case QSysInfo::WV_XP: win_ver = "Windows XP"; break; 396 case QSysInfo::WV_2003: win_ver = "Windows Server 2003"; break;397 case QSysInfo::WV_VISTA: win_ver = "Windows Vista "; break;420 case QSysInfo::WV_2003: win_ver = "Windows XP Professional x64/Server 2003"; break; 421 case QSysInfo::WV_VISTA: win_ver = "Windows Vista/Server 2008"; break; 398 422 #if QT_VERSION >= 0x040501 399 case QSysInfo::WV_WINDOWS7: win_ver = "Windows 7 "; break;423 case QSysInfo::WV_WINDOWS7: win_ver = "Windows 7/Server 2008 R2"; break; 400 424 #endif 401 425 #if QT_VERSION >= 0x040803 402 case QSysInfo::WV_WINDOWS8: win_ver = "Windows 8 "; break;426 case QSysInfo::WV_WINDOWS8: win_ver = "Windows 8/Server 2012"; break; 403 427 #endif 404 default: win_ver = QString("other: %1").arg(QSysInfo::WindowsVersion); 428 case QSysInfo::WV_NT_based: win_ver = "NT-based Windows"; break; 429 default: win_ver = QString("Unknown/Unsupported Windows OS"); break; 405 430 } 406 431 #endif
Note:
See TracChangeset
for help on using the changeset viewer.