camino-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Camino-devel] camino/src/server ServerDialog.cpp ServerDialog...


From: Pascal Audoux
Subject: [Camino-devel] camino/src/server ServerDialog.cpp ServerDialog...
Date: Sun, 26 Jan 2003 06:30:37 -0500

CVSROOT:        /cvsroot/camino
Module name:    camino
Changes by:     Pascal Audoux <address@hidden>  03/01/26 06:30:34

Modified files:
        src/server     : ServerDialog.cpp ServerDialog.h 
                         ServerDialogUI.ui 

Log message:
        improve server dialog

Patches:
Index: camino/src/server/ServerDialog.cpp
diff -u camino/src/server/ServerDialog.cpp:1.3 
camino/src/server/ServerDialog.cpp:1.4
--- camino/src/server/ServerDialog.cpp:1.3      Mon Jan 20 14:48:31 2003
+++ camino/src/server/ServerDialog.cpp  Sun Jan 26 06:30:34 2003
@@ -2,7 +2,7 @@
 **
 ** Camino
 **
-** Version : $Id: ServerDialog.cpp,v 1.3 2003/01/20 19:48:31 Audoux Exp $
+** Version : $Id: ServerDialog.cpp,v 1.4 2003/01/26 11:30:34 Audoux Exp $
 **
 ** Author(s) : Philippe Fremy, Pascal Audoux
 ** Creation : 14/01/2003
@@ -27,16 +27,31 @@
 // generic include files
 // include files for QT
 #include <qpushbutton.h>
+#include <qradiobutton.h>
 // application specific include files
 #include "ServerDialog.h"
 
 ServerDialog::ServerDialog( QWidget * parent, const char * name )
 :ServerDialogUI( parent, name )
 {
-       /*QPushButton * but = new QPushButton( this );
-       but->setText( "Quit" );
-       but->setFixedSize( but->sizeHint() );
+       slot_2players();
+       setFinishEnabled( _page3, true );
 
-       connect( but, SIGNAL( clicked() ), SIGNAL( sig_quit() ) );*/
+
+       connect( _2players, SIGNAL( clicked() ), SLOT( slot_2players() ) );
+       connect( _4players, SIGNAL( clicked() ), SLOT( slot_4players() ) );
+}
+
+void ServerDialog::slot_2players()
+{
+       _2players->setChecked( true );
+       _4players->setChecked( false );
 }
+
+void ServerDialog::slot_4players()
+{
+       _2players->setChecked( false );
+       _4players->setChecked( true );
+}
+
 
Index: camino/src/server/ServerDialog.h
diff -u camino/src/server/ServerDialog.h:1.3 
camino/src/server/ServerDialog.h:1.4
--- camino/src/server/ServerDialog.h:1.3        Mon Jan 20 14:48:31 2003
+++ camino/src/server/ServerDialog.h    Sun Jan 26 06:30:34 2003
@@ -5,7 +5,7 @@
 ** ServerDialog.h
 ** Main dialog of the server
 **
-** Version : $Id: ServerDialog.h,v 1.3 2003/01/20 19:48:31 Audoux Exp $
+** Version : $Id: ServerDialog.h,v 1.4 2003/01/26 11:30:34 Audoux Exp $
 ** Author(s) : Philippe Fremy, Pascal Audoux
 ** Creation : 15/01/2003
 ** Copyright: Pascal Audoux, Philippe Fremy 2003
@@ -48,8 +48,13 @@
        /** Constructor */
        ServerDialog( QWidget * parent = 0, const char * name = 0 );
 
+public slots:
+       void slot_2players();
+       void slot_4players();
+
 signals:
        void sig_quit();
+
 };
 
 #endif // SERVERDIALOG_H
Index: camino/src/server/ServerDialogUI.ui
diff -u camino/src/server/ServerDialogUI.ui:1.2 
camino/src/server/ServerDialogUI.ui:1.3
--- camino/src/server/ServerDialogUI.ui:1.2     Sat Jan 25 14:57:18 2003
+++ camino/src/server/ServerDialogUI.ui Sun Jan 26 06:30:34 2003
@@ -17,7 +17,7 @@
     </property>
     <widget class="QWidget">
         <property name="name">
-            <cstring>page</cstring>
+            <cstring>_page1</cstring>
         </property>
         <attribute name="title">
             <string>Choose number of players</string>
@@ -57,7 +57,7 @@
     </widget>
     <widget class="QWidget">
         <property name="name">
-            <cstring>page</cstring>
+            <cstring>_page2</cstring>
         </property>
         <attribute name="title">
             <string>Wait for connections</string>
@@ -106,7 +106,7 @@
     </widget>
     <widget class="QWidget">
         <property name="name">
-            <cstring>page</cstring>
+            <cstring>_page3</cstring>
         </property>
         <attribute name="title">
             <string>Choose teams</string>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]