mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-08-08 14:32:39 -04:00
Implement the GUI for editing and creating groups.
This commit is contained in:
parent
bce46c5ece
commit
019bcd380e
13 changed files with 307 additions and 14 deletions
|
@ -22,8 +22,10 @@
|
|||
|
||||
class Database;
|
||||
class EditEntryWidget;
|
||||
class EditGroupWidget;
|
||||
class Entry;
|
||||
class EntryView;
|
||||
class Group;
|
||||
class GroupView;
|
||||
|
||||
class DatabaseWidget : public QStackedWidget
|
||||
|
@ -32,16 +34,27 @@ class DatabaseWidget : public QStackedWidget
|
|||
|
||||
public:
|
||||
explicit DatabaseWidget(Database* db, QWidget* parent = 0);
|
||||
GroupView* groupView();
|
||||
EntryView* entryView();
|
||||
|
||||
public Q_SLOTS:
|
||||
void createGroup();
|
||||
void switchToEntryEdit();
|
||||
void switchToGroupEdit();
|
||||
|
||||
private Q_SLOTS:
|
||||
void switchToView();
|
||||
void switchToEdit(Entry* entry);
|
||||
void switchToView(bool accepted);
|
||||
void switchToEntryEdit(Entry* entry);
|
||||
void switchToGroupEdit(Group* entry, bool create);
|
||||
|
||||
private:
|
||||
QWidget* m_mainWidget;
|
||||
EditEntryWidget* m_editWidget;
|
||||
EditEntryWidget* m_editEntryWidget;
|
||||
EditGroupWidget* m_editGroupWidget;
|
||||
GroupView* m_groupView;
|
||||
EntryView* m_entryView;
|
||||
Group* m_newGroup;
|
||||
Group* m_newGroupParent;
|
||||
};
|
||||
|
||||
#endif // KEEPASSX_DATABASEWIDGET_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue