|
|
@ -158,7 +158,7 @@ Atlantik::Atlantik ()
|
|
|
|
m_mainLayout = new TQGridLayout(m_mainWidget, 3, 2);
|
|
|
|
m_mainLayout = new TQGridLayout(m_mainWidget, 3, 2);
|
|
|
|
setCentralWidget(m_mainWidget);
|
|
|
|
setCentralWidget(m_mainWidget);
|
|
|
|
|
|
|
|
|
|
|
|
//Qt::Vertical view area for portfolios.
|
|
|
|
// Vertical view area for portfolios.
|
|
|
|
m_portfolioScroll = new TQScrollView(m_mainWidget, "pfScroll");
|
|
|
|
m_portfolioScroll = new TQScrollView(m_mainWidget, "pfScroll");
|
|
|
|
m_mainLayout->addWidget( m_portfolioScroll, 0, 0 );
|
|
|
|
m_mainLayout->addWidget( m_portfolioScroll, 0, 0 );
|
|
|
|
m_portfolioScroll->setHScrollBarMode( TQScrollView::AlwaysOff );
|
|
|
|
m_portfolioScroll->setHScrollBarMode( TQScrollView::AlwaysOff );
|
|
|
@ -201,8 +201,8 @@ Atlantik::Atlantik ()
|
|
|
|
// Check command-line args to see if we need to connect or show Monopigator window
|
|
|
|
// Check command-line args to see if we need to connect or show Monopigator window
|
|
|
|
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
|
|
|
|
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
|
|
|
|
|
|
|
|
|
|
|
|
TQCString host = args->getOption("host");
|
|
|
|
TQCString host = args->getOption("host");
|
|
|
|
TQCString port = args->getOption("port");
|
|
|
|
TQCString port = args->getOption("port");
|
|
|
|
if (!host.isNull() && !port.isNull())
|
|
|
|
if (!host.isNull() && !port.isNull())
|
|
|
|
m_atlantikNetwork->serverConnect(host, port.toInt());
|
|
|
|
m_atlantikNetwork->serverConnect(host, port.toInt());
|
|
|
|
else
|
|
|
|
else
|
|
|
@ -446,7 +446,7 @@ void Atlantik::slotNetworkConnected()
|
|
|
|
void Atlantik::slotNetworkError(int errnum)
|
|
|
|
void Atlantik::slotNetworkError(int errnum)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
TQString errMsg(i18n("Error connecting: "));
|
|
|
|
TQString errMsg(i18n("Error connecting: "));
|
|
|
|
|
|
|
|
|
|
|
|
switch (m_atlantikNetwork->status())
|
|
|
|
switch (m_atlantikNetwork->status())
|
|
|
|
{
|
|
|
|
{
|
|
|
|
case IO_ConnectError:
|
|
|
|
case IO_ConnectError:
|
|
|
@ -490,7 +490,7 @@ void Atlantik::slotConfigure()
|
|
|
|
if (m_configDialog == 0)
|
|
|
|
if (m_configDialog == 0)
|
|
|
|
m_configDialog = new ConfigDialog(this);
|
|
|
|
m_configDialog = new ConfigDialog(this);
|
|
|
|
m_configDialog->show();
|
|
|
|
m_configDialog->show();
|
|
|
|
|
|
|
|
|
|
|
|
connect(m_configDialog, TQT_SIGNAL(okClicked()), TQT_TQOBJECT(this), TQT_SLOT(slotUpdateConfig()));
|
|
|
|
connect(m_configDialog, TQT_SIGNAL(okClicked()), TQT_TQOBJECT(this), TQT_SLOT(slotUpdateConfig()));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -789,7 +789,7 @@ void Atlantik::sendHandshake()
|
|
|
|
// Check command-line args to see if we need to auto-join
|
|
|
|
// Check command-line args to see if we need to auto-join
|
|
|
|
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
|
|
|
|
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
|
|
|
|
|
|
|
|
|
|
|
|
TQCString game = args->getOption("game");
|
|
|
|
TQCString game = args->getOption("game");
|
|
|
|
if (!game.isNull())
|
|
|
|
if (!game.isNull())
|
|
|
|
m_atlantikNetwork->joinGame(game.toInt());
|
|
|
|
m_atlantikNetwork->joinGame(game.toInt());
|
|
|
|
}
|
|
|
|
}
|
|
|
|