From 5f73b76be755175c766e709e6965fe4e4b651b6e Mon Sep 17 00:00:00 2001 From: stojce Date: Sun, 2 Mar 2014 14:36:01 +0100 Subject: [PATCH] Share dialog --- interface/src/ui/Snapshot.cpp | 3 + interface/src/ui/SnapshotShareDialog.cpp | 13 ++++ interface/src/ui/SnapshotShareDialog.h | 14 ++++ interface/ui/shareSnapshot.ui | 99 ++++++++++++++++++++++++ snapshotShareDialog.cpp | 9 +++ snapshotShareDialog.h | 14 ++++ 6 files changed, 152 insertions(+) create mode 100644 interface/src/ui/SnapshotShareDialog.cpp create mode 100644 interface/src/ui/SnapshotShareDialog.h create mode 100644 interface/ui/shareSnapshot.ui create mode 100644 snapshotShareDialog.cpp create mode 100644 snapshotShareDialog.h diff --git a/interface/src/ui/Snapshot.cpp b/interface/src/ui/Snapshot.cpp index f0fef33cee..89b0d56a0b 100644 --- a/interface/src/ui/Snapshot.cpp +++ b/interface/src/ui/Snapshot.cpp @@ -9,6 +9,7 @@ #include "Snapshot.h" #include +#include #include #include @@ -41,6 +42,8 @@ void Snapshot::saveSnapshot(QGLWidget* widget, QString username, glm::vec3 locat QString fileName = FileUtils::standardPath(SNAPSHOTS_DIRECTORY); fileName.append(QString(FILENAME_PATH_FORMAT.arg(username, now.toString(DATETIME_FORMAT), formattedLocation))); shot.save(fileName, 0, 100); + + } diff --git a/interface/src/ui/SnapshotShareDialog.cpp b/interface/src/ui/SnapshotShareDialog.cpp new file mode 100644 index 0000000000..76556e0222 --- /dev/null +++ b/interface/src/ui/SnapshotShareDialog.cpp @@ -0,0 +1,13 @@ +// +// snapshotShareDialog.cpp +// hifi +// +// Created by Stojce Slavkovski on 2/16/14. +// +// + +#include "snapshotShareDialog.h" + +#include "ui_shareSnapshot.h" + + diff --git a/interface/src/ui/SnapshotShareDialog.h b/interface/src/ui/SnapshotShareDialog.h new file mode 100644 index 0000000000..77e92216fd --- /dev/null +++ b/interface/src/ui/SnapshotShareDialog.h @@ -0,0 +1,14 @@ +// +// snapshotShareDialog.h +// hifi +// +// Created by Stojce Slavkovski on 2/16/14. +// +// + +#ifndef __hifi__snapshotShareDialog__ +#define __hifi__snapshotShareDialog__ + +#include + +#endif /* defined(__hifi__snapshotShareDialog__) */ diff --git a/interface/ui/shareSnapshot.ui b/interface/ui/shareSnapshot.ui new file mode 100644 index 0000000000..94c1b4220e --- /dev/null +++ b/interface/ui/shareSnapshot.ui @@ -0,0 +1,99 @@ + + + Dialog + + + Qt::NonModal + + + + 0 + 0 + 808 + 577 + + + + PointingHandCursor + + + Share with community + + + background-color: rgb(255, 255, 255); + + + + + -1 + -1 + 681 + 511 + + + + + + + + 0 + 0 + + + + background-color: #000; + + + + + + + + 0 + 0 + + + + Notes about this image + + + + + + + + + + 0 + 0 + + + + + + + + background-color: #333333; + border-width: 0; + border-radius: 9px; + border-radius: 9px; + font-family: Arial; + font-size: 18px; + font-weight: 100; + color: #FFFFFF; + width: 120px; + height: 50px; + + + Share + + + + + + + + + + + diff --git a/snapshotShareDialog.cpp b/snapshotShareDialog.cpp new file mode 100644 index 0000000000..53a445292f --- /dev/null +++ b/snapshotShareDialog.cpp @@ -0,0 +1,9 @@ +// +// snapshotShareDialog.cpp +// hifi +// +// Created by Stojce Slavkovski on 2/16/14. +// +// + +#include "snapshotShareDialog.h" diff --git a/snapshotShareDialog.h b/snapshotShareDialog.h new file mode 100644 index 0000000000..77e92216fd --- /dev/null +++ b/snapshotShareDialog.h @@ -0,0 +1,14 @@ +// +// snapshotShareDialog.h +// hifi +// +// Created by Stojce Slavkovski on 2/16/14. +// +// + +#ifndef __hifi__snapshotShareDialog__ +#define __hifi__snapshotShareDialog__ + +#include + +#endif /* defined(__hifi__snapshotShareDialog__) */