mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-18 03:19:30 -04:00
Fix Some gcc warnings 383 to 208 lines
Left explicit #warning and deprecated. Some lines are wrong indented and produce mal formed code.
This commit is contained in:
parent
74aa55e347
commit
674b6de381
63 changed files with 379 additions and 346 deletions
|
@ -297,13 +297,13 @@ uint32_t RsChatLobbyConnectChallengeItem::serial_size()
|
||||||
}
|
}
|
||||||
uint32_t RsChatLobbyBouncingObject::serialized_size(bool include_signature)
|
uint32_t RsChatLobbyBouncingObject::serialized_size(bool include_signature)
|
||||||
{
|
{
|
||||||
uint32_t s = 0 ; // no header!
|
uint32_t s = 0; // no header!
|
||||||
s += 8 ; // lobby_id
|
s += 8; // lobby_id
|
||||||
s += 8 ; // msg_id
|
s += 8; // msg_id
|
||||||
s += GetTlvStringSize(nick) ; // nick
|
s += GetTlvStringSize(nick); // nick
|
||||||
|
|
||||||
if(include_signature)
|
if (include_signature)
|
||||||
s += signature.TlvSize() ; // signature
|
s += signature.TlvSize(); // signature
|
||||||
|
|
||||||
return s ;
|
return s ;
|
||||||
}
|
}
|
||||||
|
|
|
@ -755,12 +755,12 @@ bool LocalDirectoryStorage::serialiseDirEntry(const EntryIndex& indx,RsTlvBinary
|
||||||
|
|
||||||
// serialise directory subfiles, with info for each of them
|
// serialise directory subfiles, with info for each of them
|
||||||
|
|
||||||
unsigned char *file_section_data = (unsigned char *)rs_malloc(FL_BASE_TMP_SECTION_SIZE);
|
unsigned char *file_section_data = (unsigned char *)rs_malloc(FL_BASE_TMP_SECTION_SIZE) ;
|
||||||
|
|
||||||
if(!file_section_data)
|
if(!file_section_data)
|
||||||
return false ;
|
return false ;
|
||||||
|
|
||||||
uint32_t file_section_size = FL_BASE_TMP_SECTION_SIZE;
|
uint32_t file_section_size = FL_BASE_TMP_SECTION_SIZE ;
|
||||||
|
|
||||||
for(uint32_t i=0;i<dir->subfiles.size();++i)
|
for(uint32_t i=0;i<dir->subfiles.size();++i)
|
||||||
{
|
{
|
||||||
|
@ -865,12 +865,12 @@ bool RemoteDirectoryStorage::deserialiseUpdateDirEntry(const EntryIndex& indx,co
|
||||||
// deserialise directory subfiles, with info for each of them
|
// deserialise directory subfiles, with info for each of them
|
||||||
|
|
||||||
std::vector<InternalFileHierarchyStorage::FileEntry> subfiles_array ;
|
std::vector<InternalFileHierarchyStorage::FileEntry> subfiles_array ;
|
||||||
unsigned char *file_section_data = (unsigned char *)rs_malloc(FL_BASE_TMP_SECTION_SIZE);
|
unsigned char *file_section_data = (unsigned char *)rs_malloc(FL_BASE_TMP_SECTION_SIZE) ;
|
||||||
|
|
||||||
if(!file_section_data)
|
if(!file_section_data)
|
||||||
return false ;
|
return false ;
|
||||||
|
|
||||||
uint32_t file_section_size = FL_BASE_TMP_SECTION_SIZE;
|
uint32_t file_section_size = FL_BASE_TMP_SECTION_SIZE ;
|
||||||
|
|
||||||
for(uint32_t i=0;i<n_subfiles;++i)
|
for(uint32_t i=0;i<n_subfiles;++i)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1397,7 +1397,7 @@ void p3FileDatabase::handleDirSyncResponse(RsFileListsSyncResponseItem *sitem)
|
||||||
if(!item)
|
if(!item)
|
||||||
return ;
|
return ;
|
||||||
|
|
||||||
time_t now = time(NULL) ;
|
time_t now = time(NULL);
|
||||||
|
|
||||||
// check the hash. If anything goes wrong (in the chunking for instance) the hash will not match
|
// check the hash. If anything goes wrong (in the chunking for instance) the hash will not match
|
||||||
|
|
||||||
|
|
|
@ -350,7 +350,7 @@ bool ftExtraList::search(const RsFileHash &hash, FileSearchFlags /*hintflags*
|
||||||
|
|
||||||
// Now setup the file storage flags so that the client can know how to handle permissions
|
// Now setup the file storage flags so that the client can know how to handle permissions
|
||||||
//
|
//
|
||||||
#warning make sure this is right
|
#warning mr-alice: make sure this is right
|
||||||
info.storage_permission_flags = FileStorageFlags(0) ;//DIR_FLAGS_BROWSABLE_OTHERS ;
|
info.storage_permission_flags = FileStorageFlags(0) ;//DIR_FLAGS_BROWSABLE_OTHERS ;
|
||||||
|
|
||||||
if(info.transfer_info_flags & RS_FILE_REQ_ANONYMOUS_ROUTING) info.storage_permission_flags |= DIR_FLAGS_ANONYMOUS_DOWNLOAD ;
|
if(info.transfer_info_flags & RS_FILE_REQ_ANONYMOUS_ROUTING) info.storage_permission_flags |= DIR_FLAGS_ANONYMOUS_DOWNLOAD ;
|
||||||
|
|
|
@ -250,18 +250,19 @@ RsGRouterRoutingInfoItem *RsGRouterSerialiser::deserialise_RsGRouterRoutingInfoI
|
||||||
else
|
else
|
||||||
ok = false ;
|
ok = false ;
|
||||||
|
|
||||||
// receipt item is optional.
|
// Receipt item is optional.
|
||||||
|
|
||||||
|
if (offset < pktsize)
|
||||||
|
{ //
|
||||||
|
item->receipt_item = deserialise_RsGRouterSignedReceiptItem(&((uint8_t*)data)[offset],pktsize - offset);
|
||||||
|
if (item->receipt_item != NULL)
|
||||||
|
offset += item->receipt_item->serial_size();
|
||||||
|
else //
|
||||||
|
ok = false;
|
||||||
|
}
|
||||||
|
else //
|
||||||
|
item->receipt_item = NULL;
|
||||||
|
|
||||||
if(offset < pktsize)
|
|
||||||
{
|
|
||||||
item->receipt_item = deserialise_RsGRouterSignedReceiptItem(&((uint8_t*)data)[offset],pktsize - offset) ;
|
|
||||||
if(item->receipt_item != NULL)
|
|
||||||
offset += item->receipt_item->serial_size() ;
|
|
||||||
else
|
|
||||||
ok = false ;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
item->receipt_item = NULL ;
|
|
||||||
|
|
||||||
|
|
||||||
if (offset != rssize || !ok)
|
if (offset != rssize || !ok)
|
||||||
|
|
|
@ -554,10 +554,10 @@ bool GxsSecurity::encrypt(uint8_t *& out, uint32_t &outlen, const uint8_t *in, u
|
||||||
if(!EVP_SealInit(&ctx, EVP_aes_128_cbc(), &ek, &eklen, iv, &public_key, 1)) return false;
|
if(!EVP_SealInit(&ctx, EVP_aes_128_cbc(), &ek, &eklen, iv, &public_key, 1)) return false;
|
||||||
|
|
||||||
// now assign memory to out accounting for data, and cipher block size, key length, and key length val
|
// now assign memory to out accounting for data, and cipher block size, key length, and key length val
|
||||||
out = (uint8_t*)rs_malloc(inlen + cipher_block_size + size_net_ekl + eklen + EVP_MAX_IV_LENGTH);
|
out = (uint8_t*)rs_malloc(inlen + cipher_block_size + size_net_ekl + eklen + EVP_MAX_IV_LENGTH) ;
|
||||||
|
|
||||||
if(out == NULL)
|
if (out == NULL)
|
||||||
return false ;
|
return false;
|
||||||
|
|
||||||
net_ekl = htonl(eklen);
|
net_ekl = htonl(eklen);
|
||||||
memcpy((unsigned char*)out + out_offset, &net_ekl, size_net_ekl);
|
memcpy((unsigned char*)out + out_offset, &net_ekl, size_net_ekl);
|
||||||
|
|
|
@ -2226,7 +2226,7 @@ void RsGenExchange::processMessageDelete()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#warning TODO: notify for deleted messages
|
#warning csoler: TODO: notify for deleted messages
|
||||||
#ifdef SUSPENDED
|
#ifdef SUSPENDED
|
||||||
std::list<RsGxsGroupId> grpDeleted;
|
std::list<RsGxsGroupId> grpDeleted;
|
||||||
std::map<uint32_t, GrpNote>::iterator mit = toNotify.begin();
|
std::map<uint32_t, GrpNote>::iterator mit = toNotify.begin();
|
||||||
|
@ -2402,7 +2402,7 @@ void RsGenExchange::publishGrps()
|
||||||
{
|
{
|
||||||
RsTemporaryMemory metaData(mdSize);
|
RsTemporaryMemory metaData(mdSize);
|
||||||
serialOk = grp->metaData->serialise(metaData, mdSize,RS_GXS_GRP_META_DATA_CURRENT_API_VERSION);
|
serialOk = grp->metaData->serialise(metaData, mdSize,RS_GXS_GRP_META_DATA_CURRENT_API_VERSION);
|
||||||
#warning TODO: grp->meta should be renamed grp->public_meta !
|
#warning csoler: TODO: grp->meta should be renamed grp->public_meta !
|
||||||
grp->meta.setBinData(metaData, mdSize);
|
grp->meta.setBinData(metaData, mdSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2419,7 +2419,7 @@ void RsGenExchange::publishGrps()
|
||||||
mDataAccess->updateGroupData(grp);
|
mDataAccess->updateGroupData(grp);
|
||||||
else
|
else
|
||||||
mDataAccess->addGroupData(grp);
|
mDataAccess->addGroupData(grp);
|
||||||
#warning this is bad: addGroupData/updateGroupData actially deletes grp. But it may be used below? grp should be a class object and not deleted manually!
|
#warning csoler: this is bad: addGroupData/updateGroupData actially deletes grp. But it may be used below? grp should be a class object and not deleted manually!
|
||||||
|
|
||||||
groups_to_subscribe.push_back(grpId) ;
|
groups_to_subscribe.push_back(grpId) ;
|
||||||
}
|
}
|
||||||
|
|
|
@ -361,8 +361,9 @@ uint32_t RsGxsDataAccess::requestStatus(uint32_t token)
|
||||||
if(mPublicToken.find(token) != mPublicToken.end())
|
if(mPublicToken.find(token) != mPublicToken.end())
|
||||||
return mPublicToken[token];
|
return mPublicToken[token];
|
||||||
}
|
}
|
||||||
if(!checkRequestStatus(token, status, reqtype, anstype, ts))
|
|
||||||
return RsTokenService::GXS_REQUEST_V2_STATUS_FAILED ;
|
if (!checkRequestStatus(token, status, reqtype, anstype, ts))
|
||||||
|
return RsTokenService::GXS_REQUEST_V2_STATUS_FAILED;
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1641,7 +1641,9 @@ void RsGxsNetService::recvNxsItemQueue()
|
||||||
|
|
||||||
default:
|
default:
|
||||||
if(ni->PacketSubType() != RS_PKT_SUBTYPE_NXS_ENCRYPTED_DATA_ITEM)
|
if(ni->PacketSubType() != RS_PKT_SUBTYPE_NXS_ENCRYPTED_DATA_ITEM)
|
||||||
std::cerr << "Unhandled item subtype " << (uint32_t) ni->PacketSubType() << " in RsGxsNetService: " << std::endl; break;
|
{
|
||||||
|
std::cerr << "Unhandled item subtype " << (uint32_t) ni->PacketSubType() << " in RsGxsNetService: " << std::endl ; break ;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
delete item ;
|
delete item ;
|
||||||
}
|
}
|
||||||
|
@ -3291,8 +3293,8 @@ void RsGxsNetService::locked_genSendGrpsTransaction(NxsTransaction* tr)
|
||||||
|
|
||||||
if(!grps.empty())
|
if(!grps.empty())
|
||||||
mDataStore->retrieveNxsGrps(grps, false, false);
|
mDataStore->retrieveNxsGrps(grps, false, false);
|
||||||
else
|
else
|
||||||
return;
|
return;
|
||||||
|
|
||||||
NxsTransaction* newTr = new NxsTransaction();
|
NxsTransaction* newTr = new NxsTransaction();
|
||||||
newTr->mFlag = NxsTransaction::FLAG_STATE_WAITING_CONFIRM;
|
newTr->mFlag = NxsTransaction::FLAG_STATE_WAITING_CONFIRM;
|
||||||
|
@ -3304,7 +3306,7 @@ void RsGxsNetService::locked_genSendGrpsTransaction(NxsTransaction* tr)
|
||||||
RsPeerId peerId = tr->mTransaction->PeerId();
|
RsPeerId peerId = tr->mTransaction->PeerId();
|
||||||
for(;mit != grps.end(); ++mit)
|
for(;mit != grps.end(); ++mit)
|
||||||
{
|
{
|
||||||
#warning Should make sure that no private key information is sneaked in here for the grp
|
#warning csoler: Should make sure that no private key information is sneaked in here for the grp
|
||||||
mit->second->PeerId(peerId); // set so it gets sent to right peer
|
mit->second->PeerId(peerId); // set so it gets sent to right peer
|
||||||
mit->second->transactionNumber = transN;
|
mit->second->transactionNumber = transN;
|
||||||
newTr->mItems.push_back(mit->second);
|
newTr->mItems.push_back(mit->second);
|
||||||
|
|
|
@ -276,14 +276,14 @@ uint32_t PGPKeyParser::read_125Size(unsigned char *& data)
|
||||||
uint8_t b1 = *data ;
|
uint8_t b1 = *data ;
|
||||||
++data ;
|
++data ;
|
||||||
|
|
||||||
if(b1 < 192) //192 Size is coded with One Char. See RFC4880
|
if (b1 < 192) //192 Size is coded with One Char. See RFC4880 https://tools.ietf.org/html/rfc4880#section-4.2.2.1
|
||||||
return b1 ;
|
return b1 ;
|
||||||
|
|
||||||
uint8_t b2 = *data ;
|
uint8_t b2 = *data ;
|
||||||
++data ;
|
++data ;
|
||||||
|
|
||||||
if(b1 < 224)//224 = 0xC0+0x20 Size is coded with Two Chars
|
if (b1 < 224)//224 = 0xC0+0x20 Size is coded with Two Chars
|
||||||
return ((b1-192) << 8) + b2 + 192 ; // see RFC4880
|
return ( (b1-192) << 8 ) + b2 + 192 ; // see RFC4880
|
||||||
|
|
||||||
if(b1 != 0xFF)// Else Coded with 4 Chars but first == 0xFF
|
if(b1 != 0xFF)// Else Coded with 4 Chars but first == 0xFF
|
||||||
throw std::runtime_error("GPG parsing error") ;
|
throw std::runtime_error("GPG parsing error") ;
|
||||||
|
|
|
@ -476,10 +476,10 @@ static int initLib = 0;
|
||||||
|
|
||||||
mOwnCert = new sslcert(x509, mOwnId);
|
mOwnCert = new sslcert(x509, mOwnId);
|
||||||
|
|
||||||
// new locations don't store the name in the cert
|
// New locations don't store the name in the cert.
|
||||||
// if empty, use the external supplied value
|
// If empty, use the external supplied value.
|
||||||
if(mOwnCert->location == "")
|
if (mOwnCert->location == "")
|
||||||
mOwnCert->location = alternative_location_name;
|
mOwnCert->location = alternative_location_name ;
|
||||||
|
|
||||||
std::cerr << "Inited SSL context: " << std::endl;
|
std::cerr << "Inited SSL context: " << std::endl;
|
||||||
std::cerr << " Certificate: " << mOwnId << std::endl;
|
std::cerr << " Certificate: " << mOwnId << std::endl;
|
||||||
|
|
|
@ -175,16 +175,16 @@ void p3ConfigMgr::addConfiguration(std::string file, pqiConfig *conf)
|
||||||
std::cerr << "\tIgnoring new filename " << filename;
|
std::cerr << "\tIgnoring new filename " << filename;
|
||||||
std::cerr << std::endl;
|
std::cerr << std::endl;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// also check that the filename is not already registered for another config
|
// Also check that the filename is not already registered for another config
|
||||||
|
|
||||||
for(std::list<pqiConfig*>::const_iterator it = mConfigs.begin();it!= mConfigs.end();++it)
|
for(std::list<pqiConfig*>::const_iterator it = mConfigs.begin(); it!= mConfigs.end(); ++it)
|
||||||
if( (*it)->filename == filename )
|
if((*it)->filename == filename)
|
||||||
{
|
{
|
||||||
std::cerr << "!!!!!!!!!!! Trying to register a config for file \"" << filename << "\" that is already registered" << std::endl;
|
std::cerr << "!!!!!!!!!! Trying to register a config for file \"" << filename << "\" that is already registered" << std::endl;
|
||||||
std::cerr << "!!!!!!!!!!! Please correct the code !" << std::endl;
|
std::cerr << "!!!!!!!!!! Please correct the code !" << std::endl;
|
||||||
return ;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
conf->setFilename(filename);
|
conf->setFilename(filename);
|
||||||
mConfigs.push_back(conf);
|
mConfigs.push_back(conf);
|
||||||
|
@ -511,9 +511,8 @@ bool p3GeneralConfig::saveList(bool &cleanup, std::list<RsItem *>& savelist)
|
||||||
if (item->tlvkvs.pairs.size() > 0)
|
if (item->tlvkvs.pairs.size() > 0)
|
||||||
{
|
{
|
||||||
savelist.push_back(item);
|
savelist.push_back(item);
|
||||||
}
|
} else
|
||||||
else
|
delete item;
|
||||||
delete item;
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -812,7 +812,7 @@ void p3NetMgrIMPL::netExtCheck()
|
||||||
address_votes[tmpip].n++ ;
|
address_votes[tmpip].n++ ;
|
||||||
|
|
||||||
/* XXX HACK TO FIX */
|
/* XXX HACK TO FIX */
|
||||||
#warning "ALLOWING ExtAddrFinder -> ExtAddrStableOk = true (which it is not normally)"
|
#warning drbob: ALLOWING ExtAddrFinder -> ExtAddrStableOk = true (which it is not normally)
|
||||||
mNetFlags.mExtAddrStableOk = true;
|
mNetFlags.mExtAddrStableOk = true;
|
||||||
|
|
||||||
std::cerr << "ExtAddrFinder reported external address " << sockaddr_storage_iptostring(tmpip) << std::endl;
|
std::cerr << "ExtAddrFinder reported external address " << sockaddr_storage_iptostring(tmpip) << std::endl;
|
||||||
|
|
|
@ -2561,7 +2561,7 @@ bool p3PeerMgrIMPL::removeGroup(const RsNodeGroupId& groupId)
|
||||||
std::cerr << "(EE) cannot remove standard group with ID " << groupId << std::endl;
|
std::cerr << "(EE) cannot remove standard group with ID " << groupId << std::endl;
|
||||||
return false ;
|
return false ;
|
||||||
}
|
}
|
||||||
#warning we need to check that the local group is not used. Otherwise deleting it is going to cause problems!
|
#warning csoler: we need to check that the local group is not used. Otherwise deleting it is going to cause problems!
|
||||||
// else if(!it->second.used_gxs_groups.empty())
|
// else if(!it->second.used_gxs_groups.empty())
|
||||||
// {
|
// {
|
||||||
// std::cerr << "(EE) cannot remove standard group with ID " << groupId << " because it is used in the following groups: " << std::endl;
|
// std::cerr << "(EE) cannot remove standard group with ID " << groupId << " because it is used in the following groups: " << std::endl;
|
||||||
|
@ -2619,8 +2619,8 @@ bool p3PeerMgrIMPL::getGroupInfoList(std::list<RsGroupInfo>& groupInfoList)
|
||||||
{
|
{
|
||||||
RsStackMutex stack(mPeerMtx); /****** STACK LOCK MUTEX *******/
|
RsStackMutex stack(mPeerMtx); /****** STACK LOCK MUTEX *******/
|
||||||
|
|
||||||
for (std::map<RsNodeGroupId,RsGroupInfo> ::const_iterator groupIt = groupList.begin(); groupIt != groupList.end(); ++groupIt)
|
for(std::map<RsNodeGroupId,RsGroupInfo> ::const_iterator groupIt = groupList.begin(); groupIt != groupList.end(); ++groupIt)
|
||||||
groupInfoList.push_back(groupIt->second);
|
groupInfoList.push_back(groupIt->second) ;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -2845,10 +2845,11 @@ bool p3PeerMgrIMPL::removeUnusedLocations()
|
||||||
|
|
||||||
const time_t now = time(NULL);
|
const time_t now = time(NULL);
|
||||||
|
|
||||||
std::list<RsPgpId> pgpList;
|
std::list<RsPgpId> pgpList ;
|
||||||
|
|
||||||
|
if (!rsPeers->getGPGAcceptedList(pgpList))
|
||||||
|
return false ;
|
||||||
|
|
||||||
if(!rsPeers->getGPGAcceptedList(pgpList))
|
|
||||||
return false;
|
|
||||||
{
|
{
|
||||||
RsStackMutex stack(mPeerMtx); /****** STACK LOCK MUTEX *******/
|
RsStackMutex stack(mPeerMtx); /****** STACK LOCK MUTEX *******/
|
||||||
|
|
||||||
|
@ -2881,8 +2882,8 @@ bool p3PeerMgrIMPL::removeUnusedLocations()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for( std::list<RsPeerId>::iterator it = toRemove.begin(); it != toRemove.end(); ++it)
|
for (std::list<RsPeerId>::iterator it = toRemove.begin(); it != toRemove.end(); ++it)
|
||||||
removeFriend(*it, false);
|
removeFriend(*it, false) ;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -143,13 +143,13 @@ public:
|
||||||
ok &= getRawUInt32(data, rssize, &offset, &item->mServiceId);
|
ok &= getRawUInt32(data, rssize, &offset, &item->mServiceId);
|
||||||
ok &= GetTlvString(data, rssize, &offset, TLV_TYPE_STR_NAME, item->mServiceName);
|
ok &= GetTlvString(data, rssize, &offset, TLV_TYPE_STR_NAME, item->mServiceName);
|
||||||
|
|
||||||
uint8_t v ;
|
uint8_t v;
|
||||||
ok &= getRawUInt8(data, rssize, &offset, &v) ;
|
ok &= getRawUInt8(data, rssize, &offset, &v) ;
|
||||||
|
|
||||||
if(v != 0 && v != 1)
|
if (v != 0 && v != 1)
|
||||||
ok = false ;
|
ok = false;
|
||||||
else
|
else
|
||||||
item->mDefaultAllowed = (bool)v;
|
item->mDefaultAllowed = (bool)v ;
|
||||||
|
|
||||||
uint32_t tmp ;
|
uint32_t tmp ;
|
||||||
ok &= getRawUInt32(data, rssize, &offset, &tmp);
|
ok &= getRawUInt32(data, rssize, &offset, &tmp);
|
||||||
|
|
|
@ -578,9 +578,9 @@ int pqiperson::gatherStatistics(std::list<RSTrafficClue>& out_lst,
|
||||||
{
|
{
|
||||||
RS_STACK_MUTEX(mPersonMtx);
|
RS_STACK_MUTEX(mPersonMtx);
|
||||||
|
|
||||||
// get the rate from the active one.
|
// Get the rate from the active one.
|
||||||
if ((!active) || (activepqi == NULL))
|
if( (!active) || (activepqi == NULL) )
|
||||||
return 0;
|
return 0 ;
|
||||||
|
|
||||||
return activepqi->gatherStatistics(out_lst, in_lst);
|
return activepqi->gatherStatistics(out_lst, in_lst);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1624,10 +1624,10 @@ int pqissl::readdata(void *data, int len)
|
||||||
#ifdef PQISSL_DEBUG
|
#ifdef PQISSL_DEBUG
|
||||||
std::cout << "Reading data thread=" << pthread_self() << ", ssl=" << (void*)this << std::endl ;
|
std::cout << "Reading data thread=" << pthread_self() << ", ssl=" << (void*)this << std::endl ;
|
||||||
#endif
|
#endif
|
||||||
// safety check. Apparently this avoids some SIGSEGV.
|
// Safety check. Apparently this avoids some SIGSEGV.
|
||||||
//
|
//
|
||||||
if(ssl_connection == NULL)
|
if (ssl_connection == NULL)
|
||||||
return -1;
|
return -1 ;
|
||||||
|
|
||||||
// There is a do, because packets can be splitted into multiple ssl buffers
|
// There is a do, because packets can be splitted into multiple ssl buffers
|
||||||
// when they are larger than 16384 bytes. Such packets have to be read in
|
// when they are larger than 16384 bytes. Such packets have to be read in
|
||||||
|
|
|
@ -161,20 +161,19 @@ pqistreamer::~pqistreamer()
|
||||||
if (mRsSerialiser)
|
if (mRsSerialiser)
|
||||||
delete mRsSerialiser;
|
delete mRsSerialiser;
|
||||||
|
|
||||||
free_pend_locked();
|
free_pend_locked() ;
|
||||||
|
|
||||||
// clean up incoming.
|
// clean up incoming.
|
||||||
while(!mIncoming.empty())
|
while (!mIncoming.empty())
|
||||||
{
|
{
|
||||||
RsItem *i = mIncoming.front();
|
RsItem *i = mIncoming.front();
|
||||||
mIncoming.pop_front();
|
mIncoming.pop_front() ;
|
||||||
--mIncomingSize ;
|
--mIncomingSize;
|
||||||
delete i;
|
delete i;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (mIncomingSize != 0)
|
||||||
if(mIncomingSize != 0)
|
std::cerr << "(EE) inconsistency after deleting pqistreamer queue. Remaining items: " << mIncomingSize << std::endl ;
|
||||||
std::cerr << "(EE) inconsistency after deleting pqistreamer queue. Remaining items: " << mIncomingSize << std::endl;
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -231,7 +231,7 @@ uint32_t getRawStringSize(const std::string &outStr)
|
||||||
|
|
||||||
bool getRawString(void *data, uint32_t size, uint32_t *offset, std::string &outStr)
|
bool getRawString(void *data, uint32_t size, uint32_t *offset, std::string &outStr)
|
||||||
{
|
{
|
||||||
#warning "I had to change this. It seems like a bug to not clear the string. Should make sure it's not introducing any side effect."
|
#warning Gio: "I had to change this. It seems like a bug to not clear the string. Should make sure it's not introducing any side effect."
|
||||||
outStr.clear();
|
outStr.clear();
|
||||||
|
|
||||||
uint32_t len = 0;
|
uint32_t len = 0;
|
||||||
|
|
|
@ -574,8 +574,8 @@ bool RsGxsRecognSerialiser::serialise(RsItem *i, void *data, uint32_t *pktsi
|
||||||
|
|
||||||
RsItem *RsGxsRecognSerialiser::deserialise(void *data, uint32_t *pktsize)
|
RsItem *RsGxsRecognSerialiser::deserialise(void *data, uint32_t *pktsize)
|
||||||
{
|
{
|
||||||
if(*pktsize < getRsPktBaseSize())
|
if (*pktsize < getRsPktBaseSize())
|
||||||
return NULL;
|
return NULL ;
|
||||||
|
|
||||||
/* get the type and size */
|
/* get the type and size */
|
||||||
uint32_t rstype = getRsItemId(data);
|
uint32_t rstype = getRsItemId(data);
|
||||||
|
|
|
@ -249,8 +249,8 @@ void p3BanList::autoFigureOutBanRanges()
|
||||||
#endif
|
#endif
|
||||||
BanListPeer& peer(mBanRanges[it->first]) ;
|
BanListPeer& peer(mBanRanges[it->first]) ;
|
||||||
|
|
||||||
if(peer.reason == RSBANLIST_REASON_USER)
|
if (peer.reason == RSBANLIST_REASON_USER)
|
||||||
continue ;
|
continue;
|
||||||
|
|
||||||
peer.addr = it->first ;
|
peer.addr = it->first ;
|
||||||
peer.masked_bytes = 1 ;
|
peer.masked_bytes = 1 ;
|
||||||
|
@ -969,10 +969,10 @@ bool p3BanList::addBanEntry(const RsPeerId &peerId, const struct sockaddr_storag
|
||||||
it->second.mLastUpdate = now;
|
it->second.mLastUpdate = now;
|
||||||
updated = true;
|
updated = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(updated)
|
if (updated)
|
||||||
IndicateConfigChanged();
|
IndicateConfigChanged() ;
|
||||||
|
|
||||||
return updated;
|
return updated;
|
||||||
}
|
}
|
||||||
|
@ -1056,12 +1056,12 @@ int p3BanList::condenseBanSources_locked()
|
||||||
|
|
||||||
struct sockaddr_storage bannedaddr;
|
struct sockaddr_storage bannedaddr;
|
||||||
sockaddr_storage_clear(bannedaddr);
|
sockaddr_storage_clear(bannedaddr);
|
||||||
bannedaddr.ss_family = AF_INET ;
|
bannedaddr.ss_family = AF_INET;
|
||||||
sockaddr_storage_copyip(bannedaddr, lit->second.addr);
|
sockaddr_storage_copyip(bannedaddr, lit->second.addr);
|
||||||
sockaddr_storage_setport(bannedaddr, 0);
|
sockaddr_storage_setport(bannedaddr, 0);
|
||||||
|
|
||||||
if(isWhiteListed_locked(bannedaddr))
|
if (isWhiteListed_locked(bannedaddr))
|
||||||
continue ;
|
continue;
|
||||||
|
|
||||||
/* check if it exists in the Set already */
|
/* check if it exists in the Set already */
|
||||||
std::map<struct sockaddr_storage, BanListPeer>::iterator sit;
|
std::map<struct sockaddr_storage, BanListPeer>::iterator sit;
|
||||||
|
|
|
@ -1645,8 +1645,8 @@ void p3MsgService::initRsMIS(RsMsgItem *msg, MsgInfoSummary &mis)
|
||||||
{
|
{
|
||||||
mis.msgflags = 0;
|
mis.msgflags = 0;
|
||||||
|
|
||||||
if (msg->msgFlags & RS_MSG_FLAGS_DISTANT)
|
if(msg->msgFlags & RS_MSG_FLAGS_DISTANT)
|
||||||
mis.msgflags |= RS_MSG_DISTANT;
|
mis.msgflags |= RS_MSG_DISTANT ;
|
||||||
|
|
||||||
if (msg->msgFlags & RS_MSG_FLAGS_SIGNED)
|
if (msg->msgFlags & RS_MSG_FLAGS_SIGNED)
|
||||||
mis.msgflags |= RS_MSG_SIGNED ;
|
mis.msgflags |= RS_MSG_SIGNED ;
|
||||||
|
|
|
@ -284,22 +284,19 @@ RsTurtleRegExpSearchRequestItem::RsTurtleRegExpSearchRequestItem(void *data,uint
|
||||||
uint32_t n =0 ;
|
uint32_t n =0 ;
|
||||||
ok &= getRawUInt32(data,pktsize,&offset,&n) ;
|
ok &= getRawUInt32(data,pktsize,&offset,&n) ;
|
||||||
|
|
||||||
if(ok)
|
if(ok) expr._tokens.resize(n) ;
|
||||||
expr._tokens.resize(n) ;
|
|
||||||
|
|
||||||
for(uint32_t i=0;i<n && ok;++i) ok &= getRawUInt8(data,pktsize,&offset,&expr._tokens[i]) ;
|
for(uint32_t i=0;i<n && ok;++i) ok &= getRawUInt8(data,pktsize,&offset,&expr._tokens[i]) ;
|
||||||
|
|
||||||
ok &= getRawUInt32(data,pktsize,&offset,&n) ;
|
ok &= getRawUInt32(data,pktsize,&offset,&n) ;
|
||||||
|
|
||||||
if(ok)
|
if(ok) expr._ints.resize(n) ;
|
||||||
expr._ints.resize(n) ;
|
|
||||||
|
|
||||||
for(uint32_t i=0;i<n && ok;++i) ok &= getRawUInt32(data,pktsize,&offset,&expr._ints[i]) ;
|
for(uint32_t i=0;i<n && ok;++i) ok &= getRawUInt32(data,pktsize,&offset,&expr._ints[i]) ;
|
||||||
|
|
||||||
ok &= getRawUInt32(data,pktsize,&offset,&n) ;
|
ok &= getRawUInt32(data,pktsize,&offset,&n);
|
||||||
|
|
||||||
if(ok)
|
if (ok) expr._strings.resize(n);
|
||||||
expr._strings.resize(n) ;
|
|
||||||
|
|
||||||
for(uint32_t i=0;i<n && ok;++i) ok &= GetTlvString(data, pktsize, &offset, TLV_TYPE_STR_VALUE, expr._strings[i]);
|
for(uint32_t i=0;i<n && ok;++i) ok &= GetTlvString(data, pktsize, &offset, TLV_TYPE_STR_VALUE, expr._strings[i]);
|
||||||
|
|
||||||
|
|
|
@ -1304,10 +1304,10 @@ int CUPnPControlPoint::Callback(Upnp_EventType EventType, void *Event, void * /*
|
||||||
// Somehow, this is unreliable. UPNP_DISCOVERY_ADVERTISEMENT_ALIVE events
|
// Somehow, this is unreliable. UPNP_DISCOVERY_ADVERTISEMENT_ALIVE events
|
||||||
// happen with a wrong cookie and... boom!
|
// happen with a wrong cookie and... boom!
|
||||||
// CUPnPControlPoint *upnpCP = static_cast<CUPnPControlPoint *>(Cookie);
|
// CUPnPControlPoint *upnpCP = static_cast<CUPnPControlPoint *>(Cookie);
|
||||||
CUPnPControlPoint *upnpCP = CUPnPControlPoint::s_CtrlPoint;
|
CUPnPControlPoint *upnpCP = CUPnPControlPoint::s_CtrlPoint ;
|
||||||
|
|
||||||
if(upnpCP == NULL)
|
if (upnpCP == NULL)
|
||||||
return 0 ;
|
return 0;
|
||||||
|
|
||||||
//fprintf(stderr, "Callback: %d, Cookie: %p\n", EventType, Cookie);
|
//fprintf(stderr, "Callback: %d, Cookie: %p\n", EventType, Cookie);
|
||||||
switch (EventType) {
|
switch (EventType) {
|
||||||
|
|
|
@ -296,8 +296,8 @@ namespace
|
||||||
const char* desc,
|
const char* desc,
|
||||||
bool mandatory)
|
bool mandatory)
|
||||||
: longName_(l),
|
: longName_(l),
|
||||||
value_(&v),
|
|
||||||
valueName_(valueName),
|
valueName_(valueName),
|
||||||
|
value_(&v),
|
||||||
initialValue_(v),
|
initialValue_(v),
|
||||||
description_(desc),
|
description_(desc),
|
||||||
mandatory_(mandatory)
|
mandatory_(mandatory)
|
||||||
|
@ -310,9 +310,9 @@ namespace
|
||||||
const char* desc,
|
const char* desc,
|
||||||
bool mandatory)
|
bool mandatory)
|
||||||
: shortName_(1,s),
|
: shortName_(1,s),
|
||||||
|
valueName_(valueName),
|
||||||
value_(&v),
|
value_(&v),
|
||||||
initialValue_(v),
|
initialValue_(v),
|
||||||
valueName_(valueName),
|
|
||||||
description_(desc),
|
description_(desc),
|
||||||
mandatory_(mandatory)
|
mandatory_(mandatory)
|
||||||
{
|
{
|
||||||
|
|
|
@ -113,7 +113,7 @@ bool FolderIterator::updateFileInfo(bool& should_skip)
|
||||||
|
|
||||||
mFullPath = mFolderName + "/" + mFileName ;
|
mFullPath = mFolderName + "/" + mFileName ;
|
||||||
|
|
||||||
#warning should we take care of symbolic links on windows?
|
#warning cyril soler: should we take care of symbolic links on windows?
|
||||||
#ifndef WINDOWS_SYS
|
#ifndef WINDOWS_SYS
|
||||||
if( ent->d_type == DT_LNK)
|
if( ent->d_type == DT_LNK)
|
||||||
{
|
{
|
||||||
|
|
|
@ -483,7 +483,7 @@ bool RsDirUtil::checkCreateDirectory(const std::string& dir)
|
||||||
std::string RsDirUtil::removeSymLinks(const std::string& path)
|
std::string RsDirUtil::removeSymLinks(const std::string& path)
|
||||||
{
|
{
|
||||||
#if defined(WINDOWS_SYS) || defined(__APPLE__)
|
#if defined(WINDOWS_SYS) || defined(__APPLE__)
|
||||||
#warning (Mr.Alice): I don't know how to do this on windows/MacOS. See https://msdn.microsoft.com/en-us/library/windows/desktop/hh707084(v=vs.85).aspx
|
#warning (Mr.Alice): I don't know how to do this on windows/MacOS. See https://msdn.microsoft.com/en-us/library/windows/desktop/hh707084(v=vs.85).aspx'
|
||||||
//if(!S_OK == PathCchCanonicalizeEx(tmp,...) ;
|
//if(!S_OK == PathCchCanonicalizeEx(tmp,...) ;
|
||||||
return path ;
|
return path ;
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -327,7 +327,7 @@ bool rsa_sanity_check(RSA *rsa)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#warning this code should be using GxsSecurity signature code. Not some own made signature call.
|
#warning csoler: this code should be using GxsSecurity signature code. Not some own made signature call.
|
||||||
|
|
||||||
bool RsRecogn::signTag(EVP_PKEY *signKey, RsGxsRecognTagItem *item)
|
bool RsRecogn::signTag(EVP_PKEY *signKey, RsGxsRecognTagItem *item)
|
||||||
{
|
{
|
||||||
|
@ -375,7 +375,7 @@ bool RsRecogn::signTag(EVP_PKEY *signKey, RsGxsRecognTagItem *item)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
#warning this code should be using GxsSecurity signature code. Not some own made signature call.
|
#warning csoler: this code should be using GxsSecurity signature code. Not some own made signature call.
|
||||||
|
|
||||||
bool RsRecogn::signSigner(EVP_PKEY *signKey, RsGxsRecognSignerItem *item)
|
bool RsRecogn::signSigner(EVP_PKEY *signKey, RsGxsRecognSignerItem *item)
|
||||||
{
|
{
|
||||||
|
@ -432,7 +432,7 @@ bool RsRecogn::signSigner(EVP_PKEY *signKey, RsGxsRecognSignerItem *item)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
#warning this code should be using GxsSecurity signature code. Not some own made signature call.
|
#warning csoler: this code should be using GxsSecurity signature code. Not some own made signature call.
|
||||||
|
|
||||||
bool RsRecogn::signTagRequest(EVP_PKEY *signKey, RsGxsRecognReqItem *item)
|
bool RsRecogn::signTagRequest(EVP_PKEY *signKey, RsGxsRecognReqItem *item)
|
||||||
{
|
{
|
||||||
|
|
|
@ -554,7 +554,7 @@ void FeedReaderMessageWidget::updateCurrentMessage()
|
||||||
{
|
{
|
||||||
mTimer->stop();
|
mTimer->stop();
|
||||||
|
|
||||||
long todo; // show link somewhere
|
#warning FeedReaderMessageWidget.cpp TODO thunder2: show link somewhere
|
||||||
|
|
||||||
std::string msgId = currentMsgId();
|
std::string msgId = currentMsgId();
|
||||||
|
|
||||||
|
|
|
@ -575,7 +575,6 @@
|
||||||
<zorder>titleFrame</zorder>
|
<zorder>titleFrame</zorder>
|
||||||
<zorder>splitter</zorder>
|
<zorder>splitter</zorder>
|
||||||
<zorder>buttonBox</zorder>
|
<zorder>buttonBox</zorder>
|
||||||
<zorder>transformationInfoScrollArea</zorder>
|
|
||||||
</widget>
|
</widget>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
|
|
|
@ -252,7 +252,7 @@ static bool getFavicon(CURLWrapper &CURL, const std::string &url, std::string &i
|
||||||
isContentType(contentType, "application/octet-stream") ||
|
isContentType(contentType, "application/octet-stream") ||
|
||||||
isContentType(contentType, "text/plain")) {
|
isContentType(contentType, "text/plain")) {
|
||||||
if (!vicon.empty()) {
|
if (!vicon.empty()) {
|
||||||
long todo; // check it
|
#warning p3FeedReaderThread.cc TODO thunder2: check it
|
||||||
result = toBase64(vicon, icon);
|
result = toBase64(vicon, icon);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1299,7 +1299,7 @@ RsFeedReaderErrorState p3FeedReaderThread::processTransformation(const RsFeedRea
|
||||||
|
|
||||||
RsFeedReaderErrorState p3FeedReaderThread::processXPath(const std::list<std::string> &xpathsToUse, const std::list<std::string> &xpathsToRemove, HTMLWrapper &html, std::string &errorString)
|
RsFeedReaderErrorState p3FeedReaderThread::processXPath(const std::list<std::string> &xpathsToUse, const std::list<std::string> &xpathsToRemove, HTMLWrapper &html, std::string &errorString)
|
||||||
{
|
{
|
||||||
long todo_fill_errorString;
|
#warning p3FeedReaderThread.cc TODO thunder2: fill_errorString;
|
||||||
|
|
||||||
if (xpathsToUse.empty() && xpathsToRemove.empty()) {
|
if (xpathsToUse.empty() && xpathsToRemove.empty()) {
|
||||||
return RS_FEED_ERRORSTATE_OK;
|
return RS_FEED_ERRORSTATE_OK;
|
||||||
|
@ -1410,7 +1410,7 @@ RsFeedReaderErrorState p3FeedReaderThread::processXPath(const std::list<std::str
|
||||||
RsFeedReaderErrorState result = RS_FEED_ERRORSTATE_OK;
|
RsFeedReaderErrorState result = RS_FEED_ERRORSTATE_OK;
|
||||||
|
|
||||||
/* process description */
|
/* process description */
|
||||||
long todo; // encoding
|
#warning p3FeedReaderThread.cc TODO thunder2: encoding
|
||||||
HTMLWrapper html;
|
HTMLWrapper html;
|
||||||
if (html.readHTML(description.c_str(), "")) {
|
if (html.readHTML(description.c_str(), "")) {
|
||||||
xmlNodePtr root = html.getRootElement();
|
xmlNodePtr root = html.getRootElement();
|
||||||
|
|
|
@ -156,8 +156,8 @@ ChatWidgetHolder *VOIPPlugin::qt_get_chat_widget_holder(ChatWidget *chatWidget)
|
||||||
|
|
||||||
p3Service *VOIPPlugin::p3_service() const
|
p3Service *VOIPPlugin::p3_service() const
|
||||||
{
|
{
|
||||||
if(mVOIP == NULL)
|
if(mVOIP == NULL)
|
||||||
rsVOIP = mVOIP = new p3VOIP(mPlugInHandler,mVOIPNotify) ; // , 3600 * 24 * 30 * 6); // 6 Months
|
rsVOIP = mVOIP = new p3VOIP(mPlugInHandler,mVOIPNotify) ; // , 3600 * 24 * 30 * 6); // 6 Months
|
||||||
|
|
||||||
return mVOIP ;
|
return mVOIP ;
|
||||||
}
|
}
|
||||||
|
|
|
@ -75,9 +75,10 @@ void avcodec_free_context(AVCodecContext **pavctx)
|
||||||
//Since https://github.com/FFmpeg/FFmpeg/commit/7ecc2d403ce5c7b6ea3b1f368dccefd105209c7e
|
//Since https://github.com/FFmpeg/FFmpeg/commit/7ecc2d403ce5c7b6ea3b1f368dccefd105209c7e
|
||||||
static void get_frame_defaults(AVFrame *frame)
|
static void get_frame_defaults(AVFrame *frame)
|
||||||
{
|
{
|
||||||
if (frame->extended_data != frame->data)
|
if (frame->extended_data != frame->data) {
|
||||||
av_freep(&frame->extended_data);
|
av_freep(&frame->extended_data);
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
frame->extended_data = NULL;
|
frame->extended_data = NULL;
|
||||||
get_frame_defaults(frame);
|
get_frame_defaults(frame);
|
||||||
|
@ -283,7 +284,7 @@ void VideoProcessor::receiveEncodedData(const RsVOIPDataChunk& chunk)
|
||||||
// {
|
// {
|
||||||
_decoded_output_device->showFrame(img) ;
|
_decoded_output_device->showFrame(img) ;
|
||||||
// _lastTimeToShowFrame = time(NULL) ;//+ 1000/25;
|
// _lastTimeToShowFrame = time(NULL) ;//+ 1000/25;
|
||||||
#warning "\plugins\VOIP\gui\VideoProcessor.cpp:210 TODO: Get CPU usage to pass image."
|
#warning \plugins\VOIP\gui\VideoProcessor.cpp:210 Phenom: TODO: Get CPU usage to pass image.
|
||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -770,7 +770,8 @@ bool p3VOIP::loadList(std::list<RsItem*>& load)
|
||||||
RsConfigKeyValueSet *vitem = dynamic_cast<RsConfigKeyValueSet*>(*it) ;
|
RsConfigKeyValueSet *vitem = dynamic_cast<RsConfigKeyValueSet*>(*it) ;
|
||||||
|
|
||||||
if(vitem != NULL)
|
if(vitem != NULL)
|
||||||
for(std::list<RsTlvKeyValue>::const_iterator kit = vitem->tlvkvs.pairs.begin(); kit != vitem->tlvkvs.pairs.end(); ++kit)
|
{
|
||||||
|
for(std::list<RsTlvKeyValue>::const_iterator kit = vitem->tlvkvs.pairs.begin(); kit != vitem->tlvkvs.pairs.end(); ++kit)
|
||||||
if(kit->key == "P3VOIP_CONFIG_ATRANSMIT")
|
if(kit->key == "P3VOIP_CONFIG_ATRANSMIT")
|
||||||
_atransmit = pop_int_value(kit->value) ;
|
_atransmit = pop_int_value(kit->value) ;
|
||||||
else if(kit->key == "P3VOIP_CONFIG_VOICEHOLD")
|
else if(kit->key == "P3VOIP_CONFIG_VOICEHOLD")
|
||||||
|
@ -785,7 +786,7 @@ bool p3VOIP::loadList(std::list<RsItem*>& load)
|
||||||
_min_loudness = pop_int_value(kit->value) ;
|
_min_loudness = pop_int_value(kit->value) ;
|
||||||
else if(kit->key == "P3VOIP_CONFIG_ECHO_CNCL")
|
else if(kit->key == "P3VOIP_CONFIG_ECHO_CNCL")
|
||||||
_echo_cancel = pop_int_value(kit->value) ;
|
_echo_cancel = pop_int_value(kit->value) ;
|
||||||
|
}
|
||||||
delete vitem ;
|
delete vitem ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -253,7 +253,7 @@ void xProgressBar::paint()
|
||||||
//loop through all chunks represented by the pixel at position i and count the completed chunks
|
//loop through all chunks represented by the pixel at position i and count the completed chunks
|
||||||
//if no incomplete chunk is encountered in this range, continue to count the row of completed chunks
|
//if no incomplete chunk is encountered in this range, continue to count the row of completed chunks
|
||||||
//to see whether more than 1 pixel can be drawn at once.
|
//to see whether more than 1 pixel can be drawn at once.
|
||||||
for(j=first_chunk_in_pixel;((j<=last_chunk_in_pixel) || (all_done && (j<ss)));++j)
|
for(j=first_chunk_in_pixel;((j<=last_chunk_in_pixel) || (all_done && (j<(int)ss)));++j)
|
||||||
if (_pinfo.cmap[j])
|
if (_pinfo.cmap[j])
|
||||||
++c;
|
++c;
|
||||||
else
|
else
|
||||||
|
|
|
@ -163,12 +163,14 @@ void IdDetailsDialog::insertIdDetails(uint32_t token)
|
||||||
|
|
||||||
QPixmap pixmap;
|
QPixmap pixmap;
|
||||||
|
|
||||||
if(data.mImage.mSize > 0 && pixmap.loadFromData(data.mImage.mData, data.mImage.mSize, "PNG"))
|
if(data.mImage.mSize > 0 && pixmap.loadFromData(data.mImage.mData, data.mImage.mSize, "PNG"))
|
||||||
ui->avatarLabel->setPixmap(pixmap);
|
ui->avatarLabel->setPixmap(pixmap) ;
|
||||||
else
|
else
|
||||||
pixmap = QPixmap::fromImage(GxsIdDetails::makeDefaultIcon(RsGxsId(data.mMeta.mGroupId))) ;
|
{
|
||||||
ui->avatarLabel->setPixmap(pixmap); // we need to use the default pixmap here, generated from the ID
|
pixmap = QPixmap::fromImage(GxsIdDetails::makeDefaultIcon(RsGxsId(data.mMeta.mGroupId)) ) ;
|
||||||
|
ui->avatarLabel->setPixmap(pixmap) ; // we need to use the default pixmap here, generated from the ID
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef ID_DEBUG
|
#ifdef ID_DEBUG
|
||||||
std::cerr << "Setting header frame image : " << pix.width() << " x " << pix.height() << std::endl;
|
std::cerr << "Setting header frame image : " << pix.width() << " x " << pix.height() << std::endl;
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>530</width>
|
<width>542</width>
|
||||||
<height>518</height>
|
<height>536</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
|
@ -20,18 +20,27 @@
|
||||||
<iconset resource="../images.qrc">
|
<iconset resource="../images.qrc">
|
||||||
<normaloff>:/images/identity/identities_32.png</normaloff>:/images/identity/identities_32.png</iconset>
|
<normaloff>:/images/identity/identities_32.png</normaloff>:/images/identity/identities_32.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_3">
|
<layout class="QVBoxLayout" name="IdEditDialogVLayout">
|
||||||
<property name="spacing">
|
<property name="spacing">
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="margin">
|
<property name="leftMargin">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="topMargin">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="rightMargin">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="bottomMargin">
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<widget class="HeaderFrame" name="headerFrame"/>
|
<widget class="HeaderFrame" name="headerFrame"/>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QFrame" name="frame">
|
<widget class="QFrame" name="frame_Top">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
|
@ -44,7 +53,7 @@
|
||||||
<property name="frameShadow">
|
<property name="frameShadow">
|
||||||
<enum>QFrame::Raised</enum>
|
<enum>QFrame::Raised</enum>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
<layout class="QVBoxLayout" name="frame_TopVLayout">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="info_label">
|
<widget class="QLabel" name="info_label">
|
||||||
<property name="palette">
|
<property name="palette">
|
||||||
|
@ -129,18 +138,18 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
<layout class="QHBoxLayout" name="frame_TopHLayout">
|
||||||
<item>
|
<item>
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<layout class="QGridLayout" name="infoGLayout">
|
||||||
<item row="3" column="0">
|
<item row="3" column="0">
|
||||||
<widget class="QLabel" name="label_2">
|
<widget class="QLabel" name="label_GpgHash">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>PGP Hash</string>
|
<string>PGP Hash</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QLabel" name="label_5">
|
<widget class="QLabel" name="label_Type">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Type</string>
|
<string>Type</string>
|
||||||
</property>
|
</property>
|
||||||
|
@ -193,35 +202,35 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="0">
|
<item row="1" column="0">
|
||||||
<widget class="QLabel" name="label">
|
<widget class="QLabel" name="label_Nickname">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Nickname</string>
|
<string>Nickname</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="0">
|
<item row="2" column="0">
|
||||||
<widget class="QLabel" name="label_4">
|
<widget class="QLabel" name="label_KeyId">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Key ID</string>
|
<string>Key ID</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="4" column="0">
|
<item row="4" column="0">
|
||||||
<widget class="QLabel" name="label_6">
|
<widget class="QLabel" name="label_GpgId">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>PGP Id</string>
|
<string>PGP Id</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="5" column="0">
|
<item row="5" column="0">
|
||||||
<widget class="QLabel" name="label_3">
|
<widget class="QLabel" name="label_GpgName">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>PGP Name</string>
|
<string>PGP Name</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="3">
|
<item row="0" column="3">
|
||||||
<spacer name="horizontalSpacer_3">
|
<spacer name="typeHSpacer">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Horizontal</enum>
|
<enum>Qt::Horizontal</enum>
|
||||||
</property>
|
</property>
|
||||||
|
@ -265,7 +274,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="6" column="0" colspan="4">
|
<item row="6" column="0" colspan="4">
|
||||||
<spacer name="verticalSpacer_2">
|
<spacer name="infoVSpacer">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Vertical</enum>
|
<enum>Qt::Vertical</enum>
|
||||||
</property>
|
</property>
|
||||||
|
@ -280,7 +289,7 @@
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout">
|
<layout class="QVBoxLayout" name="avatarVLayout">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="avatarLabel">
|
<widget class="QLabel" name="avatarLabel">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
|
@ -326,7 +335,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<spacer name="verticalSpacer_3">
|
<spacer name="avatarVSpacer">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Vertical</enum>
|
<enum>Qt::Vertical</enum>
|
||||||
</property>
|
</property>
|
||||||
|
@ -448,7 +457,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<spacer name="verticalSpacer">
|
<spacer name="vSpacer_Tag">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Vertical</enum>
|
<enum>Qt::Vertical</enum>
|
||||||
</property>
|
</property>
|
||||||
|
@ -464,16 +473,25 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QFrame" name="frame">
|
<widget class="QFrame" name="frame_Button">
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||||
<property name="spacing">
|
<property name="spacing">
|
||||||
<number>9</number>
|
<number>9</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="margin">
|
<property name="leftMargin">
|
||||||
|
<number>9</number>
|
||||||
|
</property>
|
||||||
|
<property name="topMargin">
|
||||||
|
<number>9</number>
|
||||||
|
</property>
|
||||||
|
<property name="rightMargin">
|
||||||
|
<number>9</number>
|
||||||
|
</property>
|
||||||
|
<property name="bottomMargin">
|
||||||
<number>9</number>
|
<number>9</number>
|
||||||
</property>
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<spacer name="horizontalSpacer">
|
<spacer name="buttonHSpacer">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Horizontal</enum>
|
<enum>Qt::Horizontal</enum>
|
||||||
</property>
|
</property>
|
||||||
|
|
|
@ -330,11 +330,11 @@ MainWindow::~MainWindow()
|
||||||
void MainWindow::initStackedPage()
|
void MainWindow::initStackedPage()
|
||||||
{
|
{
|
||||||
/* WORK OUT IF WE"RE IN ADVANCED MODE OR NOT */
|
/* WORK OUT IF WE"RE IN ADVANCED MODE OR NOT */
|
||||||
bool advancedMode = false;
|
//bool advancedMode = false;
|
||||||
std::string advsetting;
|
//std::string advsetting;
|
||||||
if (rsConfig->getConfigurationOption(RS_CONFIG_ADVANCED, advsetting) && (advsetting == "YES")) {
|
//if (rsConfig->getConfigurationOption(RS_CONFIG_ADVANCED, advsetting) && (advsetting == "YES")) {
|
||||||
advancedMode = true;
|
// advancedMode = true;
|
||||||
}
|
//}
|
||||||
|
|
||||||
QList<QPair<MainPage*, QPair<QAction*, QListWidgetItem*> > > notify;
|
QList<QPair<MainPage*, QPair<QAction*, QListWidgetItem*> > > notify;
|
||||||
|
|
||||||
|
|
|
@ -322,7 +322,6 @@
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
<zorder>titleLabel</zorder>
|
<zorder>titleLabel</zorder>
|
||||||
<zorder></zorder>
|
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
|
|
|
@ -386,10 +386,10 @@ QVariant TreeStyle_RDM::displayRole(const DirDetails& details,int coln) const
|
||||||
|
|
||||||
if (details.type == DIR_TYPE_PERSON) /* Person */
|
if (details.type == DIR_TYPE_PERSON) /* Person */
|
||||||
{
|
{
|
||||||
switch(coln)
|
switch(coln)
|
||||||
{
|
{
|
||||||
case 0: {
|
case 0: {
|
||||||
SharedDirStats stats ;
|
//SharedDirStats stats ;
|
||||||
QString res ;
|
QString res ;
|
||||||
|
|
||||||
if(RemoteMode)
|
if(RemoteMode)
|
||||||
|
@ -663,13 +663,13 @@ QVariant RetroshareDirModel::data(const QModelIndex &index, int role) const
|
||||||
/* get the data from the index */
|
/* get the data from the index */
|
||||||
void *ref = index.internalPointer();
|
void *ref = index.internalPointer();
|
||||||
|
|
||||||
DirDetails details ;
|
DirDetails details;
|
||||||
|
|
||||||
if (!requestDirDetails(ref, RemoteMode,details))
|
if(!requestDirDetails(ref, RemoteMode,details))
|
||||||
return QVariant();
|
return QVariant() ;
|
||||||
|
|
||||||
if (role == RetroshareDirModel::FileNameRole) /* end of FileNameRole */
|
if (role == RetroshareDirModel::FileNameRole) /* end of FileNameRole */
|
||||||
return QString::fromUtf8(details.name.c_str());
|
return QString::fromUtf8(details.name.c_str()) ;
|
||||||
|
|
||||||
if (role == Qt::TextColorRole)
|
if (role == Qt::TextColorRole)
|
||||||
{
|
{
|
||||||
|
@ -1327,7 +1327,7 @@ void RetroshareDirModel::getFilePaths(const QModelIndexList &list, std::list<std
|
||||||
#ifdef RDM_DEBUG
|
#ifdef RDM_DEBUG
|
||||||
std::cerr << "RetroshareDirModel::getFilePaths()" << std::endl;
|
std::cerr << "RetroshareDirModel::getFilePaths()" << std::endl;
|
||||||
#endif
|
#endif
|
||||||
#warning make sure we atually output something here
|
#warning mr-alice: make sure we atually output something here
|
||||||
if (RemoteMode)
|
if (RemoteMode)
|
||||||
{
|
{
|
||||||
#ifdef RDM_DEBUG
|
#ifdef RDM_DEBUG
|
||||||
|
@ -1344,7 +1344,7 @@ void RetroshareDirModel::getFilePaths(const QModelIndexList &list, std::list<std
|
||||||
#ifdef RDM_DEBUG
|
#ifdef RDM_DEBUG
|
||||||
std::cerr << "Constructed FilePath: " << path << std::endl;
|
std::cerr << "Constructed FilePath: " << path << std::endl;
|
||||||
#endif
|
#endif
|
||||||
#warning TERRIBLE COST here. Use a std::set!
|
#warning mr-alice: TERRIBLE COST here. Use a std::set!
|
||||||
if (fullpaths.end() == std::find(fullpaths.begin(), fullpaths.end(), path))
|
if (fullpaths.end() == std::find(fullpaths.begin(), fullpaths.end(), path))
|
||||||
fullpaths.push_back(path);
|
fullpaths.push_back(path);
|
||||||
}
|
}
|
||||||
|
|
|
@ -308,10 +308,10 @@ void ShareManager::removeShareDirectory()
|
||||||
{
|
{
|
||||||
if ((QMessageBox::question(this, tr("Warning!"),tr("Do you really want to stop sharing this directory ?"),QMessageBox::Yes|QMessageBox::No, QMessageBox::Yes))== QMessageBox::Yes)
|
if ((QMessageBox::question(this, tr("Warning!"),tr("Do you really want to stop sharing this directory ?"),QMessageBox::Yes|QMessageBox::No, QMessageBox::Yes))== QMessageBox::Yes)
|
||||||
{
|
{
|
||||||
for(uint32_t i=row;i+1<mDirInfos.size();++i)
|
for(uint32_t i=row;i+1<mDirInfos.size();++i)
|
||||||
mDirInfos[i] = mDirInfos[i+1] ;
|
mDirInfos[i] = mDirInfos[i+1] ;
|
||||||
|
|
||||||
mDirInfos.pop_back() ;
|
mDirInfos.pop_back() ;
|
||||||
load();
|
load();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -356,11 +356,8 @@ void ShareManager::showShareDialog()
|
||||||
load();
|
load();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ShareManager::shareddirListCurrentCellChanged(int currentRow, int currentColumn, int previousRow, int previousColumn)
|
void ShareManager::shareddirListCurrentCellChanged(int /*currentRow*/, int /*currentColumn*/, int /*previousRow*/, int /*previousColumn*/)
|
||||||
{
|
{
|
||||||
Q_UNUSED(currentColumn);
|
|
||||||
Q_UNUSED(previousRow);
|
|
||||||
Q_UNUSED(previousColumn);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ShareManager::dragEnterEvent(QDragEnterEvent *event)
|
void ShareManager::dragEnterEvent(QDragEnterEvent *event)
|
||||||
|
|
|
@ -693,10 +693,10 @@ static bool caseInsensitiveCompare(QString a, QString b)
|
||||||
void ChatWidget::completeNickname(bool reverse)
|
void ChatWidget::completeNickname(bool reverse)
|
||||||
{
|
{
|
||||||
// Find lobby we belong to
|
// Find lobby we belong to
|
||||||
ChatLobbyInfo lobby ;
|
ChatLobbyInfo lobby;
|
||||||
|
|
||||||
if(! rsMsgs->getChatLobbyInfo(chatId.toLobbyId(),lobby))
|
if (! rsMsgs->getChatLobbyInfo(chatId.toLobbyId(),lobby))
|
||||||
return ;
|
return;
|
||||||
|
|
||||||
QTextCursor cursor = ui->chatTextEdit->textCursor();
|
QTextCursor cursor = ui->chatTextEdit->textCursor();
|
||||||
|
|
||||||
|
@ -1096,8 +1096,7 @@ void ChatWidget::updateStatusTyping()
|
||||||
|
|
||||||
void ChatWidget::updateLenOfChatTextEdit()
|
void ChatWidget::updateLenOfChatTextEdit()
|
||||||
{
|
{
|
||||||
if(sendingBlocked)
|
if(sendingBlocked) return;
|
||||||
return;
|
|
||||||
|
|
||||||
QTextEdit *chatWidget = ui->chatTextEdit;
|
QTextEdit *chatWidget = ui->chatTextEdit;
|
||||||
QString text;
|
QString text;
|
||||||
|
|
|
@ -167,7 +167,7 @@ void PopupDistantChatDialog::closeEvent(QCloseEvent *e)
|
||||||
PopupChatDialog::closeEvent(e) ;
|
PopupChatDialog::closeEvent(e) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
QString PopupDistantChatDialog::getPeerName(const ChatId &/*id*/) const
|
QString PopupDistantChatDialog::getPeerName(const ChatId& /*id*/) const
|
||||||
{
|
{
|
||||||
DistantChatPeerInfo tinfo;
|
DistantChatPeerInfo tinfo;
|
||||||
|
|
||||||
|
|
|
@ -179,8 +179,8 @@ void AvatarWidget::refreshStatus()
|
||||||
{
|
{
|
||||||
uint32_t status = 0;
|
uint32_t status = 0;
|
||||||
|
|
||||||
if(mId.isNotSet())
|
if (mId.isNotSet())
|
||||||
return ;
|
return;
|
||||||
|
|
||||||
if (mFlag.isOwnId)
|
if (mFlag.isOwnId)
|
||||||
{
|
{
|
||||||
|
|
|
@ -153,7 +153,7 @@ QString GroupFlagsWidget::groupInfoString(FileStorageFlags flags, const QList<QS
|
||||||
else
|
else
|
||||||
res += tr("No one can anonymously access/search these files.") ;
|
res += tr("No one can anonymously access/search these files.") ;
|
||||||
|
|
||||||
return res ;
|
return res ;
|
||||||
}
|
}
|
||||||
|
|
||||||
void GroupFlagsWidget::update_DL_button(bool b) { update_button_state(b,INDEX_ANON_DL ) ; updated() ; }
|
void GroupFlagsWidget::update_DL_button(bool b) { update_button_state(b,INDEX_ANON_DL ) ; updated() ; }
|
||||||
|
|
|
@ -98,7 +98,7 @@ GroupSelectionDialog::~GroupSelectionDialog()
|
||||||
{
|
{
|
||||||
delete mBox ;
|
delete mBox ;
|
||||||
}
|
}
|
||||||
GroupSelectionDialog::GroupSelectionDialog(QWidget *parent)
|
GroupSelectionDialog::GroupSelectionDialog(QWidget* /*parent*/)
|
||||||
{
|
{
|
||||||
mBox = new GroupSelectionBox(this) ;
|
mBox = new GroupSelectionBox(this) ;
|
||||||
|
|
||||||
|
|
|
@ -151,10 +151,10 @@ void RSGraphWidget::setShowEntry(uint32_t entry,bool b)
|
||||||
|
|
||||||
void RSGraphWidget::setSource(RSGraphSource *gs)
|
void RSGraphWidget::setSource(RSGraphSource *gs)
|
||||||
{
|
{
|
||||||
if(_source != NULL)
|
if (_source != NULL)
|
||||||
delete _source ;
|
delete _source;
|
||||||
|
|
||||||
_source = gs ;
|
_source = gs;
|
||||||
}
|
}
|
||||||
|
|
||||||
qint64 RSGraphSource::getTime() const
|
qint64 RSGraphSource::getTime() const
|
||||||
|
|
|
@ -154,8 +154,8 @@ bool RSButtonOnText::eventFilter(QObject *obj, QEvent *event)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!guard)
|
if (!guard)
|
||||||
std::cerr << "BIG FAT WARNING from RSButtonOnText::eventFilter(): i was deleted in my own event handler. This is bad practice. Please make a patch and use deleteLater to delay deletion." << std::endl;
|
std::cerr << "BIG FAT WARNING from RSButtonOnText::eventFilter(): i was deleted in my own event handler. This is bad practice. Please make a patch and use deleteLater to delay deletion." << std::endl ;
|
||||||
|
|
||||||
// pass the event on to the parent class
|
// pass the event on to the parent class
|
||||||
return QWidget::eventFilter(obj, event);
|
return QWidget::eventFilter(obj, event);
|
||||||
|
|
|
@ -270,7 +270,7 @@ bool RsCollectionFile::checkFile(const QString& fileName, bool showError)
|
||||||
if(c == '\t' || c == '\n' || c == '\b' || c == '\r')
|
if(c == '\t' || c == '\n' || c == '\b' || c == '\r')
|
||||||
continue ;
|
continue ;
|
||||||
|
|
||||||
if(n == max_size || file.atEnd())
|
if (n == max_size || file.atEnd())
|
||||||
for(int i=0;i<n-1;++i)
|
for(int i=0;i<n-1;++i)
|
||||||
current[i] = current[i+1] ;
|
current[i] = current[i+1] ;
|
||||||
|
|
||||||
|
|
|
@ -18,15 +18,24 @@
|
||||||
<normaloff>:/images/logo/logo_16.png</normaloff>:/images/logo/logo_16.png</iconset>
|
<normaloff>:/images/logo/logo_16.png</normaloff>:/images/logo/logo_16.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout_5">
|
<layout class="QGridLayout" name="gridLayout_5">
|
||||||
|
<property name="leftMargin">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="topMargin">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="rightMargin">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="bottomMargin">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
<property name="horizontalSpacing">
|
<property name="horizontalSpacing">
|
||||||
<number>6</number>
|
<number>6</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="verticalSpacing">
|
<property name="verticalSpacing">
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="margin">
|
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="HeaderFrame" name="headerFrame">
|
<widget class="HeaderFrame" name="headerFrame">
|
||||||
<property name="frameShape">
|
<property name="frameShape">
|
||||||
|
@ -35,7 +44,6 @@
|
||||||
<property name="frameShadow">
|
<property name="frameShadow">
|
||||||
<enum>QFrame::Plain</enum>
|
<enum>QFrame::Plain</enum>
|
||||||
</property>
|
</property>
|
||||||
<zorder>stabWidget</zorder>
|
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="0">
|
<item row="1" column="0">
|
||||||
|
|
|
@ -627,6 +627,7 @@ bool ConnectFriendWizard::validateCurrentPage()
|
||||||
|
|
||||||
switch ((Page) currentId()) {
|
switch ((Page) currentId()) {
|
||||||
case Page_Intro:
|
case Page_Intro:
|
||||||
|
case Page_WebMail:
|
||||||
break;
|
break;
|
||||||
case Page_Text:
|
case Page_Text:
|
||||||
{
|
{
|
||||||
|
|
|
@ -284,8 +284,8 @@ static void convolveWithGaussian(double *forceMap,unsigned int S,int /*s*/)
|
||||||
unsigned long nn[2] = {S,S};
|
unsigned long nn[2] = {S,S};
|
||||||
fourn(&forceMap[-1],&nn[-1],2,1) ;
|
fourn(&forceMap[-1],&nn[-1],2,1) ;
|
||||||
|
|
||||||
for(unsigned int i=0;i<S;++i)
|
for (unsigned int i=0;i<S;++i)
|
||||||
for(unsigned int j=0;j<S;++j)
|
for (unsigned int j=0;j<S;++j)
|
||||||
{
|
{
|
||||||
float a = forceMap[2*(i+S*j)]*bf[2*(i+S*j)] - forceMap[2*(i+S*j)+1]*bf[2*(i+S*j)+1] ;
|
float a = forceMap[2*(i+S*j)]*bf[2*(i+S*j)] - forceMap[2*(i+S*j)+1]*bf[2*(i+S*j)+1] ;
|
||||||
float b = forceMap[2*(i+S*j)]*bf[2*(i+S*j)+1] + forceMap[2*(i+S*j)+1]*bf[2*(i+S*j)] ;
|
float b = forceMap[2*(i+S*j)]*bf[2*(i+S*j)+1] + forceMap[2*(i+S*j)+1]*bf[2*(i+S*j)] ;
|
||||||
|
|
|
@ -85,12 +85,12 @@ void MsgItem::updateItemStatic()
|
||||||
if (!rsMail->getMessage(mMsgId, mi))
|
if (!rsMail->getMessage(mMsgId, mi))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
/* get peer Id */
|
/* get peer Id */
|
||||||
|
|
||||||
if(mi.msgflags & RS_MSG_SIGNED)
|
if (mi.msgflags & RS_MSG_SIGNED)
|
||||||
avatar->setGxsId(mi.rsgxsid_srcId);
|
avatar->setGxsId(mi.rsgxsid_srcId) ;
|
||||||
else
|
else
|
||||||
avatar->setId(ChatId(mi.rspeerid_srcId));
|
avatar->setId(ChatId(mi.rspeerid_srcId)) ;
|
||||||
|
|
||||||
QString title;
|
QString title;
|
||||||
QString srcName;
|
QString srcName;
|
||||||
|
|
|
@ -7,10 +7,10 @@
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>643</width>
|
<width>643</width>
|
||||||
<height>140</height>
|
<height>146</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout">
|
<layout class="QGridLayout" name="MsgItemGLayout">
|
||||||
<property name="leftMargin">
|
<property name="leftMargin">
|
||||||
<number>1</number>
|
<number>1</number>
|
||||||
</property>
|
</property>
|
||||||
|
@ -104,11 +104,20 @@
|
||||||
<property name="frameShadow">
|
<property name="frameShadow">
|
||||||
<enum>QFrame::Sunken</enum>
|
<enum>QFrame::Sunken</enum>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout_2">
|
<layout class="QGridLayout" name="frameGLayout">
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QFrame" name="frame_2">
|
<widget class="QFrame" name="mainFrame">
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<layout class="QGridLayout" name="mainFrameGLayout">
|
||||||
<property name="margin">
|
<property name="leftMargin">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="topMargin">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="rightMargin">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="bottomMargin">
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<item row="0" column="0" rowspan="3">
|
<item row="0" column="0" rowspan="3">
|
||||||
|
@ -151,7 +160,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="2">
|
<item row="0" column="2">
|
||||||
<spacer>
|
<spacer name="mainFrameHSpacer">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Horizontal</enum>
|
<enum>Qt::Horizontal</enum>
|
||||||
</property>
|
</property>
|
||||||
|
@ -196,7 +205,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="1" colspan="3">
|
<item row="2" column="1" colspan="3">
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
<layout class="QHBoxLayout" name="buttonHLayout">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QToolButton" name="replyButton">
|
<widget class="QToolButton" name="replyButton">
|
||||||
<property name="focusPolicy">
|
<property name="focusPolicy">
|
||||||
|
@ -221,7 +230,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<spacer name="horizontalSpacer">
|
<spacer name="buttonHSpacer">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Horizontal</enum>
|
<enum>Qt::Horizontal</enum>
|
||||||
</property>
|
</property>
|
||||||
|
@ -320,7 +329,7 @@
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="0">
|
<item row="1" column="0">
|
||||||
<widget class="QFrame" name="expandFrame">
|
<widget class="QFrame" name="expandFrame">
|
||||||
<layout class="QVBoxLayout">
|
<layout class="QVBoxLayout" name="expandFrameVLayout">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="msgLabel">
|
<widget class="QLabel" name="msgLabel">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
|
|
|
@ -45,10 +45,10 @@ CreateGroup::CreateGroup(const RsNodeGroupId &groupId, QWidget *parent)
|
||||||
|
|
||||||
mGroupId = groupId;
|
mGroupId = groupId;
|
||||||
|
|
||||||
if(!mGroupId.isNull())
|
if (!mGroupId.isNull())
|
||||||
ui.groupId_LE->setText(QString::fromStdString(mGroupId.toStdString())) ;
|
ui.groupId_LE->setText(QString::fromStdString(mGroupId.toStdString()));
|
||||||
else
|
else
|
||||||
ui.groupId_LE->setText(tr("To be defined")) ;
|
ui.groupId_LE->setText(tr("To be defined"));
|
||||||
|
|
||||||
/* Initialize friends list */
|
/* Initialize friends list */
|
||||||
ui.friendList->setHeaderText(tr("Friends"));
|
ui.friendList->setHeaderText(tr("Friends"));
|
||||||
|
|
|
@ -203,22 +203,22 @@ GxsForumThreadWidget::GxsForumThreadWidget(const RsGxsGroupId &forumId, QWidget
|
||||||
|
|
||||||
setGroupId(forumId);
|
setGroupId(forumId);
|
||||||
|
|
||||||
ui->threadTreeWidget->installEventFilter(this);
|
ui->threadTreeWidget->installEventFilter(this) ;
|
||||||
|
|
||||||
ui->postText->clear();
|
ui->postText->clear() ;
|
||||||
ui->by_label->setId(RsGxsId());
|
ui->by_label->setId(RsGxsId()) ;
|
||||||
ui->time_label->clear() ;
|
ui->time_label->clear();
|
||||||
ui->lineRight->hide() ;
|
ui->lineRight->hide();
|
||||||
ui->lineLeft->hide() ;
|
ui->lineLeft->hide();
|
||||||
ui->by_text_label->hide() ;
|
ui->by_text_label->hide();
|
||||||
ui->by_label->hide() ;
|
ui->by_label->hide();
|
||||||
ui->postText->setImageBlockWidget(ui->imageBlockWidget);
|
ui->postText->setImageBlockWidget(ui->imageBlockWidget) ;
|
||||||
ui->postText->resetImagesStatus(Settings->getForumLoadEmbeddedImages()) ;
|
ui->postText->resetImagesStatus(Settings->getForumLoadEmbeddedImages());
|
||||||
|
|
||||||
ui->subscribeToolButton->setToolTip(tr("<p>Subscribing to the forum will gather \
|
ui->subscribeToolButton->setToolTip(tr( "<p>Subscribing to the forum will gather \
|
||||||
available posts from your subscribed friends, and make the \
|
available posts from your subscribed friends, and make the \
|
||||||
forum visible to all other friends.</p><p>Afterwards you can unsubscribe from the context menu of the forum list at left.</p>"));
|
forum visible to all other friends.</p><p>Afterwards you can unsubscribe from the context menu of the forum list at left.</p>"));
|
||||||
ui->threadTreeWidget->enableColumnCustomize(true);
|
ui->threadTreeWidget->enableColumnCustomize(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
GxsForumThreadWidget::~GxsForumThreadWidget()
|
GxsForumThreadWidget::~GxsForumThreadWidget()
|
||||||
|
@ -1379,12 +1379,12 @@ void GxsForumThreadWidget::insertMessage()
|
||||||
|
|
||||||
/* blank text, incase we get nothing */
|
/* blank text, incase we get nothing */
|
||||||
ui->postText->clear();
|
ui->postText->clear();
|
||||||
ui->by_label->setId(RsGxsId());
|
ui->by_label->setId(RsGxsId()) ;
|
||||||
ui->time_label->clear() ;
|
ui->time_label->clear();
|
||||||
ui->lineRight->hide() ;
|
ui->lineRight->hide();
|
||||||
ui->lineLeft->hide() ;
|
ui->lineLeft->hide();
|
||||||
ui->by_text_label->hide() ;
|
ui->by_text_label->hide();
|
||||||
ui->by_label->hide() ;
|
ui->by_label->hide();
|
||||||
|
|
||||||
/* request Post */
|
/* request Post */
|
||||||
RsGxsGrpMsgIdPair msgId = std::make_pair(groupId(), mThreadId);
|
RsGxsGrpMsgIdPair msgId = std::make_pair(groupId(), mThreadId);
|
||||||
|
@ -1441,28 +1441,27 @@ void GxsForumThreadWidget::insertMessageData(const RsGxsForumMsg &msg)
|
||||||
}
|
}
|
||||||
|
|
||||||
ui->time_label->setText(DateTime::formatLongDateTime(msg.mMeta.mPublishTs));
|
ui->time_label->setText(DateTime::formatLongDateTime(msg.mMeta.mPublishTs));
|
||||||
ui->by_label->setId(msg.mMeta.mAuthorId) ;
|
ui->by_label->setId(msg.mMeta.mAuthorId);
|
||||||
|
ui->lineRight->show();
|
||||||
|
ui->lineLeft->show();
|
||||||
|
ui->by_text_label->show();
|
||||||
|
ui->by_label->show();
|
||||||
|
|
||||||
ui->lineRight->show() ;
|
if(redacted)
|
||||||
ui->lineLeft->show() ;
|
{
|
||||||
ui->by_text_label->show() ;
|
QString extraTxt = tr( "<p><font color=\"#ff0000\"><b>The author of this message (with ID %1) is banned.</b>").arg(QString::fromStdString(msg.mMeta.mAuthorId.toStdString())) ;
|
||||||
ui->by_label->show() ;
|
extraTxt += tr( "<UL><li><b><font color=\"#ff0000\">Messages from this author are not forwarded. </font></b></li>") ;
|
||||||
|
extraTxt += tr( "<li><b><font color=\"#ff0000\">Messages from this author are replaced by this text. </font></b></li></ul>") ;
|
||||||
|
extraTxt += tr( "<p><b><font color=\"#ff0000\">You can force the visibility and forwarding of messages by setting a different opinion for that Id in People's tab.</font></b></p>") ;
|
||||||
|
|
||||||
if(redacted)
|
ui->postText->setHtml(extraTxt) ;
|
||||||
{
|
}
|
||||||
QString extraTxt = tr("<p><font color=\"#ff0000\"><b>The author of this message (with ID %1) is banned.</b>").arg(QString::fromStdString(msg.mMeta.mAuthorId.toStdString())) ;
|
else
|
||||||
extraTxt += tr("<UL><li><b><font color=\"#ff0000\">Messages from this author are not forwarded. </font></b></li>") ;
|
{
|
||||||
extraTxt += tr("<li><b><font color=\"#ff0000\">Messages from this author are replaced by this text. </font></b></li></ul>") ;
|
QString extraTxt = RsHtml().formatText(ui->postText->document(), QString::fromUtf8(msg.mMsg.c_str()), RSHTML_FORMATTEXT_EMBED_SMILEYS | RSHTML_FORMATTEXT_EMBED_LINKS);
|
||||||
extraTxt += tr("<p><b><font color=\"#ff0000\">You can force the visibility and forwarding of messages by setting a different opinion for that Id in People's tab.</font></b></p>") ;
|
ui->postText->setHtml(extraTxt);
|
||||||
|
}
|
||||||
ui->postText->setHtml(extraTxt);
|
// ui->threadTitle->setText(QString::fromUtf8(msg.mMeta.mMsgName.c_str()));
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
QString extraTxt = RsHtml().formatText(ui->postText->document(), QString::fromUtf8(msg.mMsg.c_str()), RSHTML_FORMATTEXT_EMBED_SMILEYS | RSHTML_FORMATTEXT_EMBED_LINKS);
|
|
||||||
ui->postText->setHtml(extraTxt);
|
|
||||||
}
|
|
||||||
//ui->threadTitle->setText(QString::fromUtf8(msg.mMeta.mMsgName.c_str()));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void GxsForumThreadWidget::previousMessage()
|
void GxsForumThreadWidget::previousMessage()
|
||||||
|
|
|
@ -413,8 +413,8 @@ void MessageComposer::processSettings(bool bLoad)
|
||||||
ui.contactsdockWidget->setVisible(Settings->value("ContactSidebar", true).toBool());
|
ui.contactsdockWidget->setVisible(Settings->value("ContactSidebar", true).toBool());
|
||||||
|
|
||||||
// state of splitter
|
// state of splitter
|
||||||
ui.splitter->restoreState(Settings->value("Splitter").toByteArray());
|
ui.messageSplitter->restoreState(Settings->value("Splitter").toByteArray());
|
||||||
ui.splitter_2->restoreState(Settings->value("Splitter2").toByteArray());
|
ui.centralwidgetHSplitter->restoreState(Settings->value("Splitter2").toByteArray());
|
||||||
|
|
||||||
// state of filter combobox
|
// state of filter combobox
|
||||||
int index = Settings->value("ShowType", 0).toInt();
|
int index = Settings->value("ShowType", 0).toInt();
|
||||||
|
@ -431,8 +431,8 @@ void MessageComposer::processSettings(bool bLoad)
|
||||||
Settings->setValue("ContactSidebar", ui.contactsdockWidget->isVisible());
|
Settings->setValue("ContactSidebar", ui.contactsdockWidget->isVisible());
|
||||||
|
|
||||||
// state of splitter
|
// state of splitter
|
||||||
Settings->setValue("Splitter", ui.splitter->saveState());
|
Settings->setValue("Splitter", ui.messageSplitter->saveState());
|
||||||
Settings->setValue("Splitter2", ui.splitter_2->saveState());
|
Settings->setValue("Splitter2", ui.centralwidgetHSplitter->saveState());
|
||||||
|
|
||||||
// state of filter combobox
|
// state of filter combobox
|
||||||
Settings->setValue("ShowType", ui.filterComboBox->currentIndex());
|
Settings->setValue("ShowType", ui.filterComboBox->currentIndex());
|
||||||
|
@ -887,7 +887,7 @@ void MessageComposer::calculateTitle()
|
||||||
setWindowTitle(tr("Compose") + ": " + misc::removeNewLine(ui.titleEdit->text()));
|
setWindowTitle(tr("Compose") + ": " + misc::removeNewLine(ui.titleEdit->text()));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void calculateGroupsOfSslIds(const std::list<RsGroupInfo> &existingGroupInfos, std::list<RsPeerId> &checkSslIds, std::list<RsNodeGroupId> &checkGroupIds)
|
/*static void calculateGroupsOfSslIds(const std::list<RsGroupInfo> &existingGroupInfos, std::list<RsPeerId> &checkSslIds, std::list<RsNodeGroupId> &checkGroupIds)
|
||||||
{
|
{
|
||||||
checkGroupIds.clear();
|
checkGroupIds.clear();
|
||||||
|
|
||||||
|
@ -973,6 +973,7 @@ static void calculateGroupsOfSslIds(const std::list<RsGroupInfo> &existingGroupI
|
||||||
checkGroupIds.push_back(groupInfoIt->id);
|
checkGroupIds.push_back(groupInfoIt->id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
MessageComposer *MessageComposer::newMsg(const std::string &msgId /* = ""*/)
|
MessageComposer *MessageComposer::newMsg(const std::string &msgId /* = ""*/)
|
||||||
{
|
{
|
||||||
|
@ -2634,10 +2635,11 @@ void MessageComposer::addRecommend()
|
||||||
if (sslIds.empty() && gxsIds.empty())
|
if (sslIds.empty() && gxsIds.empty())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
for(std::set <RsPeerId>::iterator it = sslIds.begin(); it != sslIds.end(); ++it)
|
for( std::set <RsPeerId>::iterator it = sslIds.begin(); it != sslIds.end(); ++it)
|
||||||
addRecipient(CC, *it);
|
addRecipient(CC, *it) ;
|
||||||
for (std::set<RsGxsId>::const_iterator it = gxsIds.begin(); it != gxsIds.end(); ++it)
|
|
||||||
addRecipient(TO, *it);
|
for( std::set<RsGxsId>::const_iterator it = gxsIds.begin(); it != gxsIds.end(); ++it)
|
||||||
|
addRecipient(TO, *it) ;
|
||||||
|
|
||||||
QString text = buildRecommendHtml(sslIds);
|
QString text = buildRecommendHtml(sslIds);
|
||||||
ui.msgText->textCursor().insertHtml(text);
|
ui.msgText->textCursor().insertHtml(text);
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>935</width>
|
<width>936</width>
|
||||||
<height>706</height>
|
<height>714</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
|
@ -18,9 +18,9 @@
|
||||||
<normaloff>:/images/folder-draft.png</normaloff>:/images/folder-draft.png</iconset>
|
<normaloff>:/images/folder-draft.png</normaloff>:/images/folder-draft.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="centralwidget">
|
<widget class="QWidget" name="centralwidget">
|
||||||
<layout class="QGridLayout" name="gridLayout_3">
|
<layout class="QGridLayout" name="centralwidgetGLayout">
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QSplitter" name="splitter_2">
|
<widget class="QSplitter" name="centralwidgetHSplitter">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Horizontal</enum>
|
<enum>Qt::Horizontal</enum>
|
||||||
</property>
|
</property>
|
||||||
|
@ -59,7 +59,7 @@
|
||||||
<string>Address list:</string>
|
<string>Address list:</string>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="dockWidgetContents">
|
<widget class="QWidget" name="dockWidgetContents">
|
||||||
<layout class="QVBoxLayout" name="verticalLayout">
|
<layout class="QVBoxLayout" name="dockWidgetContentsVLayout">
|
||||||
<property name="leftMargin">
|
<property name="leftMargin">
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
|
@ -110,9 +110,9 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_4">
|
<layout class="QVBoxLayout" name="addButtonVLayout">
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
<layout class="QHBoxLayout" name="addButtonHLayout">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="addCcButton">
|
<widget class="QPushButton" name="addCcButton">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
|
@ -155,7 +155,7 @@
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
<layout class="QHBoxLayout" name="recommendHLayout">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="addRecommendButton">
|
<widget class="QPushButton" name="addRecommendButton">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
|
@ -176,12 +176,12 @@
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QSplitter" name="splitter">
|
<widget class="QSplitter" name="messageSplitter">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Vertical</enum>
|
<enum>Qt::Vertical</enum>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="layoutWidget">
|
<widget class="QWidget" name="layoutWidget">
|
||||||
<layout class="QGridLayout" name="gridLayout_2">
|
<layout class="QGridLayout" name="messageGLayout">
|
||||||
<property name="verticalSpacing">
|
<property name="verticalSpacing">
|
||||||
<number>2</number>
|
<number>2</number>
|
||||||
</property>
|
</property>
|
||||||
|
@ -199,7 +199,7 @@
|
||||||
<property name="frameShadow">
|
<property name="frameShadow">
|
||||||
<enum>QFrame::Sunken</enum>
|
<enum>QFrame::Sunken</enum>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout_5">
|
<layout class="QGridLayout" name="toolBarFrameGLayout">
|
||||||
<property name="leftMargin">
|
<property name="leftMargin">
|
||||||
<number>6</number>
|
<number>6</number>
|
||||||
</property>
|
</property>
|
||||||
|
@ -213,7 +213,7 @@
|
||||||
<number>6</number>
|
<number>6</number>
|
||||||
</property>
|
</property>
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<layout class="QGridLayout">
|
<layout class="QGridLayout" name="toolButtonGLayout">
|
||||||
<property name="horizontalSpacing">
|
<property name="horizontalSpacing">
|
||||||
<number>1</number>
|
<number>1</number>
|
||||||
</property>
|
</property>
|
||||||
|
@ -789,7 +789,7 @@
|
||||||
<property name="frameShape">
|
<property name="frameShape">
|
||||||
<enum>QFrame::Box</enum>
|
<enum>QFrame::Box</enum>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_4">
|
<layout class="QHBoxLayout" name="distantFrameHLayout">
|
||||||
<property name="leftMargin">
|
<property name="leftMargin">
|
||||||
<number>6</number>
|
<number>6</number>
|
||||||
</property>
|
</property>
|
||||||
|
@ -866,9 +866,9 @@ border-image: url(:/images/closepressed.png)
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="0">
|
<item row="2" column="0">
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<layout class="QGridLayout" name="messageTitleGLayout">
|
||||||
<item row="3" column="1">
|
<item row="3" column="1">
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_6">
|
<layout class="QHBoxLayout" name="tagHLayout">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="tagButton">
|
<widget class="QPushButton" name="tagButton">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
|
@ -1120,8 +1120,8 @@ border-image: url(:/images/closepressed.png)
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>935</width>
|
<width>936</width>
|
||||||
<height>21</height>
|
<height>19</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
|
@ -1237,17 +1237,17 @@ border-image: url(:/images/closepressed.png)
|
||||||
<extends>QTextEdit</extends>
|
<extends>QTextEdit</extends>
|
||||||
<header location="global">gui/common/MimeTextEdit.h</header>
|
<header location="global">gui/common/MimeTextEdit.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
|
<customwidget>
|
||||||
|
<class>GxsIdChooser</class>
|
||||||
|
<extends>QComboBox</extends>
|
||||||
|
<header>gui/gxs/GxsIdChooser.h</header>
|
||||||
|
</customwidget>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>FriendSelectionWidget</class>
|
<class>FriendSelectionWidget</class>
|
||||||
<extends>QWidget</extends>
|
<extends>QWidget</extends>
|
||||||
<header>gui/common/FriendSelectionWidget.h</header>
|
<header>gui/common/FriendSelectionWidget.h</header>
|
||||||
<container>1</container>
|
<container>1</container>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
<customwidget>
|
|
||||||
<class>GxsIdChooser</class>
|
|
||||||
<extends>QComboBox</extends>
|
|
||||||
<header>gui/gxs/GxsIdChooser.h</header>
|
|
||||||
</customwidget>
|
|
||||||
</customwidgets>
|
</customwidgets>
|
||||||
<tabstops>
|
<tabstops>
|
||||||
<tabstop>titleEdit</tabstop>
|
<tabstop>titleEdit</tabstop>
|
||||||
|
@ -1261,8 +1261,8 @@ border-image: url(:/images/closepressed.png)
|
||||||
<tabstop>hashBox</tabstop>
|
<tabstop>hashBox</tabstop>
|
||||||
</tabstops>
|
</tabstops>
|
||||||
<resources>
|
<resources>
|
||||||
<include location="../images.qrc"/>
|
|
||||||
<include location="../emojione.qrc"/>
|
<include location="../emojione.qrc"/>
|
||||||
|
<include location="../images.qrc"/>
|
||||||
</resources>
|
</resources>
|
||||||
<connections/>
|
<connections/>
|
||||||
</ui>
|
</ui>
|
||||||
|
|
|
@ -42,7 +42,7 @@ public:
|
||||||
//! if (onlyEdit == true), user woll not be able to change file type,
|
//! if (onlyEdit == true), user woll not be able to change file type,
|
||||||
//! only command (used for editing existing commands)
|
//! only command (used for editing existing commands)
|
||||||
AddFileAssociationDialog( bool onlyEdit = false, QWidget *parent = 0 ) ;
|
AddFileAssociationDialog( bool onlyEdit = false, QWidget *parent = 0 ) ;
|
||||||
virtual ~AddFileAssociationDialog(){};
|
virtual ~AddFileAssociationDialog(){}
|
||||||
void setFileType(QString ft);
|
void setFileType(QString ft);
|
||||||
void setCommand(QString cmd);
|
void setCommand(QString cmd);
|
||||||
|
|
||||||
|
|
|
@ -326,7 +326,7 @@ FileAssociationsPage::addNewItemToTable(int row, int column,
|
||||||
void
|
void
|
||||||
FileAssociationsPage::testButtonClicked()
|
FileAssociationsPage::testButtonClicked()
|
||||||
{
|
{
|
||||||
AddFileAssociationDialog afad(this);// = new AddFileAssotiationDialog();
|
AddFileAssociationDialog afad(true, this);// = new AddFileAssotiationDialog();
|
||||||
|
|
||||||
// commented code below is a test for
|
// commented code below is a test for
|
||||||
// AddFileAssotiationDialog::loadSystemDefaultCommand(QString ft) method
|
// AddFileAssotiationDialog::loadSystemDefaultCommand(QString ft) method
|
||||||
|
|
|
@ -103,13 +103,12 @@ void RSPermissionMatrixWidget::mousePressEvent(QMouseEvent *e)
|
||||||
{
|
{
|
||||||
std::cerr << "Peer id: " << peer_id << ", service: " << service_id << std::endl;
|
std::cerr << "Peer id: " << peer_id << ", service: " << service_id << std::endl;
|
||||||
|
|
||||||
// make sure the service is not globally disabled
|
// Make sure the service is not globally disabled
|
||||||
|
|
||||||
RsServicePermissions serv_perms ;
|
RsServicePermissions serv_perms;
|
||||||
rsServiceControl->getServicePermissions(service_id,serv_perms) ;
|
rsServiceControl->getServicePermissions(service_id,serv_perms);
|
||||||
|
|
||||||
if(!serv_perms.mDefaultAllowed)
|
if (!serv_perms.mDefaultAllowed) return;
|
||||||
return ;
|
|
||||||
|
|
||||||
switchPermission(service_id,peer_id) ;
|
switchPermission(service_id,peer_id) ;
|
||||||
update() ;
|
update() ;
|
||||||
|
@ -335,7 +334,7 @@ void RSPermissionMatrixWidget::paintEvent(QPaintEvent *)
|
||||||
int X = matrix_start_x + S*fCOL_SIZE/2 - 2 + i*S*fCOL_SIZE - text_width/2;
|
int X = matrix_start_x + S*fCOL_SIZE/2 - 2 + i*S*fCOL_SIZE - text_width/2;
|
||||||
|
|
||||||
int height_index = 0 ;
|
int height_index = 0 ;
|
||||||
while(last_width[height_index] > X-5 && height_index < last_width.size()-1)
|
while(last_width[height_index] > X-5 && height_index < ((int)last_width.size()-1) )
|
||||||
++height_index ;
|
++height_index ;
|
||||||
|
|
||||||
int Y = S*fMATRIX_START_Y - S*fICON_SIZE_Y - 2 - line_height * height_index;
|
int Y = S*fMATRIX_START_Y - S*fICON_SIZE_Y - 2 - line_height * height_index;
|
||||||
|
|
|
@ -231,7 +231,7 @@ void ServerPage::load()
|
||||||
ui.iconlabel_upnp->show();
|
ui.iconlabel_upnp->show();
|
||||||
ui.label_nat->show();
|
ui.label_nat->show();
|
||||||
|
|
||||||
ui.hiddenMode_LB->hide() ;
|
ui.textlabel_hiddenMode->hide() ;
|
||||||
ui.iconlabel_hiddenMode->hide() ;
|
ui.iconlabel_hiddenMode->hide() ;
|
||||||
|
|
||||||
/* set net mode */
|
/* set net mode */
|
||||||
|
@ -888,7 +888,7 @@ void ServerPage::loadHiddenNode()
|
||||||
ui.iconlabel_upnp->hide();
|
ui.iconlabel_upnp->hide();
|
||||||
ui.label_nat->hide();
|
ui.label_nat->hide();
|
||||||
|
|
||||||
ui.hiddenMode_LB->show();
|
ui.textlabel_hiddenMode->show();
|
||||||
ui.iconlabel_hiddenMode->show() ;
|
ui.iconlabel_hiddenMode->show() ;
|
||||||
ui.iconlabel_hiddenMode->setPixmap(QPixmap(":/images/ledon1.png"));
|
ui.iconlabel_hiddenMode->setPixmap(QPixmap(":/images/ledon1.png"));
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
<height>568</height>
|
<height>568</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_3">
|
<layout class="QVBoxLayout" name="ServerPageVLayout">
|
||||||
<property name="leftMargin">
|
<property name="leftMargin">
|
||||||
<number>6</number>
|
<number>6</number>
|
||||||
</property>
|
</property>
|
||||||
|
@ -26,15 +26,15 @@
|
||||||
<item>
|
<item>
|
||||||
<widget class="QTabWidget" name="tabWidget">
|
<widget class="QTabWidget" name="tabWidget">
|
||||||
<property name="currentIndex">
|
<property name="currentIndex">
|
||||||
<number>0</number>
|
<number>2</number>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="tab">
|
<widget class="QWidget" name="tabNetConf">
|
||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
<string>Network Configuration</string>
|
<string>Network Configuration</string>
|
||||||
</attribute>
|
</attribute>
|
||||||
<layout class="QGridLayout" name="gridLayout_3">
|
<layout class="QGridLayout" name="tabNetConfGLayout">
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
<layout class="QHBoxLayout" name="netConfHLayout">
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout">
|
<layout class="QHBoxLayout">
|
||||||
<property name="spacing">
|
<property name="spacing">
|
||||||
|
@ -63,7 +63,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="label">
|
<widget class="QLabel" name="label_localAddress">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Local Address</string>
|
<string>Local Address</string>
|
||||||
</property>
|
</property>
|
||||||
|
@ -84,7 +84,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="label_14">
|
<widget class="QLabel" name="label_totalDownloadRate">
|
||||||
<property name="font">
|
<property name="font">
|
||||||
<font>
|
<font>
|
||||||
<weight>50</weight>
|
<weight>50</weight>
|
||||||
|
@ -97,7 +97,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="label_15">
|
<widget class="QLabel" name="label_totalUploadRate">
|
||||||
<property name="font">
|
<property name="font">
|
||||||
<font>
|
<font>
|
||||||
<weight>50</weight>
|
<weight>50</weight>
|
||||||
|
@ -145,7 +145,7 @@
|
||||||
<widget class="QLineEdit" name="localAddress"/>
|
<widget class="QLineEdit" name="localAddress"/>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="1">
|
<item row="2" column="1">
|
||||||
<widget class="QLabel" name="label_5">
|
<widget class="QLabel" name="localPortLabel">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Port:</string>
|
<string>Port:</string>
|
||||||
</property>
|
</property>
|
||||||
|
@ -171,7 +171,7 @@
|
||||||
<widget class="QLineEdit" name="extAddress"/>
|
<widget class="QLineEdit" name="extAddress"/>
|
||||||
</item>
|
</item>
|
||||||
<item row="3" column="1">
|
<item row="3" column="1">
|
||||||
<widget class="QLabel" name="label_4">
|
<widget class="QLabel" name="extPortLabel">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Port:</string>
|
<string>Port:</string>
|
||||||
</property>
|
</property>
|
||||||
|
@ -249,7 +249,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="3" column="3">
|
<item row="3" column="3">
|
||||||
<layout class="QGridLayout" name="_6">
|
<layout class="QGridLayout" name="gLayout_ext">
|
||||||
<property name="leftMargin">
|
<property name="leftMargin">
|
||||||
<number>6</number>
|
<number>6</number>
|
||||||
</property>
|
</property>
|
||||||
|
@ -285,7 +285,7 @@
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="3">
|
<item row="2" column="3">
|
||||||
<layout class="QGridLayout" name="_4">
|
<layout class="QGridLayout" name="gLayout_netLimited">
|
||||||
<property name="leftMargin">
|
<property name="leftMargin">
|
||||||
<number>6</number>
|
<number>6</number>
|
||||||
</property>
|
</property>
|
||||||
|
@ -346,7 +346,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="3">
|
<item row="1" column="3">
|
||||||
<layout class="QGridLayout" name="_5">
|
<layout class="QGridLayout" name="gLayout_upnp">
|
||||||
<property name="leftMargin">
|
<property name="leftMargin">
|
||||||
<number>6</number>
|
<number>6</number>
|
||||||
</property>
|
</property>
|
||||||
|
@ -379,7 +379,7 @@
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="3">
|
<item row="0" column="3">
|
||||||
<layout class="QGridLayout" name="_7">
|
<layout class="QGridLayout" name="gLayout_hiddenMode">
|
||||||
<property name="leftMargin">
|
<property name="leftMargin">
|
||||||
<number>6</number>
|
<number>6</number>
|
||||||
</property>
|
</property>
|
||||||
|
@ -403,7 +403,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="1">
|
<item row="0" column="1">
|
||||||
<widget class="QLabel" name="hiddenMode_LB">
|
<widget class="QLabel" name="textlabel_hiddenMode">
|
||||||
<property name="font">
|
<property name="font">
|
||||||
<font>
|
<font>
|
||||||
<weight>75</weight>
|
<weight>75</weight>
|
||||||
|
@ -427,16 +427,16 @@
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="0">
|
<item row="1" column="0">
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_7">
|
<layout class="QHBoxLayout" name="ipAddressHLayout">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="label_7">
|
<widget class="QLabel" name="ipAddressLabel">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Known / Previous IPs:</string>
|
<string>Known / Previous IPs:</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<spacer name="horizontalSpacer">
|
<spacer name="ipAddressHSpacer">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Horizontal</enum>
|
<enum>Qt::Horizontal</enum>
|
||||||
</property>
|
</property>
|
||||||
|
@ -511,13 +511,12 @@ behind a firewall or a VPN.</string>
|
||||||
<zorder>allowIpDeterminationCB</zorder>
|
<zorder>allowIpDeterminationCB</zorder>
|
||||||
<zorder>IPServersLV</zorder>
|
<zorder>IPServersLV</zorder>
|
||||||
<zorder>ipAddressList</zorder>
|
<zorder>ipAddressList</zorder>
|
||||||
<zorder></zorder>
|
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QWidget" name="tab_2">
|
<widget class="QWidget" name="tabIPFilters">
|
||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
<string>IP Filters</string>
|
<string>IP Filters</string>
|
||||||
</attribute>
|
</attribute>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_11">
|
<layout class="QVBoxLayout" name="tabIPFiltersVLayout">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QCheckBox" name="denyAll_CB">
|
<widget class="QCheckBox" name="denyAll_CB">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
|
@ -526,7 +525,7 @@ behind a firewall or a VPN.</string>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QTabWidget" name="tabWidget">
|
<widget class="QTabWidget" name="ipTabWidget">
|
||||||
<property name="currentIndex">
|
<property name="currentIndex">
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
|
@ -701,13 +700,13 @@ behind a firewall or a VPN.</string>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QGroupBox" name="groupBox_3">
|
<widget class="QGroupBox" name="manualInputGBox">
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Manual input</string>
|
<string>Manual input</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_10">
|
<layout class="QVBoxLayout" name="manualInputGBoxVLayout">
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_10">
|
<layout class="QHBoxLayout" name="ipinputHLayout">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLineEdit" name="ipInput_LE">
|
<widget class="QLineEdit" name="ipInput_LE">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
|
@ -771,23 +770,23 @@ behind a firewall or a VPN.</string>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QWidget" name="HiddenTAB">
|
<widget class="QWidget" name="tabHiddenConf">
|
||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
<string>Hidden Service Configuration</string>
|
<string>Hidden Service Configuration</string>
|
||||||
</attribute>
|
</attribute>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_8">
|
<layout class="QVBoxLayout" name="tabHiddenConfVLayout">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QGroupBox" name="torpage_outgoing">
|
<widget class="QGroupBox" name="hiddenpage_outgoing">
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Outgoing Connections</string>
|
<string>Outgoing Connections</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_5">
|
<layout class="QVBoxLayout" name="hiddenpage_outgoingVLayout">
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_8">
|
<layout class="QHBoxLayout" name="torSocksHLayout">
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_4">
|
<layout class="QHBoxLayout" name="hiddenpage_proxyHLayout_tor">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="label_3">
|
<widget class="QLabel" name="hiddenpage_proxyLabel_tor">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Tor Socks Proxy</string>
|
<string>Tor Socks Proxy</string>
|
||||||
</property>
|
</property>
|
||||||
|
@ -812,7 +811,7 @@ behind a firewall or a VPN.</string>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_5">
|
<layout class="QHBoxLayout" name="hiddenpage_proxyOKHLayout_tor">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="iconlabel_tor_outgoing">
|
<widget class="QLabel" name="iconlabel_tor_outgoing">
|
||||||
<property name="maximumSize">
|
<property name="maximumSize">
|
||||||
|
@ -830,7 +829,7 @@ behind a firewall or a VPN.</string>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="label_9">
|
<widget class="QLabel" name="label_tor_outgoing">
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string><html><head/><body><p>This led is green when the port listen on the left is active on your computer. It does not</p><p>mean that your Retroshare traffic transits though Tor. It will do so only if </p><p>you connect to Hidden nodes, or if you are running a Hidden node yourself.</p></body></html></string>
|
<string><html><head/><body><p>This led is green when the port listen on the left is active on your computer. It does not</p><p>mean that your Retroshare traffic transits though Tor. It will do so only if </p><p>you connect to Hidden nodes, or if you are running a Hidden node yourself.</p></body></html></string>
|
||||||
</property>
|
</property>
|
||||||
|
@ -844,7 +843,7 @@ behind a firewall or a VPN.</string>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_15">
|
<layout class="QHBoxLayout" name="i2pHLayout">
|
||||||
<property name="topMargin">
|
<property name="topMargin">
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
|
@ -852,9 +851,9 @@ behind a firewall or a VPN.</string>
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_17">
|
<layout class="QHBoxLayout" name="hiddenpage_proxyHLayout_i2p">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="label_6">
|
<widget class="QLabel" name="hiddenpage_proxyLabel_i2p">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>I2P Socks Proxy</string>
|
<string>I2P Socks Proxy</string>
|
||||||
</property>
|
</property>
|
||||||
|
@ -879,7 +878,7 @@ behind a firewall or a VPN.</string>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_18">
|
<layout class="QHBoxLayout" name="hiddenpage_proxyOKHLayout_i2p">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="iconlabel_i2p_outgoing">
|
<widget class="QLabel" name="iconlabel_i2p_outgoing">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
|
@ -891,7 +890,7 @@ behind a firewall or a VPN.</string>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="label_2">
|
<widget class="QLabel" name="label_i2p_outgoing">
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string><html><head/><body><p>This led is green when the port listen on the left is active on your computer. It does not</p><p>mean that your Retroshare traffic transits though I2P. It will do so only if </p><p>you connect to Hidden nodes, or if you are running a Hidden node yourself.</p></body></html></string>
|
<string><html><head/><body><p>This led is green when the port listen on the left is active on your computer. It does not</p><p>mean that your Retroshare traffic transits though I2P. It will do so only if </p><p>you connect to Hidden nodes, or if you are running a Hidden node yourself.</p></body></html></string>
|
||||||
</property>
|
</property>
|
||||||
|
@ -905,7 +904,7 @@ behind a firewall or a VPN.</string>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPlainTextEdit" name="plainTextEdit">
|
<widget class="QPlainTextEdit" name="hiddenpageOutHelpPlainTextEdit">
|
||||||
<property name="maximumSize">
|
<property name="maximumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>16777215</width>
|
<width>16777215</width>
|
||||||
|
@ -943,9 +942,9 @@ You can connect to Hidden Nodes, even if you are running a standard Node, so why
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Incoming Service Connections</string>
|
<string>Incoming Service Connections</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_7">
|
<layout class="QVBoxLayout" name="hiddenpage_incomingVLayout">
|
||||||
<item>
|
<item>
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<layout class="QGridLayout" name="incomingAddressGLayout">
|
||||||
<item row="0" column="2">
|
<item row="0" column="2">
|
||||||
<widget class="QSpinBox" name="hiddenpage_localPort">
|
<widget class="QSpinBox" name="hiddenpage_localPort">
|
||||||
<property name="minimum">
|
<property name="minimum">
|
||||||
|
@ -957,7 +956,7 @@ You can connect to Hidden Nodes, even if you are running a standard Node, so why
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="3">
|
<item row="0" column="3">
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_9">
|
<layout class="QHBoxLayout" name="testIncomingHLayout">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="testIncoming_PB">
|
<widget class="QPushButton" name="testIncoming_PB">
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
|
@ -988,7 +987,7 @@ You can connect to Hidden Nodes, even if you are running a standard Node, so why
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QLabel" name="label_10">
|
<widget class="QLabel" name="l_localAddress">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Local Address</string>
|
<string>Local Address</string>
|
||||||
</property>
|
</property>
|
||||||
|
@ -1009,7 +1008,7 @@ You can connect to Hidden Nodes, even if you are running a standard Node, so why
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="3">
|
<item row="1" column="3">
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
<layout class="QHBoxLayout" name="incomingTestResultHLayout">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="iconlabel_service_incoming">
|
<widget class="QLabel" name="iconlabel_service_incoming">
|
||||||
<property name="maximumSize">
|
<property name="maximumSize">
|
||||||
|
@ -1041,9 +1040,9 @@ You can connect to Hidden Nodes, even if you are running a standard Node, so why
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_6">
|
<layout class="QVBoxLayout" name="hiddenpage_configurationVLayout">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="label_12">
|
<widget class="QLabel" name="l_hiddenpage_configuration">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Expected Configuration:</string>
|
<string>Expected Configuration:</string>
|
||||||
</property>
|
</property>
|
||||||
|
@ -1083,7 +1082,7 @@ You can connect to Hidden Nodes, even if you are running a standard Node, so why
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPlainTextEdit" name="plainTextEdit_2">
|
<widget class="QPlainTextEdit" name="hiddenpageInHelpPlainTextEdit">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
|
@ -1117,7 +1116,7 @@ If you have issues connecting over Tor check the Tor logs too.</string>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<spacer name="verticalSpacer_2">
|
<spacer name="mainVSpacer">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Vertical</enum>
|
<enum>Qt::Vertical</enum>
|
||||||
</property>
|
</property>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue