QTfrontend/ui/widget/roomnameprompt.h
author KoBeWi
Thu, 08 Feb 2018 08:50:45 +0100
changeset 12922 c0320d66310d
parent 11046 47a8c19ecb60
permissions -rw-r--r--
Keep game/weapon schemes in separate files
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
11046
47a8c19ecb60 more copyright fixes
sheepluva
parents: 10108
diff changeset
     3
 * Copyright (c) 2004-2015 Andrey Korotaev <unC0Rr@gmail.com>
8456
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
10108
c68cf030eded update FSF address. note: two sdl include files (by Sam Lantinga) still have the old FSF address in their copyright - but I ain't gonna touch their copyright headers
sheepluva
parents: 9998
diff changeset
    16
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
8456
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;
9541
312bb4384f33 - Frontend finally learns how to create passworded room
unc0rr
parents: 9080
diff changeset
    26
class QCheckBox;
8456
cc76826f14c2 Added roomnameprompt.h/cpp. Sorry 'bout that.
dag10
parents:
diff changeset
    27
cc76826f14c2 Added roomnameprompt.h/cpp. Sorry 'bout that.
dag10
parents:
diff changeset
    28
class RoomNamePrompt : public QDialog
cc76826f14c2 Added roomnameprompt.h/cpp. Sorry 'bout that.
dag10
parents:
diff changeset
    29
{
cc76826f14c2 Added roomnameprompt.h/cpp. Sorry 'bout that.
dag10
parents:
diff changeset
    30
        Q_OBJECT
cc76826f14c2 Added roomnameprompt.h/cpp. Sorry 'bout that.
dag10
parents:
diff changeset
    31
cc76826f14c2 Added roomnameprompt.h/cpp. Sorry 'bout that.
dag10
parents:
diff changeset
    32
    public:
cc76826f14c2 Added roomnameprompt.h/cpp. Sorry 'bout that.
dag10
parents:
diff changeset
    33
        RoomNamePrompt(QWidget* parent, const QString & roomName);
9541
312bb4384f33 - Frontend finally learns how to create passworded room
unc0rr
parents: 9080
diff changeset
    34
        QString getRoomName();
312bb4384f33 - Frontend finally learns how to create passworded room
unc0rr
parents: 9080
diff changeset
    35
        QString getPassword();
8456
cc76826f14c2 Added roomnameprompt.h/cpp. Sorry 'bout that.
dag10
parents:
diff changeset
    36
9541
312bb4384f33 - Frontend finally learns how to create passworded room
unc0rr
parents: 9080
diff changeset
    37
    private:
312bb4384f33 - Frontend finally learns how to create passworded room
unc0rr
parents: 9080
diff changeset
    38
        QLineEdit * leRoomName;
312bb4384f33 - Frontend finally learns how to create passworded room
unc0rr
parents: 9080
diff changeset
    39
        QLabel * label;
312bb4384f33 - Frontend finally learns how to create passworded room
unc0rr
parents: 9080
diff changeset
    40
        QCheckBox * cbSetPassword;
312bb4384f33 - Frontend finally learns how to create passworded room
unc0rr
parents: 9080
diff changeset
    41
        QLineEdit * lePassword;
8456
cc76826f14c2 Added roomnameprompt.h/cpp. Sorry 'bout that.
dag10
parents:
diff changeset
    42
cc76826f14c2 Added roomnameprompt.h/cpp. Sorry 'bout that.
dag10
parents:
diff changeset
    43
    private slots:
9541
312bb4384f33 - Frontend finally learns how to create passworded room
unc0rr
parents: 9080
diff changeset
    44
        void checkBoxToggled();
8456
cc76826f14c2 Added roomnameprompt.h/cpp. Sorry 'bout that.
dag10
parents:
diff changeset
    45
};
cc76826f14c2 Added roomnameprompt.h/cpp. Sorry 'bout that.
dag10
parents:
diff changeset
    46
cc76826f14c2 Added roomnameprompt.h/cpp. Sorry 'bout that.
dag10
parents:
diff changeset
    47
#endif // ROOMNAMEPROMPT_H