diff options
author | Michele Calgaro <[email protected]> | 2025-01-20 17:21:29 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2025-01-20 17:21:29 +0900 |
commit | bd28b782b7033c3fe0d4b3a71f10206155414f7e (patch) | |
tree | 2450c6c10200e7c08bc261cf8606275fcd1638c7 /ksysv | |
parent | 8dd602c4cb47624b1d4dbac2743ee20ab00001e4 (diff) | |
download | tdeadmin-bd28b782b7033c3fe0d4b3a71f10206155414f7e.tar.gz tdeadmin-bd28b782b7033c3fe0d4b3a71f10206155414f7e.zip |
Use tdeApp
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'ksysv')
-rw-r--r-- | ksysv/OldView.cpp | 26 | ||||
-rw-r--r-- | ksysv/PreferencesDialog.cpp | 2 | ||||
-rw-r--r-- | ksysv/TopWidget.cpp | 36 | ||||
-rw-r--r-- | ksysv/kbusymanager.cpp | 4 | ||||
-rw-r--r-- | ksysv/kscroller.cpp | 8 | ||||
-rw-r--r-- | ksysv/ksv_conf.cpp | 2 | ||||
-rw-r--r-- | ksysv/ksv_core.cpp | 2 | ||||
-rw-r--r-- | ksysv/main.cpp | 2 |
8 files changed, 41 insertions, 41 deletions
diff --git a/ksysv/OldView.cpp b/ksysv/OldView.cpp index 65c4002..d657684 100644 --- a/ksysv/OldView.cpp +++ b/ksysv/OldView.cpp @@ -572,7 +572,7 @@ void KSVContent::infoOnData (KSVItem* item) { KSVData oldState = *item->data(); KSVData newState = oldState; - KSVEntryPropertiesDialog* props = new KSVEntryPropertiesDialog (newState, kapp->mainWidget()); + KSVEntryPropertiesDialog* props = new KSVEntryPropertiesDialog (newState, tdeApp->mainWidget()); connect (props, TQ_SIGNAL (editService (const TQString&)), this, TQ_SLOT (editService (const TQString&))); @@ -714,7 +714,7 @@ void KSVContent::slotDoubleClick (TQListViewItem* item) { void KSVContent::slotScriptProperties(TQListViewItem* item) { KSVServicePropertiesDialog* prop = - new KSVServicePropertiesDialog (*static_cast<KSVItem*> (item)->data(), kapp->mainWidget()); + new KSVServicePropertiesDialog (*static_cast<KSVItem*> (item)->data(), tdeApp->mainWidget()); connect (prop, TQ_SIGNAL (editService (const TQString&)), this, TQ_SLOT (editService (const TQString&))); @@ -856,7 +856,7 @@ void KSVContent::pasteAppend() { KSVData data; - if (KSVDrag::decodeNative (kapp->clipboard()->data(), data)) + if (KSVDrag::decodeNative (tdeApp->clipboard()->data(), data)) { KSVAction* action = 0L; @@ -933,7 +933,7 @@ void KSVContent::multiplexEnabled (bool val) if ( !file->exists() ) { int choice = KMessageBox::warningYesNo - (kapp->mainWidget(), + (tdeApp->mainWidget(), i18n ("<p>You have specified that your system's init " \ "scripts are located in the folder " \ "<tt><b>%1</b></tt>, but this folder does not "\ @@ -948,9 +948,9 @@ void KSVContent::multiplexEnabled (bool val) "edit your system's init configuration.</p>" \ "<p>Would you like to reconfigure %4?</p>") .arg (config->scriptPath()) - .arg (kapp->aboutData()->programName()) - .arg (kapp->aboutData()->programName()) - .arg (kapp->aboutData()->programName()), + .arg (tdeApp->aboutData()->programName()) + .arg (tdeApp->aboutData()->programName()) + .arg (tdeApp->aboutData()->programName()), i18n("Folder Does Not Exist"),i18n("Reconfigure"),i18n("Do Not Reconfigure")); if ( choice == KMessageBox::Yes ) @@ -961,7 +961,7 @@ void KSVContent::multiplexEnabled (bool val) } else { - KMessageBox::information (kapp->mainWidget(), + KMessageBox::information (tdeApp->mainWidget(), i18n ("<p>You do not have the right permissions " \ "to edit your system's init configuration. " \ "However, you are free to browse the runlevels.</p>" \ @@ -972,8 +972,8 @@ void KSVContent::multiplexEnabled (bool val) "<em>suid</em> or <em>sgid</em>.</p>" \ "<p>The latter way is not recommended though, " \ "due to security issues.</p>") - .arg (kapp->aboutData()->programName()) - .arg (kapp->aboutData()->programName()), + .arg (tdeApp->aboutData()->programName()) + .arg (tdeApp->aboutData()->programName()), i18n("Insufficient Permissions"), ksv::notifications[ksv::RunlevelsReadOnly]); } @@ -1123,7 +1123,7 @@ void KSVContent::merge (TQValueList<KSVData>& list, KSVDragList* widget) emit undoAction (new AddAction (widget, item->data())); } - kapp->processEvents (); + tdeApp->processEvents (); } TQPtrList<KSVItem> deleteList; @@ -1140,11 +1140,11 @@ void KSVContent::merge (TQValueList<KSVData>& list, KSVDragList* widget) emit undoAction (new RemoveAction (widget, item->data())); } - kapp->processEvents (); + tdeApp->processEvents (); } widget->sort(); - kapp->processEvents(); + tdeApp->processEvents(); } #include "OldView.moc" diff --git a/ksysv/PreferencesDialog.cpp b/ksysv/PreferencesDialog.cpp index c830a34..9ec0008 100644 --- a/ksysv/PreferencesDialog.cpp +++ b/ksysv/PreferencesDialog.cpp @@ -194,7 +194,7 @@ TQColor KSVPreferences::changedSelected() const KSVPreferences* KSVPreferences::self () { - static KSVPreferences* prefs = new KSVPreferences (kapp->mainWidget()); + static KSVPreferences* prefs = new KSVPreferences (tdeApp->mainWidget()); return prefs; } diff --git a/ksysv/TopWidget.cpp b/ksysv/TopWidget.cpp index 88c5c2b..43f043a 100644 --- a/ksysv/TopWidget.cpp +++ b/ksysv/TopWidget.cpp @@ -158,7 +158,7 @@ KSVTopLevel::KSVTopLevel() connect (mRedoList, TQ_SIGNAL(filled()), this, TQ_SLOT(enableRedo())); // paste - connect (kapp->clipboard(), TQ_SIGNAL (dataChanged()), + connect (tdeApp->clipboard(), TQ_SIGNAL (dataChanged()), this, TQ_SLOT (dispatchEdit())); // init mView according to saved preferences @@ -295,7 +295,7 @@ bool KSVTopLevel::queryExit() uint res = KMessageBox::Continue; if (mChanged) { - res = KMessageBox::warningContinueCancel(kapp->mainWidget(), + res = KMessageBox::warningContinueCancel(tdeApp->mainWidget(), i18n("There are unsaved changes. Are you sure you want to quit?"), i18n("Quit"), KStdGuiItem::quit()); @@ -309,7 +309,7 @@ void KSVTopLevel::slotClearChanges() { if (mChanged && KMessageBox::Yes == - KMessageBox::questionYesNo(kapp->mainWidget(), + KMessageBox::questionYesNo(tdeApp->mainWidget(), i18n("Do you really want to revert all unsaved changes?"), i18n("Revert Configuration"), i18n("&Revert"), @@ -322,7 +322,7 @@ void KSVTopLevel::slotClearChanges() void KSVTopLevel::slotAcceptChanges() { if (KMessageBox::Continue == - KMessageBox::warningContinueCancel(kapp->mainWidget(), + KMessageBox::warningContinueCancel(tdeApp->mainWidget(), i18n("You're about to save the changes made to your init " "configuration. Wrong settings can " "make your system hang on startup.\n" @@ -426,7 +426,7 @@ void KSVTopLevel::initStatusBar() "or ask your sysadmin to install %1 <em>suid</em> or " \ "<em>sgid</em>.</p><p>The latter way is <strong>not</strong> "\ "recommended though, due to security issues.</p>") - .arg (kapp->aboutData()->programName()).arg(kapp->aboutData()->programName())); + .arg (tdeApp->aboutData()->programName()).arg(tdeApp->aboutData()->programName())); authIconBox->setMinimumSize (authIconBox->minimumSizeHint()); visBox->setMinimumSize (visBox->minimumSizeHint()); @@ -508,7 +508,7 @@ void KSVTopLevel::editCut() { if (list && list->currentItem()) { KSVDrag* mime = new KSVDrag (*list->currentItem()->data(), 0L, 0L); - kapp->clipboard()->setData (mime); + tdeApp->clipboard()->setData (mime); KSVData data = *list->currentItem()->data(); delete list->currentItem(); @@ -525,7 +525,7 @@ void KSVTopLevel::editCopy() if (list) { KSVDrag* mime = new KSVDrag (*static_cast<KSVItem*> (list->currentItem()), 0L, 0L); - kapp->clipboard()->setData (mime); + tdeApp->clipboard()->setData (mime); } } @@ -537,7 +537,7 @@ void KSVTopLevel::editPaste() { KSVData data; - if (KSVDrag::decodeNative (kapp->clipboard()->data(), data)) + if (KSVDrag::decodeNative (tdeApp->clipboard()->data(), data)) { KSVAction* action = 0L; @@ -629,11 +629,11 @@ void KSVTopLevel::print() // #define checkPage if (metrics.height() - y < fm.lineSpacing()) prt.newPage(); // static KPrinter prt; -// prt.setDocName(kapp->aboutData()->programName() + " Configuration"); -// prt.setCreator(kapp->aboutData()->programName()); +// prt.setDocName(tdeApp->aboutData()->programName() + " Configuration"); +// prt.setCreator(tdeApp->aboutData()->programName()); // static TQPrintDialog* dlg = new TQPrintDialog (&prt, this, "KSysV Print Dialog"); -// dlg->setCaption(kapp->makeStdCaption (i18n("Print"))); +// dlg->setCaption(tdeApp->makeStdCaption (i18n("Print"))); // if (dlg->exec() == TQDialog::Accepted) // { @@ -647,7 +647,7 @@ void KSVTopLevel::print() // TQFontMetrics fm = p.fontMetrics(); // p.drawText (10, y, i18n("%1 Configuration of %2") -// .arg (kapp->aboutData()->programName()) +// .arg (tdeApp->aboutData()->programName()) // .arg (ksv::hostname())); // y += fm.lineSpacing(); @@ -747,8 +747,8 @@ void KSVTopLevel::print() void KSVTopLevel::printLog() { KPrinter *prt = new KPrinter(); - prt->setDocName(kapp->aboutData()->programName() + " Log File"); - prt->setCreator(kapp->aboutData()->programName()); + prt->setDocName(tdeApp->aboutData()->programName() + " Log File"); + prt->setCreator(tdeApp->aboutData()->programName()); if (prt->setup(this, i18n("Print Log File"))) { @@ -807,7 +807,7 @@ void KSVTopLevel::printLog() if (line == lines.end()) goto printing_finished; - kapp->processEvents(); + tdeApp->processEvents(); } prt->newPage(); @@ -826,7 +826,7 @@ void KSVTopLevel::printLog() void KSVTopLevel::catchCannotGenerateNumber() { if (mConfig->showMessage (ksv::CouldNotGenerateSortingNumber)) { - KMessageBox::information (kapp->mainWidget(), + KMessageBox::information (tdeApp->mainWidget(), i18n ("<p>Unable to generate a valid " \ "sorting number for this position. This means " \ "that there was no number available between "\ @@ -890,7 +890,7 @@ void KSVTopLevel::dispatchEdit () } else { - TQMimeSource* mime = kapp->clipboard()->data(); + TQMimeSource* mime = tdeApp->clipboard()->data(); if (mime && mime->provides ("application/x-ksysv")) setPaste (true); @@ -954,7 +954,7 @@ void KSVTopLevel::enableLogActions () void KSVTopLevel::setCaption (bool changed) { - setPlainCaption (kapp->makeStdCaption(KNetwork::KResolver::localHostName(), true, changed)); + setPlainCaption (tdeApp->makeStdCaption(KNetwork::KResolver::localHostName(), true, changed)); } TDEActionCollection* KSVTopLevel::filteredActions () diff --git a/ksysv/kbusymanager.cpp b/ksysv/kbusymanager.cpp index 2a5c9f9..a46abfa 100644 --- a/ksysv/kbusymanager.cpp +++ b/ksysv/kbusymanager.cpp @@ -66,7 +66,7 @@ void KBusyManager::setBusy (bool val) if (val) TQApplication::setOverrideCursor (KCursor::waitCursor()); - kapp->mainWidget()->setEnabled (!val); + tdeApp->mainWidget()->setEnabled (!val); } void KBusyManager::restore () @@ -79,7 +79,7 @@ void KBusyManager::restore () if (oldBusy) TQApplication::restoreOverrideCursor(); - kapp->mainWidget()->setEnabled (!d->Stack.top()); + tdeApp->mainWidget()->setEnabled (!d->Stack.top()); } KBusyManager::KBusyManager () diff --git a/ksysv/kscroller.cpp b/ksysv/kscroller.cpp index 58cb254..013cb07 100644 --- a/ksysv/kscroller.cpp +++ b/ksysv/kscroller.cpp @@ -88,7 +88,7 @@ TQSize KScroller::minimumSizeHint() const TQSize KScroller::sizeHint() const { TQSize size = mContent->minimumSize(); - int extra = kapp->style().pixelMetric( TQStyle::PM_ScrollBarExtent, 0 ); + int extra = tdeApp->style().pixelMetric( TQStyle::PM_ScrollBarExtent, 0 ); size += TQSize( extra, extra ); return size; } @@ -113,7 +113,7 @@ void KScroller::setupHorizontal (int cw, int, int w, int h) if (cw > w) { - int extra = kapp->style().pixelMetric( TQStyle::PM_ScrollBarExtent, 0 ); + int extra = tdeApp->style().pixelMetric( TQStyle::PM_ScrollBarExtent, 0 ); if (!mVertical->isHidden()) w -= extra; @@ -139,7 +139,7 @@ void KScroller::setupVertical (int, int ch, int w, int h) if (ch > h) { - int extra = kapp->style().pixelMetric( TQStyle::PM_ScrollBarExtent, 0 ); + int extra = tdeApp->style().pixelMetric( TQStyle::PM_ScrollBarExtent, 0 ); mVertical->setRange (0, ch - h); mVertical->setPageStep (h); mVertical->setLineStep (25); @@ -175,7 +175,7 @@ void KScroller::setupCornerWidget (int w, int h) { if (!mVertical->isHidden() && !mHorizontal->isHidden()) { - int extra = kapp->style().pixelMetric( TQStyle::PM_ScrollBarExtent, 0 ); + int extra = tdeApp->style().pixelMetric( TQStyle::PM_ScrollBarExtent, 0 ); mCornerWidget->raise(); mCornerWidget->setGeometry (w - extra, h - extra, extra, extra); diff --git a/ksysv/ksv_conf.cpp b/ksysv/ksv_conf.cpp index dfe13fd..772d9f0 100644 --- a/ksysv/ksv_conf.cpp +++ b/ksysv/ksv_conf.cpp @@ -101,7 +101,7 @@ void KSVConfig::writeSettings() { mConfig->writeEntry("Number Font", mNumberFont); // save screen geometry - TDEMainWindow* mw = static_cast<TDEMainWindow*>(kapp->mainWidget()); + TDEMainWindow* mw = static_cast<TDEMainWindow*>(tdeApp->mainWidget()); if (mw) { diff --git a/ksysv/ksv_core.cpp b/ksysv/ksv_core.cpp index caf0dfe..3268bb4 100644 --- a/ksysv/ksv_core.cpp +++ b/ksysv/ksv_core.cpp @@ -152,7 +152,7 @@ TDECompletion* ksv::numberCompletion () const TQString& ksv::logFileFilter () { static TQString filter = "*" + ksv::logFileExtension() + "|" + - TQString(kapp->caption() + i18n(" log files") + " (*" + ksv::logFileExtension() + ")"); + TQString(tdeApp->caption() + i18n(" log files") + " (*" + ksv::logFileExtension() + ")"); return filter; } diff --git a/ksysv/main.cpp b/ksysv/main.cpp index 5e7c2c7..184be73 100644 --- a/ksysv/main.cpp +++ b/ksysv/main.cpp @@ -76,7 +76,7 @@ int main( int argc, char **argv ) { KSVApplication app; // session-management - if (kapp->isRestored()) + if (tdeApp->isRestored()) RESTORE(KSVTopLevel) else { |