|
QtPass 1.6.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>
Public Slots | |
| void | deselect () |
| MainWindow::deselect clear the selection, password and copy buffer. | |
| void | messageAvailable (const QString &message) |
| MainWindow::messageAvailable we have some text/message/search to do. | |
| void | critical (const QString &, const QString &) |
| MainWindow::critical critical message popup wrapper. | |
| void | executeWrapperStarted () |
| void | showStatusMessage (const 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 (const QString &output) |
| void | passGitInitNeeded () |
| void | generateGPGKeyPair (const 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 () override | |
| void | restoreWindow () |
| void | generateKeyPair (const QString &, QDialog *) |
| MainWindow::generateKeyPair internal gpg keypair generator . . | |
| void | userDialog (const QString &="") |
| MainWindow::userDialog see MainWindow::onUsers(). | |
| void | config () |
| 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) |
| auto | getCurrentTreeViewIndex () -> QModelIndex |
| auto | getKeygenDialog () -> QDialog * |
| void | cleanKeygenDialog () |
Protected Member Functions | |
| void | closeEvent (QCloseEvent *event) override |
| MainWindow::closeEvent hide or quit. | |
| void | keyPressEvent (QKeyEvent *event) override |
| MainWindow::keyPressEvent did anyone press return, enter or escape? | |
| void | changeEvent (QEvent *event) override |
| MainWindow::changeEvent sets focus to the search box. | |
| auto | eventFilter (QObject *obj, QEvent *event) -> bool override |
| 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.
Main application window that orchestrates UI, user interactions, and external process handlers.
Provides the central interface for managing items, folders, passwords, and OTPs; coordinates UI components (toolbars, panels, dialogs, status/tray), selection and navigation in the underlying file/store models, and lifecycle interactions with external handlers (e.g., pass, Git, GPG key generation, OTP). Exposes methods to restore and configure window state, control grouped UI element enablement, display transient messages, and access or reset the key-generation dialog.
This class could really do with an overhaul.
Definition at line 51 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 40 of file mainwindow.cpp.
|
override |
Definition at line 135 of file mainwindow.cpp.
|
overrideprotected |
MainWindow::changeEvent sets focus to the search box.
| event |
Definition at line 152 of file mainwindow.cpp.
| void MainWindow::cleanKeygenDialog | ( | ) |
Definition at line 212 of file mainwindow.cpp.
|
overrideprotected |
MainWindow::closeEvent hide or quit.
| event |
Definition at line 948 of file mainwindow.cpp.
| void MainWindow::config | ( | ) |
Definition at line 286 of file mainwindow.cpp.
|
slot |
MainWindow::critical critical message popup wrapper.
| title | |
| msg |
Definition at line 1360 of file mainwindow.cpp.
|
slot |
MainWindow::deselect clear the selection, password and copy buffer.
Definition at line 408 of file mainwindow.cpp.
|
slot |
MainWindow::endReencryptPath re-enable ui elements.
Definition at line 1326 of file mainwindow.cpp.
|
overrideprotected |
MainWindow::eventFilter filter out some events and focus the treeview.
| obj | |
| event |
Definition at line 973 of file mainwindow.cpp.
|
slot |
| void MainWindow::flashText | ( | const QString & | text, |
| const bool | isError, | ||
| const bool | isHtml = false ) |
|
signal |
| void MainWindow::generateKeyPair | ( | const QString & | batch, |
| QDialog * | keygenWindow ) |
MainWindow::generateKeyPair internal gpg keypair generator . .
| batch | |
| keygenWindow |
Definition at line 837 of file mainwindow.cpp.
| auto MainWindow::getCurrentTreeViewIndex | ( | ) | -> QModelIndex |
Definition at line 208 of file mainwindow.cpp.
|
inline |
Definition at line 70 of file mainwindow.h.
|
overrideprotected |
MainWindow::keyPressEvent did anyone press return, enter or escape?
| event |
Definition at line 987 of file mainwindow.cpp.
|
slot |
MainWindow::messageAvailable we have some text/message/search to do.
| message |
Definition at line 820 of file mainwindow.cpp.
|
slot |
MainWindow::on_treeView_clicked read the selected password file.
| index |
Definition at line 374 of file mainwindow.cpp.
|
slot |
MainWindow::onPush do a git push.
Definition at line 343 of file mainwindow.cpp.
|
signal |
|
slot |
|
slot |
|
signal |
| void MainWindow::restoreWindow | ( | ) |
| void MainWindow::setUiElementsEnabled | ( | bool | state | ) |
MainWindow::setUiElementsEnabled enable or disable the relevant UI elements.
| state |
Definition at line 528 of file mainwindow.cpp.
|
slot |
Displays message in status bar.
| msg | text to be displayed |
| timeout | time for which msg shall be visible |
Definition at line 1311 of file mainwindow.cpp.
|
slot |
MainWindow::startReencryptPath disable ui elements and treeview.
Definition at line 1318 of file mainwindow.cpp.
| void MainWindow::userDialog | ( | const QString & | dir = "" | ) |
MainWindow::userDialog see MainWindow::onUsers().
| dir | folder to edit users for. |
Definition at line 792 of file mainwindow.cpp.