Browse Source

Rename old tq methods that no longer need a unique name

pull/1/head
Timothy Pearson 9 years ago
parent
commit
0e2b76239f
180 changed files with 729 additions and 729 deletions
  1. +7
    -7
      atlantik/client/atlantik.cpp
  2. +1
    -1
      atlantik/client/atlantik.h
  3. +1
    -1
      atlantik/client/configdlg.cpp
  4. +2
    -2
      atlantik/client/eventlogwidget.cpp
  5. +1
    -1
      atlantik/client/monopigator.cpp
  6. +1
    -1
      atlantik/client/selectgame_widget.h
  7. +5
    -5
      atlantik/client/selectserver_widget.cpp
  8. +1
    -1
      atlantik/client/selectserver_widget.h
  9. +1
    -1
      atlantik/libatlantic/auction.cpp
  10. +1
    -1
      atlantik/libatlantic/auction.h
  11. +5
    -5
      atlantik/libatlantikclient/atlantik_network.cpp
  12. +1
    -1
      atlantik/libatlantikclient/atlantik_network.h
  13. +5
    -5
      atlantik/libatlantikclient/monopdprotocol.cpp
  14. +1
    -1
      atlantik/libatlantikui/auction_widget.cpp
  15. +1
    -1
      kasteroids/ledmeter.cpp
  16. +8
    -8
      kasteroids/toplevel.cpp
  17. +1
    -1
      kasteroids/view.cpp
  18. +5
    -5
      katomic/feld.cpp
  19. +1
    -1
      katomic/feld.h
  20. +2
    -2
      katomic/gamewidget.cpp
  21. +23
    -23
      kbackgammon/engines/fibs/kbgfibs.cpp
  22. +4
    -4
      kbackgammon/engines/fibs/kbgfibs.h
  23. +1
    -1
      kbackgammon/engines/fibs/kbgfibschat.cpp
  24. +2
    -2
      kbackgammon/engines/fibs/kbginvite.cpp
  25. +13
    -13
      kbackgammon/engines/fibs/kplayerlist.cpp
  26. +3
    -3
      kbackgammon/engines/fibs/kplayerlist.h
  27. +3
    -3
      kbackgammon/engines/generic/kbgengine.h
  28. +3
    -3
      kbackgammon/engines/gnubg/kbggnubg.cpp
  29. +1
    -1
      kbackgammon/engines/nextgen/kbgng.cpp
  30. +1
    -1
      kbackgammon/engines/offline/kbgoffline.cpp
  31. +4
    -4
      kbackgammon/kbg.cpp
  32. +24
    -24
      kbackgammon/kbgboard.cpp
  33. +9
    -9
      kbackgammon/kbgboard.h
  34. +33
    -33
      kbackgammon/kbgstatus.cpp
  35. +8
    -8
      kbackgammon/kbgstatus.h
  36. +1
    -1
      kbattleship/CLIENTS
  37. +8
    -8
      kbattleship/kbattleship/dialogs/statDlg.ui
  38. +1
    -1
      kbattleship/kbattleship/kclientdialog.cpp
  39. +1
    -1
      kbattleship/kbattleship/konnectionhandling.cpp
  40. +1
    -1
      kblackbox/kbbgfx.cpp
  41. +1
    -1
      kblackbox/kbbgfx.h
  42. +11
    -11
      kenolaba/AbTop.cpp
  43. +1
    -1
      kenolaba/AbTop.h
  44. +2
    -2
      kenolaba/BoardWidget.cpp
  45. +1
    -1
      kenolaba/BoardWidget.h
  46. +28
    -28
      kenolaba/EvalDlg.ui
  47. +8
    -8
      kenolaba/Spy.cpp
  48. +2
    -2
      kgoldrunner/src/kgoldrunner.h
  49. +4
    -4
      kgoldrunner/src/kgrcanvas.cpp
  50. +1
    -1
      kgoldrunner/src/kgrconsts.h
  51. +3
    -3
      kgoldrunner/src/kgrdialog.cpp
  52. +7
    -7
      kgoldrunner/src/kgrfigure.cpp
  53. +3
    -3
      kgoldrunner/src/kgrfigure.h
  54. +2
    -2
      kgoldrunner/src/kgrgame.cpp
  55. +1
    -1
      kjumpingcube/kcubeboxwidget.cpp
  56. +1
    -1
      kjumpingcube/kcubeboxwidget.h
  57. +1
    -1
      kjumpingcube/kjumpingcube.cpp
  58. +1
    -1
      kjumpingcube/settings.ui
  59. +2
    -2
      klines/linesboard.cpp
  60. +1
    -1
      klines/mwidget.cpp
  61. +1
    -1
      kmahjongg/Editor.cpp
  62. +4
    -4
      kmahjongg/HighScore.cpp
  63. +1
    -1
      kmahjongg/Preview.cpp
  64. +4
    -4
      kmahjongg/kmahjongg.cpp
  65. +1
    -1
      kmahjongg/settings.ui
  66. +2
    -2
      kmines/field.cpp
  67. +2
    -2
      kmines/field.h
  68. +6
    -6
      kmines/frame.cpp
  69. +2
    -2
      kmines/kzoommainwindow.cpp
  70. +1
    -1
      kmines/kzoommainwindow.h
  71. +1
    -1
      kmines/main.cpp
  72. +2
    -2
      kmines/main.h
  73. +26
    -26
      kmines/status.cpp
  74. +3
    -3
      kmines/status.h
  75. +1
    -1
      knetwalk/src/mainwindow.cpp
  76. +5
    -5
      kolf/ball.cpp
  77. +1
    -1
      kolf/canvasitem.h
  78. +85
    -85
      kolf/game.cpp
  79. +1
    -1
      kolf/kolf.cpp
  80. +1
    -1
      kolf/newgame.cpp
  81. +3
    -3
      kolf/slope.cpp
  82. +2
    -2
      konquest/fleetdlg.cc
  83. +3
    -3
      konquest/gameboard.cc
  84. +1
    -1
      konquest/gameboard.h
  85. +1
    -1
      konquest/gameenddlg.cc
  86. +8
    -8
      konquest/newGameDlg_ui.ui
  87. +8
    -8
      konquest/planet_info.cc
  88. +1
    -1
      konquest/planet_info.h
  89. +2
    -2
      konquest/scoredlg.cc
  90. +1
    -1
      kpat/CHANGES
  91. +10
    -10
      kpat/dealer.cpp
  92. +2
    -2
      kpat/freecell.cpp
  93. +3
    -3
      kpat/gamestats.ui
  94. +3
    -3
      kpat/pile.cpp
  95. +3
    -3
      kpat/pwidget.cpp
  96. +1
    -1
      kpoker/kpaint.cpp
  97. +1
    -1
      kpoker/kpoker.cpp
  98. +2
    -2
      kpoker/playerbox.cpp
  99. +2
    -2
      kreversi/kzoommainwindow.cpp
  100. +1
    -1
      kreversi/kzoommainwindow.h
  101. +17
    -17
      kreversi/qreversigameview.cpp
  102. +4
    -4
      kreversi/qreversigameview.h
  103. +1
    -1
      kreversi/settings.ui
  104. +2
    -2
      ksame/KSameWidget.cpp
  105. +1
    -1
      ksame/StoneWidget.cpp
  106. +1
    -1
      ksame/StoneWidget.h
  107. +17
    -17
      kshisen/app.cpp
  108. +1
    -1
      kshisen/board.cpp
  109. +1
    -1
      kshisen/board.h
  110. +1
    -1
      kshisen/settings.ui
  111. +1
    -1
      ksnake/appearance.ui
  112. +1
    -1
      ksnake/game.cpp
  113. +1
    -1
      ksnake/general.ui
  114. +1
    -1
      ksnake/rattler.cpp
  115. +1
    -1
      ksnake/view.cpp
  116. +1
    -1
      ksnake/view.h
  117. +2
    -2
      ksokoban/ImageData.cpp
  118. +2
    -2
      ksokoban/ModalLabel.cpp
  119. +1
    -1
      ksokoban/NEWS
  120. +1
    -1
      kspaceduel/general.ui
  121. +1
    -1
      kspaceduel/mainview.cpp
  122. +1
    -1
      kspaceduel/playerinfo.cpp
  123. +2
    -2
      ktron/ai.ui
  124. +1
    -1
      ktron/appearance.ui
  125. +1
    -1
      ktron/general.ui
  126. +2
    -2
      ktron/ktron.cpp
  127. +1
    -1
      ktron/ktron.h
  128. +2
    -2
      ktron/tron.cpp
  129. +2
    -2
      libksirtet/base/board.cpp
  130. +1
    -1
      libksirtet/base/board.h
  131. +1
    -1
      libksirtet/base/field.cpp
  132. +2
    -2
      libksirtet/base/kzoommainwindow.cpp
  133. +1
    -1
      libksirtet/base/kzoommainwindow.h
  134. +2
    -2
      libksirtet/common/field.cpp
  135. +5
    -5
      libksirtet/common/misc_ui.cpp
  136. +3
    -3
      libksirtet/common/misc_ui.h
  137. +1
    -1
      libksirtet/lib/meeting.cpp
  138. +1
    -1
      libksirtet/lib/mp_simple_interface.cpp
  139. +4
    -4
      libksirtet/lib/pline.cpp
  140. +1
    -1
      libtdegames/highscore/kexthighscore_internal.cpp
  141. +3
    -3
      libtdegames/highscore/kscoredialog.cpp
  142. +1
    -1
      libtdegames/kcanvasrootpixmap.cpp
  143. +37
    -37
      libtdegames/kcarddialog.cpp
  144. +1
    -1
      libtdegames/kchatbase.cpp
  145. +1
    -1
      libtdegames/kgame/DESIGN
  146. +6
    -6
      libtdegames/kgame/dialogs/kgamedebugdialog.cpp
  147. +14
    -14
      libtdegames/kgame/kgame.cpp
  148. +4
    -4
      libtdegames/kgame/kgame.h
  149. +1
    -1
      libtdegames/kgame/kgameproperty.h
  150. +1
    -1
      libtdegames/kgame/kmessageclient.cpp
  151. +1
    -1
      libtdegames/kgame/kmessageio.h
  152. +1
    -1
      libtdegames/kgame/messages.txt
  153. +1
    -1
      libtdegames/kgamelcd.cpp
  154. +11
    -11
      libtdegames/kgameprogress.cpp
  155. +2
    -2
      libtdegames/kgameprogress.h
  156. +1
    -1
      lskat/lskat/KChildConnect.cpp
  157. +1
    -1
      lskat/lskat/KChildConnect.h
  158. +4
    -4
      lskat/lskat/KConnectEntry.cpp
  159. +1
    -1
      lskat/lskat/KConnectEntry.h
  160. +3
    -3
      lskat/lskat/KEInput.cpp
  161. +1
    -1
      lskat/lskat/KEInput.h
  162. +1
    -1
      lskat/lskat/KRemoteConnect.cpp
  163. +1
    -1
      lskat/lskat/KRemoteConnect.h
  164. +6
    -6
      lskat/lskat/lskat.cpp
  165. +3
    -3
      lskat/lskat/lskatdoc.cpp
  166. +2
    -2
      lskat/lskat/lskatdoc.h
  167. +5
    -5
      lskat/lskat/lskatview.cpp
  168. +2
    -2
      lskat/lskat/lskatview.h
  169. +1
    -1
      lskat/lskat/namedlg.cpp
  170. +1
    -1
      lskat/lskat/networkdlg.cpp
  171. +2
    -2
      lskat/lskat/networkdlgbase.ui
  172. +1
    -1
      lskat/lskatproc/KChildConnect.cpp
  173. +1
    -1
      lskat/lskatproc/KChildConnect.h
  174. +6
    -6
      twin4/twin4/scorewidget.cpp
  175. +1
    -1
      twin4/twin4/settings.ui
  176. +2
    -2
      twin4/twin4/statistics.ui
  177. +2
    -2
      twin4/twin4/statuswidget.ui
  178. +8
    -8
      twin4/twin4/twin4.cpp
  179. +7
    -7
      twin4/twin4/twin4doc.cpp
  180. +4
    -4
      twin4/twin4/twin4view.cpp

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

