2
* Copyright 2012 Jörg Ehrichs <joerg.ehrichs@gmx.de>
4
* This program is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU General Public License as
6
* published by the Free Software Foundation; either version 2 of
7
* the License, or (at your option) any later version.
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.
14
* You should have received a copy of the GNU General Public License
15
* along with this program. If not, see <http://www.gnu.org/licenses/>.
18
#ifndef PROGRAMCHATDOCK_H
19
#define PROGRAMCHATDOCK_H
21
#include <QDockWidget>
24
class ProgramChatDock;
30
class ProgrammingWidget;
33
* @brief Dock container which holds the Programming widget and the chatline for the network mode
35
* The programming widget is centered in the widget (which is usually at the bottom of the game)
36
* When the networkmode is endabled there will be also a send chat button and a line edit added to the widget
37
* to allow the player to chat with their opponents
39
class ProgramChatDock : public QDockWidget
44
explicit ProgramChatDock(QWidget *parent = 0);
48
* @brief returns teh created Programming widget to allow interaction with it
49
* @return the used programming widget
51
BotRace::Client::ProgrammingWidget *getProgrammingWidget();
54
* @brief Shows the send chat button and the line edit
55
* @param chatOn @arg true enable chat @arg false disable chat
57
void setNetworkMode(bool chatOn);
61
* @brief Whenever the gui scale is changed (via QMenu entry) this dockwidget will be minimized to the available space
63
* The dockwidget will never be bigger or smaller than the Programming widget + (if enabled ) the chat interface
65
* @param newHight height of the programming widget
67
void setNewSize(int newHight);
70
Ui::ProgramChatDock *ui;
76
#endif // PROGRAMCHATDOCK_H