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

#include <mnselectiondialog.h>

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

Public Slots

void viewItemChanged (QTreeWidgetItem *, int)
 
void selectAll ()
 

Public Member Functions

 MnSelectionDialog (QWidget *parent)
 
 ~MnSelectionDialog ()
 
void setModel (MNModel *_mnModel, int minVoteUpdateTimeInSecs)
 
void updateView ()
 
void setMnVoters (const std::vector< VoteInfo > &_votes)
 
std::vector< std::string > getSelectedMnAlias ()
 

Private Types

enum  { COLUMN_CHECKBOX , COLUMN_NAME , COLUMN_VOTE , COLUMN_STATUS }
 

Private Member Functions

void appendItem (QFlags< Qt::ItemFlag > flgCheckbox, QFlags< Qt::ItemFlag > flgTristate, const QString &mnName, const QString &mnStats, VoteInfo *ptrVoteInfo)
 

Private Attributes

Ui::MnSelectionDialog * ui
 
MNModelmnModel {nullptr}
 
int minVoteUpdateTimeInSecs {0}
 
int colCheckBoxWidth_treeMode {50}
 
std::vector< std::string > selectedMnList
 
std::map< std::string, VoteInfovotes
 

Detailed Description

Definition at line 20 of file mnselectiondialog.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
COLUMN_CHECKBOX 
COLUMN_NAME 
COLUMN_VOTE 
COLUMN_STATUS 

Definition at line 51 of file mnselectiondialog.h.

Constructor & Destructor Documentation

◆ MnSelectionDialog()

MnSelectionDialog::MnSelectionDialog ( QWidget *  parent)
explicit

Definition at line 11 of file mnselectiondialog.cpp.

Here is the call graph for this function:

◆ ~MnSelectionDialog()

MnSelectionDialog::~MnSelectionDialog ( )

Definition at line 178 of file mnselectiondialog.cpp.

Member Function Documentation

◆ appendItem()

void MnSelectionDialog::appendItem ( QFlags< Qt::ItemFlag >  flgCheckbox,
QFlags< Qt::ItemFlag >  flgTristate,
const QString &  mnName,
const QString &  mnStats,
VoteInfo ptrVoteInfo 
)
private

Definition at line 132 of file mnselectiondialog.cpp.

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

◆ getSelectedMnAlias()

std::vector< std::string > MnSelectionDialog::getSelectedMnAlias ( )

Definition at line 173 of file mnselectiondialog.cpp.

Here is the caller graph for this function:

◆ selectAll

void MnSelectionDialog::selectAll ( )
slot

Definition at line 92 of file mnselectiondialog.cpp.

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

◆ setMnVoters()

void MnSelectionDialog::setMnVoters ( const std::vector< VoteInfo > &  _votes)

Definition at line 53 of file mnselectiondialog.cpp.

Here is the caller graph for this function:

◆ setModel()

void MnSelectionDialog::setModel ( MNModel _mnModel,
int  minVoteUpdateTimeInSecs 
)

Definition at line 47 of file mnselectiondialog.cpp.

Here is the caller graph for this function:

◆ updateView()

void MnSelectionDialog::updateView ( )

Definition at line 108 of file mnselectiondialog.cpp.

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

◆ viewItemChanged

void MnSelectionDialog::viewItemChanged ( QTreeWidgetItem *  item,
int  column 
)
slot

Definition at line 70 of file mnselectiondialog.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ colCheckBoxWidth_treeMode

int MnSelectionDialog::colCheckBoxWidth_treeMode {50}
private

Definition at line 45 of file mnselectiondialog.h.

◆ minVoteUpdateTimeInSecs

int MnSelectionDialog::minVoteUpdateTimeInSecs {0}
private

Definition at line 44 of file mnselectiondialog.h.

◆ mnModel

MNModel* MnSelectionDialog::mnModel {nullptr}
private

Definition at line 41 of file mnselectiondialog.h.

◆ selectedMnList

std::vector<std::string> MnSelectionDialog::selectedMnList
private

Definition at line 47 of file mnselectiondialog.h.

◆ ui

Ui::MnSelectionDialog* MnSelectionDialog::ui
private

Definition at line 40 of file mnselectiondialog.h.

◆ votes

std::map<std::string, VoteInfo> MnSelectionDialog::votes
private

Definition at line 49 of file mnselectiondialog.h.


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