Freeciv-3.3
Loading...
Searching...
No Matches
voteinfo_bar.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#ifndef FC__VOTEBAR_H
14#define FC__VOTEBAR_H
15
16extern "C" {
17#include "voteinfo_bar_g.h"
18}
19
20// Qt
21#include <QWidget>
22
23class QGridLayout;
24class QLabel;
25class QPushButton;
26
27/***************************************************************************
28 pregamevote class used for displaying vote bar in PAGE START
29***************************************************************************/
30class pregamevote : public QWidget
31{
33public:
34 explicit pregamevote(QWidget *parent = nullptr);
36 void update_vote();
37 QLabel *label_text;
39 QPushButton *vote_yes;
40 QPushButton *vote_no;
41 QPushButton *vote_abstain;
42 QLabel *lab_yes;
43 QLabel *lab_no;
44 QLabel *lab_abstain;
45 QLabel *voters;
47public slots:
48 void v_yes();
49 void v_no();
50 void v_abstain();
51};
52
53/***************************************************************************
54 xvote class used for displaying vote bar in PAGE GAME
55***************************************************************************/
56class xvote : public pregamevote
57{
59public:
60 xvote(QWidget *parent);
61protected:
64};
65
66#endif // FC__VOTEBAR_H
QPushButton * vote_yes
QGridLayout * layout
QLabel * label_vote_text
QLabel * voters
QPushButton * vote_abstain
QLabel * lab_abstain
QLabel * lab_yes
QLabel * label_text
QPushButton * vote_no
QLabel * lab_no
void paintEvent(QPaintEvent *event)
void paint(QPainter *painter, QPaintEvent *event)
char * incite_cost
Definition comments.c:76
enum event_type event
Definition events.c:81
struct player_slot * slots
Definition player.c:51