Browse Source

Trinity Qt initial conversion

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1157643 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 10 years ago
parent
commit
576eb4299a
689 changed files with 13174 additions and 13174 deletions
  1. +6
    -6
      atlantik/atlanticd/atlanticclient.cpp
  2. +4
    -4
      atlantik/atlanticd/atlanticclient.h
  3. +10
    -10
      atlantik/atlanticd/atlanticdaemon.cpp
  4. +4
    -4
      atlantik/atlanticd/atlanticdaemon.h
  5. +2
    -2
      atlantik/atlanticd/main.cpp
  6. +1
    -1
      atlantik/atlanticd/serversocket.cpp
  7. +1
    -1
      atlantik/atlanticd/serversocket.h
  8. +114
    -114
      atlantik/client/atlantik.cpp
  9. +26
    -26
      atlantik/client/atlantik.h
  10. +45
    -45
      atlantik/client/configdlg.cpp
  11. +17
    -17
      atlantik/client/configdlg.h
  12. +6
    -6
      atlantik/client/event.cpp
  13. +7
    -7
      atlantik/client/event.h
  14. +24
    -24
      atlantik/client/eventlogwidget.cpp
  15. +7
    -7
      atlantik/client/eventlogwidget.h
  16. +23
    -23
      atlantik/client/monopigator.cpp
  17. +14
    -14
      atlantik/client/monopigator.h
  18. +32
    -32
      atlantik/client/selectconfiguration_widget.cpp
  19. +17
    -17
      atlantik/client/selectconfiguration_widget.h
  20. +33
    -33
      atlantik/client/selectgame_widget.cpp
  21. +8
    -8
      atlantik/client/selectgame_widget.h
  22. +31
    -31
      atlantik/client/selectserver_widget.cpp
  23. +9
    -9
      atlantik/client/selectserver_widget.h
  24. +5
    -5
      atlantik/kio_atlantik/kio_atlantik.cpp
  25. +1
    -1
      atlantik/kio_atlantik/kio_atlantik.h
  26. +34
    -34
      atlantik/libatlantic/atlantic_core.cpp
  27. +18
    -18
      atlantik/libatlantic/atlantic_core.h
  28. +1
    -1
      atlantik/libatlantic/auction.cpp
  29. +1
    -1
      atlantik/libatlantic/auction.h
  30. +7
    -7
      atlantik/libatlantic/configoption.cpp
  31. +9
    -9
      atlantik/libatlantic/configoption.h
  32. +8
    -8
      atlantik/libatlantic/estate.cpp
  33. +10
    -10
      atlantik/libatlantic/estate.h
  34. +2
    -2
      atlantik/libatlantic/estategroup.cpp
  35. +4
    -4
      atlantik/libatlantic/estategroup.h
  36. +10
    -10
      atlantik/libatlantic/game.cpp
  37. +8
    -8
      atlantik/libatlantic/game.h
  38. +4
    -4
      atlantik/libatlantic/player.cpp
  39. +9
    -9
      atlantik/libatlantic/player.h
  40. +8
    -8
      atlantik/libatlantic/trade.cpp
  41. +9
    -9
      atlantik/libatlantic/trade.h
  42. +151
    -151
      atlantik/libatlantikclient/atlantik_network.cpp
  43. +24
    -24
      atlantik/libatlantikclient/atlantik_network.h
  44. +12
    -12
      atlantik/libatlantikclient/monopdprotocol.cpp
  45. +3
    -3
      atlantik/libatlantikclient/monopdprotocol.h
  46. +24
    -24
      atlantik/libatlantikui/auction_widget.cpp
  47. +9
    -9
      atlantik/libatlantikui/auction_widget.h
  48. +45
    -45
      atlantik/libatlantikui/board.cpp
  49. +17
    -17
      atlantik/libatlantikui/board.h
  50. +44
    -44
      atlantik/libatlantikui/estatedetails.cpp
  51. +14
    -14
      atlantik/libatlantikui/estatedetails.h
  52. +30
    -30
      atlantik/libatlantikui/estateview.cpp
  53. +9
    -9
      atlantik/libatlantikui/estateview.h
  54. +16
    -16
      atlantik/libatlantikui/kwrappedlistviewitem.cpp
  55. +8
    -8
      atlantik/libatlantikui/kwrappedlistviewitem.h
  56. +12
    -12
      atlantik/libatlantikui/portfolioestate.cpp
  57. +7
    -7
      atlantik/libatlantikui/portfolioestate.h
  58. +25
    -25
      atlantik/libatlantikui/portfolioview.cpp
  59. +11
    -11
      atlantik/libatlantikui/portfolioview.h
  60. +18
    -18
      atlantik/libatlantikui/token.cpp
  61. +5
    -5
      atlantik/libatlantikui/token.h
  62. +52
    -52
      atlantik/libatlantikui/trade_widget.cpp
  63. +15
    -15
      atlantik/libatlantikui/trade_widget.h
  64. +9
    -9
      kasteroids/ledmeter.cpp
  65. +8
    -8
      kasteroids/ledmeter.h
  66. +8
    -8
      kasteroids/sprites.h
  67. +92
    -92
      kasteroids/toplevel.cpp
  68. +18
    -18
      kasteroids/toplevel.h
  69. +31
    -31
      kasteroids/view.cpp
  70. +22
    -22
      kasteroids/view.h
  71. +11
    -11
      katomic/configbox.cpp
  72. +6
    -6
      katomic/configbox.h
  73. +15
    -15
      katomic/feld.cpp
  74. +13
    -13
      katomic/feld.h
  75. +33
    -33
      katomic/gamewidget.cpp
  76. +5
    -5
      katomic/gamewidget.h
  77. +1
    -1
      katomic/main.cpp
  78. +9
    -9
      katomic/molek.cpp
  79. +12
    -12
      katomic/molek.h
  80. +1
    -1
      katomic/settings.h
  81. +16
    -16
      katomic/toplevel.cpp
  82. +271
    -271
      kbackgammon/engines/fibs/kbgfibs.cpp
  83. +43
    -43
      kbackgammon/engines/fibs/kbgfibs.h
  84. +123
    -123
      kbackgammon/engines/fibs/kbgfibschat.cpp
  85. +13
    -13
      kbackgammon/engines/fibs/kbgfibschat.h
  86. +30
    -30
      kbackgammon/engines/fibs/kbginvite.cpp
  87. +2
    -2
      kbackgammon/engines/fibs/kbginvite.h
  88. +77
    -77
      kbackgammon/engines/fibs/kplayerlist.cpp
  89. +12
    -12
      kbackgammon/engines/fibs/kplayerlist.h
  90. +6
    -6
      kbackgammon/engines/generic/kbgengine.cpp
  91. +8
    -8
      kbackgammon/engines/generic/kbgengine.h
  92. +42
    -42
      kbackgammon/engines/gnubg/kbggnubg.cpp
  93. +13
    -13
      kbackgammon/engines/gnubg/kbggnubg.h
  94. +2
    -2
      kbackgammon/engines/nextgen/kbggame.cpp
  95. +2
    -2
      kbackgammon/engines/nextgen/kbggame.h
  96. +39
    -39
      kbackgammon/engines/nextgen/kbgng.cpp
  97. +10
    -10
      kbackgammon/engines/nextgen/kbgng.h
  98. +2
    -2
      kbackgammon/engines/nextgen/kbgplayer.cpp
  99. +3
    -3
      kbackgammon/engines/nextgen/kbgplayer.h
  100. +42
    -42
      kbackgammon/engines/offline/kbgoffline.cpp
  101. +3
    -3
      kbackgammon/engines/offline/kbgoffline.h
  102. +92
    -92
      kbackgammon/kbg.cpp
  103. +12
    -12
      kbackgammon/kbg.h
  104. +149
    -149
      kbackgammon/kbgboard.cpp
  105. +79
    -79
      kbackgammon/kbgboard.h
  106. +8
    -8
      kbackgammon/kbgstatus.cpp
  107. +6
    -6
      kbackgammon/kbgstatus.h
  108. +4
    -4
      kbackgammon/kbgtextview.cpp
  109. +4
    -4
      kbackgammon/kbgtextview.h
  110. +1
    -1
      kbackgammon/main.cpp
  111. +4
    -4
      kbattleship/kbattleship/kbaiplayer.cpp
  112. +3
    -3
      kbattleship/kbattleship/kbaiplayer.h
  113. +5
    -5
      kbattleship/kbattleship/kbattlefield.cpp
  114. +6
    -6
      kbattleship/kbattleship/kbattlefield.h
  115. +154
    -154
      kbattleship/kbattleship/kbattleship.cpp
  116. +15
    -15
      kbattleship/kbattleship/kbattleship.h
  117. +6
    -6
      kbattleship/kbattleship/kbattleshipclient.cpp
  118. +4
    -4
      kbattleship/kbattleship/kbattleshipclient.h
  119. +11
    -11
      kbattleship/kbattleship/kbattleshipserver.cpp
  120. +7
    -7
      kbattleship/kbattleship/kbattleshipserver.h
  121. +29
    -29
      kbattleship/kbattleship/kbattleshipview.cpp
  122. +6
    -6
      kbattleship/kbattleship/kbattleshipview.h
  123. +5
    -5
      kbattleship/kbattleship/kbchooserstrategy.cpp
  124. +3
    -3
      kbattleship/kbattleship/kbchooserstrategy.h
  125. +5
    -5
      kbattleship/kbattleship/kbdestroyshipstrategy.cpp
  126. +5
    -5
      kbattleship/kbattleship/kbdestroyshipstrategy.h
  127. +7
    -7
      kbattleship/kbattleship/kbdiagonalshotstrategy.cpp
  128. +3
    -3
      kbattleship/kbattleship/kbdiagonalshotstrategy.h
  129. +9
    -9
      kbattleship/kbattleship/kbdiagonalwrapstrategy.cpp
  130. +4
    -4
      kbattleship/kbattleship/kbdiagonalwrapstrategy.h
  131. +7
    -7
      kbattleship/kbattleship/kbhorizontalstepstrategy.cpp
  132. +4
    -4
      kbattleship/kbattleship/kbhorizontalstepstrategy.h
  133. +6
    -6
      kbattleship/kbattleship/kbrandomshotstrategy.cpp
  134. +3
    -3
      kbattleship/kbattleship/kbrandomshotstrategy.h
  135. +3
    -3
      kbattleship/kbattleship/kbstrategy.cpp
  136. +8
    -8
      kbattleship/kbattleship/kbstrategy.h
  137. +7
    -7
      kbattleship/kbattleship/kbverticalstepstrategy.cpp
  138. +4
    -4
      kbattleship/kbattleship/kbverticalstepstrategy.h
  139. +10
    -10
      kbattleship/kbattleship/kchatwidget.cpp
  140. +11
    -11
      kbattleship/kbattleship/kchatwidget.h
  141. +20
    -20
      kbattleship/kbattleship/kclientdialog.cpp
  142. +9
    -9
      kbattleship/kbattleship/kclientdialog.h
  143. +36
    -36
      kbattleship/kbattleship/kgridwidget.cpp
  144. +17
    -17
      kbattleship/kbattleship/kgridwidget.h
  145. +12
    -12
      kbattleship/kbattleship/kmessage.cpp
  146. +8
    -8
      kbattleship/kbattleship/kmessage.h
  147. +24
    -24
      kbattleship/kbattleship/konnectionhandling.cpp
  148. +7
    -7
      kbattleship/kbattleship/konnectionhandling.h
  149. +9
    -9
      kbattleship/kbattleship/kserverdialog.cpp
  150. +8
    -8
      kbattleship/kbattleship/kserverdialog.h
  151. +3
    -3
      kbattleship/kbattleship/kshiplist.cpp
  152. +2
    -2
      kbattleship/kbattleship/kshiplist.h
  153. +7
    -7
      kbattleship/kbattleship/kstatdialog.cpp
  154. +1
    -1
      kbattleship/kbattleship/kstatdialog.h
  155. +2
    -2
      kbattleship/kbattleship/main.cpp
  156. +38
    -38
      kblackbox/kbbgame.cpp
  157. +2
    -2
      kblackbox/kbbgame.h
  158. +30
    -30
      kblackbox/kbbgfx.cpp
  159. +16
    -16
      kblackbox/kbbgfx.h
  160. +42
    -42
      kbounce/game.cpp
  161. +21
    -21
      kbounce/game.h
  162. +53
    -53
      kbounce/kbounce.cpp
  163. +15
    -15
      kbounce/kbounce.h
  164. +1
    -1
      kbounce/main.cpp
  165. +59
    -59
      kenolaba/AbTop.cpp
  166. +7
    -7
      kenolaba/AbTop.h
  167. +26
    -26
      kenolaba/Ball.cpp
  168. +24
    -24
      kenolaba/Ball.h
  169. +10
    -10
      kenolaba/Board.cpp
  170. +5
    -5
      kenolaba/Board.h
  171. +47
    -47
      kenolaba/BoardWidget.cpp
  172. +15
    -15
      kenolaba/BoardWidget.h
  173. +71
    -71
      kenolaba/EvalDlgImpl.cpp
  174. +1
    -1
      kenolaba/EvalDlgImpl.h
  175. +17
    -17
      kenolaba/EvalScheme.cpp
  176. +7
    -7
      kenolaba/EvalScheme.h
  177. +9
    -9
      kenolaba/Move.cpp
  178. +2
    -2
      kenolaba/Move.h
  179. +3
    -3
      kenolaba/Network.cpp
  180. +5
    -5
      kenolaba/Network.h
  181. +22
    -22
      kenolaba/Spy.cpp
  182. +4
    -4
      kenolaba/Spy.h
  183. +1
    -1
      kenolaba/kenolaba.cpp
  184. +2
    -2
      kfouleggs/board.cpp
  185. +2
    -2
      kfouleggs/board.h
  186. +6
    -6
      kfouleggs/field.cpp
  187. +1
    -1
      kfouleggs/field.h
  188. +1
    -1
      kfouleggs/main.cpp
  189. +3
    -3
      kfouleggs/main.h
  190. +19
    -19
      kfouleggs/piece.cpp
  191. +4
    -4
      kfouleggs/piece.h
  192. +123
    -123
      kgoldrunner/src/kgoldrunner.cpp
  193. +5
    -5
      kgoldrunner/src/kgoldrunner.h
  194. +88
    -88
      kgoldrunner/src/kgrcanvas.cpp
  195. +28
    -28
      kgoldrunner/src/kgrcanvas.h
  196. +141
    -141
      kgoldrunner/src/kgrdialog.cpp
  197. +65
    -65
      kgoldrunner/src/kgrdialog.h
  198. +10
    -10
      kgoldrunner/src/kgrfigure.cpp
  199. +14
    -14
      kgoldrunner/src/kgrfigure.h
  200. +131
    -131
      kgoldrunner/src/kgrgame.cpp
  201. +34
    -34
      kgoldrunner/src/kgrgame.h
  202. +2
    -2
      kgoldrunner/src/kgrobject.cpp
  203. +2
    -2
      kgoldrunner/src/kgrobject.h
  204. +26
    -26
      kjumpingcube/kcubeboxwidget.cpp
  205. +10
    -10
      kjumpingcube/kcubeboxwidget.h
  206. +19
    -19
      kjumpingcube/kcubewidget.cpp
  207. +10
    -10
      kjumpingcube/kcubewidget.h
  208. +27
    -27
      kjumpingcube/kjumpingcube.cpp
  209. +1
    -1
      kjumpingcube/kjumpingcube.h
  210. +7
    -7
      klickety/board.cpp
  211. +4
    -4
      klickety/board.h
  212. +11
    -11
      klickety/field.cpp
  213. +3
    -3
      klickety/field.h
  214. +1
    -1
      klickety/highscores.cpp
  215. +2
    -2
      klickety/main.h
  216. +13
    -13
      klickety/piece.cpp
  217. +3
    -3
      klickety/piece.h
  218. +14
    -14
      klines/ballpainter.cpp
  219. +8
    -8
      klines/ballpainter.h
  220. +2
    -2
      klines/field.cpp
  221. +3
    -3
      klines/field.h
  222. +28
    -28
      klines/klines.cpp
  223. +5
    -5
      klines/klines.h
  224. +33
    -33
      klines/linesboard.cpp
  225. +10
    -10
      klines/linesboard.h
  226. +8
    -8
      klines/mwidget.cpp
  227. +5
    -5
      klines/mwidget.h
  228. +6
    -6
      klines/prompt.cpp
  229. +4
    -4
      klines/prompt.h
  230. +8
    -8
      kmahjongg/Background.cpp
  231. +9
    -9
      kmahjongg/Background.h
  232. +12
    -12
      kmahjongg/BoardLayout.cpp
  233. +7
    -7
      kmahjongg/BoardLayout.h
  234. +31
    -31
      kmahjongg/Editor.cpp
  235. +11
    -11
      kmahjongg/Editor.h
  236. +7
    -7
      kmahjongg/GameTimer.cpp
  237. +6
    -6
      kmahjongg/GameTimer.h
  238. +56
    -56
      kmahjongg/HighScore.cpp
  239. +19
    -19
      kmahjongg/HighScore.h
  240. +58
    -58
      kmahjongg/Preview.cpp
  241. +24
    -24
      kmahjongg/Preview.h
  242. +8
    -8
      kmahjongg/Tileset.cpp
  243. +20
    -20
      kmahjongg/Tileset.h
  244. +32
    -32
      kmahjongg/boardwidget.cpp
  245. +20
    -20
      kmahjongg/boardwidget.h
  246. +59
    -59
      kmahjongg/kmahjongg.cpp
  247. +6
    -6
      kmahjongg/kmahjongg.h
  248. +1
    -1
      kmines/defines.h
  249. +41
    -41
      kmines/dialogs.cpp
  250. +8
    -8
      kmines/dialogs.h
  251. +26
    -26
      kmines/field.cpp
  252. +11
    -11
      kmines/field.h
  253. +26
    -26
      kmines/frame.cpp
  254. +13
    -13
      kmines/frame.h
  255. +5
    -5
      kmines/highscores.cpp
  256. +1
    -1
      kmines/highscores.h
  257. +12
    -12
      kmines/kzoommainwindow.cpp
  258. +3
    -3
      kmines/kzoommainwindow.h
  259. +37
    -37
      kmines/main.cpp
  260. +1
    -1
      kmines/main.h
  261. +4
    -4
      kmines/solver/bfield.cpp
  262. +4
    -4
      kmines/solver/bfield.h
  263. +15
    -15
      kmines/solver/solver.cpp
  264. +3
    -3
      kmines/solver/solver.h
  265. +1
    -1
      kmines/solver/test.cpp
  266. +64
    -64
      kmines/status.cpp
  267. +10
    -10
      kmines/status.h
  268. +12
    -12
      knetwalk/src/cell.cpp
  269. +7
    -7
      knetwalk/src/cell.h
  270. +5
    -5
      knetwalk/src/highscores.cpp
  271. +1
    -1
      knetwalk/src/highscores.h
  272. +41
    -41
      knetwalk/src/mainwindow.cpp
  273. +17
    -17
      knetwalk/src/mainwindow.h
  274. +28
    -28
      kolf/ball.cpp
  275. +11
    -11
      kolf/ball.h
  276. +8
    -8
      kolf/canvasitem.cpp
  277. +10
    -10
      kolf/canvasitem.h
  278. +8
    -8
      kolf/config.cpp
  279. +4
    -4
      kolf/config.h
  280. +14
    -14
      kolf/editor.cpp
  281. +4
    -4
      kolf/editor.h
  282. +27
    -27
      kolf/floater.cpp
  283. +9
    -9
      kolf/floater.h
  284. +395
    -395
      kolf/game.cpp
  285. +182
    -182
      kolf/game.h
  286. +18
    -18
      kolf/kcomboboxdialog.cpp
  287. +13
    -13
      kolf/kcomboboxdialog.h
  288. +123
    -123
      kolf/kolf.cpp
  289. +17
    -17
      kolf/kolf.h
  290. +2
    -2
      kolf/kvolumecontrol.cpp
  291. +1
    -1
      kolf/kvolumecontrol.h
  292. +5
    -5
      kolf/main.cpp
  293. +67
    -67
      kolf/newgame.cpp
  294. +34
    -34
      kolf/newgame.h
  295. +12
    -12
      kolf/object.h
  296. +15
    -15
      kolf/objects/poolball/poolball.cpp
  297. +9
    -9
      kolf/objects/poolball/poolball.h
  298. +21
    -21
      kolf/objects/test/test.cpp
  299. +8
    -8
      kolf/objects/test/test.h
  300. +12
    -12
      kolf/pluginloader.cpp
  301. +2
    -2
      kolf/pluginloader.h
  302. +9
    -9
      kolf/printdialogpage.cpp
  303. +7
    -7
      kolf/printdialogpage.h
  304. +18
    -18
      kolf/scoreboard.cpp
  305. +7
    -7
      kolf/scoreboard.h
  306. +71
    -71
      kolf/slope.cpp
  307. +19
    -19
      kolf/slope.h
  308. +8
    -8
      kolf/statedb.h
  309. +3
    -3
      kolf/vector.cpp
  310. +4
    -4
      kolf/vector.h
  311. +1
    -1
      konquest/Konquest.cc
  312. +12
    -12
      konquest/fleetdlg.cc
  313. +6
    -6
      konquest/fleetdlg.h
  314. +51
    -51
      konquest/gameboard.cc
  315. +12
    -12
      konquest/gameboard.h
  316. +20
    -20
      konquest/gamecore.cc
  317. +27
    -27
      konquest/gamecore.h
  318. +13
    -13
      konquest/gameenddlg.cc
  319. +3
    -3
      konquest/gameenddlg.h
  320. +10
    -10
      konquest/int_validator.cc
  321. +4
    -4
      konquest/int_validator.h
  322. +8
    -8
      konquest/mainwin.cc
  323. +42
    -42
      konquest/map_widget.cc
  324. +12
    -12
      konquest/map_widget.h
  325. +8
    -8
      konquest/minimap.cc
  326. +8
    -8
      konquest/minimap.h
  327. +42
    -42
      konquest/newgamedlg.cc
  328. +1
    -1
      konquest/newgamedlg.h
  329. +18
    -18
      konquest/planet_info.cc
  330. +13
    -13
      konquest/planet_info.h
  331. +13
    -13
      konquest/scoredlg.cc
  332. +5
    -5
      konquest/scoredlg.h
  333. +13
    -13
      kpat/card.cpp
  334. +9
    -9
      kpat/card.h
  335. +23
    -23
      kpat/cardmaps.cpp
  336. +9
    -9
      kpat/cardmaps.h
  337. +109
    -109
      kpat/dealer.cpp
  338. +32
    -32
      kpat/dealer.h
  339. +7
    -7
      kpat/fortyeight.cpp
  340. +3
    -3
      kpat/fortyeight.h
  341. +16
    -16
      kpat/freecell.cpp
  342. +3
    -3
      kpat/freecell.h
  343. +9
    -9
      kpat/gamestatsimpl.cpp
  344. +1
    -1
      kpat/gamestatsimpl.h
  345. +4
    -4
      kpat/golf.cpp
  346. +1
    -1
      kpat/golf.h
  347. +3
    -3
      kpat/grandf.cpp
  348. +2
    -2
      kpat/grandf.h
  349. +1
    -1
      kpat/gypsy.cpp
  350. +1
    -1
      kpat/hint.h
  351. +3
    -3
      kpat/klondike.cpp
  352. +1
    -1
      kpat/mod3.cpp
  353. +1
    -1
      kpat/napoleon.cpp
  354. +14
    -14
      kpat/pile.cpp
  355. +4
    -4
      kpat/pile.h
  356. +77
    -77
      kpat/pwidget.cpp
  357. +6
    -6
      kpat/pwidget.h
  358. +4
    -4
      kpat/spider.cpp
  359. +2
    -2
      kpat/spider.h
  360. +23
    -23
      kpoker/betbox.cpp
  361. +9
    -9
      kpoker/betbox.h
  362. +17
    -17
      kpoker/kpaint.cpp
  363. +13
    -13
      kpoker/kpaint.h
  364. +62
    -62
      kpoker/kpoker.cpp
  365. +24
    -24
      kpoker/kpoker.h
  366. +28
    -28
      kpoker/newgamedlg.cpp
  367. +9
    -9
      kpoker/newgamedlg.h
  368. +5
    -5
      kpoker/optionsdlg.cpp
  369. +4
    -4
      kpoker/optionsdlg.h
  370. +4
    -4
      kpoker/player.h
  371. +26
    -26
      kpoker/playerbox.cpp
  372. +6
    -6
      kpoker/playerbox.h
  373. +1
    -1
      kpoker/poker.cpp
  374. +2
    -2
      kpoker/poker.h
  375. +2
    -2
      kpoker/sound.cpp
  376. +36
    -36
      kpoker/top.cpp
  377. +4
    -4
      kpoker/top.h
  378. +3
    -3
      kreversi/Engine.cpp
  379. +4
    -4
      kreversi/Engine.h
  380. +3
    -3
      kreversi/Move.cpp
  381. +5
    -5
      kreversi/Move.h
  382. +4
    -4
      kreversi/Position.cpp
  383. +2
    -2
      kreversi/Position.h
  384. +1
    -1
      kreversi/Score.h
  385. +32
    -32
      kreversi/board.cpp
  386. +15
    -15
      kreversi/board.h
  387. +8
    -8
      kreversi/highscores.cpp
  388. +1
    -1
      kreversi/highscores.h
  389. +38
    -38
      kreversi/kreversi.cpp
  390. +1
    -1
      kreversi/kreversi.h
  391. +12
    -12
      kreversi/kzoommainwindow.cpp
  392. +3
    -3
      kreversi/kzoommainwindow.h
  393. +2
    -2
      kreversi/qreversigame.cpp
  394. +4
    -4
      kreversi/qreversigame.h
  395. +32
    -32
      kreversi/qreversigameview.cpp
  396. +12
    -12
      kreversi/qreversigameview.h
  397. +24
    -24
      ksame/KSameWidget.cpp
  398. +1
    -1
      ksame/KSameWidget.h
  399. +1
    -1
      ksame/StoneField.cpp
  400. +2
    -2
      ksame/StoneField.h
  401. +28
    -28
      ksame/StoneWidget.cpp
  402. +10
    -10
      ksame/StoneWidget.h
  403. +2
    -2
      ksame/main.cpp
  404. +77
    -77
      kshisen/app.cpp
  405. +5
    -5
      kshisen/app.h
  406. +26
    -26
      kshisen/board.cpp
  407. +9
    -9
      kshisen/board.h
  408. +7
    -7
      kshisen/tileset.cpp
  409. +5
    -5
      kshisen/tileset.h
  410. +1
    -1
      ksirtet/ksirtet/board.cpp
  411. +3
    -3
      ksirtet/ksirtet/board.h
  412. +1
    -1
      ksirtet/ksirtet/check_score.cpp
  413. +6
    -6
      ksirtet/ksirtet/field.cpp
  414. +1
    -1
      ksirtet/ksirtet/field.h
  415. +1
    -1
      ksirtet/ksirtet/main.cpp
  416. +4
    -4
      ksirtet/ksirtet/main.h
  417. +10
    -10
      ksirtet/ksirtet/piece.cpp
  418. +3
    -3
      ksirtet/ksirtet/piece.h
  419. +3
    -3
      ksirtet/ksirtet/settings.cpp
  420. +20
    -20
      ksmiletris/gamewidget.cpp
  421. +7
    -7
      ksmiletris/gamewidget.h
  422. +20
    -20
      ksmiletris/gamewindow.cpp
  423. +2
    -2
      ksmiletris/gamewindow.h
  424. +9
    -9
      ksmiletris/mirrorwidget.cpp
  425. +6
    -6
      ksmiletris/mirrorwidget.h
  426. +9
    -9
      ksmiletris/npiecewidget.cpp
  427. +6
    -6
      ksmiletris/npiecewidget.h
  428. +10
    -10
      ksmiletris/screenwidget.cpp
  429. +6
    -6
      ksmiletris/screenwidget.h
  430. +5
    -5
      ksnake/basket.cpp
  431. +1
    -1
      ksnake/basket.h
  432. +4
    -4
      ksnake/board.cpp
  433. +2
    -2
      ksnake/board.h
  434. +22
    -22
      ksnake/game.cpp
  435. +1
    -1
      ksnake/game.h
  436. +13
    -13
      ksnake/level.cpp
  437. +2
    -2
      ksnake/level.h
  438. +7
    -7
      ksnake/levels.cpp
  439. +3
    -3
      ksnake/levels.h
  440. +27
    -27
      ksnake/pixServer.cpp
  441. +12
    -12
      ksnake/pixServer.h
  442. +1
    -1
      ksnake/progress.cpp
  443. +1
    -1
      ksnake/progress.h
  444. +41
    -41
      ksnake/rattler.cpp
  445. +12
    -12
      ksnake/rattler.h
  446. +1
    -1
      ksnake/snake.cpp
  447. +1
    -1
      ksnake/snake.h
  448. +18
    -18
      ksnake/startroom.cpp
  449. +4
    -4
      ksnake/startroom.h
  450. +5
    -5
      ksnake/view.cpp
  451. +4
    -4
      ksnake/view.h
  452. +6
    -6
      ksokoban/Bookmark.cpp
  453. +3
    -3
      ksokoban/Bookmark.h
  454. +2
    -2
      ksokoban/History.cpp
  455. +5
    -5
      ksokoban/History.h
  456. +28
    -28
      ksokoban/ImageData.cpp
  457. +30
    -30
      ksokoban/ImageData.h
  458. +1
    -1
      ksokoban/InternalCollections.cpp
  459. +4
    -4
      ksokoban/InternalCollections.h
  460. +7
    -7
      ksokoban/LevelCollection.cpp
  461. +10
    -10
      ksokoban/LevelCollection.h
  462. +1
    -1
      ksokoban/LevelMap.cpp
  463. +2
    -2
      ksokoban/LevelMap.h
  464. +58
    -58
      ksokoban/MainWindow.cpp
  465. +10
    -10
      ksokoban/MainWindow.h
  466. +28
    -28
      ksokoban/ModalLabel.cpp
  467. +6
    -6
      ksokoban/ModalLabel.h
  468. +1
    -1
      ksokoban/Move.cpp
  469. +2
    -2
      ksokoban/Move.h
  470. +57
    -57
      ksokoban/PlayField.cpp
  471. +38
    -38
      ksokoban/PlayField.h
  472. +2
    -2
      ksokoban/main.cpp
  473. +5
    -5
      kspaceduel/ai.cpp
  474. +12
    -12
      kspaceduel/ai.h
  475. +1
    -1
      kspaceduel/defines.h
  476. +31
    -31
      kspaceduel/dialogs.cpp
  477. +6
    -6
      kspaceduel/dialogs.h
  478. +40
    -40
      kspaceduel/mainview.cpp
  479. +26
    -26
      kspaceduel/mainview.h
  480. +15
    -15
      kspaceduel/playerinfo.cpp
  481. +8
    -8
      kspaceduel/playerinfo.h
  482. +16
    -16
      kspaceduel/sprites.cpp
  483. +10
    -10
      kspaceduel/sprites.h
  484. +18
    -18
      kspaceduel/topwidget.cpp
  485. +1
    -1
      kspaceduel/topwidget.h
  486. +14
    -14
      ktron/ktron.cpp
  487. +3
    -3
      ktron/ktron.h
  488. +36
    -36
      ktron/tron.cpp
  489. +15
    -15
      ktron/tron.h
  490. +67
    -67
      ktuberling/playground.cpp
  491. +23
    -23
      ktuberling/playground.h
  492. +19
    -19
      ktuberling/soundfactory.cpp
  493. +5
    -5
      ktuberling/soundfactory.h
  494. +10
    -10
      ktuberling/todraw.cpp
  495. +5
    -5
      ktuberling/todraw.h
  496. +51
    -51
      ktuberling/toplevel.cpp
  497. +5
    -5
      ktuberling/toplevel.h
  498. +90
    -90
      kwin4/kwin4/kspritecache.cpp
  499. +52
    -52
      kwin4/kwin4/kspritecache.h
  500. +68
    -68
      kwin4/kwin4/kwin4.cpp

