[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Camino-devel] camino/src/server ServerDialog.cpp ServerDialog.h
From: |
Pascal Audoux |
Subject: |
[Camino-devel] camino/src/server ServerDialog.cpp ServerDialog.h |
Date: |
Sun, 26 Jan 2003 08:10:23 -0500 |
CVSROOT: /cvsroot/camino
Module name: camino
Changes by: Pascal Audoux <address@hidden> 03/01/26 08:10:23
Modified files:
src/server : ServerDialog.cpp ServerDialog.h
Log message:
improve ServerDialog
Patches:
Index: camino/src/server/ServerDialog.cpp
diff -u camino/src/server/ServerDialog.cpp:1.4
camino/src/server/ServerDialog.cpp:1.5
--- camino/src/server/ServerDialog.cpp:1.4 Sun Jan 26 06:30:34 2003
+++ camino/src/server/ServerDialog.cpp Sun Jan 26 08:10:23 2003
@@ -2,7 +2,7 @@
**
** Camino
**
-** Version : $Id: ServerDialog.cpp,v 1.4 2003/01/26 11:30:34 Audoux Exp $
+** Version : $Id: ServerDialog.cpp,v 1.5 2003/01/26 13:10:23 Audoux Exp $
**
** Author(s) : Philippe Fremy, Pascal Audoux
** Creation : 14/01/2003
@@ -35,23 +35,68 @@
:ServerDialogUI( parent, name )
{
slot_2players();
+ slot_team1();
setFinishEnabled( _page3, true );
+ setNextEnabled( _page2, false );
connect( _2players, SIGNAL( clicked() ), SLOT( slot_2players() ) );
connect( _4players, SIGNAL( clicked() ), SLOT( slot_4players() ) );
+ connect( _team1, SIGNAL( clicked() ), SLOT( slot_team1() ) );
+ connect( _team2, SIGNAL( clicked() ), SLOT( slot_team2() ) );
+ connect( _team3, SIGNAL( clicked() ), SLOT( slot_team3() ) );
+ connect( this, SIGNAL( selected( const QString & ) ), SLOT(
slot_selection( const QString & ) ) );
}
void ServerDialog::slot_2players()
{
_2players->setChecked( true );
_4players->setChecked( false );
+ _nb = 2;
}
void ServerDialog::slot_4players()
{
_2players->setChecked( false );
_4players->setChecked( true );
+ _nb = 4;
}
+
+void ServerDialog::slot_team1()
+{
+ _team1->setChecked( true );
+ _team2->setChecked( false );
+ _team3->setChecked( false );
+ _team = 1;
+}
+
+void ServerDialog::slot_team2()
+{
+ _team1->setChecked( false );
+ _team2->setChecked( true );
+ _team3->setChecked( false );
+ _team = 2;
+}
+
+void ServerDialog::slot_team3()
+{
+ _team1->setChecked( false );
+ _team2->setChecked( false );
+ _team3->setChecked( true );
+ _team = 3;
+}
+
+void ServerDialog::slot_selection( const QString & pageTitle )
+{
+ if( pageTitle == title( _page2 ) ) {
+
+ } else if( pageTitle == title( _page3 ) ) {
+ }
+}
+
+
+
+
+
Index: camino/src/server/ServerDialog.h
diff -u camino/src/server/ServerDialog.h:1.4
camino/src/server/ServerDialog.h:1.5
--- camino/src/server/ServerDialog.h:1.4 Sun Jan 26 06:30:34 2003
+++ camino/src/server/ServerDialog.h Sun Jan 26 08:10:23 2003
@@ -5,7 +5,7 @@
** ServerDialog.h
** Main dialog of the server
**
-** Version : $Id: ServerDialog.h,v 1.4 2003/01/26 11:30:34 Audoux Exp $
+** Version : $Id: ServerDialog.h,v 1.5 2003/01/26 13:10:23 Audoux Exp $
** Author(s) : Philippe Fremy, Pascal Audoux
** Creation : 15/01/2003
** Copyright: Pascal Audoux, Philippe Fremy 2003
@@ -51,9 +51,18 @@
public slots:
void slot_2players();
void slot_4players();
+ void slot_team1();
+ void slot_team2();
+ void slot_team3();
+
+ void slot_selection( const QString & title );
signals:
void sig_quit();
+
+protected:
+ int _nb;
+ int _team;
};
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Camino-devel] camino/src/server ServerDialog.cpp ServerDialog.h,
Pascal Audoux <=