QtPass  1.2.3
Multi-platform GUI for pass, the standard unix password manager.
Public Slots | Public Member Functions | Protected Member Functions | List of all members
MainWindow Class Reference

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. More...
 

Public Member Functions

 MainWindow (const QString &searchText=QString(), QWidget *parent=nullptr)
 MainWindow::MainWindow handles all of the main functionality and also the main window. More...
 
 ~MainWindow ()
 MainWindow::~MainWindow destroy! More...
 
bool checkConfig ()
 MainWindow::checkConfig make sure we are ready to go as soon as possible. More...
 
QStringList getSecretKeys ()
 MainWindow::getSecretKeys get list of secret/private keys. More...
 
void generateKeyPair (QString, QDialog *)
 MainWindow::generateKeyPair internal gpg keypair generator . . More...
 
void userDialog (QString="")
 MainWindow::userDialog see MainWindow::onUsers() More...
 
void config ()
 MainWindow::config pops up the configuration screen and handles all inter-window communication. More...
 
void executePassGitInit ()
 MainWindow::executePassGitInit git init wrapper. More...
 

Protected Member Functions

void closeEvent (QCloseEvent *event)
 MainWindow::closeEvent hide or quit. More...
 
void keyPressEvent (QKeyEvent *event)
 MainWindow::keyPressEvent did anyone press return, enter or escape? More...
 
void changeEvent (QEvent *event)
 MainWindow::changeEvent sets focus to the search box. More...
 
bool eventFilter (QObject *obj, QEvent *event)
 MainWindow::eventFilter filter out some events and focus the treeview. More...
 

Detailed Description

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 38 of file mainwindow.h.

Constructor & Destructor Documentation

◆ MainWindow()

MainWindow::MainWindow ( const QString &  searchText = QString(),
QWidget *  parent = nullptr 
)
explicit

MainWindow::MainWindow handles all of the main functionality and also the main window.

Parameters
parent

Definition at line 38 of file mainwindow.cpp.

+ Here is the call graph for this function:

◆ ~MainWindow()

MainWindow::~MainWindow ( )

MainWindow::~MainWindow destroy!

Definition at line 153 of file mainwindow.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ changeEvent()

void MainWindow::changeEvent ( QEvent *  event)
protected

MainWindow::changeEvent sets focus to the search box.

Parameters
event

Definition at line 170 of file mainwindow.cpp.

◆ checkConfig()

bool MainWindow::checkConfig ( )

MainWindow::checkConfig make sure we are ready to go as soon as possible.

Definition at line 280 of file mainwindow.cpp.

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

◆ closeEvent()

void MainWindow::closeEvent ( QCloseEvent *  event)
protected

MainWindow::closeEvent hide or quit.

Parameters
event

Definition at line 1138 of file mainwindow.cpp.

+ Here is the call graph for this function:

◆ config()

void MainWindow::config ( )

MainWindow::config pops up the configuration screen and handles all inter-window communication.

Definition at line 392 of file mainwindow.cpp.

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

◆ deselect

void MainWindow::deselect ( )
slot

MainWindow::deselect clear the selection, password and copy buffer.

Definition at line 514 of file mainwindow.cpp.

+ Here is the caller graph for this function:

◆ eventFilter()

bool MainWindow::eventFilter ( QObject *  obj,
QEvent *  event 
)
protected

MainWindow::eventFilter filter out some events and focus the treeview.

Parameters
obj
event
Returns

Definition at line 1164 of file mainwindow.cpp.

◆ executePassGitInit()

void MainWindow::executePassGitInit ( )

MainWindow::executePassGitInit git init wrapper.

Definition at line 524 of file mainwindow.cpp.

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

◆ generateKeyPair()

void MainWindow::generateKeyPair ( QString  batch,
QDialog *  keygenWindow 
)

MainWindow::generateKeyPair internal gpg keypair generator . .

Parameters
batch
keygenWindow

Definition at line 1059 of file mainwindow.cpp.

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

◆ getSecretKeys()

QStringList MainWindow::getSecretKeys ( )

MainWindow::getSecretKeys get list of secret/private keys.

Returns
QStringList keys

Definition at line 1041 of file mainwindow.cpp.

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

◆ keyPressEvent()

void MainWindow::keyPressEvent ( QKeyEvent *  event)
protected

MainWindow::keyPressEvent did anyone press return, enter or escape?

Parameters
event

Definition at line 1178 of file mainwindow.cpp.

◆ userDialog()

void MainWindow::userDialog ( QString  dir = "")

MainWindow::userDialog see MainWindow::onUsers()

Parameters
dirfolder to edit users for.

Definition at line 957 of file mainwindow.cpp.

+ Here is the caller graph for this function:

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