PIVX Core  5.6.99
P2P Digital Currency
Public Slots | Public Member Functions | Private Member Functions | Private Attributes | List of all members
VoteDialog Class Reference

#include <votedialog.h>

Inheritance diagram for VoteDialog:
[legend]
Collaboration diagram for VoteDialog:
[legend]

Public Slots

void onAcceptClicked ()
 
void onCheckBoxClicked (QCheckBox *checkBox, QProgressBar *progressBar, bool isVoteYes)
 
void onMnSelectionClicked ()
 

Public Member Functions

 VoteDialog (QWidget *parent, GovernanceModel *_govModel, MNModel *_mnModel)
 
 ~VoteDialog ()
 
void showEvent (QShowEvent *event) override
 
void setProposal (const ProposalInfo &prop)
 

Private Member Functions

void initVoteCheck (QWidget *container, QCheckBox *checkBox, QProgressBar *progressBar, const QString &text, Qt::LayoutDirection direction, bool isVoteYes)
 
void inform (const QString &text)
 
void updateMnSelectionNum ()
 

Private Attributes

Ui::VoteDialog * ui
 
GovernanceModelgovModel {nullptr}
 
MNModelmnModel {nullptr}
 
SnackBarsnackBar {nullptr}
 
QCheckBox * checkBoxNo {nullptr}
 
QCheckBox * checkBoxYes {nullptr}
 
QProgressBar * progressBarNo {nullptr}
 
QProgressBar * progressBarYes {nullptr}
 
std::unique_ptr< ProposalInfoproposal
 
std::vector< VoteInfovotes
 
MnSelectionDialogmnSelectionDialog {nullptr}
 
std::vector< std::string > vecSelectedMn
 

Detailed Description

Definition at line 26 of file votedialog.h.

Constructor & Destructor Documentation

◆ VoteDialog()

VoteDialog::VoteDialog ( QWidget *  parent,
GovernanceModel _govModel,
MNModel _mnModel 
)
explicit

Definition at line 12 of file votedialog.cpp.

Here is the call graph for this function:

◆ ~VoteDialog()

VoteDialog::~VoteDialog ( )

Definition at line 185 of file votedialog.cpp.

Member Function Documentation

◆ inform()

void VoteDialog::inform ( const QString &  text)
private

Definition at line 177 of file votedialog.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ initVoteCheck()

void VoteDialog::initVoteCheck ( QWidget *  container,
QCheckBox *  checkBox,
QProgressBar *  progressBar,
const QString &  text,
Qt::LayoutDirection  direction,
bool  isVoteYes 
)
private

Definition at line 138 of file votedialog.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onAcceptClicked

void VoteDialog::onAcceptClicked ( )
slot

Definition at line 72 of file votedialog.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onCheckBoxClicked

void VoteDialog::onCheckBoxClicked ( QCheckBox *  checkBox,
QProgressBar *  progressBar,
bool  isVoteYes 
)
slot

Definition at line 129 of file votedialog.cpp.

Here is the caller graph for this function:

◆ onMnSelectionClicked

void VoteDialog::onMnSelectionClicked ( )
slot

Definition at line 114 of file votedialog.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setProposal()

void VoteDialog::setProposal ( const ProposalInfo prop)

Definition at line 55 of file votedialog.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ showEvent()

void VoteDialog::showEvent ( QShowEvent *  event)
override

Definition at line 107 of file votedialog.cpp.

◆ updateMnSelectionNum()

void VoteDialog::updateMnSelectionNum ( )
private

Definition at line 165 of file votedialog.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ checkBoxNo

QCheckBox* VoteDialog::checkBoxNo {nullptr}
private

Definition at line 48 of file votedialog.h.

◆ checkBoxYes

QCheckBox* VoteDialog::checkBoxYes {nullptr}
private

Definition at line 49 of file votedialog.h.

◆ govModel

GovernanceModel* VoteDialog::govModel {nullptr}
private

Definition at line 44 of file votedialog.h.

◆ mnModel

MNModel* VoteDialog::mnModel {nullptr}
private

Definition at line 45 of file votedialog.h.

◆ mnSelectionDialog

MnSelectionDialog* VoteDialog::mnSelectionDialog {nullptr}
private

Definition at line 55 of file votedialog.h.

◆ progressBarNo

QProgressBar* VoteDialog::progressBarNo {nullptr}
private

Definition at line 50 of file votedialog.h.

◆ progressBarYes

QProgressBar* VoteDialog::progressBarYes {nullptr}
private

Definition at line 51 of file votedialog.h.

◆ proposal

std::unique_ptr<ProposalInfo> VoteDialog::proposal
private

Definition at line 53 of file votedialog.h.

◆ snackBar

SnackBar* VoteDialog::snackBar {nullptr}
private

Definition at line 46 of file votedialog.h.

◆ ui

Ui::VoteDialog* VoteDialog::ui
private

Definition at line 43 of file votedialog.h.

◆ vecSelectedMn

std::vector<std::string> VoteDialog::vecSelectedMn
private

Definition at line 56 of file votedialog.h.

◆ votes

std::vector<VoteInfo> VoteDialog::votes
private

Definition at line 54 of file votedialog.h.


The documentation for this class was generated from the following files: