|
QtPass 1.4.0
Multi-platform GUI for pass, the standard unix password manager.
|
The MainWindow class does way too much, not only is it a switchboard, configuration handler and more, it's also the process-manager. More...
#include <mainwindow.h>
Inheritance diagram for MainWindow:
Collaboration diagram for MainWindow:Public Slots | |
| void | deselect () |
| MainWindow::deselect clear the selection, password and copy buffer. | |
| void | messageAvailable (QString message) |
| MainWindow::messageAvailable we have some text/message/search to do. | |
| void | critical (QString, QString) |
| MainWindow::critical critical message popup wrapper. | |
| void | executeWrapperStarted () |
| void | showStatusMessage (QString msg, int timeout=2000) |
| Displays message in status bar. | |
| void | passShowHandler (const QString &) |
| void | passOtpHandler (const QString &) |
| void | onPush () |
| MainWindow::onPush do a git push. | |
| void | on_treeView_clicked (const QModelIndex &index) |
| MainWindow::on_treeView_clicked read the selected password file. | |
| void | startReencryptPath () |
| MainWindow::startReencryptPath disable ui elements and treeview. | |
| void | endReencryptPath () |
| MainWindow::endReencryptPath re-enable ui elements. | |
Signals | |
| void | passShowHandlerFinished (QString output) |
| void | passGitInitNeeded () |
| void | generateGPGKeyPair (QString batch) |
Public Member Functions | |
| MainWindow (const QString &searchText=QString(), QWidget *parent=nullptr) | |
| MainWindow::MainWindow handles all of the main functionality and also the main window. | |
| ~MainWindow () | |
| void | restoreWindow () |
| void | generateKeyPair (QString, QDialog *) |
| MainWindow::generateKeyPair internal gpg keypair generator . . | |
| void | userDialog (QString="") |
| MainWindow::userDialog see MainWindow::onUsers() | |
| void | config () |
| MainWindow::config pops up the configuration screen and handles all inter-window communication. | |
| void | setUiElementsEnabled (bool state) |
| MainWindow::setUiElementsEnabled enable or disable the relevant UI elements. | |
| void | flashText (const QString &text, const bool isError, const bool isHtml=false) |
| const QModelIndex | getCurrentTreeViewIndex () |
| QDialog * | getKeygenDialog () |
| void | cleanKeygenDialog () |
Protected Member Functions | |
| void | closeEvent (QCloseEvent *event) |
| MainWindow::closeEvent hide or quit. | |
| void | keyPressEvent (QKeyEvent *event) |
| MainWindow::keyPressEvent did anyone press return, enter or escape? | |
| void | changeEvent (QEvent *event) |
| MainWindow::changeEvent sets focus to the search box. | |
| bool | eventFilter (QObject *obj, QEvent *event) |
| MainWindow::eventFilter filter out some events and focus the treeview. | |
The MainWindow class does way too much, not only is it a switchboard, configuration handler and more, it's also the process-manager.
This class could really do with an overhaul.
Definition at line 37 of file mainwindow.h.
|
explicit |
MainWindow::MainWindow handles all of the main functionality and also the main window.
| searchText | for searching from cli |
| parent | pointer |
Definition at line 36 of file mainwindow.cpp.
Here is the call graph for this function:| MainWindow::~MainWindow | ( | ) |
Definition at line 128 of file mainwindow.cpp.
|
protected |
MainWindow::changeEvent sets focus to the search box.
| event |
Definition at line 145 of file mainwindow.cpp.
| void MainWindow::cleanKeygenDialog | ( | ) |
Definition at line 205 of file mainwindow.cpp.
|
protected |
MainWindow::closeEvent hide or quit.
| event |
Definition at line 846 of file mainwindow.cpp.
Here is the call graph for this function:| void MainWindow::config | ( | ) |
MainWindow::config pops up the configuration screen and handles all inter-window communication.
Definition at line 230 of file mainwindow.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
slot |
MainWindow::critical critical message popup wrapper.
| title | |
| msg |
Definition at line 1228 of file mainwindow.cpp.
|
slot |
MainWindow::deselect clear the selection, password and copy buffer.
Definition at line 366 of file mainwindow.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
slot |
MainWindow::endReencryptPath re-enable ui elements.
Definition at line 1195 of file mainwindow.cpp.
Here is the call graph for this function:
|
protected |
MainWindow::eventFilter filter out some events and focus the treeview.
| obj | |
| event |
Definition at line 871 of file mainwindow.cpp.
|
slot |
| void MainWindow::flashText | ( | const QString & | text, |
| const bool | isError, | ||
| const bool | isHtml = false |
||
| ) |
Definition at line 210 of file mainwindow.cpp.
|
signal |
Here is the caller graph for this function:| void MainWindow::generateKeyPair | ( | QString | batch, |
| QDialog * | keygenWindow | ||
| ) |
MainWindow::generateKeyPair internal gpg keypair generator . .
| batch | |
| keygenWindow |
Definition at line 753 of file mainwindow.cpp.
Here is the caller graph for this function:| const QModelIndex MainWindow::getCurrentTreeViewIndex | ( | ) |
Definition at line 201 of file mainwindow.cpp.
|
inline |
Definition at line 56 of file mainwindow.h.
|
protected |
MainWindow::keyPressEvent did anyone press return, enter or escape?
| event |
Definition at line 885 of file mainwindow.cpp.
Here is the call graph for this function:
|
slot |
MainWindow::messageAvailable we have some text/message/search to do.
| message |
Definition at line 736 of file mainwindow.cpp.
Here is the caller graph for this function:
|
slot |
MainWindow::on_treeView_clicked read the selected password file.
| index |
Definition at line 332 of file mainwindow.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
slot |
MainWindow::onPush do a git push.
Definition at line 302 of file mainwindow.cpp.
Here is the call graph for this function:
|
signal |
Here is the caller graph for this function:
|
slot |
|
slot |
|
signal |
Here is the caller graph for this function:| void MainWindow::restoreWindow | ( | ) |
| void MainWindow::setUiElementsEnabled | ( | bool | state | ) |
MainWindow::setUiElementsEnabled enable or disable the relevant UI elements.
| state |
Definition at line 462 of file mainwindow.cpp.
Here is the caller graph for this function:
|
slot |
Displays message in status bar.
| msg | text to be displayed |
| timeout | time for which msg shall be visible |
Definition at line 1180 of file mainwindow.cpp.
Here is the caller graph for this function:
|
slot |
MainWindow::startReencryptPath disable ui elements and treeview.
Definition at line 1187 of file mainwindow.cpp.
Here is the call graph for this function:| void MainWindow::userDialog | ( | QString | dir = "" | ) |
MainWindow::userDialog see MainWindow::onUsers()
| dir | folder to edit users for. |
Definition at line 709 of file mainwindow.cpp.
Here is the caller graph for this function: