Пример #1
0
/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void dspDepositsRegister::languageChange()
{
  retranslateUi(this);
}
Пример #2
0
/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void financialLayout::languageChange()
{
  retranslateUi(this);
}
Пример #3
0
void accountNumbers::languageChange()
{
  retranslateUi(this);
}
void customCommandArgument::languageChange()
{
  retranslateUi(this);
}
Пример #5
0
void batchItem::languageChange()
{
  retranslateUi(this);
}
Пример #6
0
void salesReps::languageChange()
{
  retranslateUi(this);
}
Пример #7
0
/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void vendor::languageChange()
{
  retranslateUi(this);
}
Пример #8
0
/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void smsAddUI::languageChange()
{
    retranslateUi(this);
}
Пример #9
0
void docAttach::languageChange()
{
  retranslateUi(this);
}
Пример #10
0
void dspSingleLevelWhereUsed::languageChange()
{
  retranslateUi(this);
}
Пример #11
0
void UIWizardFirstRunPageBasic::initializePage()
{
    /* Translate page: */
    retranslateUi();
}
Пример #12
0
/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void updateOUTLevelByItem::languageChange()
{
    retranslateUi(this);
}
Пример #13
0
/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void postPurchaseOrder::languageChange()
{
    retranslateUi(this);
}
Пример #14
0
void atlasMap::languageChange()
{
  retranslateUi(this);
}
Пример #15
0
void enterPoReceipt::languageChange()
{
  retranslateUi(this);
}
Пример #16
0
void relativeCalendarItem::languageChange()
{
  retranslateUi(this);
}
Пример #17
0
/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void taxZones::languageChange()
{
  retranslateUi(this);
}
Пример #18
0
void dspSalesOrdersByCustomer::languageChange()
{
  display::languageChange();
  retranslateUi(this);
}
Пример #19
0
/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void rptBalanceSheet::languageChange()
{
    retranslateUi(this);
}
Пример #20
0
/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void itemPricingSchedule::languageChange()
{
  retranslateUi(this);
}
Пример #21
0
void currencyConversion::languageChange()
{
  retranslateUi(this);
}
void openReturnAuthorizations::languageChange()
{
    retranslateUi(this);
}
Пример #23
0
/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void itemImages::languageChange()
{
    retranslateUi(this);
}
Пример #24
0
void ImportWindow::languageChange()
{
    retranslateUi(this);
}
/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void QG_LinePolygonOptions::languageChange()
{
    retranslateUi(this);
}
Пример #26
0
/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void QG_ImageOptions::languageChange()
{
    retranslateUi(this);
}
Пример #27
0
void configureEncryption::languageChange()
{
  retranslateUi(this);
}
Пример #28
0
void returnAuthorizationWorkbench::languageChange()
{
  retranslateUi(this);
}
Пример #29
0
/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void dspCustomersByCustomerType::languageChange()
{
  retranslateUi(this);
}
Пример #30
0
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();
}