Freeciv-3.2: /fast/freeciv/nightly/S3_2/client/gui-qt/voteinfo_bar.h Source File

Freeciv-3.2

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***************************************************************************/
30 class pregamevote : public QWidget
31{
32 Q_OBJECT
33public:
34 explicit pregamevote(QWidget *parent = NULL);
35 ~pregamevote();
36 void update_vote();
37 QLabel *label_text;
38 QLabel *label_vote_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;
46 QGridLayout *layout;
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***************************************************************************/
56 class xvote : public pregamevote
57{
58 Q_OBJECT
59public:
60 xvote(QWidget *parent);
61protected:
62 void paint(QPainter *painter, QPaintEvent *event);
63 void paintEvent(QPaintEvent *event);
64};
65
66#endif // FC__VOTEBAR_H
pregamevote
Definition voteinfo_bar.h:31
pregamevote::vote_yes
QPushButton * vote_yes
Definition voteinfo_bar.h:39
pregamevote::layout
QGridLayout * layout
Definition voteinfo_bar.h:46
pregamevote::label_vote_text
QLabel * label_vote_text
Definition voteinfo_bar.h:38
pregamevote::v_yes
void v_yes()
Definition voteinfo_bar.cpp:97
pregamevote::voters
QLabel * voters
Definition voteinfo_bar.h:45
pregamevote::vote_abstain
QPushButton * vote_abstain
Definition voteinfo_bar.h:41
pregamevote::v_no
void v_no()
Definition voteinfo_bar.cpp:83
pregamevote::lab_abstain
QLabel * lab_abstain
Definition voteinfo_bar.h:44
pregamevote::~pregamevote
~pregamevote()
Definition voteinfo_bar.cpp:178
pregamevote::v_abstain
void v_abstain()
Definition voteinfo_bar.cpp:69
pregamevote::lab_yes
QLabel * lab_yes
Definition voteinfo_bar.h:42
pregamevote::update_vote
void update_vote()
Definition voteinfo_bar.cpp:111
pregamevote::label_text
QLabel * label_text
Definition voteinfo_bar.h:37
pregamevote::vote_no
QPushButton * vote_no
Definition voteinfo_bar.h:40
pregamevote::lab_no
QLabel * lab_no
Definition voteinfo_bar.h:43
xvote
Definition voteinfo_bar.h:57
xvote::paintEvent
void paintEvent(QPaintEvent *event)
Definition voteinfo_bar.cpp:214
xvote::paint
void paint(QPainter *painter, QPaintEvent *event)
Definition voteinfo_bar.cpp:203
incite_cost
char * incite_cost
Definition comments.c:74
event
enum event_type event
Definition events.c:81
slots
struct player_slot * slots
Definition player.c:51
voteinfo_bar_g.h