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

#include <consolewidget.h>

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

Public Slots

void clear (bool clearHistory=true)
 
void response (int category, const QString &message)
 

Signals

void stopExecutor ()
 
void cmdCommandRequest (const QString &command)
 
- Signals inherited from PWidget
void message (const QString &title, const QString &body, unsigned int style, bool *ret=nullptr)
 
void showHide (bool show)
 
bool execDialog (QDialog *dialog, int xDiv=3, int yDiv=5)
 

Public Member Functions

 SettingsConsoleWidget (PIVXGUI *_window, QWidget *parent=nullptr)
 
 ~SettingsConsoleWidget ()
 
void loadClientModel () override
 
void showEvent (QShowEvent *event) override
 
void messageInternal (int category, const QString &message, bool html=false)
 
void browseHistory (int offset)
 Go forward or back in history. More...
 
void scrollToEnd ()
 Scroll console view to end. More...
 
void onCommandsClicked ()
 
- Public Member Functions inherited from PWidget
 PWidget (PIVXGUI *_window=nullptr, QWidget *parent=nullptr)
 
 PWidget (PWidget *parent=nullptr)
 
void setClientModel (ClientModel *model)
 
void setWalletModel (WalletModel *model)
 
PIVXGUIgetWindow ()
 
void run (int type) override
 
void onError (QString error, int type) override
 
void inform (const QString &message)
 
void emitMessage (const QString &title, const QString &message, unsigned int style, bool *ret=nullptr)
 
QString translate (const char *msg) override
 

Protected Slots

void changeTheme (bool isLightTheme, QString &theme) override
 
- Protected Slots inherited from PWidget
virtual void changeTheme (bool isLightTheme, QString &theme)
 
void onChangeTheme (bool isLightTheme, QString &theme)
 

Protected Member Functions

virtual bool eventFilter (QObject *obj, QEvent *event) override
 
- Protected Member Functions inherited from PWidget
virtual void loadWalletModel ()
 
void showHideOp (bool show)
 
bool execute (int type, std::unique_ptr< WalletModel::UnlockContext > pctx=nullptr)
 
void warn (const QString &title, const QString &message)
 
bool ask (const QString &title, const QString &message)
 
void showDialog (QDialog *dialog, int xDiv=3, int yDiv=5)
 

Private Slots

void on_lineEdit_returnPressed ()
 

Private Member Functions

void startExecutor ()
 

Private Attributes

Ui::SettingsConsoleWidget * ui
 
QStringList history
 
int historyPtr
 
RPCTimerInterfacerpcTimerInterface
 
QCompleter * autoCompleter
 

Additional Inherited Members

- Protected Attributes inherited from PWidget
PIVXGUIwindow = nullptr
 
ClientModelclientModel = nullptr
 
WalletModelwalletModel = nullptr
 

Detailed Description

Definition at line 26 of file consolewidget.h.

Constructor & Destructor Documentation

◆ SettingsConsoleWidget()

SettingsConsoleWidget::SettingsConsoleWidget ( PIVXGUI _window,
QWidget *  parent = nullptr 
)
explicit

Definition at line 50 of file consolewidget.cpp.

Here is the call graph for this function:

◆ ~SettingsConsoleWidget()

SettingsConsoleWidget::~SettingsConsoleWidget ( )

Definition at line 104 of file consolewidget.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ browseHistory()

void SettingsConsoleWidget::browseHistory ( int  offset)

Go forward or back in history.

Definition at line 294 of file consolewidget.cpp.

Here is the caller graph for this function:

◆ changeTheme

void SettingsConsoleWidget::changeTheme ( bool  isLightTheme,
QString &  theme 
)
overrideprotectedslot
Todo:
: Remove fixed font-size
Todo:
: Remove fixed font-size

Definition at line 338 of file consolewidget.cpp.

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

◆ clear

void SettingsConsoleWidget::clear ( bool  clearHistory = true)
slot

Definition at line 195 of file consolewidget.cpp.

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

◆ cmdCommandRequest

void SettingsConsoleWidget::cmdCommandRequest ( const QString &  command)
signal
Here is the caller graph for this function:

◆ eventFilter()

bool SettingsConsoleWidget::eventFilter ( QObject *  obj,
QEvent *  event 
)
overrideprotectedvirtual

Definition at line 114 of file consolewidget.cpp.

Here is the call graph for this function:

◆ loadClientModel()

void SettingsConsoleWidget::loadClientModel ( )
overridevirtual

Reimplemented from PWidget.

Definition at line 166 of file consolewidget.cpp.

Here is the call graph for this function:

◆ messageInternal()

void SettingsConsoleWidget::messageInternal ( int  category,
const QString &  message,
bool  html = false 
)

Definition at line 233 of file consolewidget.cpp.

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

◆ on_lineEdit_returnPressed

void SettingsConsoleWidget::on_lineEdit_returnPressed ( )
privateslot

Definition at line 264 of file consolewidget.cpp.

◆ onCommandsClicked()

void SettingsConsoleWidget::onCommandsClicked ( )

Definition at line 363 of file consolewidget.cpp.

◆ response

void SettingsConsoleWidget::response ( int  category,
const QString &  message 
)
inlineslot

Definition at line 39 of file consolewidget.h.

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

◆ scrollToEnd()

void SettingsConsoleWidget::scrollToEnd ( )

Scroll console view to end.

Definition at line 331 of file consolewidget.cpp.

◆ showEvent()

void SettingsConsoleWidget::showEvent ( QShowEvent *  event)
override

Definition at line 190 of file consolewidget.cpp.

◆ startExecutor()

void SettingsConsoleWidget::startExecutor ( )
private

Definition at line 307 of file consolewidget.cpp.

Here is the call graph for this function:

◆ stopExecutor

void SettingsConsoleWidget::stopExecutor ( )
signal
Here is the caller graph for this function:

Member Data Documentation

◆ autoCompleter

QCompleter* SettingsConsoleWidget::autoCompleter
private

Definition at line 64 of file consolewidget.h.

◆ history

QStringList SettingsConsoleWidget::history
private

Definition at line 61 of file consolewidget.h.

◆ historyPtr

int SettingsConsoleWidget::historyPtr
private

Definition at line 62 of file consolewidget.h.

◆ rpcTimerInterface

RPCTimerInterface* SettingsConsoleWidget::rpcTimerInterface
private

Definition at line 63 of file consolewidget.h.

◆ ui

Ui::SettingsConsoleWidget* SettingsConsoleWidget::ui
private

Definition at line 59 of file consolewidget.h.


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