@ -315,7 +315,7 @@ void Atlantik::showSelectServer()
initNetworkObject();
connect(m_selectServer, TQT_SIGNAL(serverConnect(const TQString, int)), m_atlantikNetwork, TQT_SLOT(serverConnect(const TQString, int)));
connect(m_selectServer, TQT_SIGNAL(msgtqStatus(const TQString &)), TQT_TQOBJECT(this), TQT_SLOT(slotMsgtqStatus(const TQString &)));
connect(m_selectServer, TQT_SIGNAL(msgStatus(const TQString &)), TQT_TQOBJECT(this), TQT_SLOT(slotMsgStatus(const TQString &)));
m_selectServer->slotRefresh( m_config.connectOnStart );
}
@ -357,7 +357,7 @@ void Atlantik::showSelectGame()
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()), TQT_TQOBJECT(this), TQT_SLOT(showSelectServer()));
connect(m_selectGame, TQT_SIGNAL(msgtqStatus(const TQString &)), TQT_TQOBJECT(this), TQT_SLOT(slotMsgtqStatus(const TQString &)));
connect(m_selectGame, TQT_SIGNAL(msgStatus(const TQString &)), TQT_TQOBJECT(this), TQT_SLOT(slotMsgStatus(const TQString &)));
}
void Atlantik::showSelectConfiguration()
@ -383,7 +383,7 @@ void Atlantik::showSelectConfiguration()
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 &)), TQT_TQOBJECT(this), TQT_SLOT(slotMsgtqStatus(const TQString &)));
connect(m_selectConfiguration, TQT_SIGNAL(statusMessage(const TQString &)), TQT_TQOBJECT(this), TQT_SLOT(slotMsgStatus(const TQString &)));
}
void Atlantik::initBoard()
@ -475,12 +475,12 @@ void Atlantik::networkClosed(int status)
switch( status )
{
case KBufferedIO::involuntary:
slotMsgtqStatus( i18n("Connection with server %1:%2 lost.").tqarg(m_atlantikNetwork->host()).tqarg(m_atlantikNetwork->port()), TQString("connect_no") );
slotMsgStatus( i18n("Connection with server %1:%2 lost.").tqarg(m_atlantikNetwork->host()).tqarg(m_atlantikNetwork->port()), TQString("connect_no") );
showSelectServer();
break;
default:
if ( !m_atlantikNetwork->host().isEmpty() )
slotMsgtqStatus( i18n("Disconnected from %1:%2.").tqarg(m_atlantikNetwork->host()).tqarg(m_atlantikNetwork->port()), TQString("connect_no") );
slotMsgStatus( i18n("Disconnected from %1:%2.").tqarg(m_atlantikNetwork->host()).tqarg(m_atlantikNetwork->port()), TQString("connect_no") );
break;
}
}
@ -625,7 +625,7 @@ void Atlantik::slotMsgError(TQString msg)
serverMsgsAppend("Error: " + msg);
}
void Atlantik::slotMsgtqStatus(const TQString &message, const TQString &icon)
void Atlantik::slotMsgStatus(const TQString &message, const TQString &icon)
{
KMainWindow::statusBar()->changeItem(message, 1);
m_eventLog->addEvent(message, icon);
@ -730,7 +730,7 @@ void Atlantik::initNetworkObject()
m_atlantikNetwork = new AtlantikNetwork(m_atlanticCore);
connect(m_atlantikNetwork, TQT_SIGNAL(msgInfo(TQString)), TQT_TQOBJECT(this), TQT_SLOT(slotMsgInfo(TQString)));
connect(m_atlantikNetwork, TQT_SIGNAL(msgError(TQString)), TQT_TQOBJECT(this), TQT_SLOT(slotMsgError(TQString)));
connect(m_atlantikNetwork, TQT_SIGNAL(msgtqStatus(const TQString &, const TQString &)), TQT_TQOBJECT(this), TQT_SLOT(slotMsgtqStatus(const TQString &, const TQString &)));
connect(m_atlantikNetwork, TQT_SIGNAL(msgStatus(const TQString &, const TQString &)), TQT_TQOBJECT(this), TQT_SLOT(slotMsgStatus(const TQString &, const TQString &)));
connect(m_atlantikNetwork, TQT_SIGNAL(msgChat(TQString, TQString)), TQT_TQOBJECT(this), TQT_SLOT(slotMsgChat(TQString, TQString)));
connect(m_atlantikNetwork, TQT_SIGNAL(connectionSuccess()), TQT_TQOBJECT(this), TQT_SLOT(slotNetworkConnected()));


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

@ -188,7 +188,7 @@ public slots:
*/
void slotMsgInfo(TQString msg);
void slotMsgtqStatus(const TQString &message, const TQString &icon = TQString());
void slotMsgStatus(const TQString &message, const TQString &icon = TQString());
/**
* Informs serverMsgs() to append an incoming message from the


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

@ -53,7 +53,7 @@ ConfigDialog::ConfigDialog(Atlantik* parent, const char *name) : KDialogBase(Ico
configBoard = new ConfigBoard(this, p_board, "configBoard");
configMonopigator = new ConfigMonopigator(this, p_monopigator, "configMonopigator");
setMinimumSize(tqsizeHint());
setMinimumSize(sizeHint());
}
bool ConfigDialog::chatTimestamps()


+ 2
- 2
atlantik/client/eventlogwidget.cpp View File

@ -37,7 +37,7 @@ EventLog::EventLog()
void EventLog::addEvent(const TQString &description, const TQString &icon)
{
Event *event = new Event(TQDateTime::tqcurrentDateTime(), description, icon);
Event *event = new Event(TQDateTime::currentDateTime(), description, icon);
m_events.append(event);
emit newEvent(event);
}
@ -113,7 +113,7 @@ void EventLogWidget::save()
{
TQTextStream stream(&file);
stream << i18n( "Atlantik log file, saved at %1." ).tqarg( TQDateTime::tqcurrentDateTime().toString("yyyy-MM-dd hh:mm:ss") ) << endl;
stream << i18n( "Atlantik log file, saved at %1." ).tqarg( TQDateTime::currentDateTime().toString("yyyy-MM-dd hh:mm:ss") ) << endl;
TQPtrList<Event> events = m_eventLog->events();
for (TQPtrListIterator<Event> it( events ); (*it) ; ++it)


+ 1
- 1
atlantik/client/monopigator.cpp View File

@ -46,7 +46,7 @@ void Monopigator::loadData(const KURL &url)
m_downloadData->reset();
m_job = KIO::get(url, true, false);
m_job->addMetaData(TQString::tqfromLatin1("UserAgent"), TQString::tqfromLatin1("Atlantik/" ATLANTIK_VERSION_STRING));
m_job->addMetaData(TQString::fromLatin1("UserAgent"), TQString::fromLatin1("Atlantik/" ATLANTIK_VERSION_STRING));
if (!m_timer)
{


+ 1
- 1
atlantik/client/selectgame_widget.h View File

@ -52,7 +52,7 @@ signals:
void joinGame(int gameId);
void newGame(const TQString &gameType);
void leaveServer();
void msgtqStatus(const TQString &status);
void msgStatus(const TQString &status);
private:
TQListViewItem *findItem(Game *game);


+ 5
- 5
atlantik/client/selectserver_widget.cpp View File

@ -42,12 +42,12 @@ SelectServer::SelectServer(bool useMonopigatorOnStart, bool hideDevelopmentServe
TQLabel *hostLabel = new TQLabel(i18n("Hostname:"), customGroup);
m_hostEdit = new KLineEdit(customGroup);
m_hostEdit->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::Minimum));
m_hostEdit->setSizePolicy(TQSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::Minimum));
TQLabel *portLabel = new TQLabel(i18n("Port:"), customGroup);
m_portEdit = new KLineEdit(TQString::number(1234), customGroup);
m_portEdit->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Minimum));
m_portEdit->setSizePolicy(TQSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Minimum));
KPushButton *connectButton = new KPushButton( KGuiItem(i18n("Connect"), "network"), customGroup);
connect(connectButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(customConnect()));
@ -113,7 +113,7 @@ void SelectServer::setHideDevelopmentServers(bool hideDevelopmentServers)
void SelectServer::initMonopigator()
{
// Hardcoded, but there aren't any other Monopigator root servers at the moment
emit msgtqStatus(i18n("Retrieving server list..."));
emit msgStatus(i18n("Retrieving server list..."));
m_refreshButton->setGuiItem(KGuiItem(i18n("Reload Server List"), "reload"));
m_monopigator->loadData(KURL( "http://monopd-gator.kde.org/"));
@ -135,13 +135,13 @@ void SelectServer::slotMonopigatorAdd(TQString ip, TQString host, TQString port,
void SelectServer::monopigatorFinished()
{
emit msgtqStatus(i18n("Retrieved server list."));
emit msgStatus(i18n("Retrieved server list."));
m_refreshButton->setEnabled(true);
}
void SelectServer::monopigatorTimeout()
{
emit msgtqStatus(i18n("Error while retrieving the server list."));
emit msgStatus(i18n("Error while retrieving the server list."));
m_refreshButton->setEnabled(true);
}


+ 1
- 1
atlantik/client/selectserver_widget.h View File

@ -57,7 +57,7 @@ private slots:
signals:
void serverConnect(const TQString host, int port);
void msgtqStatus(const TQString &message);
void msgStatus(const TQString &message);
void showDevelopmentServers(bool show);
private:


+ 1
- 1
atlantik/libatlantic/auction.cpp View File

@ -32,7 +32,7 @@ Auction::~Auction()
emit completed();
}
void Auction::settqStatus(int status)
void Auction::setStatus(int status)
{
if (m_status != status)
{


+ 1
- 1
atlantik/libatlantic/auction.h View File

@ -36,7 +36,7 @@ public:
int auctionId() { return m_auctionId; }
Estate *estate() { return m_estate; }
void settqStatus(int status);
void setStatus(int status);
int status() { return m_status; }
void newBid(Player *player, int bid);


+ 5
- 5
atlantik/libatlantikclient/atlantik_network.cpp View File

@ -872,7 +872,7 @@ void AtlantikNetwork::processNode(TQDomNode n)
if (auction && !a.isNull())
{
int status = a.value().toInt();
auction->settqStatus(status);
auction->setStatus(status);
// TODO: find a good way to visualise "sold!"
if (status == 3)
@ -906,23 +906,23 @@ void AtlantikNetwork::serverConnect(const TQString host, int port)
{
setAddress(host, port);
enableRead(true);
emit msgtqStatus(i18n("Connecting to %1:%2...").tqarg(host).tqarg(TQString::number(port)), "connect_creating");
emit msgStatus(i18n("Connecting to %1:%2...").tqarg(host).tqarg(TQString::number(port)), "connect_creating");
startAsyncConnect();
}
void AtlantikNetwork::slotLookupFinished(int count)
{
emit msgtqStatus(i18n("Server host name lookup finished..."));
emit msgStatus(i18n("Server host name lookup finished..."));
}
void AtlantikNetwork::slotConnectionSuccess()
{
emit msgtqStatus(i18n("Connected to %1:%2.").tqarg(host()).tqarg(port()), "connect_established");
emit msgStatus(i18n("Connected to %1:%2.").tqarg(host()).tqarg(port()), "connect_established");
}
void AtlantikNetwork::slotConnectionFailed(int error)
{
emit msgtqStatus(i18n("Connection failed! Error code: %1").tqarg(error), "connect_no");
emit msgStatus(i18n("Connection failed! Error code: %1").tqarg(error), "connect_no");
}
#include "atlantik_network.moc"

+ 1
- 1
atlantik/libatlantikclient/atlantik_network.h View File

@ -102,7 +102,7 @@ signals:
void msgInfo(TQString);
void msgError(TQString);
void msgChat(TQString, TQString);
void msgtqStatus(const TQString &data, const TQString &icon = TQString());
void msgStatus(const TQString &data, const TQString &icon = TQString());
void networkEvent(const TQString &data, const TQString &icon);
void displayDetails(TQString text, bool clearText, bool clearButtons, Estate *estate = 0);


+ 5
- 5
atlantik/libatlantikclient/monopdprotocol.cpp View File

@ -36,12 +36,12 @@ MonopdProtocol::MonopdProtocol() : TQObject()
void MonopdProtocol::auctionEstate()
{
sendData(TQString::tqfromLatin1(".ea"));
sendData(TQString::fromLatin1(".ea"));
}
void MonopdProtocol::buyEstate()
{
sendData(TQString::tqfromLatin1(".eb"));
sendData(TQString::fromLatin1(".eb"));
}
void MonopdProtocol::confirmTokenLocation(Estate *estate)
@ -53,12 +53,12 @@ void MonopdProtocol::confirmTokenLocation(Estate *estate)
void MonopdProtocol::endTurn()
{
sendData(TQString::tqfromLatin1(".E"));
sendData(TQString::fromLatin1(".E"));
}
void MonopdProtocol::rollDice()
{
sendData(TQString::tqfromLatin1(".r"));
sendData(TQString::fromLatin1(".r"));
}
void MonopdProtocol::setName(TQString name)
@ -70,7 +70,7 @@ void MonopdProtocol::setName(TQString name)
void MonopdProtocol::startGame()
{
sendData(TQString::tqfromLatin1(".gs"));
sendData(TQString::fromLatin1(".gs"));
}
void MonopdProtocol::sendData(TQString)


+ 1
- 1
atlantik/libatlantikui/auction_widget.cpp View File

@ -80,7 +80,7 @@ AuctionWidget::AuctionWidget(AtlanticCore *atlanticCore, Auction *auction, TQWid
KPushButton *bidButton = new KPushButton(i18n("Make Bid"), bidBox, "bidButton");
connect(bidButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotBidButtonClicked()));
// tqStatus label
// Status label
m_statusLabel = new TQLabel(this, "statusLabel");
m_mainLayout->addWidget(m_statusLabel);
}


+ 1
- 1
kasteroids/ledmeter.cpp View File

@ -76,7 +76,7 @@ void KALedMeter::drawContents( TQPainter *p )
unsigned cidx = 0;
int ncol = mCount;
TQColor col = tqcolorGroup().foreground();
TQColor col = colorGroup().foreground();
if ( !mCRanges.isEmpty() )
{


+ 8
- 8
kasteroids/toplevel.cpp View File

@ -102,7 +102,7 @@ KAstTopLevel::KAstTopLevel()
label = new TQLabel( i18n("Score"), mainWin );
label->setFont( labelFont );
label->setPalette( pal );
label->setFixedWidth( label->tqsizeHint().width() );
label->setFixedWidth( label->sizeHint().width() );
hb->addWidget( label );
scoreLCD = new TQLCDNumber( 6, mainWin );
@ -116,7 +116,7 @@ KAstTopLevel::KAstTopLevel()
label = new TQLabel( i18n("Level"), mainWin );
label->setFont( labelFont );
label->setPalette( pal );
label->setFixedWidth( label->tqsizeHint().width() );
label->setFixedWidth( label->sizeHint().width() );
hb->addWidget( label );
levelLCD = new TQLCDNumber( 2, mainWin );
@ -129,7 +129,7 @@ KAstTopLevel::KAstTopLevel()
label = new TQLabel( i18n("Ships"), mainWin );
label->setFont( labelFont );
label->setFixedWidth( label->tqsizeHint().width() );
label->setFixedWidth( label->sizeHint().width() );
label->setPalette( pal );
hb->addWidget( label );
@ -168,7 +168,7 @@ KAstTopLevel::KAstTopLevel()
/*
label = new TQLabel( i18n( "T" ), mainWin );
label->setFont( smallFont );
label->setFixedWidth( label->tqsizeHint().width() );
label->setFixedWidth( label->sizeHint().width() );
label->setPalette( pal );
hbd->addWidget( label );
@ -184,7 +184,7 @@ KAstTopLevel::KAstTopLevel()
TQPixmap pm( sprites_prefix + "powerups/brake.png" );
label = new TQLabel( mainWin );
label->setPixmap( pm );
label->setFixedWidth( label->tqsizeHint().width() );
label->setFixedWidth( label->sizeHint().width() );
label->setPalette( pal );
hbd->addWidget( label );
@ -200,7 +200,7 @@ KAstTopLevel::KAstTopLevel()
pm.load( sprites_prefix + "powerups/shield.png" );
label = new TQLabel( mainWin );
label->setPixmap( pm );
label->setFixedWidth( label->tqsizeHint().width() );
label->setFixedWidth( label->sizeHint().width() );
label->setPalette( pal );
hbd->addWidget( label );
@ -216,7 +216,7 @@ KAstTopLevel::KAstTopLevel()
pm.load( sprites_prefix + "powerups/shoot.png" );
label = new TQLabel( mainWin );
label->setPixmap( pm );
label->setFixedWidth( label->tqsizeHint().width() );
label->setFixedWidth( label->sizeHint().width() );
label->setPalette( pal );
hbd->addWidget( label );
@ -231,7 +231,7 @@ KAstTopLevel::KAstTopLevel()
label = new TQLabel( i18n( "Fuel" ), mainWin );
label->setFont( smallFont );
label->setFixedWidth( label->tqsizeHint().width() + 10 );
label->setFixedWidth( label->sizeHint().width() + 10 );
label->setPalette( pal );
hbd->addWidget( label );


+ 1
- 1
kasteroids/view.cpp View File

@ -78,7 +78,7 @@ KAsteroidsView::KAsteroidsView( TQWidget *parent, const char *name )
field.setBackgroundColor(black);
TQPixmap pm( locate("sprite", IMG_BACKGROUND) );
field.tqsetBackgroundPixmap( pm );
field.setBackgroundPixmap( pm );
textSprite = new TQCanvasText( &field );
TQFont font( KGlobalSettings::generalFont().family(), 18 );


+ 5
- 5
katomic/feld.cpp View File

@ -124,7 +124,7 @@ void Feld::mousePressEvent (TQMouseEvent *e)
resetValidDirs();
chosen = false;
}
emittqStatus();
emitStatus();
}
const atom& Feld::getAtom(uint index) const
@ -154,7 +154,7 @@ void Feld::nextAtom()
xpos = x; ypos = y;
chosen = true;
resetValidDirs();
emittqStatus();
emitStatus();
return;
}
}
@ -187,7 +187,7 @@ void Feld::previousAtom()
xpos = x; ypos = y;
chosen = true;
resetValidDirs();
emittqStatus();
emitStatus();
return;
}
}
@ -198,7 +198,7 @@ void Feld::previousAtom()
}
void Feld::emittqStatus()
void Feld::emitStatus()
{
if (!chosen || moving) {}
else {
@ -231,7 +231,7 @@ void Feld::done ()
if (moving)
return;
emittqStatus();
emitStatus();
if (checkDone())
emit gameOver(moves);


+ 1
- 1
katomic/feld.h View File

@ -65,7 +65,7 @@ protected:
void paintMovingAtom();
void mousePressEvent (TQMouseEvent *);
void mouseMoveEvent (TQMouseEvent *);
void emittqStatus();
void emitStatus();
protected:
struct UndoInfo {


+ 2
- 2
katomic/gamewidget.cpp View File

@ -214,7 +214,7 @@ GameWidget::GameWidget ( TQWidget *parent, const char* name )
headerFont.setBold(true);
hs = new TQLabel (highest, bg);
hs->tqsetAlignment(TQt::AlignRight);
hs->setAlignment(TQt::AlignRight);
hs->setFont(headerFont);
slay->addWidget(hs);
@ -223,7 +223,7 @@ GameWidget::GameWidget ( TQWidget *parent, const char* name )
slay->addWidget(new TQLabel(i18n("Your score so far:"), bg));
ys = new TQLabel (current, bg);
ys->tqsetAlignment(TQt::AlignRight);
ys->setAlignment(TQt::AlignRight);
ys->setFont(headerFont);
slay->addWidget(ys);


+ 23
- 23
kbackgammon/engines/fibs/kbgfibs.cpp View File

@ -947,7 +947,7 @@ void KBgEngineFIBS::connected()
/*
* Initialize the rx state machine
*/
rxtqStatus = RxConnect;
rxStatus = RxConnect;
rxCollect = "";
/*
@ -992,7 +992,7 @@ void KBgEngineFIBS::newAccount()
if (!queryConnection(true))
return;
rxtqStatus = RxNewLogin;
rxStatus = RxNewLogin;
rxCollect = "";
login = false;
connectFIBS();
@ -1289,7 +1289,7 @@ void KBgEngineFIBS::handleServerData(TQString &line)
*/
line.replace(pat[TabChar], " ");
switch (rxtqStatus) {
switch (rxStatus) {
case RxConnect:
handleMessageConnect(line, rawline);
@ -1345,7 +1345,7 @@ void KBgEngineFIBS::handleMessageWhois(const TQString &line)
{
rxCollect += "<br>&nbsp;&nbsp;&nbsp;&nbsp;" + line;
if (line.contains(pat[WhoisE1]) || line.contains(pat[WhoisE2])) {
rxtqStatus = RxNormal;
rxStatus = RxNormal;
emit infoText("<font color=\"darkgreen\">" + rxCollect + "<br></font>");
}
}
@ -1358,7 +1358,7 @@ void KBgEngineFIBS::handleMessageRating(const TQString &line)
rxCollect += "<br>" + line;
if (line.contains(pat[EndRate]) && ++rxCount == 2) {
emit infoText("<font color=\"blue\">" + rxCollect + "<br></font>");
rxtqStatus = RxNormal;
rxStatus = RxNormal;
}
}
@ -1368,7 +1368,7 @@ void KBgEngineFIBS::handleMessageRating(const TQString &line)
void KBgEngineFIBS::handleMessageMotd(const TQString &line)
{
if (line.contains(pat[MotdEnd])) {
rxtqStatus = RxNormal;
rxStatus = RxNormal;
emit infoText("<font color=\"blue\"><pre>" + rxCollect + "</pre></font>");
/*
* just to be on the safe side, we set the value of boardstyle.
@ -1398,7 +1398,7 @@ void KBgEngineFIBS::handleMessageConnect(const TQString &line, const TQString &r
* This can only happen if the password/login is wrong.
*/
if (rxCollect.isEmpty()) {
rxtqStatus = RxIgnore;
rxStatus = RxIgnore;
int ret = KMessageBox::warningContinueCancel
((TQWidget *)parent(), i18n("There was a problem with "
"your login and password. "
@ -1411,9 +1411,9 @@ void KBgEngineFIBS::handleMessageConnect(const TQString &line, const TQString &r
infoFIBS[FIBSUser] = "";
infoFIBS[FIBSPswd] = "";
login = true;
connectFIBS(); // will reset the rxtqStatus
connectFIBS(); // will reset the rxStatus
} else {
rxtqStatus = RxConnect;
rxStatus = RxConnect;
emit serverString("");
emit serverString("");
}
@ -1473,7 +1473,7 @@ void KBgEngineFIBS::handleMessageConnect(const TQString &line, const TQString &r
*/
if (line.contains(pat[OwnInfo])) {
rxtqStatus = RxNormal;
rxStatus = RxNormal;
int fibsOptions[NumFIBSOpt];
@ -1538,7 +1538,7 @@ void KBgEngineFIBS::handleMessageConnect(const TQString &line, const TQString &r
* The beginning of a new login procedure starts starts here
*/
if (line.contains(pat[OneName])) {
rxtqStatus = RxNewLogin;
rxStatus = RxNewLogin;
emit infoText(TQString("<font color=\"red\">") + rxCollect + "</font>");
rxCollect = "";
TQString tmp = rawline;
@ -1613,7 +1613,7 @@ void KBgEngineFIBS::handleMessageNewLogin(const TQString &line)
"playing backgammon on FIBS.").tqarg(infoFIBS[FIBSUser]);
emit infoText("<br><hr><font color=\"blue\">" + text + "</font><br><hr>");
emit serverString("bye");
rxtqStatus = RxNormal;
rxStatus = RxNormal;
rxCollect = "";
return;
}
@ -1717,7 +1717,7 @@ void KBgEngineFIBS::handleMessageNormal(TQString &line, TQString &rawline)
/*
* Save the board string and create a new game state
*/
KBgtqStatus *st = new KBgtqStatus(currBoard = rawline);
KBgStatus *st = new KBgStatus(currBoard = rawline);
/*
* Save important state data and stop the timeout
@ -1779,13 +1779,13 @@ void KBgEngineFIBS::handleMessageNormal(TQString &line, TQString &rawline)
*/
else if (line.contains(pat[YouAway])) {
emit changePlayertqStatus(infoFIBS[FIBSUser], KFibsPlayerList::Away, true);
emit changePlayerStatus(infoFIBS[FIBSUser], KFibsPlayerList::Away, true);
actBack->setEnabled(true);
line += "<br><pre> </pre>" + i18n("(or use the corresponding menu entry to join the match)");
}
else if (line.contains(pat[YouBack])) {
emit changePlayertqStatus(infoFIBS[FIBSUser], KFibsPlayerList::Away, false);
emit changePlayerStatus(infoFIBS[FIBSUser], KFibsPlayerList::Away, false);
actBack->setEnabled(false);
actAway->setEnabled(true);
}
@ -1863,23 +1863,23 @@ void KBgEngineFIBS::handleMessageNormal(TQString &line, TQString &rawline)
// - rx status changes ------------------------------------------------------------
else if (line.contains(pat[WhoisBG])) {
rxtqStatus = RxWhois;
rxStatus = RxWhois;
rxCollect = TQString("<br><u>") + line + "</u>";
return;
}
else if (line.contains(pat[MotdBeg])) {
rxtqStatus = RxMotd;
rxStatus = RxMotd;
rxCollect = "";
return;
}
else if (line.contains(pat[BegRate])) {
rxtqStatus = RxRating;
rxStatus = RxRating;
rxCount = 0;
rxCollect = "<br>" + line;
return;
}
else if (line.contains(pat[Goodbye])) {
rxtqStatus = RxGoodbye;
rxStatus = RxGoodbye;
rxCollect = "<br><hr><br>";
handleServerData(rawline); // danger: recursion!
return;
@ -1944,13 +1944,13 @@ void KBgEngineFIBS::handleMessageNormal(TQString &line, TQString &rawline)
else if (line.contains(pat[BegBlnd])) {
rawline.replace(pat[BegBlnd], "");
rawline.truncate(rawline.length()-1);
emit changePlayertqStatus(rawline, KFibsPlayerList::Blind, true);
emit changePlayerStatus(rawline, KFibsPlayerList::Blind, true);
line = "<font color=\"red\">" + line + "</font>";
}
else if (line.contains(pat[EndBlnd])) {
rawline.replace(pat[EndBlnd], "");
rawline.truncate(rawline.length()-1);
emit changePlayertqStatus(rawline, KFibsPlayerList::Blind, false);
emit changePlayerStatus(rawline, KFibsPlayerList::Blind, false);
line = "<font color=\"red\">" + line + "</font>";
}
/*
@ -2128,8 +2128,8 @@ KBgEngineFIBS::KBgEngineFIBS(TQWidget *parent, TQString *name, TQPopupMenu *pmen
connect(this, TQT_SIGNAL(fibsLogout (const TQString &)), playerlist, TQT_SLOT(deletePlayer(const TQString &)));
connect(this, TQT_SIGNAL(fibsWhoEnd()), playerlist, TQT_SLOT(stopUpdate()));
connect(this, TQT_SIGNAL(fibsConnectionClosed()), playerlist, TQT_SLOT(stopUpdate()));
connect(this, TQT_SIGNAL(changePlayertqStatus(const TQString &, int, bool)),
playerlist, TQT_SLOT(changePlayertqStatus(const TQString &, int, bool)));
connect(this, TQT_SIGNAL(changePlayerStatus(const TQString &, int, bool)),
playerlist, TQT_SLOT(changePlayerStatus(const TQString &, int, bool)));
connect(playerlist, TQT_SIGNAL(fibsCommand(const TQString &)), this, TQT_SLOT(handleCommand(const TQString &)));
connect(playerlist, TQT_SIGNAL(fibsInvite(const TQString &)), this, TQT_SLOT(fibsRequestInvitation(const TQString &)));


+ 4
- 4
kbackgammon/engines/fibs/kbgfibs.h View File

@ -175,7 +175,7 @@ signals:
void fibsConnectionClosed();
void changePlayertqStatus(const TQString &, int, bool);
void changePlayerStatus(const TQString &, int, bool);
void chatMessage(const TQString &msg);
@ -199,7 +199,7 @@ private:
TQString currBoard, caption;
//KBgtqStatus *currBoard
//KBgStatus *currBoard
//KBgFIBSBoard *boardHandler;
TQStringList invitations;
@ -400,10 +400,10 @@ protected slots:
protected:
enum RxtqStatus {RxIgnore, RxConnect, RxWhois, RxMotd, RxRating,
enum RxStatus {RxIgnore, RxConnect, RxWhois, RxMotd, RxRating,
RxNewLogin, RxGoodbye, RxNormal};
int rxtqStatus, rxCount;
int rxStatus, rxCount;
TQString rxCollect;


+ 1
- 1
kbackgammon/engines/fibs/kbgfibschat.cpp View File

@ -123,7 +123,7 @@ protected:
*/
virtual void paint(TQPainter *p)
{
t->draw(p, 1, 1, TQRegion(p->viewport()), w->tqcolorGroup());
t->draw(p, 1, 1, TQRegion(p->viewport()), w->colorGroup());
}
private:


+ 2
- 2
kbackgammon/engines/fibs/kbginvite.cpp View File

@ -103,9 +103,9 @@ KBgInvite::KBgInvite(const char *name)
* Adjust widget sizes and resize the dialog
*/
KDialog::resizeLayout(this, marginHint(), spacingHint());
setMinimumSize(tqchildrenRect().size());
setMinimumSize(childrenRect().size());
vbox->activate();
resize(tqminimumSize());
resize(minimumSize());
/*
* Set focus and default buttons


+ 13
- 13
kbackgammon/engines/fibs/kplayerlist.cpp View File

@ -101,7 +101,7 @@ public:
case KFibsPlayerList::Watches:
case KFibsPlayerList::Client:
case KFibsPlayerList::Email:
case KFibsPlayerList::tqStatus:
case KFibsPlayerList::Status:
case KFibsPlayerList::Host:
s = s.lower();
break;
@ -175,7 +175,7 @@ public:
/*
* Short abbreviations for Blind, Ready, and Away.
*/
TQString mAbrv[KFibsPlayerList::MaxtqStatus];
TQString mAbrv[KFibsPlayerList::MaxStatus];
/*
* Name of the last selected player - for internal purposes
@ -218,7 +218,7 @@ KFibsPlayerList::KFibsPlayerList(TQWidget *parent, const char *name)
d->mCol[Player]->name = i18n("Player");
d->mCol[Opponent]->name = i18n("Opponent");
d->mCol[Watches]->name = i18n("Watches");
d->mCol[tqStatus]->name = i18n("Status");
d->mCol[Status]->name = i18n("Status");
d->mCol[Rating]->name = i18n("Rating");
d->mCol[Experience]->name = i18n("Exp.");
d->mCol[Idle]->name = i18n("Idle");
@ -231,7 +231,7 @@ KFibsPlayerList::KFibsPlayerList(TQWidget *parent, const char *name)
d->mCol[Player]->key = "player";
d->mCol[Opponent]->key = "opponent";
d->mCol[Watches]->key = "watches";
d->mCol[tqStatus]->key = "status";
d->mCol[Status]->key = "status";
d->mCol[Rating]->key = "rating";
d->mCol[Experience]->key = "experience";
d->mCol[Idle]->key = "idle";
@ -592,9 +592,9 @@ void KFibsPlayerList::showContextMenu(KListView *, TQListViewItem *i, const TQPo
d->mMail = (i && d->mCol[Email]->show ? i->text(d->mCol[Email]->index) : TQString());
d->mAct[KFibsPlayerListPrivate::Mail]->setEnabled(!d->mMail.isEmpty());
if (i && d->mCol[tqStatus]->show)
if (i && d->mCol[Status]->show)
d->mAct[KFibsPlayerListPrivate::BlindAct]->setText
((i->text(d->mCol[tqStatus]->index).contains(d->mAbrv[Blind])) ?
((i->text(d->mCol[Status]->index).contains(d->mAbrv[Blind])) ?
i18n("Unblind %1").tqarg(d->mUser) : i18n("Blind %1").tqarg(d->mUser));
else
d->mAct[KFibsPlayerListPrivate::BlindAct]->setText(i18n("Blind"));
@ -721,7 +721,7 @@ void KFibsPlayerList::changePlayer(const TQString &line)
TQDateTime fromEpoch;
TQString str_entry[LVEnd], tmp;
entry[tqStatus][0] = '\0';
entry[Status][0] = '\0';
// the line comes from FIBS and is 7 bit ASCII
sscanf(line.latin1(), "%99s %99s %99s %1s %1s %99s %99s %99s %99s %99s %99s %99s", entry[Player], entry[Opponent],
@ -738,9 +738,9 @@ void KFibsPlayerList::changePlayer(const TQString &line)
if ((str_entry[j] = entry[j]) == "-")
str_entry[j] = "";
}
str_entry[tqStatus].replace(Ready, 1, ready[0] == '0' ? "-" : d->mAbrv[Ready]);
str_entry[tqStatus].replace(Away, 1, away [0] == '0' ? "-" : d->mAbrv[Away ]);
str_entry[tqStatus].replace(Blind, 1, "-");
str_entry[Status].replace(Ready, 1, ready[0] == '0' ? "-" : d->mAbrv[Ready]);
str_entry[Status].replace(Away, 1, away [0] == '0' ? "-" : d->mAbrv[Away ]);
str_entry[Status].replace(Blind, 1, "-");
// disable drawing until the end of update
setUpdatesEnabled(false);
@ -771,7 +771,7 @@ void KFibsPlayerList::changePlayer(const TQString &line)
found:
// getting here means the player is in the list - update private status
str_entry[tqStatus].replace(Blind,1,i->text(tqStatus).contains
str_entry[Status].replace(Blind,1,i->text(Status).contains
(d->mAbrv[Blind]) ? d->mAbrv[Blind] : "-");
update:
@ -808,7 +808,7 @@ void KFibsPlayerList::deletePlayer(const TQString &player)
/*
* Set/Unset the status stat in the corresponding column of the list
*/
void KFibsPlayerList::changePlayertqStatus(const TQString &player, int stat, bool flag)
void KFibsPlayerList::changePlayerStatus(const TQString &player, int stat, bool flag)
{
TQListViewItem *i = 0;
@ -827,7 +827,7 @@ void KFibsPlayerList::changePlayertqStatus(const TQString &player, int stat, boo
/*
* Update the status flag
*/
i->setText(tqStatus, i->text(tqStatus).replace(stat, 1, (flag) ? d->mAbrv[stat] : "-"));
i->setText(Status, i->text(Status).replace(stat, 1, (flag) ? d->mAbrv[stat] : "-"));
}


+ 3
- 3
kbackgammon/engines/fibs/kplayerlist.h View File

@ -53,12 +53,12 @@ public:
/**
* Enumerate player status
*/
enum PtqStatus {Ready, Away, Blind, MaxtqStatus};
enum PStatus {Ready, Away, Blind, MaxStatus};
/**
* Enumerate the different columns of the list
*/
enum {Player, Opponent, Watches, tqStatus, Rating, Experience,
enum {Player, Opponent, Watches, Status, Rating, Experience,
Idle, Time, Host, Client, Email, LVEnd};
/**
@ -111,7 +111,7 @@ public slots:
/**
* Change the status of a player
*/
void changePlayertqStatus(const TQString &player, int stat, bool flag);
void changePlayerStatus(const TQString &player, int stat, bool flag);
/**
* Fills the playerlist page into the notebook


+ 3
- 3
kbackgammon/engines/generic/kbgengine.h View File

@ -35,7 +35,7 @@ class TQPopupMenu;
class KDialogBase;
class KBgtqStatus;
class KBgStatus;
/**
*
@ -249,12 +249,12 @@ signals:
/**
* Emit the most recent game state
*/
void newState (const KBgtqStatus &);
void newState (const KBgStatus &);
/**
* Tell the board that we need the current state of the board.
*/
void getState (KBgtqStatus *);
void getState (KBgStatus *);
/**
* Starts/ends the edit mode of the board


+ 3
- 3
kbackgammon/engines/gnubg/kbggnubg.cpp View File

@ -117,7 +117,7 @@ void KBgEngineGNU::handleLine(const TQString &l)
// redoubles mess up the game counter "turn"
//KBgtqStatus st(board);
//KBgStatus st(board);
//st.setCube(32, BOTH);
//emit newState(st);
@ -128,7 +128,7 @@ void KBgEngineGNU::handleLine(const TQString &l)
// can be shared between all engines
#if 0
KBgtqStatus st(board);
KBgStatus st(board);
int ret = KMessageBox::warningYesNoCancel
(0, i18n("gnubg doubles the cube to %1.").tqarg(2*st.cube(THEM)),
@ -164,7 +164,7 @@ void KBgEngineGNU::handleLine(const TQString &l)
*/
if (line.contains(TQRegExp("^board:"))) {
KBgtqStatus st(line);
KBgStatus st(line);
/*
* Do preliminary analysis of board


+ 1
- 1
kbackgammon/engines/nextgen/kbgng.cpp View File

@ -202,7 +202,7 @@ void KBgEngineNg::setGame()
// we are still having problems with player creation...
// FIXME - which status _game->setGametqStatus(KGame::End);
// FIXME - which status _game->setGameStatus(KGame::End);
}
void KBgEngineNg::slotPlayerJoinedGame(KPlayer *p)


+ 1
- 1
kbackgammon/engines/offline/kbgoffline.cpp View File

@ -60,7 +60,7 @@ public:
/*
* Store two copies of the game: one backup and a working copy
*/
KBgtqStatus mGame[2];
KBgStatus mGame[2];
/*
* Use the standard method of obtaining random numbers


+ 4
- 4
kbackgammon/kbg.cpp View File

@ -293,8 +293,8 @@ void KBg::setupEngine()
connect(engine[currEngine], TQT_SIGNAL(redoMove()), board, TQT_SLOT(redoMove()));
connect(engine[currEngine], TQT_SIGNAL(setEditMode(const bool)), board, TQT_SLOT(setEditMode(const bool)));
connect(engine[currEngine], TQT_SIGNAL(allowMoving(const bool)), board, TQT_SLOT(allowMoving(const bool)));
connect(engine[currEngine], TQT_SIGNAL(getState(KBgtqStatus *)), board, TQT_SLOT(getState(KBgtqStatus *)));
connect(engine[currEngine], TQT_SIGNAL(newState(const KBgtqStatus &)), board, TQT_SLOT(setState(const KBgtqStatus &)));
connect(engine[currEngine], TQT_SIGNAL(getState(KBgStatus *)), board, TQT_SLOT(getState(KBgStatus *)));
connect(engine[currEngine], TQT_SIGNAL(newState(const KBgStatus &)), board, TQT_SLOT(setState(const KBgStatus &)));
// now that all signals are connected, start the engine
engine[currEngine]->start();
@ -575,7 +575,7 @@ void KBg::setupDlg()
TQGridLayout *gle = new TQGridLayout(gbe, 1, 1, nb->spacingHint());
KURLLabel *lab = new KURLLabel("kcmshell kcmnotify",
i18n("Klick here to configure the event notification"), gbe);
lab->setMaximumSize(lab->tqsizeHint());
lab->setMaximumSize(lab->sizeHint());
gle->addWidget(lab, 0, 0);
connect(lab, TQT_SIGNAL(leftClickedURL(const TQString &)), TQT_SLOT(startKCM(const TQString &)));
@ -622,7 +622,7 @@ void KBg::setupDlg()
connect(nb, TQT_SIGNAL(finished()), TQT_TQOBJECT(this), TQT_SLOT(setupDone()));
nb->resize(nb->tqminimumSize());
nb->resize(nb->minimumSize());
nb->show();
}


+ 24
- 24
kbackgammon/kbgboard.cpp View File

@ -196,7 +196,7 @@ void KBgBoardSetup::getSetupPages(KDialogBase *nb)
"move a checker the shortest possible distance."));
for (int i = 0; i < 3; i++) {
rbMove[i]->setMinimumSize(rbMove[i]->tqsizeHint());
rbMove[i]->setMinimumSize(rbMove[i]->sizeHint());
blm->addWidget(rbMove[i]);
rbMove[i]->setChecked(i == getShortMoveMode());
}
@ -360,7 +360,7 @@ void KBgBoard::setFont(const TQFont& f)
*/
void KBgBoard::queryCube()
{
KBgtqStatus *st = new KBgtqStatus();
KBgStatus *st = new KBgStatus();
getState(st);
KBgBoardQCube *dlg =
new KBgBoardQCube(abs(st->cube()), (st->cube(US) > 0), (st->cube(THEM) > 0));
@ -395,7 +395,7 @@ KBgBoardQCube::KBgBoardQCube(int val, bool us, bool them)
"double. Note that a face value of 1 automatically allows both\n"
"players to double."));
info->setMinimumSize(info->tqsizeHint());
info->setMinimumSize(info->sizeHint());
vbox->addWidget(info, 0);
@ -454,17 +454,17 @@ KBgBoardQCube::KBgBoardQCube(int val, bool us, bool them)
else if (them)
cb[1]->setCurrentItem(THEM);
cb[0]->setMinimumSize(cb[0]->tqsizeHint());
cb[1]->setMinimumSize(cb[1]->tqsizeHint());
cb[0]->setMinimumSize(cb[0]->sizeHint());
cb[1]->setMinimumSize(cb[1]->sizeHint());
ok->setMinimumSize(ok->tqsizeHint());
cancel->setMinimumSize(cancel->tqsizeHint());
ok->setMinimumSize(ok->sizeHint());
cancel->setMinimumSize(cancel->sizeHint());
setMinimumSize(tqchildrenRect().size());
setMinimumSize(childrenRect().size());
vbox->activate();
resize(tqminimumSize());
resize(minimumSize());
ok->setAutoDefault (true);
ok->setDefault(true);
@ -544,7 +544,7 @@ KBgBoardQDice::KBgBoardQDice(const char *name)
info->setText(i18n("Set the face values of the selected dice. The other player's\n"
"dice will be cleared and it will be the dice's owner's turn."));
info->setMinimumSize(info->tqsizeHint());
info->setMinimumSize(info->sizeHint());
vbox->addWidget(info, 0);
@ -560,17 +560,17 @@ KBgBoardQDice::KBgBoardQDice(const char *name)
hbox_2->addWidget(ok);
hbox_2->addWidget(cancel);
sb[0]->setMinimumSize(sb[0]->tqsizeHint());
sb[1]->setMinimumSize(sb[1]->tqsizeHint());
sb[0]->setMinimumSize(sb[0]->sizeHint());
sb[1]->setMinimumSize(sb[1]->sizeHint());
ok->setMinimumSize(ok->tqsizeHint());
cancel->setMinimumSize(cancel->tqsizeHint());
ok->setMinimumSize(ok->sizeHint());
cancel->setMinimumSize(cancel->sizeHint());
setMinimumSize(tqchildrenRect().size());
setMinimumSize(childrenRect().size());
vbox->activate();
resize(tqminimumSize());
resize(minimumSize());
ok->setAutoDefault (true);
ok->setDefault(true);
@ -628,10 +628,10 @@ bool KBgBoard::getEditMode() const
}
/*
* This function takes a KBgtqStatus object and fills it with the current
* This function takes a KBgStatus object and fills it with the current
* board status.
*/
KBgtqStatus* KBgBoard::getState(KBgtqStatus *st) const
KBgStatus* KBgBoard::getState(KBgStatus *st) const
{
st->setColor(color);
st->setDirection(direction);
@ -1337,7 +1337,7 @@ void KBgBoardHome::mouseDoubleClickEvent(TQMouseEvent * e)
KBgBoardQDice *dlg = new KBgBoardQDice();
if (dlg->exec()) {
KBgtqStatus *st = new KBgtqStatus();
KBgStatus *st = new KBgStatus();
board->getState(st);
st->setDice(w, 0, dlg->getDice(0));
st->setDice(w, 1, dlg->getDice(1));
@ -2085,7 +2085,7 @@ bool KBgBoard::diceAllowMove(int src, int dest)
* This is the most important of all members of the board class. It takes
* a single board status object and initializes the internal status.
*/
void KBgBoard::setState(const KBgtqStatus &st)
void KBgBoard::setState(const KBgStatus &st)
{
color = st.color();
direction = st.direction();
@ -2820,7 +2820,7 @@ void KBgBoard::getRollDice(const int w)
* This is the constructor of the KBgBoard class. It creates
* a backgammon board with an initial distribution of checkers, empty
* dice and a cube with face value 1. The initial board is not usable!
* You have to change the status by passing a KBgtqStatus
* You have to change the status by passing a KBgStatus
* object to setState(...) before you can play!
*/
KBgBoard::KBgBoard(TQWidget *parent, const char *name, TQPopupMenu *menu)
@ -2868,7 +2868,7 @@ KBgBoard::KBgBoard(TQWidget *parent, const char *name, TQPopupMenu *menu)
* Get the default seeting of the board and initialize the
* state of it.
*/
KBgtqStatus *st = new KBgtqStatus();