Use tdeApp

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/111/head
Michele Calgaro 1 month ago
parent 169841a346
commit 52bf4ce9dd
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -1446,7 +1446,7 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
<appendix id="installation">
<title>Installation</title>
<sect1 id="getting-kapp">
<sect1 id="getting-tdeApp">
<title>How to obtain &kolourpaint;</title>
&install.intro.documentation;

@ -900,7 +900,7 @@
<appendix id="installation">
<title>Installation</title>
<sect1 id="getting-kapp">
<sect1 id="getting-tdeApp">
<title>How to obtain &kpdf;</title>
&install.intro.documentation;
</sect1>

@ -995,26 +995,13 @@ capabilities, screen resolution, special expansion cards, etc.
specific OS, (you wrote a graphical LILO configurator for example) put this
information here.
<para>
In order to successfully use &kuickshow;, you need &kde; 1.1. Foobar.lib is
required in order to support the advanced &kuickshow; features. &kuickshow; uses
about 5 megs of memory to run, but this may vary depending on your
platform and configuration.
</para>
<para>
All required libraries as well as &kuickshow; itself can be found
on <ulink url="ftp://ftp.kapp.org">The &kuickshow; home page</ulink>.
</para>
-->
<!-- For a list of updates, you may refer to the application web site
or the ChangeLog file, or ...
<para>
You can find a list of changes at <ulink
url="http://apps.kde.org/kapp">http://apps.kde.org/kapp</ulink>.
</para>-->
</sect1>
<sect1 id="compilation">

