Logo Search packages:      
Sourcecode: schafkopf version File versions  Download package

newgamewizard.h

/***************************************************************************
 *   Copyright (C) 2004 by Dominik Seichter                                *
 *   domseichter@web.de                                                    *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 ***************************************************************************/
#ifndef NEWGAMEWIZARD_H
#define NEWGAMEWIZARD_H



#include <kwizard.h>

class QWidget;
class QHBox;
class QLineEdit;
class QLabel;
class QRadioButton;

/**
@author Christian Kern
*/
00036 class newgamewizard : public KWizard
{
      Q_OBJECT

public:
      enum __gameType {GAME_LOCAL, GAME_NETWORK_CLIENT, GAME_NETWORK_SERVER};
      newgamewizard( QWidget *parent = 0, const char *name = 0 );
      int getGame();
      void showPage(QWidget* page);

protected:
      void setup_page_selectgame();
      QHBox *page_selectgame;
      QRadioButton *checkLocalGame, *checkNetworkServer, *checkNetworkClient;
      QString getGameInfoString(int gameType);
      QLabel *info;
      void setInfoText(int gameType);

protected:

protected slots:
      void dataChanged(  );

};


#endif

Generated by  Doxygen 1.6.0   Back to index