Freeciv-3.2
Loading...
Searching...
No Matches
messagewin.h
Go to the documentation of this file.
1/***********************************************************************
2 Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 2, or (at your option)
6 any later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12***********************************************************************/
13
14#ifndef FC__MESSAGEWIN_H
15#define FC__MESSAGEWIN_H
16
17#ifdef HAVE_CONFIG_H
18#include <fc_config.h>
19#endif
20
21extern "C" {
22#include "messagewin_g.h"
23}
24
25// Qt
26#include <QWidget>
27
28// gui-qt
29#include "chatline.h"
30#include "mapview.h"
31
32class QEvent;
33class QGridLayout;
34class QItemSelection;
35class QMouseEvent;
36class QPixmap;
37class QTableWidget;
38
39/***************************************************************************
40 Class representing message output
41***************************************************************************/
42class messagewdg : public QWidget
43{
45public:
46 messagewdg(QWidget *parent);
47 void msg_update();
48 void clr();
49 void msg(const struct message *pmsg);
50private:
51 QTableWidget *mesg_table;
54protected:
55#ifndef FC_QT5_MODE
57#else // FC_QT5_MODE
58 void enterEvent(QEvent *event);
59#endif // FC_QT5_MODE
60 void leaveEvent(QEvent *event);
64public slots:
65 void item_selected(const QItemSelection &sl, const QItemSelection &ds);
66};
67
68/***************************************************************************
69 Class which manages chat and messages
70***************************************************************************/
99
100#endif // FC__MESSAGEWIN_H
bool resize_mode
Definition messagewin.h:89
void mouseReleaseEvent(QMouseEvent *event)
void max_chat_size()
messagewdg * msgwdg
Definition messagewin.h:78
int & e_pos()
QGridLayout * layout
Definition messagewin.h:77
void update_menu()
bool resxy
Definition messagewin.h:90
QPoint cursor
Definition messagewin.h:85
bool resx
Definition messagewin.h:91
bool chat_maximized
Definition messagewin.h:82
bool resy
Definition messagewin.h:92
move_widget * mw
Definition messagewin.h:87
void restore_chat()
void mousePressEvent(QMouseEvent *event)
bool hidden_state
Definition messagewin.h:88
QSize last_size
Definition messagewin.h:86
chatwdg * chtwdg
Definition messagewin.h:79
void mouseMoveEvent(QMouseEvent *event)
void maximize_chat()
void paintEvent(QPaintEvent *event)
void msg_update()
void leaveEvent(QEvent *event)
QGridLayout * layout
Definition messagewin.h:52
void resizeEvent(QResizeEvent *event)
QTableWidget * mesg_table
Definition messagewin.h:51
void item_selected(const QItemSelection &sl, const QItemSelection &ds)
void enterEvent(QEnterEvent *event)
void paint(QPainter *painter, QPaintEvent *event)
void msg(const struct message *pmsg)
QPixmap * pix
Definition messagewin.h:53
char * incite_cost
Definition comments.c:75
enum event_type event
Definition events.c:81
struct player_slot * slots
Definition player.c:51