void TaskStatusItemModel::setProject( Project *project )
{
    clear();
    if ( m_project ) {
        disconnect( m_project, SIGNAL( localeChanged() ), this, SLOT( slotLayoutChanged() ) );
        disconnect( m_project, SIGNAL( wbsDefinitionChanged() ), this, SLOT( slotWbsDefinitionChanged() ) );
        disconnect( m_project, SIGNAL( nodeChanged( Node* ) ), this, SLOT( slotNodeChanged( Node* ) ) );
        disconnect( m_project, SIGNAL( nodeToBeAdded( Node*, int ) ), this, SLOT( slotNodeToBeInserted(  Node*, int ) ) );
        disconnect( m_project, SIGNAL( nodeToBeRemoved( Node* ) ), this, SLOT( slotNodeToBeRemoved( Node* ) ) );
        disconnect(m_project, SIGNAL(nodeToBeMoved(Node*,int,Node*,int)), this, SLOT(slotNodeToBeMoved(Node*,int,Node*,int)));
    
        disconnect( m_project, SIGNAL( nodeAdded( Node* ) ), this, SLOT( slotNodeInserted( Node* ) ) );
        disconnect( m_project, SIGNAL( nodeRemoved( Node* ) ), this, SLOT( slotNodeRemoved( Node* ) ) );
        disconnect(m_project, SIGNAL(nodeMoved(Node*)), this, SLOT(slotNodeMoved(Node*)));
    }
    m_project = project;
    m_nodemodel.setProject( project );
    if ( project ) {
        connect( m_project, SIGNAL( localeChanged() ), this, SLOT( slotLayoutChanged() ) );
        connect( m_project, SIGNAL( wbsDefinitionChanged() ), this, SLOT( slotWbsDefinitionChanged() ) );
        connect( m_project, SIGNAL( nodeChanged( Node* ) ), this, SLOT( slotNodeChanged( Node* ) ) );
        connect( m_project, SIGNAL( nodeToBeAdded( Node*, int ) ), this, SLOT( slotNodeToBeInserted(  Node*, int ) ) );
        connect( m_project, SIGNAL( nodeToBeRemoved( Node* ) ), this, SLOT( slotNodeToBeRemoved( Node* ) ) );
        connect(m_project, SIGNAL(nodeToBeMoved(Node*,int,Node*,int)), this, SLOT(slotNodeToBeMoved(Node*,int,Node*,int)));

        connect( m_project, SIGNAL( nodeAdded( Node* ) ), this, SLOT( slotNodeInserted( Node* ) ) );
        connect( m_project, SIGNAL( nodeRemoved( Node* ) ), this, SLOT( slotNodeRemoved( Node* ) ) );
        connect(m_project, SIGNAL(nodeMoved(Node*)), this, SLOT(slotNodeMoved(Node*)));

    }
    reset();
}
Beispiel #2
0
void KLocaleConfigTime::slotTimeFmtChanged(const QString &t)
{
  //  m_locale->setTimeFormat(t);
  m_locale->setTimeFormat( userToStore( timeMap(), t ) );

  emit localeChanged();
}
Beispiel #3
0
GlobalUISession::GlobalUISession() :
   localHuman_(0), localEngine_(0), localHuman1_(0), localHuman2_(0),
   gameSession_(0), keyRemapIdx_(-1), menuType_(menuNone)
{
   initialize();
   //
   initialPosition_ = ChessPosition::fromString(toStdString(g_settings.initialPositionFen()));
   initialPosition_.setChess960(g_settings.isChess960());
   //
   QObject::connect(&g_settings, SIGNAL(playerNameChanged()), this, SLOT(playerNameChanged()), Qt::UniqueConnection);
   QObject::connect(&g_settings, SIGNAL(engineChanged()), this, SLOT(engineChanged()), Qt::UniqueConnection);
   QObject::connect(&g_settings, SIGNAL(ponderingChanged()), this, SLOT(ponderingChanged()), Qt::UniqueConnection);
   QObject::connect(&g_settings, SIGNAL(localeChanged()), this, SLOT(localeChanged()), Qt::UniqueConnection);
   QObject::connect(&g_localChessGui, SIGNAL(keyPressed(Qt::Key,Qt::KeyboardModifiers)), this, SLOT(keyPressed(Qt::Key, Qt::KeyboardModifiers)), Qt::UniqueConnection);
   QObject::connect(&g_localChessGui, SIGNAL(isExiting()), this, SLOT(isExiting()));
}
Beispiel #4
0
void Settings::setLocale(const QString &value)
{
    if (getLocale() != value) {
        settings.setValue("locale", value);
        emit localeChanged();
    }
}
Beispiel #5
0
KLocaleConfigNumber::KLocaleConfigNumber(KLocale *locale, QWidget *parent, const char *name) : QWidget(parent, name), m_locale(locale)
{
    QGridLayout *lay = new QGridLayout(this, 5, 2, KDialog::marginHint(), KDialog::spacingHint());
    lay->setAutoAdd(TRUE);

    m_labDecSym = new QLabel(this, I18N_NOOP("&Decimal symbol:"));
    m_edDecSym = new QLineEdit(this);
    connect(m_edDecSym, SIGNAL(textChanged(const QString &)), this, SLOT(slotDecSymChanged(const QString &)));
    m_labDecSym->setBuddy(m_edDecSym);

    m_labThoSep = new QLabel(this, I18N_NOOP("Tho&usands separator:"));
    m_edThoSep = new QLineEdit(this);
    connect(m_edThoSep, SIGNAL(textChanged(const QString &)), this, SLOT(slotThoSepChanged(const QString &)));
    m_labThoSep->setBuddy(m_edThoSep);

    m_labMonPosSign = new QLabel(this, I18N_NOOP("Positive si&gn:"));
    m_edMonPosSign = new QLineEdit(this);
    connect(m_edMonPosSign, SIGNAL(textChanged(const QString &)), this, SLOT(slotMonPosSignChanged(const QString &)));
    m_labMonPosSign->setBuddy(m_edMonPosSign);

    m_labMonNegSign = new QLabel(this, I18N_NOOP("&Negative sign:"));
    m_edMonNegSign = new QLineEdit(this);
    connect(m_edMonNegSign, SIGNAL(textChanged(const QString &)), this, SLOT(slotMonNegSignChanged(const QString &)));
    m_labMonNegSign->setBuddy(m_edMonNegSign);

    lay->setColStretch(1, 1);

    connect(this, SIGNAL(localeChanged()), SLOT(slotLocaleChanged()));
}
Beispiel #6
0
void KLocaleConfigTime::slotDateMonthNamePossChanged()
{
  if (m_locale->nounDeclension())
  {
    m_locale->setDateMonthNamePossessive(m_chDateMonthNamePossessive->isChecked());
    emit localeChanged();
  }
}
Beispiel #7
0
void DateSelector::setLocale(const QLocale &locale)
{
    if (m_locale == locale)
        return;

    m_locale = locale;
    Q_EMIT localeChanged();
}
void QQnxAbstractVirtualKeyboard::setLocale(const QLocale &locale)
{
    if (locale == m_locale)
        return;

    m_locale = locale;

    emit localeChanged(locale);
}
void QQuickMonthModel::setLocale(const QLocale &locale)
{
    Q_D(QQuickMonthModel);
    if (d->locale != locale) {
        if (d->populate(d->month, d->year, locale))
            emit dataChanged(index(0, 0), index(daysOnACalendarMonth - 1, 0));
        d->locale = locale;
        emit localeChanged();
    }
}
Beispiel #10
0
void YGWidget::internalInitial()
{
    _i = 0;
    //setWindowFlags(windowFlags() | Qt::WindowStaysOnTopHint);
    //setAttribute(Qt::WA_DeleteOnClose);  // It will result in crash;
    resize(GL_WIDTH, GL_HEIGHT);
    //setFocusPolicy(Qt::NoFocus);

    connect(ygApp, SIGNAL(localeChanged(QLocale)), this, SLOT(sltLocaleChanged(QLocale)));
}
void Settings::setLocale(const QString& locale)
{
    if (d->locale != locale)
    {
        d->locale = locale;

        emit localeChanged(locale);
        emit settingsChanged();
    }
}
Beispiel #12
0
bool pTranslationDialog::event( QEvent* event )
{
    switch ( event->type() ) {
        case QEvent::LocaleChange:
            localeChanged();
            break;
        default:
            break;
    }

    return QDialog::event( event );
}
Beispiel #13
0
LanguagesWidget::LanguagesWidget()
{
    QVBoxLayout *l = new QVBoxLayout(this);

    languagesLabel = new QLabel("Preferred languages:");
    languagesList = new QListWidget;

    l->addWidget(languagesLabel);
    l->addWidget(languagesList);

    localeChanged(QLocale());
}
Beispiel #14
0
bool UIMain::event( QEvent* event )
{
    switch ( event->type() ) {
        case QEvent::LocaleChange:
            localeChanged();
            break;
        default:
            break;
    }

    return QMainWindow::event( event );
}
Beispiel #15
0
bool pPaypalButton::event( QEvent* event )
{
    switch ( event->type() ) {
        case QEvent::LocaleChange:
            localeChanged();
            updatePixmap();
            break;
        default:
            break;
    }

    return QPushButton::event( event );
}
/*!
    Sets the locale to \a locale.
*/
void QQuickCalendarModel::setLocale(const QLocale &locale)
{
    if (locale != mLocale) {
        Qt::DayOfWeek previousFirstDayOfWeek = mLocale.firstDayOfWeek();
        mLocale = locale;
        emit localeChanged(mLocale);
        if (mLocale.firstDayOfWeek() != previousFirstDayOfWeek) {
            // We don't have a previousDate, so just use our current one...
            // it's ignored anyway, since we're forcing the repopulation.
            populateFromVisibleDate(mVisibleDate, true);
        }
    }
}
WizardInstaller::WizardInstaller(QWidget* parent) 
	: QWizard(parent)
{
    setWindowFlags(Qt::FramelessWindowHint);
    setOption(NoBackButtonOnStartPage);
    setOption(NoBackButtonOnLastPage);
    setWizardStyle(MacStyle);

    // create all wizard page now.
    WizardPage_Welcome * 	page_welcome		= new WizardPage_Welcome;
    WizardPage_Licence * 	page_licence 		= new WizardPage_Licence;

    WizardPage_installmode * page_install_mode = new WizardPage_installmode;
    WizardPage_Partition_Advanced * 	page_partition_advanced = new WizardPage_Partition_Advanced;

    WizardPage_chooseGroup * page_choosegroup = new WizardPage_chooseGroup;
    WizardPage_Summary * 	page_summary		= new WizardPage_Summary;
    WizardPage_Progress *	page_progress		= new WizardPage_Progress;

    WizardPage_UserAdd * page_useradd = new WizardPage_UserAdd;
    WizardPage_Finish * page_finish = new WizardPage_Finish;
    
    setPage(Page_Welcome, page_welcome);
    setPage(Page_Licence, page_licence);
    setPage(Page_InstallMode, page_install_mode);
    setPage(Page_Partition_Advanced, page_partition_advanced);
    setPage(Page_ChooseGroup, page_choosegroup);
    setPage(Page_Summary, page_summary);
    setPage(Page_Progress, page_progress);
    setPage(Page_UserAdd, page_useradd);
    setPage(Page_Finish, page_finish);
    
    connect( page_welcome, SIGNAL( localeChanged() ), this, SLOT( reTranslateUi() ) );
    connect( page_progress, SIGNAL( exitstate(bool) ), this, SLOT( setExitState(bool) ) );
    connect( page_finish, SIGNAL( exitstate(bool) ), this, SLOT( setExitState(bool) ) );
    
    m_exitstate = true;
    reTranslateUi();
    QPixmap background( g_appImgPath + "/installer-background.png" );
    setPixmap( QWizard::BackgroundPixmap, background );

    _indicator = new StageIndicator(this);
    _indicator->move(80, 80);
    _indicator->show();
    connect(this, SIGNAL(currentIdChanged(int)), this, SLOT(updateIndicator(int)));

    _board = new DashBoard(0);
    _board->move(0, 0);
    _board->show();
    _board->lower();
}
LocaleConfigMoneyDialog::LocaleConfigMoneyDialog( KLocale *locale, QWidget *p)
    : KDialog( p)
{
    setCaption( i18n("Currency Settings") );
    setButtons( Ok|Cancel );
    showButtonSeparator( true );
    m_panel = new LocaleConfigMoney( locale, this);

    setMainWidget(m_panel);

    enableButtonOk(false);

    connect(m_panel, SIGNAL(localeChanged()), SLOT(slotChanged()));
}
void UBKeyboardPalette::setLocale(int nLocale)
{
    if (locales != NULL)
    {
        nCurrentLocale = nLocale;

        setInput(locales[nCurrentLocale]);
        onLocaleChanged(locales[nCurrentLocale]);
        update();

		UBSettings::settings()->KeyboardLocale->set(nCurrentLocale);
    }
    emit localeChanged(nLocale);
}
QT_BEGIN_NAMESPACE

