/* * Sets the strings of the subwidgets using the current * language. */ void dspDepositsRegister::languageChange() { retranslateUi(this); }
/* * Sets the strings of the subwidgets using the current * language. */ void financialLayout::languageChange() { retranslateUi(this); }
void accountNumbers::languageChange() { retranslateUi(this); }
void customCommandArgument::languageChange() { retranslateUi(this); }
void batchItem::languageChange() { retranslateUi(this); }
void salesReps::languageChange() { retranslateUi(this); }
/* * Sets the strings of the subwidgets using the current * language. */ void vendor::languageChange() { retranslateUi(this); }
/* * Sets the strings of the subwidgets using the current * language. */ void smsAddUI::languageChange() { retranslateUi(this); }
void docAttach::languageChange() { retranslateUi(this); }
void dspSingleLevelWhereUsed::languageChange() { retranslateUi(this); }
void UIWizardFirstRunPageBasic::initializePage() { /* Translate page: */ retranslateUi(); }
/* * Sets the strings of the subwidgets using the current * language. */ void updateOUTLevelByItem::languageChange() { retranslateUi(this); }
/* * Sets the strings of the subwidgets using the current * language. */ void postPurchaseOrder::languageChange() { retranslateUi(this); }
void atlasMap::languageChange() { retranslateUi(this); }
void enterPoReceipt::languageChange() { retranslateUi(this); }
void relativeCalendarItem::languageChange() { retranslateUi(this); }
/* * Sets the strings of the subwidgets using the current * language. */ void taxZones::languageChange() { retranslateUi(this); }
void dspSalesOrdersByCustomer::languageChange() { display::languageChange(); retranslateUi(this); }
/* * Sets the strings of the subwidgets using the current * language. */ void rptBalanceSheet::languageChange() { retranslateUi(this); }
/* * Sets the strings of the subwidgets using the current * language. */ void itemPricingSchedule::languageChange() { retranslateUi(this); }
void currencyConversion::languageChange() { retranslateUi(this); }
void openReturnAuthorizations::languageChange() { retranslateUi(this); }
/* * Sets the strings of the subwidgets using the current * language. */ void itemImages::languageChange() { retranslateUi(this); }
void ImportWindow::languageChange() { retranslateUi(this); }
/* * Sets the strings of the subwidgets using the current * language. */ void QG_LinePolygonOptions::languageChange() { retranslateUi(this); }
/* * Sets the strings of the subwidgets using the current * language. */ void QG_ImageOptions::languageChange() { retranslateUi(this); }
void configureEncryption::languageChange() { retranslateUi(this); }
void returnAuthorizationWorkbench::languageChange() { retranslateUi(this); }
/* * Sets the strings of the subwidgets using the current * language. */ void dspCustomersByCustomerType::languageChange() { retranslateUi(this); }
void StatusWidget::setStatusData( const Status &status ) { statusData = &status.entry; retranslateUi(); m_ui->favoriteReplyButton->disconnect(); m_ui->userName->setText( statusData->userInfo.name ); m_ui->userStatus->setText( statusData->text ); m_ui->userImage->setPixmap( status.image ); //adjust tooltip for reply/delete button if ( statusData->type == Entry::Status ) { if ( statusData->isOwn ) { m_ui->replyDeleteButton->setIcon( QIcon(":/icons/cross_16.png") ); m_ui->replyDeleteButton->setToolTip( tr( "Delete status" ) ); } else { m_ui->replyDeleteButton->setIcon( QIcon(":/icons/reply_16.png") ); m_ui->replyDeleteButton->setToolTip( tr( "Reply to %1" ).arg( statusData->userInfo.screenName ) ); } } else { m_ui->replyDeleteButton->setIcon( QIcon(":/icons/cross_16.png") ); m_ui->replyDeleteButton->setToolTip( tr( "Delete message" ) ); } if ( statusData->type == Entry::Status ) deleteAction->setText( tr( "Delete status" ) ); else deleteAction->setText( tr( "Delete message" ) ); if ( currentLogin != TwitterAPI::PUBLIC_TIMELINE ) { if ( statusData->type == Entry::DirectMessage ) { m_ui->favoriteReplyButton->setIcon( QIcon( ":/icons/reply_16.png" ) ); m_ui->favoriteReplyButton->setToolTip( tr( "Reply to %1" ).arg( statusData->userInfo.screenName ) ); connect( m_ui->favoriteReplyButton, SIGNAL(clicked()), this, SLOT(slotDM()) ); } else { if ( statusData->favorited ) { m_ui->favoriteReplyButton->setIcon( QIcon( ":/icons/star_on_16.png" ) ); if ( currentNetwork == TwitterAPI::SOCIALNETWORK_IDENTICA ) { m_ui->favoriteReplyButton->setToolTip( QString() ); favoriteAction->setText( tr( "Remove from Favorites" ) ); favoriteAction->setEnabled( false ); } else { m_ui->favoriteReplyButton->setToolTip( tr( "Remove from Favorites" ) ); favoriteAction->setText( m_ui->favoriteReplyButton->toolTip() ); favoriteAction->setEnabled( true ); } } else { m_ui->favoriteReplyButton->setIcon( QIcon( ":/icons/star_off_16.png" ) ); m_ui->favoriteReplyButton->setToolTip( tr( "Add to Favorites" ) ); favoriteAction->setText( m_ui->favoriteReplyButton->toolTip() ); favoriteAction->setEnabled( true ); } connect( m_ui->favoriteReplyButton, SIGNAL(clicked()), this, SLOT(slotFavorite()) ); } } else { favoriteAction->setEnabled( false ); } //display status's send time if( statusData->localTime.date() >= QDateTime::currentDateTime().date()) //today m_ui->timeStamp->setText( statusData->localTime.time().toString(Qt::SystemLocaleShortDate) ); else //yesterday or earlier m_ui->timeStamp->setText( statusData->localTime.toString(Qt::SystemLocaleShortDate) ); //display in_reply_to link if( statusData->hasInReplyToStatusId ) { QString inReplyToUrl; if ( this->currentNetwork == TwitterAPI::SOCIALNETWORK_TWITTER ) { inReplyToUrl = "http://twitter.com/" + statusData->inReplyToScreenName + "/statuses/" + QString::number( statusData->inReplyToStatusId ); } else if ( this->currentNetwork == TwitterAPI::SOCIALNETWORK_IDENTICA ) //for identica it works as is inReplyToUrl = "http://identi.ca/notice/" + QString::number( statusData->inReplyToStatusId ); m_ui->timeStamp->setText( m_ui->timeStamp->text().append( " " ) .append( tr( "in reply to %1" ) // TODO: links theming .arg( QString( "<a style=\"color:rgb(255, 248, 140)\" href=%1>%2</a>" ) .arg( inReplyToUrl, statusData->inReplyToScreenName ) ) ) ); } m_ui->infoButton->setData( &status ); setState( status.state ); setupMenu(); adjustSize(); }