Freeciv21
Develop your civilization from humble roots to a global empire
pregamevote Class Reference

#include <voteinfo_bar.h>

+ Inheritance diagram for pregamevote:
+ Collaboration diagram for pregamevote:

Public Slots

void v_yes ()
 Slot vote yes. More...
 
void v_no ()
 Slot vote no. More...
 
void v_abstain ()
 Slot vote abstain. More...
 

Public Member Functions

 pregamevote (QWidget *parent=nullptr)
 Constructor for pregamevote. More...
 
 ~pregamevote () override
 Destructor for pregamevote. More...
 
void update_vote ()
 Updates text on vote. More...
 

Public Attributes

QLabel * label_text
 
QLabel * label_vote_text
 
QPushButton * vote_yes
 
QPushButton * vote_no
 
QPushButton * vote_abstain
 
QLabel * lab_yes
 
QLabel * lab_no
 
QLabel * lab_abstain
 
QLabel * voters
 
QGridLayout * layout
 

Detailed Description

Definition at line 24 of file voteinfo_bar.h.

Constructor & Destructor Documentation

◆ pregamevote()

pregamevote::pregamevote ( QWidget *  parent = nullptr)
explicit

Constructor for pregamevote.

Definition at line 26 of file voteinfo_bar.cpp.

◆ ~pregamevote()

pregamevote::~pregamevote ( )
overridedefault

Destructor for pregamevote.

Member Function Documentation

◆ update_vote()

void pregamevote::update_vote ( )

Updates text on vote.

Definition at line 104 of file voteinfo_bar.cpp.

Referenced by voteinfo_gui_update().

◆ v_abstain

void pregamevote::v_abstain ( )
slot

Slot vote abstain.

Definition at line 62 of file voteinfo_bar.cpp.

Referenced by pregamevote().

◆ v_no

void pregamevote::v_no ( )
slot

Slot vote no.

Definition at line 76 of file voteinfo_bar.cpp.

Referenced by pregamevote().

◆ v_yes

void pregamevote::v_yes ( )
slot

Slot vote yes.

Definition at line 90 of file voteinfo_bar.cpp.

Referenced by pregamevote().

Member Data Documentation

◆ lab_abstain

QLabel* pregamevote::lab_abstain

Definition at line 38 of file voteinfo_bar.h.

Referenced by pregamevote(), update_vote(), and xvote::xvote().

◆ lab_no

QLabel* pregamevote::lab_no

Definition at line 37 of file voteinfo_bar.h.

Referenced by pregamevote(), update_vote(), and xvote::xvote().

◆ lab_yes

QLabel* pregamevote::lab_yes

Definition at line 36 of file voteinfo_bar.h.

Referenced by pregamevote(), update_vote(), and xvote::xvote().

◆ label_text

QLabel* pregamevote::label_text

Definition at line 31 of file voteinfo_bar.h.

Referenced by pregamevote(), update_vote(), and xvote::xvote().

◆ label_vote_text

QLabel* pregamevote::label_vote_text

Definition at line 32 of file voteinfo_bar.h.

Referenced by pregamevote(), update_vote(), and xvote::xvote().

◆ layout

QGridLayout* pregamevote::layout

Definition at line 40 of file voteinfo_bar.h.

Referenced by pregamevote().

◆ vote_abstain

QPushButton* pregamevote::vote_abstain

Definition at line 35 of file voteinfo_bar.h.

Referenced by pregamevote(), and update_vote().

◆ vote_no

QPushButton* pregamevote::vote_no

Definition at line 34 of file voteinfo_bar.h.

Referenced by pregamevote(), and update_vote().

◆ vote_yes

QPushButton* pregamevote::vote_yes

Definition at line 33 of file voteinfo_bar.h.

Referenced by pregamevote(), and update_vote().

◆ voters

QLabel* pregamevote::voters

Definition at line 39 of file voteinfo_bar.h.

Referenced by pregamevote(), update_vote(), and xvote::xvote().