Optimized layout of the SubFileItem.

Show the cancel button only when downloading or when used in CreateChannelMsg.
Hide empty message text.
Fixed german language.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4402 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2011-07-06 23:46:16 +00:00
parent a0e6bf7b2a
commit c62f642706
8 changed files with 318 additions and 369 deletions

View file

@ -26,7 +26,8 @@
#include <stdint.h>
const uint32_t SFI_MASK_STATE = 0x000f;
const uint32_t SFI_MASK_TYPE = 0x00f0;
const uint32_t SFI_MASK_FT = 0x0f00;
//const uint32_t SFI_MASK_FT = 0x0f00;
const uint32_t SFI_MASK_FLAG = 0xf000;
const uint32_t SFI_STATE_ERROR = 0x0001;
const uint32_t SFI_STATE_EXTRA = 0x0002;
@ -38,6 +39,8 @@ const uint32_t SFI_STATE_UPLOAD = 0x0006;
const uint32_t SFI_TYPE_CHANNEL = 0x0010;
const uint32_t SFI_TYPE_ATTACH = 0x0020;
const uint32_t SFI_FLAG_CREATE = 0x1000;
//! This create a gui widget that allows users to access files shared by user
/*!
@ -88,7 +91,6 @@ private:
void Setup();
std::string mPath;
std::string mFileHash;
std::string mFileName;
@ -97,17 +99,15 @@ private:
uint32_t mMode;
uint32_t mType;
uint32_t mFlag;
uint64_t mDivisor;
/* for display purposes */
float amountDone;
signals:
void fileFinished(SubFileItem * subFileItem);
void fileFinished(SubFileItem * subFileItem);
};
#endif