@ -41,7 +41,7 @@
KColorEditApp::KColorEditApp() : TDEMainWindow(0) {
config=kapp->config();
config=tdeApp->config();
///////////////////////////////////////////////////////////////////
// call inits to invoke all other construction parts
@ -74,7 +74,7 @@ void KColorEditApp::initActions()
m_actRecent = KStdAction::openRecent( this,
TQ_SLOT( slotFileOpenRecent( const KURL& ) ), actionCollection() );
( void ) new TDEAction( i18n("New &Window"), kapp->miniIcon(), TDEShortcut(),
( void ) new TDEAction( i18n("New &Window"), tdeApp->miniIcon(), TDEShortcut(),
this, TQ_SLOT( slotFileNewWindow() ), actionCollection(),
"file_new_window" );

@ -254,7 +254,7 @@ void dviRenderer::showThatSourceInformationIsPresent()
// here. Most of the code is stolen from there.
// Check if the 'Don't show again' feature was used
TDEConfig *config = kapp->config();
TDEConfig *config = tdeApp->config();
TDEConfigGroupSaver saver( config, "Notification Messages" );
bool showMsg = config->readBoolEntry( "KDVI-info_on_source_specials", true);

@ -123,7 +123,7 @@ void optionDialogSpecialWidget::slotComboBox(int item)
void optionDialogSpecialWidget::slotExtraHelpButton( const TQString & )
{
kapp->invokeHelp( "inv-search", "kdvi" );
tdeApp->invokeHelp( "inv-search", "kdvi" );
}
void optionDialogSpecialWidget::apply()

@ -295,7 +295,7 @@ void TopLevel::setupStatusBar()
void TopLevel::readSettings()
{
config = kapp->config();
config = tdeApp->config();
applyMainWindowSettings( config, "MainWindowSettings" );
@ -358,7 +358,7 @@ bool TopLevel::queryClose()
void TopLevel::writeSettings()
{
config = kapp->config();
config = tdeApp->config();
config->setGroup("General Options");
@ -723,7 +723,7 @@ void TopLevel::printIt( KPrinter &printer, TQPainter &painter )
TQPaintDeviceMetrics dm(painter.device());
TQApplication::setOverrideCursor( waitCursor );
kapp->processEvents();
tdeApp->processEvents();
const bool fullpage = printer.option(APP_KFAX_SCALE_FULLPAGE) == "true";
const bool center_h = printer.option(APP_KFAX_CENTER_HORZ) == "true";

@ -367,7 +367,7 @@ void OptionsDialog::geomtoggled(){
}
void OptionsDialog::slotHelp(){
kapp->invokeHelp();
tdeApp->invokeHelp();
}

@ -795,7 +795,7 @@ void KGVPart::slotMimetypeError()
kdDebug(4500) << "KGVPart::slotMimetypeError()" << endl;
_mimetypeScanner = 0;
emit started( 0 );
//kapp->processEvents();
//tdeApp->processEvents();
emit canceled( TQString() );
}

@ -314,7 +314,7 @@ void KGVDocument::scanDSC()
/*
if( clock.elapsed() > 10 )
{
kapp->processEvents();
tdeApp->processEvents();
clock.start();
}
*/

@ -151,7 +151,7 @@ KGVShell::~KGVShell()
void
KGVShell::slotQuit()
{
kapp->closeAllWindows();
tdeApp->closeAllWindows();
}
void KGVShell::slotShowMenubar()
@ -263,7 +263,7 @@ KGVShell::openStdin()
wrtn = _tmpFile->file()->writeBlock( buf.data(), read );
if( read != wrtn )
break;
kapp->processEvents();
tdeApp->processEvents();
}
if( read != 0 ) {
@ -329,13 +329,13 @@ void KGVShell::slotUpdateFullScreen()
toolBar()->hide();
m_gvpart->updateFullScreen( true );
showFullScreen();
kapp->installEventFilter( m_fsFilter );
tdeApp->installEventFilter( m_fsFilter );
if ( m_gvpart->document()->isOpen() )
m_gvpart->slotFitToPage();
}
else
{
kapp->removeEventFilter( m_fsFilter );
tdeApp->removeEventFilter( m_fsFilter );
m_gvpart->updateFullScreen( false );
menuBar()->show();
#if TDE_VERSION >= TDE_MAKE_VERSION(3,1,90)

@ -298,7 +298,7 @@ void KPSWidget::setupWidget()
{
setEraseColor( white );
setFixedSize( newWidth, newHeight );
kapp->processEvents();
tdeApp->processEvents();
_backgroundPixmap.resize( size() );
_backgroundPixmap.fill( white );
@ -367,7 +367,7 @@ bool KPSWidget::startInterpreter()
connect( _process, TQ_SIGNAL( wroteStdin( TDEProcess*) ),
this, TQ_SLOT( gs_input( TDEProcess* ) ) );
kapp->flushX();
tdeApp->flushX();
// Finally fire up the interpreter.
kdDebug(4500) << "KPSWidget: starting interpreter" << endl;

@ -50,7 +50,7 @@ int main( int argc, char** argv )
TDEApplication app;
TDECmdLineArgs* args = TDECmdLineArgs::parsedArgs();
if( kapp->isRestored() )
if( tdeApp->isRestored() )
RESTORE( KGVShell )
else {
KGVShell* shell = new KGVShell;

@ -413,7 +413,7 @@ void kpCommandHistoryBase::readConfig ()
#if DEBUG_KP_COMMAND_HISTORY
kdDebug () << "kpCommandHistoryBase::readConfig()" << endl;
#endif
TDEConfigGroupSaver cfgGroupSaver (kapp->config (), kpSettingsGroupUndoRedo);
TDEConfigGroupSaver cfgGroupSaver (tdeApp->config (), kpSettingsGroupUndoRedo);
TDEConfigBase *cfg = cfgGroupSaver.config ();
setUndoMinLimit (cfg->readNumEntry (kpSettingUndoMinLimit, undoMinLimit ()));
@ -430,7 +430,7 @@ void kpCommandHistoryBase::writeConfig ()
#if DEBUG_KP_COMMAND_HISTORY
kdDebug () << "kpCommandHistoryBase::writeConfig()" << endl;
#endif
TDEConfigGroupSaver cfgGroupSaver (kapp->config (), kpSettingsGroupUndoRedo);
TDEConfigGroupSaver cfgGroupSaver (tdeApp->config (), kpSettingsGroupUndoRedo);
TDEConfigBase *cfg = cfgGroupSaver.config ();
cfg->writeEntry (kpSettingUndoMinLimit, undoMinLimit ());

@ -103,7 +103,7 @@ double kpMainWindow::configColorSimilarity () const
// public
void kpMainWindow::configSetColorSimilarity (double val)
{
TDEConfigGroupSaver cfgGroupSaver (kapp->config (), kpSettingsGroupGeneral);
TDEConfigGroupSaver cfgGroupSaver (tdeApp->config (), kpSettingsGroupGeneral);
TDEConfigBase *cfg = cfgGroupSaver.config ();
cfg->writeEntry (kpSettingColorSimilarity, m_configColorSimilarity = val);
@ -118,7 +118,7 @@ void kpMainWindow::readGeneralSettings ()
kdDebug () << "\tkpMainWindow(" << name () << ")::readGeneralSettings()" << endl;
#endif
TDEConfigGroupSaver cfgGroupSaver (kapp->config (), kpSettingsGroupGeneral);
TDEConfigGroupSaver cfgGroupSaver (tdeApp->config (), kpSettingsGroupGeneral);
TDEConfigBase *cfg = cfgGroupSaver.config ();
m_configFirstTime = cfg->readBoolEntry (kpSettingFirstTime, true);
@ -147,7 +147,7 @@ void kpMainWindow::readThumbnailSettings ()
kdDebug () << "\tkpMainWindow(" << name () << ")::readThumbnailSettings()" << endl;
#endif
TDEConfigGroupSaver cfgGroupSaver (kapp->config (), kpSettingsGroupThumbnail);
TDEConfigGroupSaver cfgGroupSaver (tdeApp->config (), kpSettingsGroupThumbnail);
TDEConfigBase *cfg = cfgGroupSaver.config ();
m_configThumbnailShown = cfg->readBoolEntry (kpSettingThumbnailShown, false);
@ -208,7 +208,7 @@ void kpMainWindow::init ()
// TDEConfig::readEntry() does not actually reread from disk, hence doesn't
// realise what other processes have done e.g. Settings / Show Path
kapp->config ()->reparseConfiguration ();
tdeApp->config ()->reparseConfiguration ();
#if DEBUG_KP_MAIN_WINDOW
kdDebug () << "\tTIME: reparseConfig = " << time.restart () << "msec" << endl;
#endif
@ -298,7 +298,7 @@ void kpMainWindow::init ()
m_toolToolBar->setBarPos (TDEToolBar::Left);
m_colorToolBar->setBarPos (TDEToolBar::Bottom);
TDEConfigGroupSaver cfgGroupSaver (kapp->config (), kpSettingsGroupGeneral);
TDEConfigGroupSaver cfgGroupSaver (tdeApp->config (), kpSettingsGroupGeneral);
TDEConfigBase *cfg = cfgGroupSaver.config ();
cfg->writeEntry (kpSettingFirstTime, m_configFirstTime = false);

@ -71,7 +71,7 @@ void kpMainWindow::setupFileMenuActions ()
m_actionOpen = KStdAction::open (this, TQ_SLOT (slotOpen ()), ac);
m_actionOpenRecent = KStdAction::openRecent (this, TQ_SLOT (slotOpenRecent (const KURL &)), ac);
m_actionOpenRecent->loadEntries (kapp->config ());
m_actionOpenRecent->loadEntries (tdeApp->config ());
#if DEBUG_KP_MAIN_WINDOW
kdDebug () << "\trecent URLs=" << m_actionOpenRecent->items () << endl;
#endif
@ -146,7 +146,7 @@ void kpMainWindow::addRecentURL (const KURL &url)
return;
TDEConfig *cfg = kapp->config ();
TDEConfig *cfg = tdeApp->config ();
// TDEConfig::readEntry() does not actually reread from disk, hence doesn't
// realise what other processes have done e.g. Settings / Show Path
@ -232,9 +232,9 @@ TQSize kpMainWindow::defaultDocSize () const
{
// TDEConfig::readEntry() does not actually reread from disk, hence doesn't
// realise what other processes have done e.g. Settings / Show Path
kapp->config ()->reparseConfiguration ();
tdeApp->config ()->reparseConfiguration ();
TDEConfigGroupSaver cfgGroupSaver (kapp->config (), kpSettingsGroupGeneral);
TDEConfigGroupSaver cfgGroupSaver (tdeApp->config (), kpSettingsGroupGeneral);
TDEConfigBase *cfg = cfgGroupSaver.config ();
TQSize docSize = cfg->readSizeEntry (kpSettingLastDocSize);
@ -261,7 +261,7 @@ void kpMainWindow::saveDefaultDocSize (const TQSize &size)
kdDebug () << "\tCONFIG: saving Last Doc Size = " << size << endl;
#endif
TDEConfigGroupSaver cfgGroupSaver (kapp->config (), kpSettingsGroupGeneral);
TDEConfigGroupSaver cfgGroupSaver (tdeApp->config (), kpSettingsGroupGeneral);
TDEConfigBase *cfg = cfgGroupSaver.config ();
cfg->writeEntry (kpSettingLastDocSize, size);
@ -605,11 +605,11 @@ KURL kpMainWindow::askForSaveURL (const TQString &caption,
#define SETUP_READ_CFG() \
if (!reparsedConfiguration) \
{ \
kapp->config ()->reparseConfiguration (); \
tdeApp->config ()->reparseConfiguration (); \
reparsedConfiguration = true; \
} \
\
TDEConfigGroupSaver cfgGroupSaver (kapp->config (), forcedSaveOptionsGroup); \
TDEConfigGroupSaver cfgGroupSaver (tdeApp->config (), forcedSaveOptionsGroup); \
TDEConfigBase *cfg = cfgGroupSaver.config ();
@ -715,7 +715,7 @@ KURL kpMainWindow::askForSaveURL (const TQString &caption,
newSaveOptions.printDebug ("\tnewSaveOptions");
#endif
TDEConfigGroupSaver cfgGroupSaver (kapp->config (), forcedSaveOptionsGroup);
TDEConfigGroupSaver cfgGroupSaver (tdeApp->config (), forcedSaveOptionsGroup);
TDEConfigBase *cfg = cfgGroupSaver.config ();
// Save options user forced - probably want to use them in future
@ -1262,7 +1262,7 @@ void kpMainWindow::slotMail ()
}
}
kapp->invokeMailer (
tdeApp->invokeMailer (
TQString()/*to*/,
TQString()/*cc*/,
TQString()/*bcc*/,

@ -317,7 +317,7 @@ void kpMainWindow::slotResizeScale ()
{
d->m_resizeScaleDialogLastKeepAspect = dialog.keepAspectRatio ();
TDEConfigGroupSaver cfgGroupSaver (kapp->config (), kpSettingsGroupGeneral);
TDEConfigGroupSaver cfgGroupSaver (tdeApp->config (), kpSettingsGroupGeneral);
TDEConfigBase *cfg = cfgGroupSaver.config ();
cfg->writeEntry (kpSettingResizeScaleLastKeepAspect,
@ -464,7 +464,7 @@ void kpMainWindow::slotMoreEffects ()
{
d->m_moreEffectsDialogLastEffect = dialog.selectedEffect ();
TDEConfigGroupSaver cfgGroupSaver (kapp->config (), kpSettingsGroupGeneral);
TDEConfigGroupSaver cfgGroupSaver (tdeApp->config (), kpSettingsGroupGeneral);
TDEConfigBase *cfg = cfgGroupSaver.config ();
cfg->writeEntry (kpSettingMoreEffectsLastEffect,

@ -116,7 +116,7 @@ void kpMainWindow::slotShowPathToggled ()
slotUpdateCaption ();
TDEConfigGroupSaver cfgGroupSaver (kapp->config (), kpSettingsGroupGeneral);
TDEConfigGroupSaver cfgGroupSaver (tdeApp->config (), kpSettingsGroupGeneral);
TDEConfigBase *cfg = cfgGroupSaver.config ();
cfg->writeEntry (kpSettingShowPath, m_configShowPath);
@ -165,7 +165,7 @@ void kpMainWindow::slotConfigureToolBars ()
tool ()->endShapeInternal ();
//saveMainWindowSettings (kapp->config (), autoSaveGroup ());
//saveMainWindowSettings (tdeApp->config (), autoSaveGroup ());
KEditToolbar dialog (actionCollection (),
TQString()/*default ui.rc file*/,
@ -198,7 +198,7 @@ void kpMainWindow::slotNewToolBarConfig ()
TQString::fromLatin1 ("ToolBarSettingsChanged"));
//createGUI();
//applyMainWindowSettings (kapp->config (), autoSaveGroup ());
//applyMainWindowSettings (tdeApp->config (), autoSaveGroup ());
}

@ -77,7 +77,7 @@ void kpMainWindow::setupTextToolBarActions ()
// private
void kpMainWindow::readAndApplyTextSettings ()
{
TDEConfigGroupSaver cfgGroupSaver (kapp->config (), kpSettingsGroupText);
TDEConfigGroupSaver cfgGroupSaver (tdeApp->config (), kpSettingsGroupText);
TDEConfigBase *cfg = cfgGroupSaver.config ();
m_actionTextFontFamily->setFont (cfg->readEntry (kpSettingFontFamily, TQString::fromLatin1 ("Times")));
@ -141,7 +141,7 @@ void kpMainWindow::slotTextFontFamilyChanged ()
if (m_mainView)
m_mainView->setFocus ();
TDEConfigGroupSaver cfgGroupSaver (kapp->config (), kpSettingsGroupText);
TDEConfigGroupSaver cfgGroupSaver (tdeApp->config (), kpSettingsGroupText);
TDEConfigBase *cfg = cfgGroupSaver.config ();
cfg->writeEntry (kpSettingFontFamily, m_actionTextFontFamily->font ());
cfg->sync ();
@ -174,7 +174,7 @@ void kpMainWindow::slotTextFontSizeChanged ()
if (m_mainView)
m_mainView->setFocus ();
TDEConfigGroupSaver cfgGroupSaver (kapp->config (), kpSettingsGroupText);
TDEConfigGroupSaver cfgGroupSaver (tdeApp->config (), kpSettingsGroupText);
TDEConfigBase *cfg = cfgGroupSaver.config ();
cfg->writeEntry (kpSettingFontSize, m_actionTextFontSize->fontSize ());
cfg->sync ();
@ -199,7 +199,7 @@ void kpMainWindow::slotTextBoldChanged ()
if (m_toolText && m_toolText->hasBegun ())
m_toolText->slotBoldChanged (m_actionTextBold->isChecked ());
TDEConfigGroupSaver cfgGroupSaver (kapp->config (), kpSettingsGroupText);
TDEConfigGroupSaver cfgGroupSaver (tdeApp->config (), kpSettingsGroupText);
TDEConfigBase *cfg = cfgGroupSaver.config ();
cfg->writeEntry (kpSettingBold, m_actionTextBold->isChecked ());
cfg->sync ();
@ -222,7 +222,7 @@ void kpMainWindow::slotTextItalicChanged ()
if (m_toolText && m_toolText->hasBegun ())
m_toolText->slotItalicChanged (m_actionTextItalic->isChecked ());
TDEConfigGroupSaver cfgGroupSaver (kapp->config (), kpSettingsGroupText);
TDEConfigGroupSaver cfgGroupSaver (tdeApp->config (), kpSettingsGroupText);
TDEConfigBase *cfg = cfgGroupSaver.config ();
cfg->writeEntry (kpSettingItalic, m_actionTextItalic->isChecked ());
cfg->sync ();
@ -245,7 +245,7 @@ void kpMainWindow::slotTextUnderlineChanged ()
if (m_toolText && m_toolText->hasBegun ())
m_toolText->slotUnderlineChanged (m_actionTextUnderline->isChecked ());
TDEConfigGroupSaver cfgGroupSaver (kapp->config (), kpSettingsGroupText);
TDEConfigGroupSaver cfgGroupSaver (tdeApp->config (), kpSettingsGroupText);
TDEConfigBase *cfg = cfgGroupSaver.config ();
cfg->writeEntry (kpSettingUnderline, m_actionTextUnderline->isChecked ());
cfg->sync ();
@ -268,7 +268,7 @@ void kpMainWindow::slotTextStrikeThruChanged ()
if (m_toolText && m_toolText->hasBegun ())
m_toolText->slotStrikeThruChanged (m_actionTextStrikeThru->isChecked ());
TDEConfigGroupSaver cfgGroupSaver (kapp->config (), kpSettingsGroupText);
TDEConfigGroupSaver cfgGroupSaver (tdeApp->config (), kpSettingsGroupText);
TDEConfigBase *cfg = cfgGroupSaver.config ();
cfg->writeEntry (kpSettingStrikeThru, m_actionTextStrikeThru->isChecked ());
cfg->sync ();

@ -392,7 +392,7 @@ void kpMainWindow::slotToolSelected (kpTool *tool)
// private
void kpMainWindow::readLastTool ()
{
TDEConfigGroupSaver cfgGroupSaver (kapp->config (), kpSettingsGroupTools);
TDEConfigGroupSaver cfgGroupSaver (tdeApp->config (), kpSettingsGroupTools);
TDEConfigBase *cfg = cfgGroupSaver.config ();
m_lastToolNumber = cfg->readNumEntry (kpSettingLastTool, -1);
@ -424,7 +424,7 @@ void kpMainWindow::saveLastTool ()
return;
TDEConfigGroupSaver cfgGroupSaver (kapp->config (), kpSettingsGroupTools);
TDEConfigGroupSaver cfgGroupSaver (tdeApp->config (), kpSettingsGroupTools);
TDEConfigBase *cfg = cfgGroupSaver.config ();
cfg->writeEntry (kpSettingLastTool, number);

@ -729,7 +729,7 @@ void kpMainWindow::slotShowGridToggled ()
updateMainViewGrid ();
TDEConfigGroupSaver cfgGroupSaver (kapp->config (), kpSettingsGroupGeneral);
TDEConfigGroupSaver cfgGroupSaver (tdeApp->config (), kpSettingsGroupGeneral);
TDEConfigBase *cfg = cfgGroupSaver.config ();
cfg->writeEntry (kpSettingShowGrid, m_configShowGrid = m_actionShowGrid->isChecked ());
@ -853,7 +853,7 @@ void kpMainWindow::slotSaveThumbnailGeometry ()
<< endl;
#endif
TDEConfigGroupSaver cfgGroupSaver (kapp->config (), kpSettingsGroupThumbnail);
TDEConfigGroupSaver cfgGroupSaver (tdeApp->config (), kpSettingsGroupThumbnail);
TDEConfigBase *cfg = cfgGroupSaver.config ();
cfg->writeEntry (kpSettingThumbnailGeometry, m_configThumbnailGeometry);
@ -869,7 +869,7 @@ void kpMainWindow::slotShowThumbnailToggled ()
m_configThumbnailShown = m_actionShowThumbnail->isChecked ();
TDEConfigGroupSaver cfgGroupSaver (kapp->config (), kpSettingsGroupThumbnail);
TDEConfigGroupSaver cfgGroupSaver (tdeApp->config (), kpSettingsGroupThumbnail);
TDEConfigBase *cfg = cfgGroupSaver.config ();
cfg->writeEntry (kpSettingThumbnailShown, m_configThumbnailShown);
@ -904,7 +904,7 @@ void kpMainWindow::slotZoomedThumbnailToggled ()
m_configZoomedThumbnail = m_actionZoomedThumbnail->isChecked ();
TDEConfigGroupSaver cfgGroupSaver (kapp->config (), kpSettingsGroupThumbnail);
TDEConfigGroupSaver cfgGroupSaver (tdeApp->config (), kpSettingsGroupThumbnail);
TDEConfigBase *cfg = cfgGroupSaver.config ();
cfg->writeEntry (kpSettingThumbnailZoomed, m_configZoomedThumbnail);
@ -923,7 +923,7 @@ void kpMainWindow::slotThumbnailShowRectangleToggled ()
d->m_configThumbnailShowRectangle = d->m_actionShowThumbnailRectangle->isChecked ();
TDEConfigGroupSaver cfgGroupSaver (kapp->config (), kpSettingsGroupThumbnail);
TDEConfigGroupSaver cfgGroupSaver (tdeApp->config (), kpSettingsGroupThumbnail);
TDEConfigBase *cfg = cfgGroupSaver.config ();
cfg->writeEntry (kpSettingThumbnailShowRectangle, d->m_configThumbnailShowRectangle);

@ -1046,7 +1046,7 @@ void kpTool::mouseMoveEvent (TQMouseEvent *e)
<< " viewUnderCursorTQt=" << (v1 ? v1->name () : "(none)")
<< " viewUnderStartPoint=" << (v2 ? v2->name () : "(none)")
<< endl;
kdDebug () << "\tfocusWidget=" << kapp->focusWidget () << endl;
kdDebug () << "\tfocusWidget=" << tdeApp->focusWidget () << endl;
#endif
TQt::ButtonState buttonState = e->stateAfter ();

@ -172,7 +172,7 @@ TQPair <int, int> kpToolWidgetBase::defaultSelectedRowAndCol () const
if (name ())
{
TDEConfigGroupSaver cfgGroupSaver (kapp->config (), kpSettingsGroupTools);
TDEConfigGroupSaver cfgGroupSaver (tdeApp->config (), kpSettingsGroupTools);
TDEConfigBase *cfg = cfgGroupSaver.config ();
TQString nameString = TQString::fromLatin1 (name ());
@ -215,7 +215,7 @@ void kpToolWidgetBase::saveSelectedAsDefault () const
if (!name ())
return;
TDEConfigGroupSaver cfgGroupSaver (kapp->config (), kpSettingsGroupTools);
TDEConfigGroupSaver cfgGroupSaver (tdeApp->config (), kpSettingsGroupTools);
TDEConfigBase *cfg = cfgGroupSaver.config ();
TQString nameString = TQString::fromLatin1 (name ());

@ -459,7 +459,7 @@ void Kooka::slEnableWarnings( )
{
KMessageBox::information (this, i18n("All messages and warnings will now be shown."));
KMessageBox::enableAllMessages();
kapp->config()->reparseConfiguration();
tdeApp->config()->reparseConfiguration();
}
#include "kooka.moc"

@ -489,7 +489,7 @@ void KSANEOCR::startOCRProcess( void )
/* starting the animation, setting fields disabled */
m_ocrProcessDia->startOCR();
kapp->processEvents();
tdeApp->processEvents();
if( m_ocrEngine == OCRAD )
{
startOCRAD();

@ -19,7 +19,7 @@ void DlgGeneral::showEvent( TQShowEvent * )
#if KPDF_FORCE_DRM
kcfg_ObeyDRM->hide();
#else
if (kapp->authorize("skip_drm")) kcfg_ObeyDRM->show();
if (tdeApp->authorize("skip_drm")) kcfg_ObeyDRM->show();
else kcfg_ObeyDRM->hide();
#endif
}

@ -1068,7 +1068,7 @@ void KPDFDocument::processLink( const KPDFLink * link )
const KPDFLinkBrowse * browse = static_cast< const KPDFLinkBrowse * >( link );
// if the url is a mailto one, invoke mailer
if ( browse->url().startsWith( "mailto:", false ) )
kapp->invokeMailer( browse->url() );
tdeApp->invokeMailer( browse->url() );
else
{
TQString url = browse->url();

@ -260,7 +260,7 @@ const DocumentSynopsis * PDFGenerator::generateDocumentSynopsis()
bool PDFGenerator::isAllowed( int permissions )
{
#if !KPDF_FORCE_DRM
if (kapp->authorize("skip_drm") && !KpdfSettings::obeyDRM()) return true;
if (tdeApp->authorize("skip_drm") && !KpdfSettings::obeyDRM()) return true;
#endif
bool b = true;

@ -209,7 +209,7 @@ Shell::applyNewToolbarConfig()
void Shell::slotQuit()
{
kapp->closeAllWindows();
tdeApp->closeAllWindows();
}
// only called when starting the program

@ -26,7 +26,7 @@ PageViewMessage::PageViewMessage( TQWidget * parent )
{
setFocusPolicy( TQWidget::NoFocus );
setBackgroundMode( NoBackground );
setPaletteBackgroundColor(kapp->palette().color(TQPalette::Active, TQColorGroup::Background));
setPaletteBackgroundColor(tdeApp->palette().color(TQPalette::Active, TQColorGroup::Background));
// if the layout is LtR, we can safely place it in the right position
if ( !TQApplication::reverseLayout() )
move( 10, 10 );

@ -94,7 +94,7 @@ KLineal::KLineal(TQWidget*parent,const char* name):TDEMainWindow(parent,name){
mCurrentCursor = mNorthCursor;
setMinimumSize(60,60);
setMaximumSize(8000,8000);
TDEConfig *cfg = kapp->config();
TDEConfig *cfg = tdeApp->config();
TQColor defaultColor = DEFAULT_RULER_COLOR;
TQFont defaultFont(TDEGlobalSettings::generalFont().family(), 8);
defaultFont.setPixelSize(8);
@ -164,7 +164,7 @@ KLineal::KLineal(TQWidget*parent,const char* name):TDEMainWindow(parent,name){
mMenu->insertSeparator();
mMenu->insertItem(SmallIcon( "help" ), KStdGuiItem::help().text(), helpMenu());
mMenu->insertSeparator();
mMenu->insertItem(SmallIcon( "system-log-out" ), KStdGuiItem::quit().text(), kapp, TQ_SLOT(quit()), CTRL+Key_Q);
mMenu->insertItem(SmallIcon( "system-log-out" ), KStdGuiItem::quit().text(), tdeApp, TQ_SLOT(quit()), CTRL+Key_Q);
mLastClickPos = geometry().topLeft()+TQPoint(width()/2, height()/2);
}
@ -420,7 +420,7 @@ void KLineal::setColor(const TQColor &color) {
* save the ruler color to the config file
*/
void KLineal::saveSettings() {
TDEConfig *cfg = kapp->config(); // new TDEConfig(locateLocal("config", kapp->name()+"rc"));
TDEConfig *cfg = tdeApp->config(); // new TDEConfig(locateLocal("config", tdeApp->name()+"rc"));
if (cfg) {
TQColor color = mColor;
cfg->setGroup(CFG_GROUP_SETTINGS);
@ -500,7 +500,7 @@ void KLineal::keyPressEvent(TQKeyEvent *e) {
TQPoint dist(0,0);
switch (e->key()) {
case Key_F1:
kapp->invokeHelp();
tdeApp->invokeHelp();
break;
case Key_Left:
dist.setX(-1);

@ -60,8 +60,6 @@
#include <tdeglobal.h>
#define kApp TDEApplication::kApplication()
KSnapshot::KSnapshot(TQWidget *parent, const char *name, bool grabCurrent)
: DCOPObject("interface"),
KDialogBase(parent, name, true, TQString(), Help|User1, User1,
@ -139,7 +137,7 @@ KSnapshot::KSnapshot(TQWidget *parent, const char *name, bool grabCurrent)
}
TDEAccel* accel = new TDEAccel(this);
accel->insert(TDEStdAccel::Quit, kapp, TQ_SLOT(quit()));
accel->insert(TDEStdAccel::Quit, tdeApp, TQ_SLOT(quit()));
accel->insert( "QuickSave", i18n("Quick Save Snapshot &As..."),
i18n("Save the snapshot to the file specified by the user without showing the file dialog."),
CTRL+SHIFT+Key_S, this, TQ_SLOT(slotSave()));
@ -606,7 +604,7 @@ int KSnapshot::grabMode()
void KSnapshot::updateCaption()
{
setCaption( kApp->makeStdCaption( filename.fileName(), true, modified ) );
setCaption( tdeApp->makeStdCaption( filename.fileName(), true, modified ) );
}
void KSnapshot::slotMovePointer(int x, int y)

@ -68,7 +68,7 @@ bool SVGCreator::create(const TQString &path, int width, int height, TQImage &im
m_finished = false;
while(!m_finished) {
kapp->processOneEvent();
tdeApp->processOneEvent();
}
doc->deref();

@ -112,7 +112,7 @@ GeneralWidget::~GeneralWidget()
void GeneralWidget::slotURLClicked( const TQString & url )
{
kapp->invokeBrowser( url );
tdeApp->invokeBrowser( url );
}
void GeneralWidget::loadSettings( const KuickData& data )

@ -101,7 +101,7 @@ void ImageWindow::init()
// give the image window a different WM_CLASS
XClassHint hint;
hint.res_name = const_cast<char*>( kapp->name() );
hint.res_name = const_cast<char*>( tdeApp->name() );
hint.res_class = const_cast<char*>( "ImageWindow" );
XSetClassHint( x11Display(), winId(), &hint );
@ -312,7 +312,7 @@ void ImageWindow::updateGeometry( int imWidth, int imHeight )
"%3 (%1 x %2)" );
caption = caption.arg( m_kuim->originalWidth() ).
arg( m_kuim->originalHeight() ).arg( m_kuim->url().prettyURL() );
setCaption( kapp->makeStdCaption( caption ) );
setCaption( tdeApp->makeStdCaption( caption ) );
}

@ -192,7 +192,7 @@ KuickShow::KuickShow( const char *name )
if ( s_viewers.isEmpty() || isDir ) {
initGUI( startDir );
if (!kapp->isRestored()) // during session management, readProperties() will show()
if (!tdeApp->isRestored()) // during session management, readProperties() will show()
show();
}
@ -212,7 +212,7 @@ KuickShow::~KuickShow()
FileCache::shutdown();
free( id );
kapp->quit();
tdeApp->quit();
delete kdata;
}
@ -873,7 +873,7 @@ bool KuickShow::eventFilter( TQObject *o, TQEvent *e )
{
if ( m_delayedRepeatItem ) // we probably need to install an eventFilter over
{
return true; // kapp, to make it really safe
return true; // tdeApp, to make it really safe
}
bool ret = false;
@ -1079,7 +1079,7 @@ void KuickShow::configuration()
dialog = new KuickConfigDialog( fileWidget->actionCollection(), 0L,
"dialog", false );
dialog->resize( 540, 510 );
dialog->setIcon( kapp->miniIcon() );
dialog->setIcon( tdeApp->miniIcon() );
connect( dialog, TQ_SIGNAL( okClicked() ),
this, TQ_SLOT( slotConfigApplied() ) );

@ -52,7 +52,7 @@ namespace KImageViewer
if( ! ( widget && m_canvas ) )
{
KMessageBox::error( this, "Could not find the Canvas!" );
kapp->quit();
tdeApp->quit();
}
setCentralWidget( widget );
connect( widget, TQ_SIGNAL( contextPress( const TQPoint & ) ), TQ_SLOT( mySlot( const TQPoint & ) ) );

@ -145,7 +145,7 @@ KView::KView()
else
{
KMessageBox::error( this, i18n( "An error occurred while loading the KViewViewer KPart. Check your installation." ) );
TQTimer::singleShot( 0, kapp, TQ_SLOT( quit() ) );
TQTimer::singleShot( 0, tdeApp, TQ_SLOT( quit() ) );
}
}
@ -653,7 +653,7 @@ TQSize KView::barSize( int mainwinwidth, BarSizeFrom from )
width += toolBar()->width();
break;
case TDEToolBar::Flat:
height += kapp->style().pixelMetric( TQStyle::PM_DockWindowHandleExtent );
height += tdeApp->style().pixelMetric( TQStyle::PM_DockWindowHandleExtent );
break;
case TDEToolBar::Floating:
break;

@ -26,7 +26,7 @@ KImageViewerTest::KImageViewerTest()
else
{
KMessageBox::error(this, "Could not find our Part!");
kapp->quit();
tdeApp->quit();
}
}

@ -803,8 +803,8 @@ void KViewViewer::slotFileDirty( const TQString & )
if( isModified() && isReadWrite() )
{
KPassivePopup * pop = new KPassivePopup( m_pParentWidget );
TQVBox * vb = pop->standardView( i18n( "Load changed image? - %1" ).arg( kapp->aboutData()->programName() ),
TQString(), kapp->miniIcon() );
TQVBox * vb = pop->standardView( i18n( "Load changed image? - %1" ).arg( tdeApp->aboutData()->programName() ),
TQString(), tdeApp->miniIcon() );
( void )new TQLabel( i18n( "The image %1 which you have modified has changed on disk.\n"
"Do you want to reload the file and lose your changes?\n"
"If you don't and subsequently save the image, you will lose the\n"

@ -27,7 +27,7 @@ Test::Test()
else
{
KMessageBox::error(this, "Could not find our Part!");
kapp->quit();
tdeApp->quit();
}
}

@ -168,9 +168,9 @@ void KViewBrowser::setupDirLister()
kdDebug( 4630 ) << "open KDirLister for " << url << endl;
m_pDirLister->openURL( KURL( url ));
while( ! m_pDirLister->isFinished() )
kapp->processEvents();
tdeApp->processEvents();
//while( ! m_pFileItemList )
//kapp->processEvents();
//tdeApp->processEvents();
TQApplication::restoreOverrideCursor();
}
}

@ -187,7 +187,7 @@ void DocumentWidget::paintEvent(TQPaintEvent *e)
if (!isVisible())
{
//kdDebug() << "widget of page " << pageNr << " is not visible. Abort rendering" << endl;
kapp->processEvents();
tdeApp->processEvents();
return;
}
@ -687,7 +687,7 @@ void DocumentWidget::delayedRequestPage()
//kdDebug() << "delayedRequest: widget of page " << pageNr << " is not visible. Abort rendering" << endl;
pixmapRequested = false;
kapp->processEvents();
tdeApp->processEvents();
return;
}
@ -699,7 +699,7 @@ void DocumentWidget::delayedRequestPage()
// displayed one after another. Widthout it all widgets are updated after all the rendering
// is completed. This is especially noticable in overview mode. After the change to a seperate
// rendering thread this will probably not be needed anymore.
kapp->processEvents();
tdeApp->processEvents();
}
TQSize DocumentWidget::pageSize() const

@ -724,7 +724,7 @@ bool KViewPart::openFile()
bool progress_dialog_was_cancelled = false;
while ((read = filterDev->readBlock(buf.data(), buf.size())) > 0)
{
kapp->processEvents();
tdeApp->processEvents();
progress_dialog_was_cancelled = prog->wasCancelled();
if (progress_dialog_was_cancelled)
break;
@ -856,7 +856,7 @@ bool KViewPart::openFile()
// is at first show at a very small zoomlevel before the zoom switches to the right value.
// This makes the plugin switching actually slower.
// TODO: Get rid of this without causing nasty artifacts.
kapp->processEvents();
tdeApp->processEvents();
initializeMultiPage();
partManager->setActivePart(this);

@ -158,8 +158,8 @@ void KViewShell::slotQuit()
menuBar()->show();
view->slotSetFullPage(false);
}
kapp->closeAllWindows();
kapp->quit();
tdeApp->closeAllWindows();
tdeApp->quit();
}
@ -168,7 +168,7 @@ void KViewShell::readSettings()
resize(600, 300); // default size if the config file specifies no size
setAutoSaveSettings( "General" ); // apply mainwindow settings (size, toolbars, etc.)
TDEConfig *config = kapp->config();
TDEConfig *config = tdeApp->config();
config->setGroup("General");
recent->loadEntries(config, "Recent Files");
@ -191,7 +191,7 @@ void KViewShell::readSettings()
void KViewShell::writeSettings()
{
TDEConfig *config = kapp->config();
TDEConfig *config = tdeApp->config();
config->setGroup( "General" );
recent->saveEntries(config, "Recent Files");

@ -144,7 +144,7 @@ void ThumbnailWidget::setThumbnail()
// When we are fast scrolling thru the document. Many paint events are created, that
// are often not needed anymore at the time the eventloop executes them.
//kdDebug() << "Delayed request Abort Thumbnail drawing for page " << pageNumber << endl;
kapp->processEvents();
tdeApp->processEvents();
return;
}
@ -157,7 +157,7 @@ void ThumbnailWidget::setThumbnail()
setFixedHeight(thumbnail.height() + 2);
update();
kapp->processEvents();
tdeApp->processEvents();
}

@ -403,7 +403,7 @@ bool DjVuRenderer::initializeDocument()
for(TQ_UINT16 i=0; i<numPages; i++) {
// Keep the GUI updated
if (i%100 == 0)
kapp->processEvents();
tdeApp->processEvents();
GP<DjVuFile> djvuFile = document->get_djvu_file(i);
int resolution;
@ -611,7 +611,7 @@ bool DjVuRenderer::convertToPSFile( DjVuToPS &converter, TQString filename, TQVa
delete pdialog;
// This is to keep the GUI updated.
kapp->processEvents();
tdeApp->processEvents();
obs->flush();
return !iscancelled;
@ -639,7 +639,7 @@ void DjVuRenderer::deletePages(TQ_UINT16 from, TQ_UINT16 to)
pdialog->progressBar()->setTotalSteps(to-from+1);
pdialog->progressBar()->setFormat(TQString());
pdialog->show();
kapp->processEvents();
tdeApp->processEvents();
}
// set the document pointer temporarily to 0, so that no-one tries
@ -658,7 +658,7 @@ void DjVuRenderer::deletePages(TQ_UINT16 from, TQ_UINT16 to)
document_new->remove_page(from-1);
pdialog->progressBar()->setProgress(i-from);
pdialog->progressBar()->setFormat(i18n("deleting page %1").arg(i));
kapp->processEvents();
tdeApp->processEvents();
}
delete pdialog;
}
@ -712,7 +712,7 @@ void DjVuRenderer::printerInfoCallBack(int page_num, int page_count, int, DjVuTo
G_THROW("STOP");
// This is to keep the GUI updated.
kapp->processEvents();
tdeApp->processEvents();
}

@ -639,7 +639,7 @@ void KMultiPage::handleLocalLink(const TQString &linkText)
TQStringList args;
args << "openURL";
args << Link_Url.toString();
kapp->tdeinitExec("kfmclient", args);
tdeApp->tdeinitExec("kfmclient", args);
}
}
}
@ -1428,7 +1428,7 @@ void KMultiPage::findNextText()
if (i != 0)
{
setStatusBarText(i18n("Search page %1 of %2").arg(pageNumber).arg(numberOfPages()));
kapp->processEvents();
tdeApp->processEvents();
}
// Check if we already have a rendered version of the page in the cache. As we are only interested in the
@ -1570,7 +1570,7 @@ void KMultiPage::findPrevText()
if (i != 0)
{
setStatusBarText(i18n("Search page %1 of %2").arg(pageNumber).arg(numberOfPages()));
kapp->processEvents();
tdeApp->processEvents();
}
// Check if we already have a rendered version of the page in the cache. As we are only interested in the

@ -675,7 +675,7 @@ void ImageCanvas::update_scaled_pixmap( void )
if( scaleKind() == DYNAMIC )
kdDebug(28000) << "Scaling DYNAMIC" << endl;
TQSize noSBSize( visibleWidth(), visibleHeight());
const int sbWidth = kapp->style().pixelMetric( TQStyle::PM_ScrollBarExtent );
const int sbWidth = tdeApp->style().pixelMetric( TQStyle::PM_ScrollBarExtent );
// if( verticalScrollBar()->visible() ) noSBSize.width()+=sbWidth;
// if( horizontalScrollBar()->visible() ) noSBSize.height()+=sbWidth;

@ -138,7 +138,7 @@ void KColorGrid::paintEvent(TQPaintEvent *e)
matrix.reset();
p.setWorldMatrix( matrix );
}
//kapp->processEvents();
//tdeApp->processEvents();
}
matrix.translate(-urect.x(),-urect.y());

@ -71,7 +71,7 @@ void createStandardTemplates(TDEIconTemplateContainer *list)
void TDEIconTemplateContainer::save()
{
TDEConfig *k = kapp->config();
TDEConfig *k = tdeApp->config();
k->setGroup("Templates");
TQStringList names;
@ -91,7 +91,7 @@ void TDEIconTemplateContainer::save()
TDEIconTemplateContainer::TDEIconTemplateContainer() : TQValueList<TDEIconTemplate>()
{
TQStrList names;
TDEConfig *k = kapp->config();
TDEConfig *k = tdeApp->config();
k->setGroup("Templates");
k->readListEntry("Names", names);
for(int i = 0; i < (int)names.count(); i++)

@ -35,7 +35,7 @@ TDEIconEditProperties* TDEIconEditProperties::self()
TDEIconEditProperties::TDEIconEditProperties() : TQObject()
{
TDEConfig *config = kapp->config();
TDEConfig *config = tdeApp->config();
config->setGroup( "Appearance" );
@ -92,7 +92,7 @@ TDEIconEditProperties::~TDEIconEditProperties()
void TDEIconEditProperties::save()
{
TDEConfig *config = kapp->config();
TDEConfig *config = tdeApp->config();
config->setGroup( "Appearance" );

@ -534,7 +534,7 @@ TDEIconConfig::TDEIconConfig(TQWidget *parent)
parent, "configDialog", true, true)
{
setHelp(TQString());
//KWin::setIcons(winId(), kapp->icon(), kapp->miniIcon());
//KWin::setIcons(winId(), tdeApp->icon(), tdeApp->miniIcon());
connect(this, TQ_SIGNAL(finished()), this, TQ_SLOT(finis()));
TQVBox* page = addVBoxPage(i18n("Icon Templates"), TQString(), loadIcon("icons"));

@ -55,7 +55,7 @@ void TDEIconEdit::init()
setMinimumSize( 600, 540 );
windowList.append(this);
setCaption(kapp->caption());
setCaption(tdeApp->caption());
m_paletteToolBar = 0L;
statusbar = 0L;
@ -141,7 +141,7 @@ void TDEIconEdit::init()
setCentralWidget(gridview);
applyMainWindowSettings( kapp->config(), "MainWindowSettings" );
applyMainWindowSettings( tdeApp->config(), "MainWindowSettings" );
updateProperties();
updateAccels();
@ -155,7 +155,7 @@ TDEIconEdit::~TDEIconEdit()
if (windowList.count() < 1)
{
kapp->quit();
tdeApp->quit();
}
}
@ -214,8 +214,8 @@ void TDEIconEdit::readProperties(TDEConfig *config)
*/
void TDEIconEdit::writeConfig()
{
TDEConfig *config = kapp->config();
m_actRecent->saveEntries( kapp->config() );
TDEConfig *config = tdeApp->config();
m_actRecent->saveEntries( tdeApp->config() );
TDEIconEditProperties::self()->save();
@ -253,7 +253,7 @@ void TDEIconEdit::setupActions()
m_actRecent = KStdAction::openRecent(this,
TQ_SLOT(slotOpenRecent(const KURL&)), actionCollection());
m_actRecent->setMaxItems(15); // FIXME should be configurable!
m_actRecent->loadEntries(kapp->config());
m_actRecent->loadEntries(tdeApp->config());
action = KStdAction::save(this, TQ_SLOT(slotSave()), actionCollection());
action->setWhatsThis(i18n("Save\n\nSave the current icon"));

@ -319,7 +319,7 @@ TDEIconEditGrid::TDEIconEditGrid(TQImage *image, KCommandHistory* h, TQWidget *p
setNumCols(32);
fill(TRANSPARENT);
connect( kapp->clipboard(), TQ_SIGNAL(dataChanged()), TQ_SLOT(checkClipboard()));
connect( tdeApp->clipboard(), TQ_SIGNAL(dataChanged()), TQ_SLOT(checkClipboard()));
connect( h, TQ_SIGNAL(commandExecuted()), this, TQ_SLOT(updatePreviewPixmap() ));
createCursors();
@ -1035,7 +1035,7 @@ void TDEIconEditGrid::load( TQImage *image)
setColor((y*numCols())+x, *l, false);
}
//kdDebug(4640) << "Row: " << y << endl;
kapp->processEvents(200);
tdeApp->processEvents(200);
}
updateColors();
@ -1118,7 +1118,7 @@ TQImage TDEIconEditGrid::clipboardImage(bool &ok)
{
TQCString format = fileFormats.current();
TQCString type = "image/" + format.lower();
if (kapp->clipboard()->data()->provides(type ) )
if (tdeApp->clipboard()->data()->provides(type ) )
{
oneIsSupported = true;
}
@ -1130,7 +1130,7 @@ TQImage TDEIconEditGrid::clipboardImage(bool &ok)
return TQImage();
}
TQImage image = kapp->clipboard()->image();
TQImage image = tdeApp->clipboard()->image();
ok = !image.isNull();
if ( ok )
{
@ -1213,7 +1213,7 @@ TQImage TDEIconEditGrid::getSelection(bool cut)
void TDEIconEditGrid::editCopy(bool cut)
{
kapp->clipboard()->setImage(getSelection(cut));
tdeApp->clipboard()->setImage(getSelection(cut));
isselecting = false;
}

Loading…
Cancel
Save