Add initial UI for entry editing.

This commit is contained in:
Felix Geyer 2010-10-06 19:40:50 +02:00
parent e3da80fcc6
commit 0c91be8eac
10 changed files with 334 additions and 10 deletions

View file

@ -18,20 +18,28 @@
#ifndef KEEPASSX_DATABASEWIDGET_H
#define KEEPASSX_DATABASEWIDGET_H
#include <QtGui/QWidget>
#include <QtGui/QStackedWidget>
class Database;
class EditEntryWidget;
class Entry;
class EntryView;
class GroupView;
class DatabaseWidget : public QWidget
class DatabaseWidget : public QStackedWidget
{
Q_OBJECT
public:
explicit DatabaseWidget(Database* db, QWidget* parent = 0);
private Q_SLOTS:
void switchToView();
void switchToEdit(Entry* entry);
private:
QWidget* m_mainWidget;
EditEntryWidget* m_editWidget;
GroupView* m_groupView;
EntryView* m_entryView;
};