--- a/contactengine/mainwindow.h Mon Aug 16 15:57:18 2010 -0700
+++ b/contactengine/mainwindow.h Wed Aug 18 16:39:30 2010 -0700
@@ -3,6 +3,7 @@
#include <QMainWindow>
#include "contactsengine.h"
+#include "detailsgv.h"
namespace Ui {
class MainWindow;
@@ -13,6 +14,10 @@
Q_OBJECT
public:
+ // this enum is used as in index for the QStackedWidget.
+ enum {EListPage = 0, // lists of contacts
+ EDetailsGV}; // presents list of details for a contact based on Graphics View
+
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
void createMenus();
@@ -20,11 +25,15 @@
public slots:
void errorOccurred(QString errMsg);
void displayVersion();
-
+ void displayDetails();
+ void displayList();
private:
+ DetailsGV *details;
+ QAction *detailsAction;
QAction *verAction;
QAction *exitAction;
+
Ui::MainWindow *ui;
ContactsEngine *ce;
};