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

#include <createproposaldialog.h>

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

Public Slots

void onNextClicked ()
 
void onBackClicked ()
 
void propNameChanged (const QString &newText)
 
void propUrlChanged (const QString &newText)
 
void propAmountChanged (const QString &newText)
 
bool propaddressChanged (const QString &newText)
 
void onAddrListClicked ()
 
void onGenAddressClicked ()
 
void monthsEditDeselect (int i)
 

Public Member Functions

 CreateProposalDialog (PIVXGUI *parent, GovernanceModel *_govModel, WalletModel *_walletModel)
 
 ~CreateProposalDialog () override
 

Protected Member Functions

void keyPressEvent (QKeyEvent *e) override
 
void showEvent (QShowEvent *e) override
 

Private Member Functions

void loadSummary ()
 
void sendProposal ()
 
void setupPageOne ()
 
void setupPageTwo ()
 
void setupPageThree ()
 
bool validatePageOne ()
 
bool validatePageTwo ()
 
void inform (const QString &text)
 

Private Attributes

Ui::CreateProposalDialog * ui
 
GovernanceModelgovModel {nullptr}
 
WalletModelwalletModel {nullptr}
 
SnackBarsnackBar {nullptr}
 
QPushButton * icConfirm1 {nullptr}
 
QPushButton * icConfirm2 {nullptr}
 
QPushButton * icConfirm3 {nullptr}
 
ContactsDropdownmenuContacts {nullptr}
 
QAction * actAddrList {nullptr}
 
int pos = 0
 

Detailed Description

Definition at line 21 of file createproposaldialog.h.

Constructor & Destructor Documentation

◆ CreateProposalDialog()

CreateProposalDialog::CreateProposalDialog ( PIVXGUI parent,
GovernanceModel _govModel,
WalletModel _walletModel 
)
explicit

Definition at line 26 of file createproposaldialog.cpp.

Here is the call graph for this function:

◆ ~CreateProposalDialog()

CreateProposalDialog::~CreateProposalDialog ( )
override

Definition at line 418 of file createproposaldialog.cpp.

Member Function Documentation

◆ inform()

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

Definition at line 410 of file createproposaldialog.cpp.

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

◆ keyPressEvent()

void CreateProposalDialog::keyPressEvent ( QKeyEvent *  e)
overrideprotected

Definition at line 384 of file createproposaldialog.cpp.

Here is the call graph for this function:

◆ loadSummary()

void CreateProposalDialog::loadSummary ( )
private

Definition at line 235 of file createproposaldialog.cpp.

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

◆ monthsEditDeselect

void CreateProposalDialog::monthsEditDeselect ( int  i)
slot

Definition at line 117 of file createproposaldialog.cpp.

Here is the caller graph for this function:

◆ onAddrListClicked

void CreateProposalDialog::onAddrListClicked ( )
slot
Todo:
: add different row icon for contacts and own addresses.
Todo:
: add filter/search option.
Todo:
: fix bug that the last presented address isn't being showed.

Definition at line 330 of file createproposaldialog.cpp.

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

◆ onBackClicked

void CreateProposalDialog::onBackClicked ( )
slot

Definition at line 298 of file createproposaldialog.cpp.

Here is the caller graph for this function:

◆ onGenAddressClicked

void CreateProposalDialog::onGenAddressClicked ( )
slot

Definition at line 376 of file createproposaldialog.cpp.

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

◆ onNextClicked

void CreateProposalDialog::onNextClicked ( )
slot

Definition at line 263 of file createproposaldialog.cpp.

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

◆ propaddressChanged

bool CreateProposalDialog::propaddressChanged ( const QString &  newText)
slot

Definition at line 166 of file createproposaldialog.cpp.

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

◆ propAmountChanged

void CreateProposalDialog::propAmountChanged ( const QString &  newText)
slot

Definition at line 152 of file createproposaldialog.cpp.

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

◆ propNameChanged

void CreateProposalDialog::propNameChanged ( const QString &  newText)
slot

Definition at line 141 of file createproposaldialog.cpp.

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

◆ propUrlChanged

void CreateProposalDialog::propUrlChanged ( const QString &  newText)
slot

Definition at line 147 of file createproposaldialog.cpp.

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

◆ sendProposal()

void CreateProposalDialog::sendProposal ( )
private

Definition at line 245 of file createproposaldialog.cpp.

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

◆ setupPageOne()

void CreateProposalDialog::setupPageOne ( )
private

Definition at line 83 of file createproposaldialog.cpp.

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

◆ setupPageThree()

void CreateProposalDialog::setupPageThree ( )
private

Definition at line 123 of file createproposaldialog.cpp.

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

◆ setupPageTwo()

void CreateProposalDialog::setupPageTwo ( )
private

Definition at line 94 of file createproposaldialog.cpp.

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

◆ showEvent()

void CreateProposalDialog::showEvent ( QShowEvent *  e)
overrideprotected

Definition at line 393 of file createproposaldialog.cpp.

◆ validatePageOne()

bool CreateProposalDialog::validatePageOne ( )
private

Definition at line 179 of file createproposaldialog.cpp.

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

◆ validatePageTwo()

bool CreateProposalDialog::validatePageTwo ( )
private

Definition at line 206 of file createproposaldialog.cpp.

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

Member Data Documentation

◆ actAddrList

QAction* CreateProposalDialog::actAddrList {nullptr}
private

Definition at line 51 of file createproposaldialog.h.

◆ govModel

GovernanceModel* CreateProposalDialog::govModel {nullptr}
private

Definition at line 44 of file createproposaldialog.h.

◆ icConfirm1

QPushButton* CreateProposalDialog::icConfirm1 {nullptr}
private

Definition at line 47 of file createproposaldialog.h.

◆ icConfirm2

QPushButton* CreateProposalDialog::icConfirm2 {nullptr}
private

Definition at line 48 of file createproposaldialog.h.

◆ icConfirm3

QPushButton* CreateProposalDialog::icConfirm3 {nullptr}
private

Definition at line 49 of file createproposaldialog.h.

◆ menuContacts

ContactsDropdown* CreateProposalDialog::menuContacts {nullptr}
private

Definition at line 50 of file createproposaldialog.h.

◆ pos

int CreateProposalDialog::pos = 0
private

Definition at line 52 of file createproposaldialog.h.

◆ snackBar

SnackBar* CreateProposalDialog::snackBar {nullptr}
private

Definition at line 46 of file createproposaldialog.h.

◆ ui

Ui::CreateProposalDialog* CreateProposalDialog::ui
private

Definition at line 43 of file createproposaldialog.h.

◆ walletModel

WalletModel* CreateProposalDialog::walletModel {nullptr}
private

Definition at line 45 of file createproposaldialog.h.


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