diff --git a/retroshare-gui/src/gui/images.qrc b/retroshare-gui/src/gui/images.qrc index 3134ad16a..1c8430a3c 100644 --- a/retroshare-gui/src/gui/images.qrc +++ b/retroshare-gui/src/gui/images.qrc @@ -281,6 +281,7 @@ images/newmsg.png images/no_avatar.png images/no_avatar_70.png + images/openimage.png images/pasterslink.png images/package_games1.png images/peerdetails_16x16.png @@ -300,6 +301,13 @@ images/greenled.png images/grayled.png images/yellowled.png + images/rate-1.png + images/rate-2.png + images/rate-3.png + images/rate-4.png + images/rate-5.png + images/rating.png + images/records.png images/records.png images/removefriend16.png images/replymail-pressed.png diff --git a/retroshare-gui/src/gui/images/lphoto.png b/retroshare-gui/src/gui/images/lphoto.png index 415902e2e..c7bb01c11 100644 Binary files a/retroshare-gui/src/gui/images/lphoto.png and b/retroshare-gui/src/gui/images/lphoto.png differ diff --git a/retroshare-gui/src/gui/images/openimage.png b/retroshare-gui/src/gui/images/openimage.png new file mode 100644 index 000000000..d5c263c8b Binary files /dev/null and b/retroshare-gui/src/gui/images/openimage.png differ diff --git a/retroshare-gui/src/gui/images/rate-1.png b/retroshare-gui/src/gui/images/rate-1.png new file mode 100644 index 000000000..b24fcc309 Binary files /dev/null and b/retroshare-gui/src/gui/images/rate-1.png differ diff --git a/retroshare-gui/src/gui/images/rate-2.png b/retroshare-gui/src/gui/images/rate-2.png new file mode 100644 index 000000000..22e0c855d Binary files /dev/null and b/retroshare-gui/src/gui/images/rate-2.png differ diff --git a/retroshare-gui/src/gui/images/rate-3.png b/retroshare-gui/src/gui/images/rate-3.png new file mode 100644 index 000000000..759f1e415 Binary files /dev/null and b/retroshare-gui/src/gui/images/rate-3.png differ diff --git a/retroshare-gui/src/gui/images/rate-4.png b/retroshare-gui/src/gui/images/rate-4.png new file mode 100644 index 000000000..f6fb27ec6 Binary files /dev/null and b/retroshare-gui/src/gui/images/rate-4.png differ diff --git a/retroshare-gui/src/gui/images/rate-5.png b/retroshare-gui/src/gui/images/rate-5.png new file mode 100644 index 000000000..36b95cdbd Binary files /dev/null and b/retroshare-gui/src/gui/images/rate-5.png differ diff --git a/retroshare-gui/src/gui/images/rating.png b/retroshare-gui/src/gui/images/rating.png new file mode 100644 index 000000000..6e47827b5 Binary files /dev/null and b/retroshare-gui/src/gui/images/rating.png differ diff --git a/retroshare-gui/src/gui/unfinished/PhotoDialog.cpp b/retroshare-gui/src/gui/unfinished/PhotoDialog.cpp index f8db869a9..f50242c08 100644 --- a/retroshare-gui/src/gui/unfinished/PhotoDialog.cpp +++ b/retroshare-gui/src/gui/unfinished/PhotoDialog.cpp @@ -157,13 +157,54 @@ void PhotoDialog::photoTreeWidgetCustomPopupMenu( QPoint point ) QMenu contextMnu( this ); QMouseEvent *mevent = new QMouseEvent( QEvent::MouseButtonPress, point, Qt::RightButton, Qt::RightButton, Qt::NoModifier ); + + QAction *openphotoAct = new QAction(QIcon(":/images/openimage.png"), tr( "Open" ), this ); + openphotoAct->setShortcut(Qt::CTRL + Qt::Key_O); + connect( openphotoAct , SIGNAL( triggered(QTreeWidgetItem * , int) ), this, SLOT( showPhoto( QTreeWidgetItem *, int ) ) ); - QAction *rm = new QAction(QIcon(IMAGE_REMOVE), tr( "Remove" ), this ); - connect( rm , SIGNAL( triggered() ), this, SLOT( removePhoto() ) ); + QAction *removephotoAct = new QAction(QIcon(IMAGE_REMOVE), tr( "Remove" ), this ); + removephotoAct->setShortcut(Qt::Key_Delete); + connect( removephotoAct , SIGNAL( triggered() ), this, SLOT( removePhoto() ) ); + + rateExcellenAct = new QAction(QIcon(":/images/rate-5.png"), tr("Excellent"), this); + rateExcellenAct->setShortcut(Qt::CTRL + Qt::Key_5); + connect(rateExcellenAct, SIGNAL(triggered()), this, SLOT(rateExcellent())); + + rateGoodAct = new QAction(QIcon(":/images/rate-4.png"), tr("Good"), this); + rateGoodAct->setShortcut(Qt::CTRL + Qt::Key_4); + connect(rateGoodAct, SIGNAL(triggered()), this, SLOT(rateGood())); + + rateAverageAct = new QAction(QIcon(":/images/rate-3.png"), tr("Average"), this); + rateAverageAct->setShortcut(Qt::CTRL + Qt::Key_3); + connect(rateAverageAct, SIGNAL(triggered()), this, SLOT(rateAvarge())); + + rateBelowAvarageAct = new QAction(QIcon(":/images/rate-2.png"), tr("Below avarage"), this); + rateBelowAvarageAct->setShortcut(Qt::CTRL + Qt::Key_2); + connect(rateBelowAvarageAct, SIGNAL(triggered()), this, SLOT(rateBelowAverage())); + + rateBadAct = new QAction(QIcon(":/images/rate-1.png"), tr("Bad"), this); + rateBadAct->setShortcut(Qt::CTRL + Qt::Key_1); + connect(rateBadAct, SIGNAL(triggered()), this, SLOT(rateBad())); + + rateUnratedAct = new QAction(tr("Unrated"), this); + rateUnratedAct->setShortcut(Qt::CTRL + Qt::Key_0); + connect(rateUnratedAct, SIGNAL(triggered()), this, SLOT(rateUnrated())); + + QMenu *ratingMenu = new QMenu(tr("Rating"), this); + ratingMenu->setIcon(QIcon(":/images/rating.png")); + ratingMenu->addAction(rateExcellenAct); + ratingMenu->addAction(rateGoodAct); + ratingMenu->addAction(rateAverageAct); + ratingMenu->addAction(rateBelowAvarageAct); + ratingMenu->addAction(rateBadAct); + ratingMenu->addAction(rateUnratedAct); contextMnu.clear(); - contextMnu.addAction(rm); - contextMnu.addSeparator(); + contextMnu.addAction(openphotoAct); + contextMnu.addSeparator(); + contextMnu.addMenu( ratingMenu); + contextMnu.addSeparator(); + contextMnu.addAction(removephotoAct); contextMnu.exec( mevent->globalPos() ); } diff --git a/retroshare-gui/src/gui/unfinished/PhotoDialog.h b/retroshare-gui/src/gui/unfinished/PhotoDialog.h index b03e1e919..e8af5dd30 100644 --- a/retroshare-gui/src/gui/unfinished/PhotoDialog.h +++ b/retroshare-gui/src/gui/unfinished/PhotoDialog.h @@ -78,6 +78,13 @@ private: /** Define the popup menus for the Context menu */ QMenu* contextMnu; + + QAction *rateExcellenAct; + QAction *rateGoodAct; + QAction *rateAverageAct; + QAction *rateBelowAvarageAct; + QAction *rateBadAct; + QAction *rateUnratedAct; QTreeWidget *exampletreeWidget; diff --git a/retroshare-gui/src/gui/unfinished/PhotoShow.ui b/retroshare-gui/src/gui/unfinished/PhotoShow.ui index d0d49507d..112a63e4d 100644 --- a/retroshare-gui/src/gui/unfinished/PhotoShow.ui +++ b/retroshare-gui/src/gui/unfinished/PhotoShow.ui @@ -1,41 +1,42 @@ - + + PhotoShow - - + + 0 0 - 591 + 528 421 - - Form + + Photo Show - - - + + + - + - + - - + + Date: - - + + Location: - - + + Comment: @@ -43,84 +44,84 @@ - + - + - + - + - + - - + + Display Size: - + - + 320 x 320 - + 640 x 640 - + Full Size - - + + Play Rate: - + - + 1 Sec - + 2 Sec - + 5 Sec - + 10 Sec - + 20 Sec - + 1 Min @@ -128,10 +129,10 @@ - + Qt::Horizontal - + 40 20 @@ -140,15 +141,15 @@ - - + + Edit Photo Details - - + + Save Photo @@ -156,20 +157,23 @@ - - + + No Photo Selected + + true + - + - + Qt::Horizontal - + 40 20 @@ -178,54 +182,54 @@ - - - Start - - - - - - + + Back - - + + :/images/back.png:/images/back.png - - + + + Start + + + + + + Play - - + + Pause - - + + Forward - - + + :/images/forward.png:/images/forward.png - + Qt::Horizontal - + 40 20 @@ -240,7 +244,7 @@ - +