QtPass  1.2.0-pre
Multi-platform GUI for pass, the standard unix password manager.
Public Slots | Public Member Functions | Public Attributes | 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 (QWidget *parent=0)
 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...
 
void setApp (SingleApplication *app)
 MainWindow::setApp make sure we know what/who/where we are. More...
 
void setText (QString)
 MainWindow::setText do a search from an external source (eg: commandline) 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::on_usersButton_clicked() 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...
 

Public Attributes

passwordConfiguration pwdConfig
 MainWindow::pwdConfig instance of passwordConfiguration. 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 42 of file mainwindow.h.

Constructor & Destructor Documentation

◆ MainWindow()

MainWindow::MainWindow ( QWidget *  parent = 0)
explicit

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

Parameters
parent

Definition at line 35 of file mainwindow.cpp.

+ Here is the call graph for this function:

◆ ~MainWindow()

MainWindow::~MainWindow ( )

MainWindow::~MainWindow destroy!

Definition at line 108 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 125 of file mainwindow.cpp.

+ Here is the call graph for this function:

◆ checkConfig()

bool MainWindow::checkConfig ( )

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

Definition at line 236 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 1238 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 396 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 609 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 1264 of file mainwindow.cpp.

◆ executePassGitInit()

void MainWindow::executePassGitInit ( )

MainWindow::executePassGitInit git init wrapper.

Definition at line 619 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 1150 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 1132 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 1278 of file mainwindow.cpp.

+ Here is the call graph for this function:

◆ setApp()

void MainWindow::setApp ( SingleApplication app)

MainWindow::setApp make sure we know what/who/where we are.

Parameters
app

Definition at line 1098 of file mainwindow.cpp.

+ Here is the caller graph for this function:

◆ setText()

void MainWindow::setText ( QString  text)

MainWindow::setText do a search from an external source (eg: commandline)

Parameters
text

Definition at line 1126 of file mainwindow.cpp.

+ Here is the caller graph for this function:

◆ userDialog()

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

MainWindow::userDialog see MainWindow::on_usersButton_clicked()

Parameters
dirfolder to edit users for.

Definition at line 1030 of file mainwindow.cpp.

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

Member Data Documentation

◆ pwdConfig

passwordConfiguration MainWindow::pwdConfig

MainWindow::pwdConfig instance of passwordConfiguration.

See also
MainWindow::passwordConfiguration

Definition at line 61 of file mainwindow.h.


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