diff options
Diffstat (limited to 'ksplashml')
19 files changed, 62 insertions, 62 deletions
diff --git a/ksplashml/kcmksplash/installer.cpp b/ksplashml/kcmksplash/installer.cpp index b4c7b0f71..335611a9f 100644 --- a/ksplashml/kcmksplash/installer.cpp +++ b/ksplashml/kcmksplash/installer.cpp @@ -99,7 +99,7 @@ SplashInstaller::SplashInstaller (TQWidget *aParent, const char *aName, bool aIn hbox->setStretchFactor( leftbox, 1 ); mThemesList = new ThemeListBox(this); - mThemesList->tqsetSizePolicy( TQSizePolicy::Preferred, TQSizePolicy::Expanding ); + mThemesList->setSizePolicy( TQSizePolicy::Preferred, TQSizePolicy::Expanding ); connect(mThemesList, TQT_SIGNAL(highlighted(int)), TQT_SLOT(slotSetTheme(int))); connect(mThemesList, TQT_SIGNAL(filesDropped(const KURL::List&)), TQT_SLOT(slotFilesDropped(const KURL::List&))); leftbox->addWidget(mThemesList); @@ -120,16 +120,16 @@ SplashInstaller::SplashInstaller (TQWidget *aParent, const char *aName, bool aIn hbox->setStretchFactor( rightbox, 3 ); mPreview = new TQLabel(this); - mPreview->tqsetSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Expanding ); + mPreview->setSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Expanding ); mPreview->setFrameStyle(TQFrame::Panel|TQFrame::Sunken); mPreview->setMinimumSize(TQSize(320,240)); - mPreview->tqsetAlignment(Qt::AlignHCenter|Qt::AlignVCenter); + mPreview->setAlignment(Qt::AlignHCenter|Qt::AlignVCenter); rightbox->addWidget(mPreview); rightbox->setStretchFactor( mPreview, 3 ); mText = new TQTextEdit(this); - mText->tqsetSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Preferred ); - mText->setMinimumSize(mText->tqsizeHint()); + mText->setSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Preferred ); + mText->setMinimumSize(mText->sizeHint()); mText->setReadOnly(true); rightbox->addWidget(mText); rightbox->setStretchFactor( mText, 1 ); @@ -234,7 +234,7 @@ void SplashInstaller::readThemesList() continue; subdirs = dir.entryList( TQDir::Dirs ); // kdDebug() << "readThemesList: " << subdirs << endl; - // TODO: Make sure it tqcontains a *.rc file. + // TODO: Make sure it contains a *.rc file. for (TQStringList::Iterator l = subdirs.begin(); l != subdirs.end(); l++ ) if ( !(*l).startsWith(TQString(".")) ) { @@ -275,7 +275,7 @@ void SplashInstaller::save() if (cur < 0) return; TQString path = mThemesList->text(cur); - if ( mThemesList->text2path.tqcontains( path ) ) + if ( mThemesList->text2path.contains( path ) ) path = mThemesList->text2path[path]; cur = path.findRev('/'); cnf.writeEntry("Theme", path.mid(cur+1) ); @@ -331,7 +331,7 @@ void SplashInstaller::slotSetTheme(int id) { TQString error = i18n("(Could not load theme)"); path = mThemesList->text(id); - if ( mThemesList->text2path.tqcontains( path ) ) + if ( mThemesList->text2path.contains( path ) ) path = mThemesList->text2path[path]; enabled = false; KURL url; @@ -438,7 +438,7 @@ void SplashInstaller::slotFilesDropped(const KURL::List &urls) //----------------------------------------------------------------------------- int SplashInstaller::findTheme( const TQString &theme ) { - // theme is untranslated, but the listbox tqcontains translated items + // theme is untranslated, but the listbox contains translated items TQString tmp(i18n( theme.utf8() )); int id = mThemesList->count()-1; diff --git a/ksplashml/kcmksplash/main.cpp b/ksplashml/kcmksplash/main.cpp index bbcd0681d..7b4557608 100644 --- a/ksplashml/kcmksplash/main.cpp +++ b/ksplashml/kcmksplash/main.cpp @@ -69,7 +69,7 @@ KSplashThemeMgr::KSplashThemeMgr( TQWidget *parent, const char *name, const TQSt about->addAuthor("Ravikiran Rajagopal", 0, "[email protected]"); about->addCredit("Brian Ledbetter", I18N_NOOP("Original KSplash/ML author"), "[email protected]"); about->addCredit(I18N_NOOP("KDE Theme Manager authors" ), I18N_NOOP("Original installer code") ); - // Once string freeze is over, tqreplace second argument with "Icon" + // Once string freeze is over, replace second argument with "Icon" about->addCredit("Hans Karlsson", 0, "[email protected]" ); setAboutData(about); } diff --git a/ksplashml/pics/themes/default/Theme.rc b/ksplashml/pics/themes/default/Theme.rc index bc5e3fad7..fbae7f956 100644 --- a/ksplashml/pics/themes/default/Theme.rc +++ b/ksplashml/pics/themes/default/Theme.rc @@ -15,5 +15,5 @@ Icons Flashing = true # Show progress bar? Always Show Progress = false -# tqStatus text colour +# Status text colour Label Foreground = #FFFFFF diff --git a/ksplashml/pics/themes/default/locolor/Theme.rc b/ksplashml/pics/themes/default/locolor/Theme.rc index bc5e3fad7..fbae7f956 100644 --- a/ksplashml/pics/themes/default/locolor/Theme.rc +++ b/ksplashml/pics/themes/default/locolor/Theme.rc @@ -15,5 +15,5 @@ Icons Flashing = true # Show progress bar? Always Show Progress = false -# tqStatus text colour +# Status text colour Label Foreground = #FFFFFF diff --git a/ksplashml/themeengine/default/themelegacy.cpp b/ksplashml/themeengine/default/themelegacy.cpp index f3f1707ab..77274da99 100644 --- a/ksplashml/themeengine/default/themelegacy.cpp +++ b/ksplashml/themeengine/default/themelegacy.cpp @@ -164,7 +164,7 @@ void ThemeDefault::_initUi() mProgressBar->setPaletteBackgroundPixmap( blimage ); bottom_label->setFixedWidth( QMAX(blimage.width(),tlimage.width()) ); - bottom_label->setFixedHeight( mLabel->tqsizeHint().height()+4 ); + bottom_label->setFixedHeight( mLabel->sizeHint().height()+4 ); // 3 pixels of whitespace between the label and the progressbar. mLabel->resize( bottom_label->width(), bottom_label->height() ); diff --git a/ksplashml/themeengine/objkstheme.cpp b/ksplashml/themeengine/objkstheme.cpp index dfcec5c4d..9aa6d2b26 100644 --- a/ksplashml/themeengine/objkstheme.cpp +++ b/ksplashml/themeengine/objkstheme.cpp @@ -41,7 +41,7 @@ ObjKsTheme::ObjKsTheme( const TQString& theme ) if (desktop->isVirtualDesktop() && mXineramaScreen != -2) { TQRect rect = desktop->screenGeometry( mXineramaScreen ); - if (!rect.tqcontains(TQCursor::pos())) + if (!rect.contains(TQCursor::pos())) TQCursor::setPos(rect.center()); } diff --git a/ksplashml/themeengine/redmond/previewredmond.cpp b/ksplashml/themeengine/redmond/previewredmond.cpp index 1fcf0161f..3bfb80203 100644 --- a/ksplashml/themeengine/redmond/previewredmond.cpp +++ b/ksplashml/themeengine/redmond/previewredmond.cpp @@ -43,7 +43,7 @@ PreviewRedmond::PreviewRedmond( TQWidget* parent ) m_showWelcomeString (true), m_showUserString (true), m_showUserIcon (true), - m_showtqStatusString (true) + m_showStatusString (true) { _updateCache(); } @@ -99,7 +99,7 @@ void PreviewRedmond::_updateCache() if( m_showUserIcon ) p.drawPixmap( rect().width()/2 + 10, rect().height()/2, m_icon ); - if( m_showtqStatusString ) + if( m_showStatusString ) { TQPoint statusTextPos( rect().width()/2 + m_icon.width() + 20, rect().height()/2 + (int)(p.fontMetrics().height()*0.85) + 15 ); diff --git a/ksplashml/themeengine/redmond/previewredmond.h b/ksplashml/themeengine/redmond/previewredmond.h index 253da329a..69bef6b43 100644 --- a/ksplashml/themeengine/redmond/previewredmond.h +++ b/ksplashml/themeengine/redmond/previewredmond.h @@ -98,7 +98,7 @@ protected: TQColor m_welcomeColor, m_welcomeShadowColor, m_userColor, m_statusColor; TQPixmap m_icon; - bool m_showWelcomeString, m_showUserString, m_showUserIcon, m_showtqStatusString; + bool m_showWelcomeString, m_showUserString, m_showUserIcon, m_showStatusString; }; #endif diff --git a/ksplashml/themeengine/redmond/themeredmond.cpp b/ksplashml/themeengine/redmond/themeredmond.cpp index 175863f74..5c7118441 100644 --- a/ksplashml/themeengine/redmond/themeredmond.cpp +++ b/ksplashml/themeengine/redmond/themeredmond.cpp @@ -199,11 +199,11 @@ void ThemeRedmond::_initUi() kdmconfig->setGroup("X-*-Greeter"); TQString userPicsDir = kdmconfig->readEntry( "FaceDir", KGlobal::dirs()->resourceDirs("data").last() + "kdm/faces" ) + '/'; TQString fs = kdmconfig->readEntry( "FaceSource" ); - if (fs == TQString::tqfromLatin1("UserOnly")) + if (fs == TQString::fromLatin1("UserOnly")) faceSource = fUserOnly; - else if (fs == TQString::tqfromLatin1("PreferUser")) + else if (fs == TQString::fromLatin1("PreferUser")) faceSource = fUserFirst; - else if (fs == TQString::tqfromLatin1("PreferAdmin")) + else if (fs == TQString::fromLatin1("PreferAdmin")) faceSource = fAdminFirst; else faceSource = fAdminOnly; // Admin Only diff --git a/ksplashml/themeengine/redmond/themeredmond.h b/ksplashml/themeengine/redmond/themeredmond.h index 3ae82031a..6f8cc1550 100644 --- a/ksplashml/themeengine/redmond/themeredmond.h +++ b/ksplashml/themeengine/redmond/themeredmond.h @@ -57,7 +57,7 @@ public slots: if( mText != s ) { mText = s; - tqrepaint( false ); + repaint( false ); } }; diff --git a/ksplashml/themeengine/standard/Preview.png b/ksplashml/themeengine/standard/Preview.png Binary files differindex da08b938e..58603e1e6 100644 --- a/ksplashml/themeengine/standard/Preview.png +++ b/ksplashml/themeengine/standard/Preview.png diff --git a/ksplashml/themeengine/standard/themestandard.cpp b/ksplashml/themeengine/standard/themestandard.cpp index 0c72b7222..c7e9220e2 100644 --- a/ksplashml/themeengine/standard/themestandard.cpp +++ b/ksplashml/themeengine/standard/themestandard.cpp @@ -81,7 +81,7 @@ void ThemeStandard::_initUi() move( rect.x() + (rect.width() - size().width())/2, rect.y() + (rect.height() - size().height())/2 ); - mtqStatus = new WndtqStatus( TQPalette(), mTheme->xineramaScreen(), mSbAtTop, mSbPbVisible, mSbFont, mSbFg, mSbBg, mSbIcon ); + mStatus = new WndStatus( TQPalette(), mTheme->xineramaScreen(), mSbAtTop, mSbPbVisible, mSbFont, mSbFg, mSbBg, mSbIcon ); } void ThemeStandard::showEvent( TQShowEvent * ) @@ -91,8 +91,8 @@ void ThemeStandard::showEvent( TQShowEvent * ) if( mSbVisible ) { - mtqStatus->show(); - mStatusBarHeight = mtqStatus->height(); + mStatus->show(); + mStatusBarHeight = mStatus->height(); } else { @@ -143,22 +143,22 @@ void ThemeStandard::_readSettings() // return; cfg->setGroup( TQString("KSplash Theme: %1").arg(mTheme->theme()) ); - TQString sbpos = cfg->readEntry( "tqStatusbar Position", "Bottom" ).upper(); + TQString sbpos = cfg->readEntry( "Statusbar Position", "Bottom" ).upper(); mSbAtTop = ( sbpos == "TOP" ); - mSbVisible = cfg->readBoolEntry( "tqStatusbar Visible", true); + mSbVisible = cfg->readBoolEntry( "Statusbar Visible", true); mSbPbVisible = cfg->readBoolEntry( "Progress Visible", true); - mSbFontName = cfg->readEntry( "tqStatusbar Font", "Sans Serif" ); - mSbFontSz = cfg->readNumEntry( "tqStatusbar Font Size", 16 ); - mSbFontBold = cfg->readBoolEntry( "tqStatusbar Font Bold", true ); - mSbFontItalic = cfg->readBoolEntry( "tqStatusbar Font Italic", false ); + mSbFontName = cfg->readEntry( "Statusbar Font", "Sans Serif" ); + mSbFontSz = cfg->readNumEntry( "Statusbar Font Size", 16 ); + mSbFontBold = cfg->readBoolEntry( "Statusbar Font Bold", true ); + mSbFontItalic = cfg->readBoolEntry( "Statusbar Font Italic", false ); mSbFont = TQFont( mSbFontName, mSbFontSz, ( mSbFontBold? TQFont::Bold : TQFont::Normal ) ); if( mSbFontItalic ) mSbFont.setItalic( true ); - mSbFg = cfg->readColorEntry( "tqStatusbar Foreground", &Qt::white ); - mSbBg = cfg->readColorEntry( "tqStatusbar Background", &Qt::black ); - mSbIcon = cfg->readEntry( "tqStatusbar Icon", "run" ); + mSbFg = cfg->readColorEntry( "Statusbar Foreground", &Qt::white ); + mSbBg = cfg->readColorEntry( "Statusbar Background", &Qt::black ); + mSbIcon = cfg->readEntry( "Statusbar Icon", "run" ); mIconsVisible = cfg->readBoolEntry( "Icons Visible", true); mIconsJumping = cfg->readBoolEntry( "Icons Jumping", true); mIconPos = (WndIcon::Position)cfg->readNumEntry( "Icon Position", 0 ); diff --git a/ksplashml/themeengine/standard/themestandard.h b/ksplashml/themeengine/standard/themestandard.h index 7bdcc4c1e..2e5d1aeb0 100644 --- a/ksplashml/themeengine/standard/themestandard.h +++ b/ksplashml/themeengine/standard/themestandard.h @@ -50,15 +50,15 @@ public: public slots: inline void slotUpdateProgress( int i ) { - if( mtqStatus ) mtqStatus->slotUpdateProgress( i ); + if( mStatus ) mStatus->slotUpdateProgress( i ); } inline void slotUpdateSteps( int i ) { - if( mtqStatus ) mtqStatus->slotUpdateSteps( i ); + if( mStatus ) mStatus->slotUpdateSteps( i ); } inline void slotSetText( const TQString& s ) { - if( mtqStatus ) mtqStatus->slotSetMessage( s ); + if( mStatus ) mStatus->slotSetMessage( s ); } void slotSetPixmap( const TQString& ); @@ -67,7 +67,7 @@ private: void _readSettings(); void _initUi(); - WndtqStatus *mtqStatus; + WndStatus *mStatus; WndIcon *mIcon, *mPrevIcon; int mIconCount; int mStatusBarHeight; diff --git a/ksplashml/themeengine/standard/wndicon.cpp b/ksplashml/themeengine/standard/wndicon.cpp index 70dda6408..ce153e461 100644 --- a/ksplashml/themeengine/standard/wndicon.cpp +++ b/ksplashml/themeengine/standard/wndicon.cpp @@ -43,9 +43,9 @@ WndIcon::WndIcon( bool statusAtTop, bool iconsJumping ) :TQHBox( 0, "wndSplash", WStyle_Customize|WX11BypassWM ), - mtqStatusText(text), mIconPos(icon_position), mXineramaScreen( xineramaScreen ), mPosX(0), mPosY(0), mGroundX(0), mGroundY(0), + mStatusText(text), mIconPos(icon_position), mXineramaScreen( xineramaScreen ), mPosX(0), mPosY(0), mGroundX(0), mGroundY(0), mVelocity(8.0), mInitialVelocity(8.0), mGravity(0.8), - mIconNum(icon_num), mtqStatusHeight(status_height), mIconSize(icon_std_width), mtqStatusAtTop(statusAtTop), + mIconNum(icon_num), mStatusHeight(status_height), mIconSize(icon_std_width), mStatusAtTop(statusAtTop), mStopJump(false), mIconJumping(iconsJumping) { setFrameStyle( TQFrame::NoFrame ); @@ -53,10 +53,10 @@ WndIcon::WndIcon( TQLabel *w = new TQLabel( this ); w->setFixedSize( pix.width(), pix.height() ); w->setPixmap( pix ); - if(pix.tqmask()) + if(pix.mask()) { - setMask(*pix.tqmask()); - w->setMask(*pix.tqmask()); + setMask(*pix.mask()); + w->setMask(*pix.mask()); } resize( pix.width(), pix.height() ); @@ -77,14 +77,14 @@ WndIcon::WndIcon( void WndIcon::show() { - emit setStatusText( mtqStatusText ); + emit setStatusText( mStatusText ); TQHBox::show(); } // Emit our EXTRA signal without becoming visible. void WndIcon::noshow() { - emit setStatusText( mtqStatusText ); + emit setStatusText( mStatusText ); } /* @@ -102,15 +102,15 @@ TQPoint WndIcon::determinePosition() // KGlobalSettings::splashScreenDesktopGeometry(); cannot be used here. DW = srect.width(); DH = srect.height(); - SBH = mtqStatusHeight; + SBH = mStatusHeight; wid = mIconSize; x = mIconNum; y = 1; - if(mtqStatusAtTop) - topshift = mtqStatusHeight; + if(mStatusAtTop) + topshift = mStatusHeight; else - bottomshift = mtqStatusHeight; + bottomshift = mStatusHeight; // Different starting positions require different positioning // rules. The horizontal rules and the vertical rules can be diff --git a/ksplashml/themeengine/standard/wndicon.h b/ksplashml/themeengine/standard/wndicon.h index d6b907c95..d488f85df 100644 --- a/ksplashml/themeengine/standard/wndicon.h +++ b/ksplashml/themeengine/standard/wndicon.h @@ -58,13 +58,13 @@ private: TQPoint determinePosition(); protected: - TQString mtqStatusText; + TQString mStatusText; Position mIconPos; int mXineramaScreen; int mPosX, mPosY, mGroundX, mGroundY; float mVelocity, mInitialVelocity, mGravity; - int mIconNum, mtqStatusHeight, mIconSize; - bool mtqStatusAtTop, mStopJump, mIconJumping; + int mIconNum, mStatusHeight, mIconSize; + bool mStatusAtTop, mStopJump, mIconJumping; }; #endif diff --git a/ksplashml/themeengine/standard/wndstatus.cpp b/ksplashml/themeengine/standard/wndstatus.cpp index f8bc3d964..04685d9cf 100644 --- a/ksplashml/themeengine/standard/wndstatus.cpp +++ b/ksplashml/themeengine/standard/wndstatus.cpp @@ -27,17 +27,17 @@ #include "wndstatus.h" #include "wndstatus.moc" -// WndtqStatus::WndtqStatus(): Display a nifty status bar at +// WndStatus::WndStatus(): Display a nifty status bar at // the bottom of the screen, so the user always knows what's // happening to his system. -WndtqStatus::WndtqStatus( TQPalette /*pal*/, +WndStatus::WndStatus( TQPalette /*pal*/, int xineramaScreen, bool atTop, bool pbVisible, const TQFont& font, const TQColor& fgc, const TQColor & bgc, const TQString& icon ) - :TQHBox( 0, "wndtqStatus", WStyle_Customize|WX11BypassWM ) + :TQHBox( 0, "wndStatus", WStyle_Customize|WX11BypassWM ) { setFrameStyle( TQFrame::NoFrame ); //setPalette( pal ); @@ -83,19 +83,19 @@ WndtqStatus::WndtqStatus( TQPalette /*pal*/, m_progress->hide(); } -void WndtqStatus::slotSetMessage( const TQString& msg ) +void WndStatus::slotSetMessage( const TQString& msg ) { raise(); m_label->setText( msg ); } -void WndtqStatus::slotUpdateProgress( int i ) +void WndStatus::slotUpdateProgress( int i ) { raise(); m_progress->setProgress( i ); } -void WndtqStatus::slotUpdateSteps( int i ) +void WndStatus::slotUpdateSteps( int i ) { m_progress->setTotalSteps( i ); } diff --git a/ksplashml/themeengine/standard/wndstatus.h b/ksplashml/themeengine/standard/wndstatus.h index ddf0f5222..63e253d1d 100644 --- a/ksplashml/themeengine/standard/wndstatus.h +++ b/ksplashml/themeengine/standard/wndstatus.h @@ -24,16 +24,16 @@ class TQLabel; class KProgress; /** @short Window displaying status and progress bar. */ -class WndtqStatus: +class WndStatus: public QHBox { Q_OBJECT public: - WndtqStatus( TQPalette, + WndStatus( TQPalette, int, // Xinerama screen bool, // At top? bool, // Progress indicator visible? - const TQFont&, // tqStatus bar font + const TQFont&, // Status bar font const TQColor&, const TQColor &, // Foreground/Background color const TQString& // Icon ); diff --git a/ksplashml/themeengine/themeengine.cpp b/ksplashml/themeengine/themeengine.cpp index 0f4ae2720..79e47bfe1 100644 --- a/ksplashml/themeengine/themeengine.cpp +++ b/ksplashml/themeengine/themeengine.cpp @@ -87,7 +87,7 @@ void ThemeEngine::addSplashWindow( TQWidget* w ) { if( !w->isTopLevel()) return; - if( d->mSplashWindows.tqcontains( w->winId())) + if( d->mSplashWindows.contains( w->winId())) return; if( !w->testWFlags( WX11BypassWM )) { // All toplevel widgets should be probably required to be WX11BypassWM diff --git a/ksplashml/wndmain.h b/ksplashml/wndmain.h index b931d7c75..c1fa4ae45 100644 --- a/ksplashml/wndmain.h +++ b/ksplashml/wndmain.h @@ -31,7 +31,7 @@ typedef struct TQString ItemText; } Action; -class WndtqStatus; +class WndStatus; class ObjKsTheme; class ThemeEngine; class KConfig; |