QQnxInputContext::QQnxInputContext(QQnxIntegration *integration, QQnxAbstractVirtualKeyboard &keyboard) :
    QPlatformInputContext(),
    m_inputPanelVisible(false),
    m_inputPanelLocale(QLocale::c()),
    m_integration(integration),
    m_virtualKeyboard(keyboard)
{
    connect(&keyboard, SIGNAL(heightChanged(int)), this, SLOT(keyboardHeightChanged()));
    connect(&keyboard, SIGNAL(visibilityChanged(bool)), this, SLOT(keyboardVisibilityChanged(bool)));
    connect(&keyboard, SIGNAL(localeChanged(QLocale)), this, SLOT(keyboardLocaleChanged(QLocale)));
    keyboardVisibilityChanged(keyboard.isVisible());
    keyboardLocaleChanged(keyboard.locale());
}
Beispiel #21
0
PaypalButton::PaypalButton( QWidget* parent )
    : QPushButton( parent ),
    m_pixmap(QPixmap(":/hotshots/icon_paypal.png"))
{
    setCursor( Qt::PointingHandCursor );
    setSizePolicy( QSizePolicy( QSizePolicy::Maximum, QSizePolicy::Maximum ) );

    m_QueryItems[ "path" ] = QString( "%1/cgi-bin/webscr" ).arg( PAYPAL_DOMAIN );
    m_QueryItems[ "cmd" ] = "_donations";
    m_QueryItems[ "bn" ] = QUrl::fromPercentEncoding( "PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted" );
    m_AutoOpenUrl = true;

    localeChanged();

    connect( this, SIGNAL( clicked() ), this, SLOT( _q_clicked() ) );
}
Beispiel #22
0
void QDeclarativeNdefTextRecord::setLocale(const QString &locale)
{
    QNdefNfcTextRecord textRecord(record());

    if (textRecord.locale() == locale)
        return;

    LocaleMatch previous = localeMatch();

    textRecord.setLocale(locale);
    setRecord(textRecord);
    emit localeChanged();

    if (previous != localeMatch())
        emit localeMatchChanged();
}
Beispiel #23
0
void pTranslationDialog::init( pTranslationManager* translationManager )
{
    if ( mTranslationManager == translationManager ) {
        return;
    }

    mTranslationManager = translationManager;
    mOriginalLocale = mTranslationManager ? mTranslationManager->currentLocale().name() : locale().name();

    if ( !ui ) {
        ui = new Ui::pTranslationDialog;
        ui->setupUi( this );
    }

    ui->tbReload->click();
    localeChanged();
}
Beispiel #24
0
pPaypalButton::pPaypalButton( QWidget* parent )
    : QPushButton( parent )
{
    setCursor( Qt::PointingHandCursor );
    setSizePolicy( QSizePolicy( QSizePolicy::Maximum, QSizePolicy::Maximum ) );

    mQueryItems[ QSL( "path" ) ] = QSL( "%1/cgi-bin/webscr" ).arg( QSL( PAYPAL_DOMAIN ) );
    mQueryItems[ QSL( "cmd" ) ] = QSL( "_donations" );
    mQueryItems[ QSL( "bn" ) ] = QUrl::fromPercentEncoding( "PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted" );
    mAutoOpenUrl = true;

    localeChanged();

    connect( this, SIGNAL( clicked() ), this, SLOT( _q_clicked() ) );
    connect( pNetworkAccessManager::instance(), SIGNAL( cached( const QUrl& ) ), this, SLOT( networkAccessManager_cached( const QUrl& ) ) );
    connect( pNetworkAccessManager::instance(), SIGNAL( error( const QUrl&, const QString& ) ), this, SLOT( networkAccessManager_error( const QUrl&, const QString& ) ) );
    connect( pNetworkAccessManager::instance(), SIGNAL( cacheCleared() ), this, SLOT( networkAccessManager_cacheCleared() ) );
}
Beispiel #25
0
void KLocaleConfigTime::slotCalendarSystemChanged(int calendarSystem)
{
  kdDebug() << "CalendarSystem: " << calendarSystem << endl;

  typedef QValueVector<QString> CalendarVector;
  CalendarVector calendars(4);
  calendars[0] = "gregorian";
  calendars[1] = "hijri";
  calendars[2] = "hebrew";
  calendars[3] = "jalali";

  QString calendarType;
  bool ok;
  calendarType = calendars.at(calendarSystem, &ok);
  if ( !ok )
    calendarType = calendars.first();

  m_locale->setCalendar(calendarType);

  updateWeekDayNames();
  emit localeChanged();
}
void QFacebookGraphUser::setLocale(const QString &locale) {
    if( m_locale != locale ) {
        m_locale = locale;
        emit localeChanged();
    }
}
Beispiel #27
0
void LocaleConfigMoney::slotMonNegMonSignPosChanged(int /*i*/)
{
  //m_locale->setNegativeMonetarySignPosition((Locale::SignPosition)i);
  emit localeChanged();
}
Beispiel #28
0
void LocaleConfigMoney::slotMonNegPreCurSymChanged()
{
  //m_locale->setNegativePrefixCurrencySymbol(m_chMonNegPreCurSym->isChecked());
  emit localeChanged();
}
Beispiel #29
0
void LocaleConfigMoney::slotMonFraDigChanged(int /*value*/)
{
  //m_locale->setFracDigits(value);
  emit localeChanged();
}
Beispiel #30
0
void LocaleConfigMoney::slotMonCurSymChanged(const QString &/*t*/)
{
  //m_locale->setCurrencySymbol(t);
  emit localeChanged();
}