Added the photo viewer application to the application module
[photoenhancer] / src / app / viewer / photoviewer.cpp
diff --git a/src/app/viewer/photoviewer.cpp b/src/app/viewer/photoviewer.cpp
new file mode 100644 (file)
index 0000000..307b37a
--- /dev/null
@@ -0,0 +1,18 @@
+#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]);
+}
+