- Timestamp:
- Sep 5, 2006, 1:31:01 AM (19 years ago)
- Location:
- psi/trunk/src
- Files:
-
- 6 edited
-
common.cpp (modified) (8 diffs)
-
mainwin.cpp (modified) (4 diffs)
-
options/opt_application.cpp (modified) (4 diffs)
-
options/opt_general.cpp (modified) (2 diffs)
-
options/opt_sound.cpp (modified) (2 diffs)
-
psi_profiles.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
psi/trunk/src/common.cpp
r2 r19 27 27 28 28 QString PROG_NAME = "Psi"; 29 30 31 29 32 //QString PROG_VERSION = "0.11-dev" " (" __DATE__ ")"; //CVS Builds are dated 30 33 QString PROG_VERSION = "0.10"; 34 31 35 32 36 #ifdef HAVE_CONFIG … … 58 62 #ifdef Q_WS_WIN 59 63 #include<windows.h> 64 65 66 67 68 60 69 #endif 61 70 … … 995 1004 useCustom = FALSE; 996 1005 #endif 1006 1007 1008 997 1009 #ifdef Q_WS_X11 998 1010 if(option.browser == 0 || option.browser == 2) … … 1040 1052 QMessageBox::critical(0, CAP(QObject::tr("URL error")), QObject::tr("Unable to open the URL. Ensure that you have a web browser installed.")); 1041 1053 } 1054 1055 1056 1042 1057 #endif 1043 1058 #ifdef Q_WS_X11 … … 1102 1117 static void getSysInfo() 1103 1118 { 1104 #if defined(Q_WS_X11) || defined(Q_WS_MAC) 1119 #if defined(Q_WS_X11) || defined(Q_WS_MAC) || defined(Q_WS_PM) 1120 /// @todo (dmik) test it 1105 1121 time_t x; 1106 1122 time(&x); … … 1206 1222 } 1207 1223 } 1224 1225 1208 1226 #elif defined(Q_WS_MAC) 1209 1227 os_str = "Mac OS X"; … … 1328 1346 else 1329 1347 base = QDir::homeDirPath(); 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1330 1376 1331 1377 // no trailing slash … … 1465 1511 return; 1466 1512 1467 #if defined(Q_WS_WIN) || defined(Q_WS_ MAC)1513 #if defined(Q_WS_WIN) || defined(Q_WS_MAC) 1468 1514 QSound::play(str); 1469 1515 #else -
psi/trunk/src/mainwin.cpp
r2 r19 449 449 void MainWin::setUseDock(bool use) 450 450 { 451 452 453 454 455 456 451 457 if(use == false || (d->tray && option.isWMDock != d->tray->isWMDock())) { 452 458 if(d->tray) { … … 478 484 479 485 d->tray->show(); 486 480 487 } 481 488 … … 688 695 void MainWin::actReadmeActivated () 689 696 { 690 #if def Q_WS_WIN697 #if 691 698 ShowTextDlg *w = new ShowTextDlg(g.pathBase + "/readme.txt"); 692 699 #else … … 868 875 #endif 869 876 870 if(allowed && closekey) { 871 close(); 877 if(closekey) { 878 #ifdef Q_WS_MAC 879 if(allowed) { 880 close(); 881 e->accept(); 882 return; 883 } 884 #else 885 if(allowed) 886 close(); 887 else 888 showMinimized(); 872 889 e->accept(); 873 890 return; 891 874 892 } 875 893 -
psi/trunk/src/options/opt_application.cpp
r2 r19 79 79 d->gb_docklet->hide(); 80 80 #endif 81 82 83 84 85 86 87 81 88 #ifndef Q_WS_X11 82 89 d->ck_dockUseWM->hide(); … … 86 93 } 87 94 95 88 96 static int om_x11browse[] = { 0, 2, 1 }; 97 89 98 90 99 void OptionsTabApplication::applyOptions(Options *opt) … … 143 152 selectBrowser( opt->browser ); 144 153 #endif 154 155 156 157 158 159 145 160 #ifdef Q_WS_X11 146 161 d->cb_link->insertItem(tr("KDE Default Browser/Mail")); … … 179 194 180 195 #ifdef Q_WS_WIN 196 197 198 199 181 200 if(x == 0) 182 201 enableCustom = FALSE; -
psi/trunk/src/options/opt_general.cpp
r2 r19 317 317 selectBrowser( opt->browser ); 318 318 #endif 319 320 321 322 323 324 319 325 #ifdef Q_WS_X11 320 326 d->cb_link->insertItem(tr("KDE Default Browser/Mail")); … … 342 348 343 349 #ifdef Q_WS_WIN 350 351 352 353 344 354 if(x == 0) 345 355 enableCustom = FALSE; -
psi/trunk/src/options/opt_sound.cpp
r2 r19 102 102 d->lb_player->hide(); 103 103 d->le_player->hide(); 104 105 106 104 107 #elif defined(Q_WS_MAC) 105 108 d->lb_player->hide(); … … 133 136 #if defined(Q_WS_WIN) 134 137 d->le_player->setText(tr("Windows Sound")); 138 139 135 140 #elif defined(Q_WS_MAC) 136 141 d->le_player->setText(tr("Mac OS Sound")); -
psi/trunk/src/psi_profiles.cpp
r2 r19 310 310 void UserProfile::reset() 311 311 { 312 bool nix, win, mac ;313 nix = win = mac = FALSE;312 bool nix, win, mac; 313 nix = win = mac = FALSE; 314 314 315 315 #ifdef Q_WS_X11 … … 321 321 #ifdef Q_WS_MAC 322 322 mac = TRUE; 323 324 325 323 326 #endif 324 327
Note:
See TracChangeset
for help on using the changeset viewer.
