Improved Comments

This commit is contained in:
Aslan2142 2020-08-23 03:34:00 +02:00
parent 7de7a8ef8a
commit 512445c47c
6 changed files with 70 additions and 45 deletions

View file

@ -19,27 +19,27 @@ class MainWindow : public QMainWindow
public:
explicit MainWindow(QString version, QWidget *parent = nullptr);
~MainWindow() override;
void check_database();
void check_database(); //Shows dialog to make a new database if it doesn't exist
protected:
passman password_manager;
bool saved = true;
int password_length = 20;
void closeEvent(QCloseEvent *event) override;
passman password_manager; //Password manager object
bool saved = true; //Indicates if all the database changes has been saved
int password_length = 20; //Used by the password generator
void closeEvent(QCloseEvent *event) override; //Executes when user tries to close the app
protected slots:
void decrypt_database();
void backup_database();
void save_database();
void add_entry();
void remove_entry();
void generate_password();
void search(const QString &input);
void decrypt_database(); //Executes when user clicks on decrypt database button
void backup_database(); //Executes when user clicks on backup database button
void save_database(); //Executes when user clicks on save database button
void add_entry(); //Executes when user clicks on add entry button
void remove_entry(); //Executes when user clicks on remove entry button
void generate_password(); //Executes when user clicks on generate password button
void search(const QString &input); //Executes when user changes
private slots:
void on_spinBoxPasswordLength_valueChanged(int arg1);
void on_tableWidgetCredentials_itemChanged();
void on_tableWidgetCredentials_itemSelectionChanged();
void on_spinBoxPasswordLength_valueChanged(int arg1); //Executes when password length spinbox has been changed
void on_tableWidgetCredentials_itemChanged(); //Executes when database entry has been changed
void on_tableWidgetCredentials_itemSelectionChanged(); //Executes when database entry selection has been changed
private:
Ui::MainWindow *ui;