Expand GUI to allow changing the master key.

This commit is contained in:
Felix Geyer 2012-01-13 17:52:37 +01:00
parent 0ad1bf0a70
commit 2612fc8e44
10 changed files with 345 additions and 4 deletions

View file

@ -20,6 +20,7 @@
#include <QtGui/QStackedWidget>
class ChangeMasterKeyWidget;
class Database;
class EditEntryWidget;
class EditGroupWidget;
@ -42,17 +43,21 @@ public Q_SLOTS:
void createGroup();
void switchToEntryEdit();
void switchToGroupEdit();
void switchToMasterKeyChange();
private Q_SLOTS:
void switchToView(bool accepted);
void switchToEntryEdit(Entry* entry);
void switchToEntryEdit(Entry* entry, bool create);
void switchToGroupEdit(Group* entry, bool create);
void updateMasterKey(bool accepted);
private:
Database* m_db;
QWidget* m_mainWidget;
EditEntryWidget* m_editEntryWidget;
EditGroupWidget* m_editGroupWidget;
ChangeMasterKeyWidget* m_changeMasterKeyWidget;
GroupView* m_groupView;
EntryView* m_entryView;
Group* m_newGroup;