--- /dev/null
+#include<QApplication>
+#include "photoviewer.h"
+int main(int argc,char **argv)
+{
+ QApplication app(argc,argv);
+ PhotoViewer window;
+ window.resize(600,480);
+ window.show();
+ return app.exec();
+}
--- /dev/null
+#include "photoviewer.h"
+#include <QCoreApplication>
+
+#include "workspace.h"
+PhotoViewer::PhotoViewer(QWidget *parent) :
+ QMainWindow(parent)
+{
+ mWorkspace=new Workspace();
+ setCentralWidget(mWorkspace);
+ processCommandLineArgs();
+
+}
+//temporary implementaion
+void PhotoViewer::processCommandLineArgs()
+{
+ mWorkspace->loadImage(qApp->arguments()[1]);
+}
+
--- /dev/null
+#ifndef PHOTOVIEWER_H
+#define PHOTOVIEWER_H
+
+#include <QMainWindow>
+class Workspace;
+class PhotoViewer : public QMainWindow
+{
+ Q_OBJECT
+public:
+ explicit PhotoViewer(QWidget *parent = 0);
+private:
+ Workspace *mWorkspace;
+ void processCommandLineArgs();
+signals:
+
+public slots:
+
+};
+
+#endif // PHOTOVIEWER_H
--- /dev/null
+######################################################################
+# Automatically generated by qmake (2.01a) Tue Nov 16 21:47:22 2010
+######################################################################
+
+TEMPLATE = app
+TARGET = ../../../bin/photoviewer
+DEPENDPATH +=. ../../core/baseui ../../core/utils
+INCLUDEPATH +=. ../../core/baseui ../../core/utils
+LIBS+=-L../../../libs/ -lPEBaseui \
+ -L../../../libs/ -lPEUtils
+# Input
+SOURCES += main.cpp \
+ photoviewer.cpp
+
+HEADERS += \
+ photoviewer.h