+ 6
- 6
atlantik/atlanticd/atlanticclient.cpp View File

@ -14,18 +14,18 @@
// the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
// Boston, MA 02110-1301, USA.
#include <qtextstream.h>
#include <qtimer.h>
#include <tqtextstream.h>
#include <tqtimer.h>
#include "atlanticclient.h"
#include "atlanticclient.moc"
AtlanticClient::AtlanticClient(QObject *parent, const char *name) : QSocket(parent, name)
AtlanticClient::AtlanticClient(TQObject *parent, const char *name) : TQSocket(parent, name)
{
connect(this, SIGNAL(readyRead()), this, SLOT(readData()));
connect(this, TQT_SIGNAL(readyRead()), this, TQT_SLOT(readData()));
}
void AtlanticClient::sendData(const QString &data)
void AtlanticClient::sendData(const TQString &data)
{
writeBlock(data.latin1(), data.length());
}
@ -37,7 +37,7 @@ void AtlanticClient::readData()
emit clientInput(this, readLine());
// There might be more data
QTimer::singleShot(0, this, SLOT(readData()));
TQTimer::singleShot(0, this, TQT_SLOT(readData()));
}
else
{


+ 4
- 4
atlantik/atlanticd/atlanticclient.h View File

@ -17,20 +17,20 @@
#ifndef CLIENT_H
#define CLIENT_H
#include <qsocket.h>
#include <tqsocket.h>
class AtlanticClient : public QSocket
{
Q_OBJECT
public:
AtlanticClient(QObject *parent = 0, const char *name = 0);
void sendData(const QString &data);
AtlanticClient(TQObject *parent = 0, const char *name = 0);
void sendData(const TQString &data);
private slots:
void readData();
signals:
void clientInput(AtlanticClient *client, const QString &data);
void clientInput(AtlanticClient *client, const TQString &data);
};
#endif

+ 10
- 10
atlantik/atlanticd/atlanticdaemon.cpp View File

@ -14,9 +14,9 @@
// the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
// Boston, MA 02110-1301, USA.
#include <qtimer.h>
#include <qsocket.h>
#include <qstring.h>
#include <tqtimer.h>
#include <tqsocket.h>
#include <tqstring.h>
#include <atlantic_core.h>
@ -28,13 +28,13 @@
AtlanticDaemon::AtlanticDaemon()
{
m_serverSocket = new ServerSocket(1234, 100);
connect(m_serverSocket, SIGNAL(newClient(AtlanticClient *)), this, SLOT(newClient(AtlanticClient *)));
connect(m_serverSocket, TQT_SIGNAL(newClient(AtlanticClient *)), this, TQT_SLOT(newClient(AtlanticClient *)));
m_atlanticCore = new AtlanticCore(this, "atlanticCore");
// Create socket for Monopigator
m_monopigatorSocket = new QSocket();
connect(m_monopigatorSocket, SIGNAL(connected()), this, SLOT(monopigatorConnected()));
m_monopigatorSocket = new TQSocket();
connect(m_monopigatorSocket, TQT_SIGNAL(connected()), this, TQT_SLOT(monopigatorConnected()));
// Register server
monopigatorRegister();
@ -52,21 +52,21 @@ void AtlanticDaemon::monopigatorRegister()
void AtlanticDaemon::monopigatorConnected()
{
QString get = "GET /register.php?host=capsi.com&port=1234&version=atlanticd-prototype HTTP/1.1\nHost: gator.monopd.net\n\n";
TQString get = "GET /register.php?host=capsi.com&port=1234&version=atlanticd-prototype HTTP/1.1\nHost: gator.monopd.net\n\n";
m_monopigatorSocket->writeBlock(get.latin1(), get.length());
m_monopigatorSocket->close();
// Monopigator clears old entries, so keep registering every 180s
QTimer::singleShot(180000, this, SLOT(monopigatorRegister()));
TQTimer::singleShot(180000, this, TQT_SLOT(monopigatorRegister()));
}
void AtlanticDaemon::newClient(AtlanticClient *client)
{
m_clients.append(client);
connect(client, SIGNAL(clientInput(AtlanticClient *, const QString &)), this, SLOT(clientInput(AtlanticClient *, const QString &)));
connect(client, TQT_SIGNAL(clientInput(AtlanticClient *, const TQString &)), this, TQT_SLOT(clientInput(AtlanticClient *, const TQString &)));
}
void AtlanticDaemon::clientInput(AtlanticClient *client, const QString &data)
void AtlanticDaemon::clientInput(AtlanticClient *client, const TQString &data)
{
}

+ 4
- 4
atlantik/atlanticd/atlanticdaemon.h View File

@ -17,7 +17,7 @@
#ifndef ATLANTIC_ATLANTICDAEMON_H
#define ATLANTIC_ATLANTICDAEMON_H
#include <qptrlist.h>
#include <tqptrlist.h>
class QSocket;
@ -36,13 +36,13 @@ private slots:
void monopigatorRegister();
void monopigatorConnected();
void newClient(AtlanticClient *client);
void clientInput(AtlanticClient *client, const QString &data);
void clientInput(AtlanticClient *client, const TQString &data);
private:
QSocket *m_monopigatorSocket;
TQSocket *m_monopigatorSocket;
ServerSocket *m_serverSocket;
AtlanticCore *m_atlanticCore;
QPtrList<AtlanticClient> m_clients;
TQPtrList<AtlanticClient> m_clients;
};
#endif

+ 2
- 2
atlantik/atlanticd/main.cpp View File

@ -14,7 +14,7 @@
// the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
// Boston, MA 02110-1301, USA.
#include <qapplication.h>
#include <tqapplication.h>
#include "atlanticdaemon.h"
@ -22,6 +22,6 @@ int main(int argc, char *argv[])
{
new AtlanticDaemon();
QApplication qapplication(argc, argv);
TQApplication qapplication(argc, argv);
qapplication.exec();
}

+ 1
- 1
atlantik/atlanticd/serversocket.cpp View File

@ -17,7 +17,7 @@
#include "atlanticclient.h"
#include "serversocket.h"
ServerSocket::ServerSocket(int port, int backlog) : QServerSocket(port, backlog)
ServerSocket::ServerSocket(int port, int backlog) : TQServerSocket(port, backlog)
{
}


+ 1
- 1
atlantik/atlanticd/serversocket.h View File

@ -17,7 +17,7 @@
#ifndef SERVERSOCKET_H
#define SERVERSOCKET_H
#include <qserversocket.h>
#include <tqserversocket.h>
class AtlanticClient;


+ 114
- 114
atlantik/client/atlantik.cpp View File

@ -16,11 +16,11 @@
#include <errno.h>
#include <qcolor.h>
#include <qdatetime.h>
#include <qlineedit.h>
#include <qscrollview.h>
#include <qpopupmenu.h>
#include <tqcolor.h>
#include <tqdatetime.h>
#include <tqlineedit.h>
#include <tqscrollview.h>
#include <tqpopupmenu.h>
#include <kaboutapplication.h>
#include <kaction.h>
@ -64,15 +64,15 @@
#include "selectgame_widget.h"
#include "selectconfiguration_widget.h"
LogTextEdit::LogTextEdit( QWidget *parent, const char *name ) : QTextEdit( parent, name )
LogTextEdit::LogTextEdit( TQWidget *parent, const char *name ) : TQTextEdit( parent, name )
{
#ifdef KDE_3_2_FEATURES
m_clear = KStdAction::clear( this, SLOT( clear() ), 0 );
m_clear = KStdAction::clear( this, TQT_SLOT( clear() ), 0 );
#else
m_clear = new KAction( i18n("Clear"), "clear", NULL, this, SLOT( clear() ), static_cast<KActionCollection *>(0), "clear" );
m_clear = new KAction( i18n("Clear"), "clear", NULL, this, TQT_SLOT( clear() ), static_cast<KActionCollection *>(0), "clear" );
#endif
m_selectAll = KStdAction::selectAll( this, SLOT( selectAll() ), 0 );
m_copy = KStdAction::copy( this, SLOT( copy() ), 0 );
m_selectAll = KStdAction::selectAll( this, TQT_SLOT( selectAll() ), 0 );
m_copy = KStdAction::copy( this, TQT_SLOT( copy() ), 0 );
}
LogTextEdit::~LogTextEdit()
@ -82,9 +82,9 @@ LogTextEdit::~LogTextEdit()
delete m_copy;
}
QPopupMenu *LogTextEdit::createPopupMenu( const QPoint & )
TQPopupMenu *LogTextEdit::createPopupMenu( const TQPoint & )
{
QPopupMenu *rmbMenu = new QPopupMenu( this );
TQPopupMenu *rmbMenu = new TQPopupMenu( this );
m_clear->plug( rmbMenu );
rmbMenu->insertSeparator();
m_copy->setEnabled( hasSelectedText() );
@ -102,13 +102,13 @@ Atlantik::Atlantik ()
readConfig();
// Toolbar: Game
// KStdGameAction::gameNew(this, SLOT(slotNewGame()), actionCollection(), "game_new");
m_showEventLog = new KAction(i18n("Show Event &Log")/*, "atlantik_showeventlog"*/, CTRL+Key_L, this, SLOT(showEventLog()), actionCollection(), "showeventlog");
KStdGameAction::quit(kapp, SLOT(closeAllWindows()), actionCollection(), "game_quit");
// KStdGameAction::gameNew(this, TQT_SLOT(slotNewGame()), actionCollection(), "game_new");
m_showEventLog = new KAction(i18n("Show Event &Log")/*, "atlantik_showeventlog"*/, CTRL+Key_L, this, TQT_SLOT(showEventLog()), actionCollection(), "showeventlog");
KStdGameAction::quit(kapp, TQT_SLOT(closeAllWindows()), actionCollection(), "game_quit");
// Toolbar: Settings
KStdAction::preferences(this, SLOT(slotConfigure()), actionCollection());
KStdAction::configureNotifications(this, SLOT(configureNotifications()), actionCollection());
KStdAction::preferences(this, TQT_SLOT(slotConfigure()), actionCollection());
KStdAction::configureNotifications(this, TQT_SLOT(configureNotifications()), actionCollection());
// Initialize pointers to 0L
m_configDialog = 0;
@ -121,78 +121,78 @@ Atlantik::Atlantik ()
// Game and network core
m_atlanticCore = new AtlanticCore(this, "atlanticCore");
connect(m_atlanticCore, SIGNAL(createGUI(Player *)), this, SLOT(newPlayer(Player *)));
connect(m_atlanticCore, SIGNAL(removeGUI(Player *)), this, SLOT(removeGUI(Player *)));
connect(m_atlanticCore, SIGNAL(createGUI(Trade *)), this, SLOT(newTrade(Trade *)));
connect(m_atlanticCore, SIGNAL(removeGUI(Trade *)), this, SLOT(removeGUI(Trade *)));
connect(m_atlanticCore, TQT_SIGNAL(createGUI(Player *)), this, TQT_SLOT(newPlayer(Player *)));
connect(m_atlanticCore, TQT_SIGNAL(removeGUI(Player *)), this, TQT_SLOT(removeGUI(Player *)));
connect(m_atlanticCore, TQT_SIGNAL(createGUI(Trade *)), this, TQT_SLOT(newTrade(Trade *)));
connect(m_atlanticCore, TQT_SIGNAL(removeGUI(Trade *)), this, TQT_SLOT(removeGUI(Trade *)));
initEventLog();
initNetworkObject();
// Menu,toolbar: Move
m_roll = KStdGameAction::roll(this, SIGNAL(rollDice()), actionCollection());
m_roll = KStdGameAction::roll(this, TQT_SIGNAL(rollDice()), actionCollection());
m_roll->setEnabled(false);
m_buyEstate = new KAction(i18n("&Buy"), "atlantik_buy_estate", CTRL+Key_B, this, SIGNAL(buyEstate()), actionCollection(), "buy_estate");
m_buyEstate = new KAction(i18n("&Buy"), "atlantik_buy_estate", CTRL+Key_B, this, TQT_SIGNAL(buyEstate()), actionCollection(), "buy_estate");
m_buyEstate->setEnabled(false);
m_auctionEstate = new KAction(i18n("&Auction"), "auction", CTRL+Key_A, this, SIGNAL(auctionEstate()), actionCollection(), "auction");
m_auctionEstate = new KAction(i18n("&Auction"), "auction", CTRL+Key_A, this, TQT_SIGNAL(auctionEstate()), actionCollection(), "auction");
m_auctionEstate->setEnabled(false);
m_endTurn = KStdGameAction::endTurn(this, SIGNAL(endTurn()), actionCollection());
m_endTurn = KStdGameAction::endTurn(this, TQT_SIGNAL(endTurn()), actionCollection());
m_endTurn->setEnabled(false);
m_jailCard = new KAction(i18n("Use Card to Leave Jail")/*, "atlantik_move_jail_card"*/, 0, this, SIGNAL(jailCard()), actionCollection(), "move_jailcard");
m_jailCard = new KAction(i18n("Use Card to Leave Jail")/*, "atlantik_move_jail_card"*/, 0, this, TQT_SIGNAL(jailCard()), actionCollection(), "move_jailcard");
m_jailCard->setEnabled(false);
m_jailPay = new KAction(i18n("&Pay to Leave Jail"), "jail_pay", CTRL+Key_P, this, SIGNAL(jailPay()), actionCollection(), "move_jailpay");
m_jailPay = new KAction(i18n("&Pay to Leave Jail"), "jail_pay", CTRL+Key_P, this, TQT_SIGNAL(jailPay()), actionCollection(), "move_jailpay");
m_jailPay->setEnabled(false);
m_jailRoll = new KAction(i18n("Roll to Leave &Jail")/*, "atlantik_move_jail_roll"*/, CTRL+Key_J, this, SIGNAL(jailRoll()), actionCollection(), "move_jailroll");
m_jailRoll = new KAction(i18n("Roll to Leave &Jail")/*, "atlantik_move_jail_roll"*/, CTRL+Key_J, this, TQT_SIGNAL(jailRoll()), actionCollection(), "move_jailroll");
m_jailRoll->setEnabled(false);
// Mix code and XML into GUI
KMainWindow::createGUI();
applyMainWindowSettings( KGlobal::config(), "AtlantikMainWindow" );
KMainWindow::statusBar()->insertItem("Atlantik " ATLANTIK_VERSION_STRING, 0);
KMainWindow::statusBar()->insertItem(QString::null, 1);
connect(statusBar(), SIGNAL(released(int)), this, SLOT(statusBarClick(int)));
KMainWindow::statusBar()->insertItem(TQString::null, 1);
connect(statusBar(), TQT_SIGNAL(released(int)), this, TQT_SLOT(statusBarClick(int)));
// Main widget, containing all others
m_mainWidget = new QWidget(this, "main");
m_mainWidget = new TQWidget(this, "main");
m_mainWidget->show();
m_mainLayout = new QGridLayout(m_mainWidget, 3, 2);
m_mainLayout = new TQGridLayout(m_mainWidget, 3, 2);
setCentralWidget(m_mainWidget);
// Vertical view area for portfolios.
m_portfolioScroll = new QScrollView(m_mainWidget, "pfScroll");
m_portfolioScroll = new TQScrollView(m_mainWidget, "pfScroll");
m_mainLayout->addWidget( m_portfolioScroll, 0, 0 );
m_portfolioScroll->setHScrollBarMode( QScrollView::AlwaysOff );
m_portfolioScroll->setResizePolicy( QScrollView::AutoOneFit );
m_portfolioScroll->setHScrollBarMode( TQScrollView::AlwaysOff );
m_portfolioScroll->setResizePolicy( TQScrollView::AutoOneFit );
m_portfolioScroll->setFixedHeight( 200 );
m_portfolioScroll->hide();
m_portfolioWidget = new QWidget( m_portfolioScroll->viewport(), "pfWidget" );
m_portfolioWidget = new TQWidget( m_portfolioScroll->viewport(), "pfWidget" );
m_portfolioScroll->addChild( m_portfolioWidget );
m_portfolioWidget->show();
m_portfolioLayout = new QVBoxLayout(m_portfolioWidget);
m_portfolioLayout = new TQVBoxLayout(m_portfolioWidget);
m_portfolioViews.setAutoDelete(true);
// Nice label
// m_portfolioLabel = new QLabel(i18n("Players"), m_portfolioWidget, "pfLabel");
// m_portfolioLabel = new TQLabel(i18n("Players"), m_portfolioWidget, "pfLabel");
// m_portfolioLayout->addWidget(m_portfolioLabel);
// m_portfolioLabel->show();
// Text view for chat and status messages from server.
m_serverMsgs = new LogTextEdit(m_mainWidget, "serverMsgs");
m_serverMsgs->setTextFormat(QTextEdit::PlainText);
m_serverMsgs->setTextFormat(TQTextEdit::PlainText);
m_serverMsgs->setReadOnly(true);
m_serverMsgs->setHScrollBarMode(QScrollView::AlwaysOff);
m_serverMsgs->setHScrollBarMode(TQScrollView::AlwaysOff);
m_serverMsgs->setMinimumWidth(200);
m_mainLayout->addWidget(m_serverMsgs, 1, 0);
// LineEdit to enter commands and chat messages.
m_input = new QLineEdit(m_mainWidget, "input");
m_input = new TQLineEdit(m_mainWidget, "input");
m_mainLayout->addWidget(m_input, 2, 0);
m_serverMsgs->setFocusProxy(m_input);
connect(m_input, SIGNAL(returnPressed()), this, SLOT(slotSendMsg()));
connect(m_input, TQT_SIGNAL(returnPressed()), this, TQT_SLOT(slotSendMsg()));
// Set stretching where we want it.
m_mainLayout->setRowStretch(1, 1); // make m_board+m_serverMsgs stretch vertically, not the rest
@ -201,8 +201,8 @@ Atlantik::Atlantik ()
// Check command-line args to see if we need to connect or show Monopigator window
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
QCString host = args->getOption("host");
QCString port = args->getOption("port");
TQCString host = args->getOption("host");
TQCString port = args->getOption("port");
if (!host.isNull() && !port.isNull())
m_atlantikNetwork->serverConnect(host, port.toInt());
else
@ -238,7 +238,7 @@ void Atlantik::readConfig()
// Portfolio colors
config->setGroup("WM");
QColor activeDefault(204, 204, 204), inactiveDefault(153, 153, 153);
TQColor activeDefault(204, 204, 204), inactiveDefault(153, 153, 153);
m_config.activeColor = config->readColorEntry("activeBackground", &activeDefault);
m_config.inactiveColor = config->readColorEntry("inactiveBlend", &inactiveDefault);
}
@ -253,9 +253,9 @@ void Atlantik::newPlayer(Player *player)
// we'd better force an update.
playerChanged(player);
connect(player, SIGNAL(changed(Player *)), this, SLOT(playerChanged(Player *)));
connect(player, SIGNAL(gainedTurn()), this, SLOT(gainedTurn()));
connect(player, SIGNAL(changed(Player *)), m_board, SLOT(playerChanged(Player *)));
connect(player, TQT_SIGNAL(changed(Player *)), this, TQT_SLOT(playerChanged(Player *)));
connect(player, TQT_SIGNAL(gainedTurn()), this, TQT_SLOT(gainedTurn()));
connect(player, TQT_SIGNAL(changed(Player *)), m_board, TQT_SLOT(playerChanged(Player *)));
KNotifyClient::event(winId(), "newplayer");
}
@ -314,8 +314,8 @@ void Atlantik::showSelectServer()
m_atlanticCore->reset(true);
initNetworkObject();
connect(m_selectServer, SIGNAL(serverConnect(const QString, int)), m_atlantikNetwork, SLOT(serverConnect(const QString, int)));
connect(m_selectServer, SIGNAL(msgStatus(const QString &)), this, SLOT(slotMsgStatus(const QString &)));
connect(m_selectServer, TQT_SIGNAL(serverConnect(const TQString, int)), m_atlantikNetwork, TQT_SLOT(serverConnect(const TQString, int)));
connect(m_selectServer, TQT_SIGNAL(msgStatus(const TQString &)), this, TQT_SLOT(slotMsgStatus(const TQString &)));
m_selectServer->slotRefresh( m_config.connectOnStart );
}
@ -354,10 +354,10 @@ void Atlantik::showSelectGame()
m_selectConfiguration = 0;
}
connect(m_selectGame, SIGNAL(joinGame(int)), m_atlantikNetwork, SLOT(joinGame(int)));
connect(m_selectGame, SIGNAL(newGame(const QString &)), m_atlantikNetwork, SLOT(newGame(const QString &)));
connect(m_selectGame, SIGNAL(leaveServer()), this, SLOT(showSelectServer()));
connect(m_selectGame, SIGNAL(msgStatus(const QString &)), this, SLOT(slotMsgStatus(const QString &)));
connect(m_selectGame, TQT_SIGNAL(joinGame(int)), m_atlantikNetwork, TQT_SLOT(joinGame(int)));
connect(m_selectGame, TQT_SIGNAL(newGame(const TQString &)), m_atlantikNetwork, TQT_SLOT(newGame(const TQString &)));
connect(m_selectGame, TQT_SIGNAL(leaveServer()), this, TQT_SLOT(showSelectServer()));
connect(m_selectGame, TQT_SIGNAL(msgStatus(const TQString &)), this, TQT_SLOT(slotMsgStatus(const TQString &)));
}
void Atlantik::showSelectConfiguration()
@ -375,15 +375,15 @@ void Atlantik::showSelectConfiguration()
m_mainLayout->addMultiCellWidget(m_selectConfiguration, 0, 2, 1, 1);
m_selectConfiguration->show();
connect(m_atlanticCore, SIGNAL(createGUI(ConfigOption *)), m_selectConfiguration, SLOT(addConfigOption(ConfigOption *)));
connect(m_atlantikNetwork, SIGNAL(gameOption(QString, QString, QString, QString, QString)), m_selectConfiguration, SLOT(gameOption(QString, QString, QString, QString, QString)));
connect(m_atlantikNetwork, SIGNAL(gameInit()), m_selectConfiguration, SLOT(initGame()));
connect(m_selectConfiguration, SIGNAL(startGame()), m_atlantikNetwork, SLOT(startGame()));
connect(m_selectConfiguration, SIGNAL(leaveGame()), m_atlantikNetwork, SLOT(leaveGame()));
connect(m_selectConfiguration, SIGNAL(changeOption(int, const QString &)), m_atlantikNetwork, SLOT(changeOption(int, const QString &)));
connect(m_selectConfiguration, SIGNAL(buttonCommand(QString)), m_atlantikNetwork, SLOT(writeData(QString)));
connect(m_selectConfiguration, SIGNAL(iconSelected(const QString &)), m_atlantikNetwork, SLOT(setImage(const QString &)));
connect(m_selectConfiguration, SIGNAL(statusMessage(const QString &)), this, SLOT(slotMsgStatus(const QString &)));
connect(m_atlanticCore, TQT_SIGNAL(createGUI(ConfigOption *)), m_selectConfiguration, TQT_SLOT(addConfigOption(ConfigOption *)));
connect(m_atlantikNetwork, TQT_SIGNAL(gameOption(TQString, TQString, TQString, TQString, TQString)), m_selectConfiguration, TQT_SLOT(gameOption(TQString, TQString, TQString, TQString, TQString)));
connect(m_atlantikNetwork, TQT_SIGNAL(gameInit()), m_selectConfiguration, TQT_SLOT(initGame()));
connect(m_selectConfiguration, TQT_SIGNAL(startGame()), m_atlantikNetwork, TQT_SLOT(startGame()));
connect(m_selectConfiguration, TQT_SIGNAL(leaveGame()), m_atlantikNetwork, TQT_SLOT(leaveGame()));
connect(m_selectConfiguration, TQT_SIGNAL(changeOption(int, const TQString &)), m_atlantikNetwork, TQT_SLOT(changeOption(int, const TQString &)));
connect(m_selectConfiguration, TQT_SIGNAL(buttonCommand(TQString)), m_atlantikNetwork, TQT_SLOT(writeData(TQString)));
connect(m_selectConfiguration, TQT_SIGNAL(iconSelected(const TQString &)), m_atlantikNetwork, TQT_SLOT(setImage(const TQString &)));
connect(m_selectConfiguration, TQT_SIGNAL(statusMessage(const TQString &)), this, TQT_SLOT(slotMsgStatus(const TQString &)));
}
void Atlantik::initBoard()
@ -394,11 +394,11 @@ void Atlantik::initBoard()
m_board = new AtlantikBoard(m_atlanticCore, 40, AtlantikBoard::Play, m_mainWidget, "board");
m_board->setViewProperties(m_config.indicateUnowned, m_config.highliteUnowned, m_config.darkenMortgaged, m_config.quartzEffects, m_config.animateTokens);
connect(m_atlantikNetwork, SIGNAL(displayDetails(QString, bool, bool, Estate *)), m_board, SLOT(insertDetails(QString, bool, bool, Estate *)));
connect(m_atlantikNetwork, SIGNAL(addCommandButton(QString, QString, bool)), m_board, SLOT(displayButton(QString, QString, bool)));
connect(m_atlantikNetwork, SIGNAL(addCloseButton()), m_board, SLOT(addCloseButton()));
connect(m_board, SIGNAL(tokenConfirmation(Estate *)), m_atlantikNetwork, SLOT(tokenConfirmation(Estate *)));
connect(m_board, SIGNAL(buttonCommand(QString)), m_atlantikNetwork, SLOT(writeData(QString)));
connect(m_atlantikNetwork, TQT_SIGNAL(displayDetails(TQString, bool, bool, Estate *)), m_board, TQT_SLOT(insertDetails(TQString, bool, bool, Estate *)));
connect(m_atlantikNetwork, TQT_SIGNAL(addCommandButton(TQString, TQString, bool)), m_board, TQT_SLOT(displayButton(TQString, TQString, bool)));
connect(m_atlantikNetwork, TQT_SIGNAL(addCloseButton()), m_board, TQT_SLOT(addCloseButton()));
connect(m_board, TQT_SIGNAL(tokenConfirmation(Estate *)), m_atlantikNetwork, TQT_SLOT(tokenConfirmation(Estate *)));
connect(m_board, TQT_SIGNAL(buttonCommand(TQString)), m_atlantikNetwork, TQT_SLOT(writeData(TQString)));
}
void Atlantik::showBoard()
@ -425,7 +425,7 @@ void Atlantik::showBoard()
m_board->show();
PortfolioView *portfolioView = 0;
for (QPtrListIterator<PortfolioView> it(m_portfolioViews); *it; ++it)
for (TQPtrListIterator<PortfolioView> it(m_portfolioViews); *it; ++it)
if ((portfolioView = dynamic_cast<PortfolioView*>(*it)))
portfolioView->buildPortfolio();
}
@ -445,7 +445,7 @@ void Atlantik::slotNetworkConnected()
void Atlantik::slotNetworkError(int errnum)
{
QString errMsg(i18n("Error connecting: "));
TQString errMsg(i18n("Error connecting: "));
switch (m_atlantikNetwork->status())
{
@ -475,12 +475,12 @@ void Atlantik::networkClosed(int status)
switch( status )
{
case KBufferedIO::involuntary:
slotMsgStatus( i18n("Connection with server %1:%2 lost.").arg(m_atlantikNetwork->host()).arg(m_atlantikNetwork->port()), QString("connect_no") );
slotMsgStatus( i18n("Connection with server %1:%2 lost.").arg(m_atlantikNetwork->host()).arg(m_atlantikNetwork->port()), TQString("connect_no") );
showSelectServer();
break;
default:
if ( !m_atlantikNetwork->host().isEmpty() )
slotMsgStatus( i18n("Disconnected from %1:%2.").arg(m_atlantikNetwork->host()).arg(m_atlantikNetwork->port()), QString("connect_no") );
slotMsgStatus( i18n("Disconnected from %1:%2.").arg(m_atlantikNetwork->host()).arg(m_atlantikNetwork->port()), TQString("connect_no") );
break;
}
}
@ -491,7 +491,7 @@ void Atlantik::slotConfigure()
m_configDialog = new ConfigDialog(this);
m_configDialog->show();
connect(m_configDialog, SIGNAL(okClicked()), this, SLOT(slotUpdateConfig()));
connect(m_configDialog, TQT_SIGNAL(okClicked()), this, TQT_SLOT(slotUpdateConfig()));
}
void Atlantik::showEventLog()
@ -510,7 +510,7 @@ void Atlantik::slotUpdateConfig()
{
KConfig *config=kapp->config();
bool optBool, configChanged = false;
QString optStr;
TQString optStr;
optBool = m_configDialog->chatTimestamps();
if (m_config.chatTimestamps != optBool)
@ -612,38 +612,38 @@ void Atlantik::slotUpdateConfig()
void Atlantik::slotSendMsg()
{
m_atlantikNetwork->cmdChat(m_input->text());
m_input->setText(QString::null);
m_input->setText(TQString::null);
}
void Atlantik::slotMsgInfo(QString msg)
void Atlantik::slotMsgInfo(TQString msg)
{
serverMsgsAppend(msg);
}
void Atlantik::slotMsgError(QString msg)
void Atlantik::slotMsgError(TQString msg)
{
serverMsgsAppend("Error: " + msg);
}
void Atlantik::slotMsgStatus(const QString &message, const QString &icon)
void Atlantik::slotMsgStatus(const TQString &message, const TQString &icon)
{
KMainWindow::statusBar()->changeItem(message, 1);
m_eventLog->addEvent(message, icon);
}
void Atlantik::slotMsgChat(QString player, QString msg)
void Atlantik::slotMsgChat(TQString player, TQString msg)
{
if (m_config.chatTimestamps)
{
QTime time = QTime::currentTime();
serverMsgsAppend(QString("[%1] %2: %3").arg(time.toString("hh:mm")).arg(player).arg(msg));
TQTime time = TQTime::currentTime();
serverMsgsAppend(TQString("[%1] %2: %3").arg(time.toString("hh:mm")).arg(player).arg(msg));
}
else
serverMsgsAppend(player + ": " + msg);
KNotifyClient::event(winId(), "chat");
}
void Atlantik::serverMsgsAppend(QString msg)
void Atlantik::serverMsgsAppend(TQString msg)
{
// Use append, not setText(old+new) because that one doesn't wrap
m_serverMsgs->append(msg);
@ -661,7 +661,7 @@ void Atlantik::playerChanged(Player *player)
{
// We changed ourselves..
PortfolioView *portfolioView = 0;
for (QPtrListIterator<PortfolioView> it(m_portfolioViews); *it; ++it)
for (TQPtrListIterator<PortfolioView> it(m_portfolioViews); *it; ++it)
if ((portfolioView = dynamic_cast<PortfolioView*>(*it)))
{
// Clear all portfolios if we're not in game
@ -728,38 +728,38 @@ void Atlantik::initNetworkObject()
}
m_atlantikNetwork = new AtlantikNetwork(m_atlanticCore);
connect(m_atlantikNetwork, SIGNAL(msgInfo(QString)), this, SLOT(slotMsgInfo(QString)));
connect(m_atlantikNetwork, SIGNAL(msgError(QString)), this, SLOT(slotMsgError(QString)));
connect(m_atlantikNetwork, SIGNAL(msgStatus(const QString &, const QString &)), this, SLOT(slotMsgStatus(const QString &, const QString &)));
connect(m_atlantikNetwork, SIGNAL(msgChat(QString, QString)), this, SLOT(slotMsgChat(QString, QString)));
connect(m_atlantikNetwork, TQT_SIGNAL(msgInfo(TQString)), this, TQT_SLOT(slotMsgInfo(TQString)));
connect(m_atlantikNetwork, TQT_SIGNAL(msgError(TQString)), this, TQT_SLOT(slotMsgError(TQString)));
connect(m_atlantikNetwork, TQT_SIGNAL(msgStatus(const TQString &, const TQString &)), this, TQT_SLOT(slotMsgStatus(const TQString &, const TQString &)));
connect(m_atlantikNetwork, TQT_SIGNAL(msgChat(TQString, TQString)), this, TQT_SLOT(slotMsgChat(TQString, TQString)));
connect(m_atlantikNetwork, SIGNAL(connectionSuccess()), this, SLOT(slotNetworkConnected()));
connect(m_atlantikNetwork, SIGNAL(connectionFailed(int)), this, SLOT(slotNetworkError(int)));
connect(m_atlantikNetwork, SIGNAL(closed(int)), this, SLOT(networkClosed(int)));
connect(m_atlantikNetwork, TQT_SIGNAL(connectionSuccess()), this, TQT_SLOT(slotNetworkConnected()));
connect(m_atlantikNetwork, TQT_SIGNAL(connectionFailed(int)), this, TQT_SLOT(slotNetworkError(int)));
connect(m_atlantikNetwork, TQT_SIGNAL(closed(int)), this, TQT_SLOT(networkClosed(int)));
connect(m_atlantikNetwork, SIGNAL(receivedHandshake()), this, SLOT(sendHandshake()));
connect(m_atlantikNetwork, TQT_SIGNAL(receivedHandshake()), this, TQT_SLOT(sendHandshake()));
connect(m_atlantikNetwork, SIGNAL(gameConfig()), this, SLOT(showSelectConfiguration()));
connect(m_atlantikNetwork, SIGNAL(gameInit()), this, SLOT(initBoard()));
connect(m_atlantikNetwork, SIGNAL(gameRun()), this, SLOT(showBoard()));
connect(m_atlantikNetwork, SIGNAL(gameEnd()), this, SLOT(freezeBoard()));
connect(m_atlantikNetwork, TQT_SIGNAL(gameConfig()), this, TQT_SLOT(showSelectConfiguration()));
connect(m_atlantikNetwork, TQT_SIGNAL(gameInit()), this, TQT_SLOT(initBoard()));
connect(m_atlantikNetwork, TQT_SIGNAL(gameRun()), this, TQT_SLOT(showBoard()));
connect(m_atlantikNetwork, TQT_SIGNAL(gameEnd()), this, TQT_SLOT(freezeBoard()));
connect(m_atlantikNetwork, SIGNAL(newEstate(Estate *)), this, SLOT(newEstate(Estate *)));
connect(m_atlantikNetwork, SIGNAL(newAuction(Auction *)), this, SLOT(newAuction(Auction *)));
connect(m_atlantikNetwork, TQT_SIGNAL(newEstate(Estate *)), this, TQT_SLOT(newEstate(Estate *)));
connect(m_atlantikNetwork, TQT_SIGNAL(newAuction(Auction *)), this, TQT_SLOT(newAuction(Auction *)));
connect(m_atlantikNetwork, SIGNAL(clientCookie(QString)), this, SLOT(clientCookie(QString)));
connect(m_atlantikNetwork, SIGNAL(networkEvent(const QString &, const QString &)), m_eventLog, SLOT(addEvent(const QString &, const QString &)));
connect(m_atlantikNetwork, TQT_SIGNAL(clientCookie(TQString)), this, TQT_SLOT(clientCookie(TQString)));
connect(m_atlantikNetwork, TQT_SIGNAL(networkEvent(const TQString &, const TQString &)), m_eventLog, TQT_SLOT(addEvent(const TQString &, const TQString &)));
connect(this, SIGNAL(rollDice()), m_atlantikNetwork, SLOT(rollDice()));
connect(this, SIGNAL(buyEstate()), m_atlantikNetwork, SLOT(buyEstate()));
connect(this, SIGNAL(auctionEstate()), m_atlantikNetwork, SLOT(auctionEstate()));
connect(this, SIGNAL(endTurn()), m_atlantikNetwork, SLOT(endTurn()));
connect(this, SIGNAL(jailCard()), m_atlantikNetwork, SLOT(jailCard()));
connect(this, SIGNAL(jailPay()), m_atlantikNetwork, SLOT(jailPay()));
connect(this, SIGNAL(jailRoll()), m_atlantikNetwork, SLOT(jailRoll()));
connect(this, TQT_SIGNAL(rollDice()), m_atlantikNetwork, TQT_SLOT(rollDice()));
connect(this, TQT_SIGNAL(buyEstate()), m_atlantikNetwork, TQT_SLOT(buyEstate()));
connect(this, TQT_SIGNAL(auctionEstate()), m_atlantikNetwork, TQT_SLOT(auctionEstate()));
connect(this, TQT_SIGNAL(endTurn()), m_atlantikNetwork, TQT_SLOT(endTurn()));
connect(this, TQT_SIGNAL(jailCard()), m_atlantikNetwork, TQT_SLOT(jailCard()));
connect(this, TQT_SIGNAL(jailPay()), m_atlantikNetwork, TQT_SLOT(jailPay()));
connect(this, TQT_SIGNAL(jailRoll()), m_atlantikNetwork, TQT_SLOT(jailRoll()));
}
void Atlantik::clientCookie(QString cookie)
void Atlantik::clientCookie(TQString cookie)
{
KConfig *config = kapp->config();
@ -789,7 +789,7 @@ void Atlantik::sendHandshake()
// Check command-line args to see if we need to auto-join
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
QCString game = args->getOption("game");
TQCString game = args->getOption("game");
if (!game.isNull())
m_atlantikNetwork->joinGame(game.toInt());
}
@ -812,10 +812,10 @@ PortfolioView *Atlantik::addPortfolioView(Player *player)
if ( m_portfolioViews.count() > 0 && m_portfolioScroll->isHidden() )
m_portfolioScroll->show();
connect(player, SIGNAL(changed(Player *)), portfolioView, SLOT(playerChanged()));
connect(portfolioView, SIGNAL(newTrade(Player *)), m_atlantikNetwork, SLOT(newTrade(Player *)));
connect(portfolioView, SIGNAL(kickPlayer(Player *)), m_atlantikNetwork, SLOT(kickPlayer(Player *)));
connect(portfolioView, SIGNAL(estateClicked(Estate *)), m_board, SLOT(prependEstateDetails(Estate *)));
connect(player, TQT_SIGNAL(changed(Player *)), portfolioView, TQT_SLOT(playerChanged()));
connect(portfolioView, TQT_SIGNAL(newTrade(Player *)), m_atlantikNetwork, TQT_SLOT(newTrade(Player *)));
connect(portfolioView, TQT_SIGNAL(kickPlayer(Player *)), m_atlantikNetwork, TQT_SLOT(kickPlayer(Player *)));
connect(portfolioView, TQT_SIGNAL(estateClicked(Estate *)), m_board, TQT_SLOT(prependEstateDetails(Estate *)));
m_portfolioLayout->addWidget(portfolioView);
portfolioView->show();
@ -826,14 +826,14 @@ PortfolioView *Atlantik::addPortfolioView(Player *player)
PortfolioView *Atlantik::findPortfolioView(Player *player)
{
PortfolioView *portfolioView = 0;
for (QPtrListIterator<PortfolioView> it(m_portfolioViews); (portfolioView = *it) ; ++it)
for (TQPtrListIterator<PortfolioView> it(m_portfolioViews); (portfolioView = *it) ; ++it)
if (player == portfolioView->player())
return portfolioView;
return 0;
}
void Atlantik::closeEvent(QCloseEvent *e)
void Atlantik::closeEvent(TQCloseEvent *e)
{
Game *gameSelf = m_atlanticCore->gameSelf();
Player *playerSelf = m_atlanticCore->playerSelf();


+ 26
- 26
atlantik/client/atlantik.h View File

@ -17,11 +17,11 @@
#ifndef ATLANTIK_ATLANTIK_H
#define ATLANTIK_ATLANTIK_H
#include <qwidget.h>
#include <qlayout.h>
#include <qtextedit.h>
#include <qlabel.h>
#include <qptrlist.h>
#include <tqwidget.h>
#include <tqlayout.h>
#include <tqtextedit.h>
#include <tqlabel.h>
#include <tqptrlist.h>
#include <kmainwindow.h>
@ -40,7 +40,7 @@ struct AtlantikConfig
bool chatTimestamps;
// Personalization options
QString playerName, playerImage;
TQString playerName, playerImage;
// Board options
bool indicateUnowned;
@ -54,7 +54,7 @@ struct AtlantikConfig
bool hideDevelopmentServers;
// Portfolio colors
QColor activeColor, inactiveColor;
TQColor activeColor, inactiveColor;
};
class EventLog;
@ -73,10 +73,10 @@ class LogTextEdit : public QTextEdit
Q_OBJECT
public:
LogTextEdit( QWidget *parent = 0, const char *name = 0 );
LogTextEdit( TQWidget *parent = 0, const char *name = 0 );
virtual ~LogTextEdit();
QPopupMenu *createPopupMenu( const QPoint & pos );
TQPopupMenu *createPopupMenu( const TQPoint & pos );
private:
KAction *m_clear, *m_selectAll, *m_copy;
@ -110,7 +110,7 @@ public:
*
* @param msg Message to be appended.
*/
void serverMsgsAppend(QString msg);
void serverMsgsAppend(TQString msg);
AtlantikConfig config() { return m_config; }
@ -121,7 +121,7 @@ private slots:
void initBoard();
void showBoard();
void freezeBoard();
void clientCookie(QString cookie);
void clientCookie(TQString cookie);
void sendHandshake();
void statusBarClick(int);
@ -138,7 +138,7 @@ public slots:
* An error occurred while setting up the network connection. Inform the
* user.
*
* @param errno See http://doc.trolltech.com/3.0/qsocket.html#Error-enum
* @param errno See http://doc.trolltech.com/3.0/tqsocket.html#Error-enum
*/
void slotNetworkError(int errnum);
@ -184,9 +184,9 @@ public slots:
*
* @param msg The message to be appended.
*/
void slotMsgInfo(QString msg);
void slotMsgInfo(TQString msg);
void slotMsgStatus(const QString &message, const QString &icon = QString::null);
void slotMsgStatus(const TQString &message, const TQString &icon = TQString::null);
/**
* Informs serverMsgs() to append an incoming message from the
@ -194,7 +194,7 @@ public slots:
*
* @param msg The error message to be appended.
*/
void slotMsgError(QString msg);
void slotMsgError(TQString msg);
/**
* Informs serverMsgs() to append an incoming message from the
@ -203,7 +203,7 @@ public slots:
* @param player The name of the player chatting.
* @param msg The chat message to be appended.
*/
void slotMsgChat(QString player, QString msg);
void slotMsgChat(TQString player, TQString msg);
void newPlayer(Player *player);
void newEstate(Estate *estate);
@ -226,7 +226,7 @@ signals:
void jailRoll();
protected:
void closeEvent(QCloseEvent *);
void closeEvent(TQCloseEvent *);
private:
void initEventLog();
@ -234,14 +234,14 @@ private:
PortfolioView *addPortfolioView(Player *player);
PortfolioView *findPortfolioView(Player *player);
QScrollView *m_portfolioScroll;
QWidget *m_mainWidget, *m_portfolioWidget;
QGridLayout *m_mainLayout;
QVBoxLayout *m_portfolioLayout;
TQScrollView *m_portfolioScroll;
TQWidget *m_mainWidget, *m_portfolioWidget;
TQGridLayout *m_mainLayout;
TQVBoxLayout *m_portfolioLayout;
QLabel *m_portfolioLabel;
QLineEdit *m_input;
QTextEdit *m_serverMsgs;
TQLabel *m_portfolioLabel;
TQLineEdit *m_input;
TQTextEdit *m_serverMsgs;
KAction *m_roll, *m_buyEstate, *m_auctionEstate, *m_endTurn,
*m_jailCard, *m_jailPay, *m_jailRoll, *m_configure,
@ -259,8 +259,8 @@ private:
EventLog *m_eventLog;
EventLogWidget *m_eventLogWidget;
QPtrList<PortfolioView> m_portfolioViews;
QMap<Trade *, TradeDisplay *> m_tradeGUIMap;
TQPtrList<PortfolioView> m_portfolioViews;
TQMap<Trade *, TradeDisplay *> m_tradeGUIMap;
bool m_runningGame;
};


+ 45
- 45
atlantik/client/configdlg.cpp View File

@ -14,10 +14,10 @@
// the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
// Boston, MA 02110-1301, USA.
#include <qlayout.h>
#include <qgroupbox.h>
#include <qwhatsthis.h>
#include <qlabel.h>
#include <tqlayout.h>
#include <tqgroupbox.h>
#include <tqwhatsthis.h>
#include <tqlabel.h>
#include <kdeversion.h>
#undef KDE_3_1_FEATURES
@ -86,12 +86,12 @@ bool ConfigDialog::quartzEffects()
return configBoard->quartzEffects();
}
QString ConfigDialog::playerName()
TQString ConfigDialog::playerName()
{
return configPlayer->playerName();
}
QString ConfigDialog::playerImage()
TQString ConfigDialog::playerImage()
{
return configPlayer->playerImage();
}
@ -111,36 +111,36 @@ AtlantikConfig ConfigDialog::config()
return m_parent->config();
}
ConfigPlayer::ConfigPlayer(ConfigDialog* configDialog, QWidget *parent, const char *name) : QWidget(parent, name)
ConfigPlayer::ConfigPlayer(ConfigDialog* configDialog, TQWidget *parent, const char *name) : TQWidget(parent, name)
{
m_configDialog = configDialog;
QVBoxLayout *layout = new QVBoxLayout(parent, KDialog::marginHint(), KDialog::spacingHint());
TQVBoxLayout *layout = new TQVBoxLayout(parent, KDialog::marginHint(), KDialog::spacingHint());
QLabel *label = new QLabel(i18n("Player name:"), parent);
TQLabel *label = new TQLabel(i18n("Player name:"), parent);
layout->addWidget(label);
m_playerName = new QLineEdit(parent);
m_playerName = new TQLineEdit(parent);
layout->addWidget(m_playerName);
QLabel *label2 = new QLabel(i18n("Player image:"), parent);
TQLabel *label2 = new TQLabel(i18n("Player image:"), parent);
layout->addWidget(label2);
m_playerIcon = new KPushButton(parent, "playerIcon");
layout->addWidget(m_playerIcon);
connect( m_playerIcon, SIGNAL(clicked()), this, SLOT(chooseImage()) );
connect( m_playerIcon, TQT_SIGNAL(clicked()), this, TQT_SLOT(chooseImage()) );
layout->addStretch(1);
reset();
}
QString ConfigPlayer::playerName()
TQString ConfigPlayer::playerName()
{
return m_playerName->text();
}
QString ConfigPlayer::playerImage()
TQString ConfigPlayer::playerImage()
{
return m_playerImage;
}
@ -157,12 +157,12 @@ void ConfigPlayer::chooseImage()
iconDialog.setup( KIcon::Desktop, KIcon::Application, false, 0, true ); // begin with user icons
#endif
QString image = iconDialog.openDialog();
TQString image = iconDialog.openDialog();
if ( image.isEmpty() )
return;
QStringList splitPath = QStringList::split( '/', image );
TQStringList splitPath = TQStringList::split( '/', image );
m_playerImage = splitPath[ splitPath.count()-1 ];
setImage();
@ -170,9 +170,9 @@ void ConfigPlayer::chooseImage()
void ConfigPlayer::setImage()
{
QString filename = locate("data", "atlantik/themes/default/tokens/" + m_playerImage);
TQString filename = locate("data", "atlantik/themes/default/tokens/" + m_playerImage);
if (KStandardDirs::exists(filename))
m_playerIcon->setPixmap( QPixmap(filename) );
m_playerIcon->setPixmap( TQPixmap(filename) );
}
void ConfigPlayer::reset()
@ -182,27 +182,27 @@ void ConfigPlayer::reset()
setImage();
}
ConfigMonopigator::ConfigMonopigator(ConfigDialog *configDialog, QWidget *parent, const char *name) : QWidget(parent, name)
ConfigMonopigator::ConfigMonopigator(ConfigDialog *configDialog, TQWidget *parent, const char *name) : TQWidget(parent, name)
{
m_configDialog = configDialog;
QVBoxLayout *layout = new QVBoxLayout(parent, KDialog::marginHint(), KDialog::spacingHint());
TQVBoxLayout *layout = new TQVBoxLayout(parent, KDialog::marginHint(), KDialog::spacingHint());