From 9e30148c63c854bc22f2a6e5d284d8c4ab09e5c3 Mon Sep 17 00:00:00 2001 From: defnax Date: Wed, 21 Nov 2012 15:46:08 +0000 Subject: [PATCH] Added Header Images and Text for Albums Dialogs Enabled always "Create Album" functionality, not only when own Album is selected. git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-gxs-b1@5866 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- .../src/gui/PhotoShare/AlbumCreateDialog.ui | 19 +++++- .../src/gui/PhotoShare/AlbumDialog.cpp | 3 + .../src/gui/PhotoShare/AlbumDialog.ui | 56 +++++++++++++----- .../src/gui/PhotoShare/PhotoShare.cpp | 4 +- .../src/gui/PhotoShare/PhotoShare.ui | 24 +++++--- .../src/gui/PhotoShare/Photo_images.qrc | 2 + .../src/gui/PhotoShare/images/album_64.png | Bin 0 -> 4596 bytes 7 files changed, 82 insertions(+), 26 deletions(-) create mode 100644 retroshare-gui/src/gui/PhotoShare/images/album_64.png diff --git a/retroshare-gui/src/gui/PhotoShare/AlbumCreateDialog.ui b/retroshare-gui/src/gui/PhotoShare/AlbumCreateDialog.ui index 68b88a61b..978b6e4d1 100644 --- a/retroshare-gui/src/gui/PhotoShare/AlbumCreateDialog.ui +++ b/retroshare-gui/src/gui/PhotoShare/AlbumCreateDialog.ui @@ -350,5 +350,22 @@ border-radius: 10px; - + + + buttonBox + rejected() + AlbumCreateDialog + close() + + + 398 + 466 + + + 264 + 243 + + + + diff --git a/retroshare-gui/src/gui/PhotoShare/AlbumDialog.cpp b/retroshare-gui/src/gui/PhotoShare/AlbumDialog.cpp index 4d9234ee8..fefe8b261 100644 --- a/retroshare-gui/src/gui/PhotoShare/AlbumDialog.cpp +++ b/retroshare-gui/src/gui/PhotoShare/AlbumDialog.cpp @@ -9,6 +9,9 @@ AlbumDialog::AlbumDialog(const RsPhotoAlbum& album, TokenQueue* photoQueue, RsPh ui(new Ui::AlbumDialog), mRsPhoto(rs_Photo), mPhotoQueue(photoQueue), mAlbum(album), mPhotoSelected(NULL) { ui->setupUi(this); + + ui->headerFrame->setHeaderImage(QPixmap(":/images/kview_64.png")); + ui->headerFrame->setHeaderText(tr("Album")); connect(ui->pushButton_PublishPhotos, SIGNAL(clicked()), this, SLOT(updateAlbumPhotos())); connect(ui->pushButton_DeletePhoto, SIGNAL(clicked()), this, SLOT(deletePhoto())); diff --git a/retroshare-gui/src/gui/PhotoShare/AlbumDialog.ui b/retroshare-gui/src/gui/PhotoShare/AlbumDialog.ui index 0acc5793d..c0b45cb68 100644 --- a/retroshare-gui/src/gui/PhotoShare/AlbumDialog.ui +++ b/retroshare-gui/src/gui/PhotoShare/AlbumDialog.ui @@ -27,16 +27,6 @@ 0 - - - - QFrame::StyledPanel - - - QFrame::Raised - - - @@ -310,7 +300,7 @@ p, li { white-space: pre-wrap; } 0 0 625 - 103 + 112 @@ -360,6 +350,13 @@ p, li { white-space: pre-wrap; } + + + + QDialogButtonBox::Cancel + + + @@ -372,9 +369,17 @@ p, li { white-space: pre-wrap; } + + + + QFrame::StyledPanel + + + QFrame::Raised + + + - frame - headerFrame @@ -383,9 +388,32 @@ p, li { white-space: pre-wrap; }
gui/PhotoShare/PhotoDrop.h
1
+ + HeaderFrame + QFrame +
gui/common/headerframe.h
+ 1 +
- + + + buttonBox + rejected() + AlbumDialog + close() + + + 481 + 413 + + + 324 + 217 + + + + diff --git a/retroshare-gui/src/gui/PhotoShare/PhotoShare.cpp b/retroshare-gui/src/gui/PhotoShare/PhotoShare.cpp index b2ea8a63a..dcef37533 100644 --- a/retroshare-gui/src/gui/PhotoShare/PhotoShare.cpp +++ b/retroshare-gui/src/gui/PhotoShare/PhotoShare.cpp @@ -331,7 +331,7 @@ void PhotoShare::updateAlbums() ui.toolButton_subscribe->setEnabled(true); ui.toolButton_subscribe->setText("Unsubscribe From Album"); ui.toolButton_subscribe->setIcon(QIcon(":/images/album_unsubscribe.png")); - ui.toolButton_NewAlbum->setEnabled(false); + //ui.toolButton_NewAlbum->setEnabled(false); ui.toolButton_SlideShow->setEnabled(true); while(sit.hasNext()){ @@ -349,7 +349,7 @@ void PhotoShare::updateAlbums() ui.toolButton_subscribe->setEnabled(true); ui.toolButton_subscribe->setText("Subscribe To Album"); ui.toolButton_subscribe->setIcon(QIcon(":/images/album_subscribe.png")); - ui.toolButton_NewAlbum->setEnabled(false); + //ui.toolButton_NewAlbum->setEnabled(false); ui.toolButton_SlideShow->setEnabled(false); while(sit.hasNext()){ diff --git a/retroshare-gui/src/gui/PhotoShare/PhotoShare.ui b/retroshare-gui/src/gui/PhotoShare/PhotoShare.ui index 0662f0f7e..ba24bf785 100644 --- a/retroshare-gui/src/gui/PhotoShare/PhotoShare.ui +++ b/retroshare-gui/src/gui/PhotoShare/PhotoShare.ui @@ -206,20 +206,13 @@ 0 0 804 - 230 + 225 QWidget#scrollAreaWidgetContents{border: none;} - - - - - - - @@ -249,7 +242,7 @@ 0 0 804 - 230 + 224 @@ -287,6 +280,19 @@ View Photo + + + :/images/kview_24.png:/images/kview_24.png + + + + 24 + 24 + + + + Qt::ToolButtonTextBesideIcon + diff --git a/retroshare-gui/src/gui/PhotoShare/Photo_images.qrc b/retroshare-gui/src/gui/PhotoShare/Photo_images.qrc index 5851b35e0..bf435030e 100644 --- a/retroshare-gui/src/gui/PhotoShare/Photo_images.qrc +++ b/retroshare-gui/src/gui/PhotoShare/Photo_images.qrc @@ -2,6 +2,8 @@ images/kuickshow.png images/kview_24.png + images/kview_64.png + images/album_64.png images/album_subscribe.png images/album_unsubscribe.png images/album_create_64.png diff --git a/retroshare-gui/src/gui/PhotoShare/images/album_64.png b/retroshare-gui/src/gui/PhotoShare/images/album_64.png new file mode 100644 index 0000000000000000000000000000000000000000..12207ba89f3096827cdb39debbc65188b348374f GIT binary patch literal 4596 zcmV5+1<85pkReOzcdYcw##<9*<}7%(SQX>Aro}y0sr3YP~(TdjdibkvBj=-%P$#m z!2^A}66rw(h{AdCxU+9}2E8{p-?`qc*k7=_C0;U|fd z${wr<5etP%qyv;9LKOr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