QTfrontend/ui/widget/roomnameprompt.h
author dag10
Sun, 07 Apr 2013 19:42:02 -0400
changeset 8886 5c521d1fdd63
parent 8456 cc76826f14c2
child 9080 9b42757d7e71
permissions -rw-r--r--
Fixed map preview overlap on certain locales (Fixes issue #549). Fixed overlapping of team selection widget and game cfg widget.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
8456
cc76826f14c2 Added roomnameprompt.h/cpp. Sorry 'bout that.
dag10
parents:
diff changeset
     1
/*
cc76826f14c2 Added roomnameprompt.h/cpp. Sorry 'bout that.
dag10
parents:
diff changeset
     2
 * Hedgewars, a free turn based strategy game
cc76826f14c2 Added roomnameprompt.h/cpp. Sorry 'bout that.
dag10
parents:
diff changeset
     3
 * Copyright (c) 2004-2012 Andrey Korotaev <unC0Rr@gmail.com>
cc76826f14c2 Added roomnameprompt.h/cpp. Sorry 'bout that.
dag10
parents:
diff changeset
     4
 *
cc76826f14c2 Added roomnameprompt.h/cpp. Sorry 'bout that.
dag10
parents:
diff changeset
     5
 * This program is free software; you can redistribute it and/or modify
cc76826f14c2 Added roomnameprompt.h/cpp. Sorry 'bout that.
dag10
parents:
diff changeset
     6
 * it under the terms of the GNU General Public License as published by
cc76826f14c2 Added roomnameprompt.h/cpp. Sorry 'bout that.
dag10
parents:
diff changeset
     7
 * the Free Software Foundation; version 2 of the License
cc76826f14c2 Added roomnameprompt.h/cpp. Sorry 'bout that.
dag10
parents:
diff changeset
     8
 *
cc76826f14c2 Added roomnameprompt.h/cpp. Sorry 'bout that.
dag10
parents:
diff changeset
     9
 * This program is distributed in the hope that it will be useful,
cc76826f14c2 Added roomnameprompt.h/cpp. Sorry 'bout that.
dag10
parents:
diff changeset
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
cc76826f14c2 Added roomnameprompt.h/cpp. Sorry 'bout that.
dag10
parents:
diff changeset
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
cc76826f14c2 Added roomnameprompt.h/cpp. Sorry 'bout that.
dag10
parents:
diff changeset
    12
 * GNU General Public License for more details.
cc76826f14c2 Added roomnameprompt.h/cpp. Sorry 'bout that.
dag10
parents:
diff changeset
    13
 *
cc76826f14c2 Added roomnameprompt.h/cpp. Sorry 'bout that.
dag10
parents:
diff changeset
    14
 * You should have received a copy of the GNU General Public License
cc76826f14c2 Added roomnameprompt.h/cpp. Sorry 'bout that.
dag10
parents:
diff changeset
    15
 * along with this program; if not, write to the Free Software
cc76826f14c2 Added roomnameprompt.h/cpp. Sorry 'bout that.
dag10
parents:
diff changeset
    16
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
cc76826f14c2 Added roomnameprompt.h/cpp. Sorry 'bout that.
dag10
parents:
diff changeset
    17
 */
cc76826f14c2 Added roomnameprompt.h/cpp. Sorry 'bout that.
dag10
parents:
diff changeset
    18
cc76826f14c2 Added roomnameprompt.h/cpp. Sorry 'bout that.
dag10
parents:
diff changeset
    19
#ifndef ROOMNAMEPROMPT_H
cc76826f14c2 Added roomnameprompt.h/cpp. Sorry 'bout that.
dag10
parents:
diff changeset
    20
#define ROOMNAMEPROMPT_H
cc76826f14c2 Added roomnameprompt.h/cpp. Sorry 'bout that.
dag10
parents:
diff changeset
    21
cc76826f14c2 Added roomnameprompt.h/cpp. Sorry 'bout that.
dag10
parents:
diff changeset
    22
#include <QDialog>
cc76826f14c2 Added roomnameprompt.h/cpp. Sorry 'bout that.
dag10
parents:
diff changeset
    23
cc76826f14c2 Added roomnameprompt.h/cpp. Sorry 'bout that.
dag10
parents:
diff changeset
    24
class QLineEdit;
cc76826f14c2 Added roomnameprompt.h/cpp. Sorry 'bout that.
dag10
parents:
diff changeset
    25
class QLabel;
cc76826f14c2 Added roomnameprompt.h/cpp. Sorry 'bout that.
dag10
parents:
diff changeset
    26
cc76826f14c2 Added roomnameprompt.h/cpp. Sorry 'bout that.
dag10
parents:
diff changeset
    27
class RoomNamePrompt : public QDialog
cc76826f14c2 Added roomnameprompt.h/cpp. Sorry 'bout that.
dag10
parents:
diff changeset
    28
{
cc76826f14c2 Added roomnameprompt.h/cpp. Sorry 'bout that.
dag10
parents:
diff changeset
    29
        Q_OBJECT
cc76826f14c2 Added roomnameprompt.h/cpp. Sorry 'bout that.
dag10
parents:
diff changeset
    30
cc76826f14c2 Added roomnameprompt.h/cpp. Sorry 'bout that.
dag10
parents:
diff changeset
    31
    public:
cc76826f14c2 Added roomnameprompt.h/cpp. Sorry 'bout that.
dag10
parents:
diff changeset
    32
        RoomNamePrompt(QWidget* parent, const QString & roomName);
cc76826f14c2 Added roomnameprompt.h/cpp. Sorry 'bout that.
dag10
parents:
diff changeset
    33
cc76826f14c2 Added roomnameprompt.h/cpp. Sorry 'bout that.
dag10
parents:
diff changeset
    34
    signals:
cc76826f14c2 Added roomnameprompt.h/cpp. Sorry 'bout that.
dag10
parents:
diff changeset
    35
        void roomNameChosen(const QString & roomName);
cc76826f14c2 Added roomnameprompt.h/cpp. Sorry 'bout that.
dag10
parents:
diff changeset
    36
cc76826f14c2 Added roomnameprompt.h/cpp. Sorry 'bout that.
dag10
parents:
diff changeset
    37
    private slots:
cc76826f14c2 Added roomnameprompt.h/cpp. Sorry 'bout that.
dag10
parents:
diff changeset
    38
        void setRoomName();
cc76826f14c2 Added roomnameprompt.h/cpp. Sorry 'bout that.
dag10
parents:
diff changeset
    39
cc76826f14c2 Added roomnameprompt.h/cpp. Sorry 'bout that.
dag10
parents:
diff changeset
    40
    private:
cc76826f14c2 Added roomnameprompt.h/cpp. Sorry 'bout that.
dag10
parents:
diff changeset
    41
        QLineEdit * editBox;
cc76826f14c2 Added roomnameprompt.h/cpp. Sorry 'bout that.
dag10
parents:
diff changeset
    42
        QLabel * label;
cc76826f14c2 Added roomnameprompt.h/cpp. Sorry 'bout that.
dag10
parents:
diff changeset
    43
};
cc76826f14c2 Added roomnameprompt.h/cpp. Sorry 'bout that.
dag10
parents:
diff changeset
    44
cc76826f14c2 Added roomnameprompt.h/cpp. Sorry 'bout that.
dag10
parents:
diff changeset
    45
#endif // ROOMNAMEPROMPT_H