QTfrontend/ui/widget/roomnameprompt.h
changeset 8456 cc76826f14c2
child 9080 9b42757d7e71
equal deleted inserted replaced
8455:c86c7d1fc9fc 8456:cc76826f14c2
       
     1 /*
       
     2  * Hedgewars, a free turn based strategy game
       
     3  * Copyright (c) 2004-2012 Andrey Korotaev <unC0Rr@gmail.com>
       
     4  *
       
     5  * This program is free software; you can redistribute it and/or modify
       
     6  * it under the terms of the GNU General Public License as published by
       
     7  * the Free Software Foundation; version 2 of the License
       
     8  *
       
     9  * This program is distributed in the hope that it will be useful,
       
    10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
       
    12  * GNU General Public License for more details.
       
    13  *
       
    14  * You should have received a copy of the GNU General Public License
       
    15  * along with this program; if not, write to the Free Software
       
    16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
       
    17  */
       
    18 
       
    19 #ifndef ROOMNAMEPROMPT_H
       
    20 #define ROOMNAMEPROMPT_H
       
    21 
       
    22 #include <QDialog>
       
    23 
       
    24 class QLineEdit;
       
    25 class QLabel;
       
    26 
       
    27 class RoomNamePrompt : public QDialog
       
    28 {
       
    29         Q_OBJECT
       
    30 
       
    31     public:
       
    32         RoomNamePrompt(QWidget* parent, const QString & roomName);
       
    33 
       
    34     signals:
       
    35         void roomNameChosen(const QString & roomName);
       
    36 
       
    37     private slots:
       
    38         void setRoomName();
       
    39 
       
    40     private:
       
    41         QLineEdit * editBox;
       
    42         QLabel * label;
       
    43 };
       
    44 
       
    45 #endif // ROOMNAMEPROMPT_H