diff options
Diffstat (limited to 'cervisia')
43 files changed, 423 insertions, 423 deletions
diff --git a/cervisia/addremovedlg.cpp b/cervisia/addremovedlg.cpp index 240d3b2a..a49eac60 100644 --- a/cervisia/addremovedlg.cpp +++ b/cervisia/addremovedlg.cpp @@ -59,7 +59,7 @@ AddRemoveDialog::AddRemoveDialog(ActionType action, TQWidget* parent, const char TQBoxLayout *warningLayout = new TQHBoxLayout; TQLabel *warningIcon = new TQLabel(mainWidget); - TDEIconLoader *loader = kapp->iconLoader(); + TDEIconLoader *loader = tdeApp->iconLoader(); warningIcon->setPixmap(loader->loadIcon("messagebox_warning", TDEIcon::NoGroup, TDEIcon::SizeMedium, TDEIcon::DefaultState, 0, true)); diff --git a/cervisia/addrepositorydlg.cpp b/cervisia/addrepositorydlg.cpp index 576b43f4..a31c497f 100644 --- a/cervisia/addrepositorydlg.cpp +++ b/cervisia/addrepositorydlg.cpp @@ -81,10 +81,10 @@ AddRepositoryDialog::AddRepositoryDialog(TDEConfig& cfg, const TQString& repo, "server"), mainWidget); layout->addWidget(m_retrieveCvsignoreFile); - connect( repo_edit, TQT_SIGNAL(textChanged(const TQString&)), - this, TQT_SLOT(repoChanged()) ); - connect( m_useDifferentCompression, TQT_SIGNAL(toggled(bool)), - this, TQT_SLOT(compressionToggled(bool)) ); + connect( repo_edit, TQ_SIGNAL(textChanged(const TQString&)), + this, TQ_SLOT(repoChanged()) ); + connect( m_useDifferentCompression, TQ_SIGNAL(toggled(bool)), + this, TQ_SLOT(compressionToggled(bool)) ); repoChanged(); TQSize size = configDialogSize(partConfig, "AddRepositoryDialog"); diff --git a/cervisia/annotateview.cpp b/cervisia/annotateview.cpp index 3649b73d..9390ca2a 100644 --- a/cervisia/annotateview.cpp +++ b/cervisia/annotateview.cpp @@ -159,8 +159,8 @@ AnnotateView::AnnotateView(TDEConfig &cfg, TQWidget *parent, const char *name) ToolTip* toolTip = new ToolTip(viewport()); - connect(toolTip, TQT_SIGNAL(queryToolTip(const TQPoint&, TQRect&, TQString&)), - this, TQT_SLOT(slotQueryToolTip(const TQPoint&, TQRect&, TQString&))); + connect(toolTip, TQ_SIGNAL(queryToolTip(const TQPoint&, TQRect&, TQString&)), + this, TQ_SLOT(slotQueryToolTip(const TQPoint&, TQRect&, TQString&))); TDEConfigGroupSaver cs(&cfg, "LookAndFeel"); setFont(cfg.readFontEntry("AnnotateFont")); diff --git a/cervisia/cervisiapart.cpp b/cervisia/cervisiapart.cpp index 63fb5976..7973ad5b 100644 --- a/cervisia/cervisiapart.cpp +++ b/cervisia/cervisiapart.cpp @@ -29,10 +29,10 @@ #include <tdeapplication.h> #include <tdefiledialog.h> #include <kinputdialog.h> -#include <kinstance.h> +#include <tdeinstance.h> #include <tdelocale.h> #include <knotifyclient.h> -#include <kprocess.h> +#include <tdeprocess.h> #include <kpropertiesdialog.h> #include <kstatusbar.h> #include <kstdaction.h> @@ -138,10 +138,10 @@ CervisiaPart::CervisiaPart( TQWidget *parentWidget, const char *widgetName, update = new UpdateView(*config(), splitter); update->setFocusPolicy( TQWidget::StrongFocus ); update->setFocus(); - connect( update, TQT_SIGNAL(contextMenu(TDEListView*, TQListViewItem*, const TQPoint&)), - this, TQT_SLOT(popupRequested(TDEListView*, TQListViewItem*, const TQPoint&)) ); - connect( update, TQT_SIGNAL(fileOpened(TQString)), - this, TQT_SLOT(openFile(TQString)) ); + connect( update, TQ_SIGNAL(contextMenu(TDEListView*, TQListViewItem*, const TQPoint&)), + this, TQ_SLOT(popupRequested(TDEListView*, TQListViewItem*, const TQPoint&)) ); + connect( update, TQ_SIGNAL(fileOpened(TQString)), + this, TQ_SLOT(openFile(TQString)) ); protocol = new ProtocolView(appId, splitter); protocol->setFocusPolicy( TQWidget::StrongFocus ); @@ -157,12 +157,12 @@ CervisiaPart::CervisiaPart( TQWidget *parentWidget, const char *widgetName, { setupActions(); readSettings(); - connect( update, TQT_SIGNAL( selectionChanged() ), this, TQT_SLOT( updateActions() ) ); + connect( update, TQ_SIGNAL( selectionChanged() ), this, TQ_SLOT( updateActions() ) ); } setXMLFile( "cervisiaui.rc" ); - TQTimer::singleShot(0, this, TQT_SLOT(slotSetupStatusBar())); + TQTimer::singleShot(0, this, TQ_SLOT(slotSetupStatusBar())); } CervisiaPart::~CervisiaPart() @@ -233,81 +233,81 @@ void CervisiaPart::setupActions() // File Menu // action = new TDEAction( i18n("O&pen Sandbox..."), "document-open", CTRL+Key_O, - this, TQT_SLOT( slotOpenSandbox() ), + this, TQ_SLOT( slotOpenSandbox() ), actionCollection(), "file_open" ); hint = i18n("Opens a CVS working folder in the main window"); action->setToolTip( hint ); action->setWhatsThis( hint ); recent = new TDERecentFilesAction( i18n("Recent Sandboxes"), 0, - this, TQT_SLOT( openURL( const KURL & ) ), + this, TQ_SLOT( openURL( const KURL & ) ), actionCollection(), "file_open_recent" ); action = new TDEAction( i18n("&Insert ChangeLog Entry..."), 0, - this, TQT_SLOT( slotChangeLog() ), + this, TQ_SLOT( slotChangeLog() ), actionCollection(), "insert_changelog_entry" ); hint = i18n("Inserts a new intro into the file ChangeLog in the toplevel folder"); action->setToolTip( hint ); action->setWhatsThis( hint ); action = new TDEAction( i18n("&Update"), "vcs_update", CTRL+Key_U, - this, TQT_SLOT( slotUpdate() ), + this, TQ_SLOT( slotUpdate() ), actionCollection(), "file_update" ); hint = i18n("Updates (cvs update) the selected files and folders"); action->setToolTip( hint ); action->setWhatsThis( hint ); action = new TDEAction( i18n("&Status"), "vcs_status", Key_F5, - this, TQT_SLOT( slotStatus() ), + this, TQ_SLOT( slotStatus() ), actionCollection(), "file_status" ); hint = i18n("Updates the status (cvs -n update) of the selected files and folders"); action->setToolTip( hint ); action->setWhatsThis( hint ); action = new TDEAction( i18n("&Edit"), 0, - this, TQT_SLOT( slotOpen() ), + this, TQ_SLOT( slotOpen() ), actionCollection(), "file_edit" ); hint = i18n("Opens the marked file for editing"); action->setToolTip( hint ); action->setWhatsThis( hint ); action = new TDEAction( i18n("Reso&lve..."), 0, - this, TQT_SLOT( slotResolve() ), + this, TQ_SLOT( slotResolve() ), actionCollection(), "file_resolve" ); hint = i18n("Opens the resolve dialog with the selected file"); action->setToolTip( hint ); action->setWhatsThis( hint ); action = new TDEAction( i18n("&Commit..."), "vcs_commit", Key_NumberSign, - this, TQT_SLOT( slotCommit() ), + this, TQ_SLOT( slotCommit() ), actionCollection(), "file_commit" ); hint = i18n("Commits the selected files"); action->setToolTip( hint ); action->setWhatsThis( hint ); action = new TDEAction( i18n("&Add to Repository..."), "vcs_add", Key_Insert, - this, TQT_SLOT( slotAdd() ), + this, TQ_SLOT( slotAdd() ), actionCollection(), "file_add" ); hint = i18n("Adds (cvs add) the selected files to the repository"); action->setToolTip( hint ); action->setWhatsThis( hint ); action = new TDEAction( i18n("Add &Binary..."), 0, - this, TQT_SLOT( slotAddBinary() ), + this, TQ_SLOT( slotAddBinary() ), actionCollection(), "file_add_binary" ); hint = i18n("Adds (cvs -kb add) the selected files as binaries to the repository"); action->setToolTip( hint ); action->setWhatsThis( hint ); action = new TDEAction( i18n("&Remove From Repository..."), "vcs_remove", Key_Delete, - this, TQT_SLOT( slotRemove() ), + this, TQ_SLOT( slotRemove() ), actionCollection(), "file_remove" ); hint = i18n("Removes (cvs remove) the selected files from the repository"); action->setToolTip( hint ); action->setWhatsThis( hint ); action = new TDEAction( i18n("Rever&t"), 0, - this, TQT_SLOT( slotRevert() ), + this, TQ_SLOT( slotRevert() ), actionCollection(), "file_revert_local_changes" ); hint = i18n("Reverts (cvs update -C) the selected files (only cvs 1.11)"); action->setToolTip( hint ); @@ -315,14 +315,14 @@ void CervisiaPart::setupActions() // context menu only action = new TDEAction( i18n("&Properties"), 0, - this, TQT_SLOT( slotFileProperties() ), + this, TQ_SLOT( slotFileProperties() ), actionCollection(), "file_properties" ); // // View Menu // action = new TDEAction( i18n("Stop"), "process-stop", Key_Escape, - TQT_TQOBJECT(protocol), TQT_SLOT(cancelJob()), + protocol, TQ_SLOT(cancelJob()), actionCollection(), "stop_job" ); action->setEnabled( false ); hint = i18n("Stops any running sub-processes"); @@ -331,7 +331,7 @@ void CervisiaPart::setupActions() action = new TDEAction( i18n("Browse &Log..."), CTRL+Key_L, - this, TQT_SLOT(slotBrowseLog()), + this, TQ_SLOT(slotBrowseLog()), actionCollection(), "view_log" ); hint = i18n("Shows the revision tree of the selected file"); action->setToolTip( hint ); @@ -339,46 +339,46 @@ void CervisiaPart::setupActions() #if 0 action = new TDEAction( i18n("Browse Multi-File Log..."), 0, - this, TQT_SLOT(slotBrowseMultiLog()), + this, TQ_SLOT(slotBrowseMultiLog()), actionCollection() ); #endif action = new TDEAction( i18n("&Annotate..."), CTRL+Key_A, - this, TQT_SLOT(slotAnnotate()), + this, TQ_SLOT(slotAnnotate()), actionCollection(), "view_annotate" ); hint = i18n("Shows a blame-annotated view of the selected file"); action->setToolTip( hint ); action->setWhatsThis( hint ); action = new TDEAction( i18n("&Difference to Repository (BASE)..."), "vcs_diff", CTRL+Key_D, - this, TQT_SLOT(slotDiffBase()), + this, TQ_SLOT(slotDiffBase()), actionCollection(), "view_diff_base" ); hint = i18n("Shows the differences of the selected file to the checked out version (tag BASE)"); action->setToolTip( hint ); action->setWhatsThis( hint ); action = new TDEAction( i18n("Difference to Repository (HEAD)..."), "vcs_diff", CTRL+Key_H, - this, TQT_SLOT(slotDiffHead()), + this, TQ_SLOT(slotDiffHead()), actionCollection(), "view_diff_head" ); hint = i18n("Shows the differences of the selected file to the newest version in the repository (tag HEAD)"); action->setToolTip( hint ); action->setWhatsThis( hint ); action = new TDEAction( i18n("Last &Change..."), 0, - this, TQT_SLOT(slotLastChange()), + this, TQ_SLOT(slotLastChange()), actionCollection(), "view_last_change" ); hint = i18n("Shows the differences between the last two revisions of the selected file"); action->setToolTip( hint ); action->setWhatsThis( hint ); action = new TDEAction( i18n("&History..."), 0, - this, TQT_SLOT(slotHistory()), + this, TQ_SLOT(slotHistory()), actionCollection(), "view_history" ); hint = i18n("Shows the CVS history as reported by the server"); action->setToolTip( hint ); action->setWhatsThis( hint ); action = new TDEAction( i18n("&Unfold File Tree"), 0, - this , TQT_SLOT(slotUnfoldTree()), + this , TQ_SLOT(slotUnfoldTree()), actionCollection(), "view_unfold_tree" ); hint = i18n("Opens all branches of the file tree"); @@ -386,7 +386,7 @@ void CervisiaPart::setupActions() action->setWhatsThis( hint ); action = new TDEAction( i18n("&Fold File Tree"), 0, - this, TQT_SLOT(slotFoldTree()), + this, TQ_SLOT(slotFoldTree()), actionCollection(), "view_fold_tree" ); hint = i18n("Closes all branches of the file tree"); action->setToolTip( hint ); @@ -396,98 +396,98 @@ void CervisiaPart::setupActions() // Advanced Menu // action = new TDEAction( i18n("&Tag/Branch..."), 0, - this, TQT_SLOT(slotCreateTag()), + this, TQ_SLOT(slotCreateTag()), actionCollection(), "create_tag" ); hint = i18n("Creates a tag or branch for the selected files"); action->setToolTip( hint ); action->setWhatsThis( hint ); action = new TDEAction( i18n("&Delete Tag..."), 0, - this, TQT_SLOT(slotDeleteTag()), + this, TQ_SLOT(slotDeleteTag()), actionCollection(), "delete_tag" ); hint = i18n("Deletes a tag from the selected files"); action->setToolTip( hint ); action->setWhatsThis( hint ); action = new TDEAction( i18n("&Update to Tag/Date..."), 0, - this, TQT_SLOT(slotUpdateToTag()), + this, TQ_SLOT(slotUpdateToTag()), actionCollection(), "update_to_tag" ); hint = i18n("Updates the selected files to a given tag, branch or date"); action->setToolTip( hint ); action->setWhatsThis( hint ); action = new TDEAction( i18n("Update to &HEAD"), 0, - this, TQT_SLOT(slotUpdateToHead()), + this, TQ_SLOT(slotUpdateToHead()), actionCollection(), "update_to_head" ); hint = i18n("Updates the selected files to the HEAD revision"); action->setToolTip( hint ); action->setWhatsThis( hint ); action = new TDEAction( i18n("&Merge..."), 0, - this, TQT_SLOT(slotMerge()), + this, TQ_SLOT(slotMerge()), actionCollection(), "merge" ); hint = i18n("Merges a branch or a set of modifications into the selected files"); action->setToolTip( hint ); action->setWhatsThis( hint ); action = new TDEAction( i18n("&Add Watch..."), 0, - this, TQT_SLOT(slotAddWatch()), + this, TQ_SLOT(slotAddWatch()), actionCollection(), "add_watch" ); hint = i18n("Adds a watch for the selected files"); action->setToolTip( hint ); action->setWhatsThis( hint ); action = new TDEAction( i18n("&Remove Watch..."), 0, - this, TQT_SLOT(slotRemoveWatch()), + this, TQ_SLOT(slotRemoveWatch()), actionCollection(), "remove_watch" ); hint = i18n("Removes a watch from the selected files"); action->setToolTip( hint ); action->setWhatsThis( hint ); action = new TDEAction( i18n("Show &Watchers"), 0, - this, TQT_SLOT(slotShowWatchers()), + this, TQ_SLOT(slotShowWatchers()), actionCollection(), "show_watchers" ); hint = i18n("Shows the watchers of the selected files"); action->setToolTip( hint ); action->setWhatsThis( hint ); action = new TDEAction( i18n("Ed&it Files"), 0, - this, TQT_SLOT(slotEdit()), + this, TQ_SLOT(slotEdit()), actionCollection(), "edit_files" ); hint = i18n("Edits (cvs edit) the selected files"); action->setToolTip( hint ); action->setWhatsThis( hint ); action = new TDEAction( i18n("U&nedit Files"), 0, - this, TQT_SLOT(slotUnedit()), + this, TQ_SLOT(slotUnedit()), actionCollection(), "unedit_files" ); hint = i18n("Unedits (cvs unedit) the selected files"); action->setToolTip( hint ); action->setWhatsThis( hint ); action = new TDEAction( i18n("Show &Editors"), 0, - this, TQT_SLOT(slotShowEditors()), + this, TQ_SLOT(slotShowEditors()), actionCollection(), "show_editors" ); hint = i18n("Shows the editors of the selected files"); action->setToolTip( hint ); action->setWhatsThis( hint ); action = new TDEAction( i18n("&Lock Files"), 0, - this, TQT_SLOT(slotLock()), + this, TQ_SLOT(slotLock()), actionCollection(), "lock_files" ); hint = i18n("Locks the selected files, so that others cannot modify them"); action->setToolTip( hint ); action->setWhatsThis( hint ); action = new TDEAction( i18n("Unl&ock Files"), 0, - this, TQT_SLOT(slotUnlock()), + this, TQ_SLOT(slotUnlock()), actionCollection(), "unlock_files" ); hint = i18n("Unlocks the selected files"); action->setToolTip( hint ); action->setWhatsThis( hint ); action = new TDEAction( i18n("Create &Patch Against Repository..."), 0, - this, TQT_SLOT(slotMakePatch()), + this, TQ_SLOT(slotMakePatch()), actionCollection(), "make_patch" ); hint = i18n("Creates a patch from the modifications in your sandbox"); action->setToolTip( hint ); @@ -497,25 +497,25 @@ void CervisiaPart::setupActions() // Repository Menu // action = new TDEAction( i18n("&Create..."), 0, - this, TQT_SLOT(slotCreateRepository()), + this, TQ_SLOT(slotCreateRepository()), actionCollection(), "repository_create" ); action = new TDEAction( i18n("&Checkout..."), 0, - this, TQT_SLOT(slotCheckout()), + this, TQ_SLOT(slotCheckout()), actionCollection(), "repository_checkout" ); hint = i18n("Allows you to checkout a module from a repository"); action->setToolTip( hint ); action->setWhatsThis( hint ); action = new TDEAction( i18n("&Import..."), 0, - this, TQT_SLOT(slotImport()), + this, TQ_SLOT(slotImport()), actionCollection(), "repository_import" ); hint = i18n("Allows you to import a module into a repository"); action->setToolTip( hint ); action->setWhatsThis( hint ); action = new TDEAction( i18n("&Repositories..."), 0, - this, TQT_SLOT(slotRepositories()), + this, TQ_SLOT(slotRepositories()), actionCollection(), "show_repositories" ); hint = i18n("Configures a list of repositories you regularly use"); action->setToolTip( hint ); @@ -525,7 +525,7 @@ void CervisiaPart::setupActions() // Settings menu // TDEToggleAction* toggaction = new TDEToggleAction( i18n("Hide All &Files"), 0, - this, TQT_SLOT(slotHideFiles()), + this, TQ_SLOT(slotHideFiles()), actionCollection(), "settings_hide_files" ); toggaction->setCheckedState(i18n("Show All &Files")); hint = i18n("Determines whether only folders are shown"); @@ -533,7 +533,7 @@ void CervisiaPart::setupActions() toggaction->setWhatsThis( hint ); toggaction = new TDEToggleAction( i18n("Hide Unmodified Files"), 0, - this, TQT_SLOT(slotHideUpToDate()), + this, TQ_SLOT(slotHideUpToDate()), actionCollection(), "settings_hide_uptodate" ); toggaction->setCheckedState(i18n("Show Unmodified Files")); hint = i18n("Determines whether files with status up-to-date or " @@ -542,7 +542,7 @@ void CervisiaPart::setupActions() toggaction->setWhatsThis( hint ); toggaction = new TDEToggleAction( i18n("Hide Removed Files"), 0, - this, TQT_SLOT(slotHideRemoved()), + this, TQ_SLOT(slotHideRemoved()), actionCollection(), "settings_hide_removed" ); toggaction->setCheckedState(i18n("Show Removed Files")); hint = i18n("Determines whether removed files are hidden"); @@ -550,7 +550,7 @@ void CervisiaPart::setupActions() toggaction->setWhatsThis( hint ); toggaction = new TDEToggleAction( i18n("Hide Non-CVS Files"), 0, - this, TQT_SLOT(slotHideNotInCVS()), + this, TQ_SLOT(slotHideNotInCVS()), actionCollection(), "settings_hide_notincvs" ); toggaction->setCheckedState(i18n("Show Non-CVS Files")); hint = i18n("Determines whether files not in CVS are hidden"); @@ -558,7 +558,7 @@ void CervisiaPart::setupActions() toggaction->setWhatsThis( hint ); toggaction = new TDEToggleAction( i18n("Hide Empty Folders"), 0, - this, TQT_SLOT(slotHideEmptyDirectories()), + this, TQ_SLOT(slotHideEmptyDirectories()), actionCollection(), "settings_hide_empty_directories" ); toggaction->setCheckedState(i18n("Show Empty Folders")); hint = i18n("Determines whether folders without visible entries are hidden"); @@ -566,42 +566,42 @@ void CervisiaPart::setupActions() toggaction->setWhatsThis( hint ); action = new TDEToggleAction( i18n("Create &Folders on Update"), 0, - this, TQT_SLOT(slotCreateDirs()), + this, TQ_SLOT(slotCreateDirs()), actionCollection(), "settings_create_dirs" ); hint = i18n("Determines whether updates create folders"); action->setToolTip( hint ); action->setWhatsThis( hint ); action = new TDEToggleAction( i18n("&Prune Empty Folders on Update"), 0, - this, TQT_SLOT(slotPruneDirs()), + this, TQ_SLOT(slotPruneDirs()), actionCollection(), "settings_prune_dirs" ); hint = i18n("Determines whether updates remove empty folders"); action->setToolTip( hint ); action->setWhatsThis( hint ); action = new TDEToggleAction( i18n("&Update Recursively"), 0, - this, TQT_SLOT(slotUpdateRecursive()), + this, TQ_SLOT(slotUpdateRecursive()), actionCollection(), "settings_update_recursively" ); hint = i18n("Determines whether updates are recursive"); action->setToolTip( hint ); action->setWhatsThis( hint ); action = new TDEToggleAction( i18n("C&ommit && Remove Recursively"), 0, - this, TQT_SLOT(slotCommitRecursive()), + this, TQ_SLOT(slotCommitRecursive()), actionCollection(), "settings_commit_recursively" ); hint = i18n("Determines whether commits and removes are recursive"); action->setToolTip( hint ); action->setWhatsThis( hint ); action = new TDEToggleAction( i18n("Do cvs &edit Automatically When Necessary"), 0, - this, TQT_SLOT(slotDoCVSEdit()), + this, TQ_SLOT(slotDoCVSEdit()), actionCollection(), "settings_do_cvs_edit" ); hint = i18n("Determines whether automatic cvs editing is active"); action->setToolTip( hint ); action->setWhatsThis( hint ); action = new TDEAction( i18n("Configure Cervisia..."), "configure", 0, - this, TQT_SLOT(slotConfigure()), + this, TQ_SLOT(slotConfigure()), actionCollection(), "configure_cervisia" ); hint = i18n("Allows you to configure the Cervisia KPart"); action->setToolTip( hint ); @@ -610,11 +610,11 @@ void CervisiaPart::setupActions() // // Help Menu // - action = KStdAction::help( this, TQT_SLOT(slotHelp()), + action = KStdAction::help( this, TQ_SLOT(slotHelp()), actionCollection() ); action = new TDEAction( i18n("CVS &Manual"), 0, - this, TQT_SLOT(slotCVSInfo()), + this, TQ_SLOT(slotCVSInfo()), actionCollection(), "help_cvs_manual" ); hint = i18n("Opens the help browser with the CVS documentation"); action->setToolTip( hint ); @@ -624,11 +624,11 @@ void CervisiaPart::setupActions() // Folder context menu // toggaction = new TDEToggleAction( i18n("Unfold Folder"), 0, - this, TQT_SLOT( slotUnfoldFolder() ), + this, TQ_SLOT( slotUnfoldFolder() ), actionCollection(), "unfold_folder" ); toggaction->setCheckedState(i18n("Fold Folder")); - //action = KStdAction::aboutApp( this, TQT_SLOT(aboutCervisia()), + //action = KStdAction::aboutApp( this, TQ_SLOT(aboutCervisia()), // actionCollection(), "help_about_cervisia" ); } @@ -881,9 +881,9 @@ void CervisiaPart::slotStatus() if( protocol->startJob(true) ) { showJobStart(cmdline); - connect( protocol, TQT_SIGNAL(receivedLine(TQString)), update, TQT_SLOT(processUpdateLine(TQString)) ); - connect( protocol, TQT_SIGNAL(jobFinished(bool, int)), update, TQT_SLOT(finishJob(bool, int)) ); - connect( protocol, TQT_SIGNAL(jobFinished(bool, int)), this, TQT_SLOT(slotJobFinished()) ); + connect( protocol, TQ_SIGNAL(receivedLine(TQString)), update, TQ_SLOT(processUpdateLine(TQString)) ); + connect( protocol, TQ_SIGNAL(jobFinished(bool, int)), update, TQ_SLOT(finishJob(bool, int)) ); + connect( protocol, TQ_SIGNAL(jobFinished(bool, int)), this, TQ_SLOT(slotJobFinished()) ); } } @@ -992,8 +992,8 @@ void CervisiaPart::slotCommit() { m_jobType = Commit; showJobStart(cmdline); - connect( protocol, TQT_SIGNAL(jobFinished(bool, int)), update, TQT_SLOT(finishJob(bool, int)) ); - connect( protocol, TQT_SIGNAL(jobFinished(bool, int)), this, TQT_SLOT(slotJobFinished()) ); + connect( protocol, TQ_SIGNAL(jobFinished(bool, int)), update, TQ_SLOT(finishJob(bool, int)) ); + connect( protocol, TQ_SIGNAL(jobFinished(bool, int)), this, TQ_SLOT(slotJobFinished()) ); } } } @@ -1060,9 +1060,9 @@ void CervisiaPart::updateSandbox(const TQString &extraopt) if( protocol->startJob(true) ) { showJobStart(cmdline); - connect( protocol, TQT_SIGNAL(receivedLine(TQString)), update, TQT_SLOT(processUpdateLine(TQString)) ); - connect( protocol, TQT_SIGNAL(jobFinished(bool, int)), update, TQT_SLOT(finishJob(bool, int)) ); - connect( protocol, TQT_SIGNAL(jobFinished(bool, int)), this, TQT_SLOT(slotJobFinished()) ); + connect( protocol, TQ_SIGNAL(receivedLine(TQString)), update, TQ_SLOT(processUpdateLine(TQString)) ); + connect( protocol, TQ_SIGNAL(jobFinished(bool, int)), update, TQ_SLOT(finishJob(bool, int)) ); + connect( protocol, TQ_SIGNAL(jobFinished(bool, int)), this, TQ_SLOT(slotJobFinished()) ); } } @@ -1108,10 +1108,10 @@ void CervisiaPart::addOrRemove(AddRemoveDialog::ActionType action) if (protocol->startJob()) { showJobStart(cmdline); - connect( protocol, TQT_SIGNAL(jobFinished(bool, int)), - update, TQT_SLOT(finishJob(bool, int)) ); - connect( protocol, TQT_SIGNAL(jobFinished(bool, int)), - this, TQT_SLOT(slotJobFinished()) ); + connect( protocol, TQ_SIGNAL(jobFinished(bool, int)), + update, TQ_SLOT(finishJob(bool, int)) ); + connect( protocol, TQ_SIGNAL(jobFinished(bool, int)), + this, TQ_SLOT(slotJobFinished()) ); } } } @@ -1211,8 +1211,8 @@ void CervisiaPart::addOrRemoveWatch(WatchDialog::ActionType action) if( protocol->startJob() ) { showJobStart(cmdline); - connect( protocol, TQT_SIGNAL(jobFinished(bool, int)), - this, TQT_SLOT(slotJobFinished()) ); + connect( protocol, TQ_SIGNAL(jobFinished(bool, int)), + this, TQ_SLOT(slotJobFinished()) ); } } } @@ -1247,8 +1247,8 @@ void CervisiaPart::slotEdit() if( protocol->startJob() ) { showJobStart(cmdline); - connect( protocol, TQT_SIGNAL(jobFinished(bool, int)), - this, TQT_SLOT(slotJobFinished()) ); + connect( protocol, TQ_SIGNAL(jobFinished(bool, int)), + this, TQ_SLOT(slotJobFinished()) ); } } @@ -1267,8 +1267,8 @@ void CervisiaPart::slotUnedit() if( protocol->startJob() ) { showJobStart(cmdline); - connect( protocol, TQT_SIGNAL(jobFinished(bool, int)), - this, TQT_SLOT(slotJobFinished()) ); + connect( protocol, TQ_SIGNAL(jobFinished(bool, int)), + this, TQ_SLOT(slotJobFinished()) ); } } @@ -1287,8 +1287,8 @@ void CervisiaPart::slotLock() if( protocol->startJob() ) { showJobStart(cmdline); - connect( protocol, TQT_SIGNAL(jobFinished(bool, int)), - this, TQT_SLOT(slotJobFinished()) ); + connect( protocol, TQ_SIGNAL(jobFinished(bool, int)), + this, TQ_SLOT(slotJobFinished()) ); } } @@ -1307,8 +1307,8 @@ void CervisiaPart::slotUnlock() if( protocol->startJob() ) { showJobStart(cmdline); - connect( protocol, TQT_SIGNAL(jobFinished(bool, int)), - this, TQT_SLOT(slotJobFinished()) ); + connect( protocol, TQ_SIGNAL(jobFinished(bool, int)), + this, TQ_SLOT(slotJobFinished()) ); } } @@ -1327,8 +1327,8 @@ void CervisiaPart::slotShowEditors() if( protocol->startJob() ) { showJobStart(cmdline); - connect( protocol, TQT_SIGNAL(jobFinished(bool, int)), - this, TQT_SLOT(slotJobFinished()) ); + connect( protocol, TQ_SIGNAL(jobFinished(bool, int)), + this, TQ_SLOT(slotJobFinished()) ); } } @@ -1394,8 +1394,8 @@ void CervisiaPart::slotImport() if( protocol->startJob() ) { showJobStart(cmdline); - connect( protocol, TQT_SIGNAL(jobFinished(bool, int)), - this, TQT_SLOT(slotJobFinished()) ); + connect( protocol, TQ_SIGNAL(jobFinished(bool, int)), + this, TQ_SLOT(slotJobFinished()) ); } } @@ -1414,8 +1414,8 @@ void CervisiaPart::slotCreateRepository() if( protocol->startJob() ) { showJobStart(cmdline); - connect( protocol, TQT_SIGNAL(jobFinished(bool, int)), - this, TQT_SLOT(slotJobFinished()) ); + connect( protocol, TQ_SIGNAL(jobFinished(bool, int)), + this, TQ_SLOT(slotJobFinished()) ); } } @@ -1437,8 +1437,8 @@ void CervisiaPart::slotCheckout() if( protocol->startJob() ) { showJobStart(cmdline); - connect( protocol, TQT_SIGNAL(jobFinished(bool, int)), - this, TQT_SLOT(slotJobFinished()) ); + connect( protocol, TQ_SIGNAL(jobFinished(bool, int)), + this, TQ_SLOT(slotJobFinished()) ); } } @@ -1487,8 +1487,8 @@ void CervisiaPart::createOrDeleteTag(TagDialog::ActionType action) if( protocol->startJob() ) { showJobStart(cmdline); - connect( protocol, TQT_SIGNAL(jobFinished(bool, int)), - this, TQT_SLOT(slotJobFinished()) ); + connect( protocol, TQ_SIGNAL(jobFinished(bool, int)), + this, TQ_SLOT(slotJobFinished()) ); } } } @@ -1687,8 +1687,8 @@ void CervisiaPart::slotJobFinished() emit setStatusBarText( i18n("Done") ); updateActions(); - disconnect( protocol, TQT_SIGNAL(receivedLine(TQString)), - update, TQT_SLOT(processUpdateLine(TQString)) ); + disconnect( protocol, TQ_SIGNAL(receivedLine(TQString)), + update, TQ_SLOT(processUpdateLine(TQString)) ); if( m_jobType == Commit ) { diff --git a/cervisia/cervisiashell.cpp b/cervisia/cervisiashell.cpp index 27fdb2dd..2c4bed62 100644 --- a/cervisia/cervisiashell.cpp +++ b/cervisia/cervisiashell.cpp @@ -43,7 +43,7 @@ CervisiaShell::CervisiaShell( const char *name ) KLibFactory* factory = KLibLoader::self()->factory("libcervisiapart"); if( factory ) { - m_part = static_cast<KParts::ReadOnlyPart*>(factory->create(TQT_TQOBJECT(this), + m_part = static_cast<KParts::ReadOnlyPart*>(factory->create(this, "cervisiaview", "KParts::ReadOnlyPart")); if( m_part ) setCentralWidget(m_part->widget()); @@ -52,7 +52,7 @@ CervisiaShell::CervisiaShell( const char *name ) { KMessageBox::detailedError(this, i18n("The Cervisia library could not be loaded."), KLibLoader::self()->lastErrorMessage()); - kapp->quit(); + tdeApp->quit(); return; } @@ -62,15 +62,15 @@ CervisiaShell::CervisiaShell( const char *name ) // Magic needed for status texts // actionCollection()->setHighlightingEnabled(true); - connect( actionCollection(), TQT_SIGNAL( actionStatusText(const TQString &) ), - statusBar(), TQT_SLOT( message(const TQString &) ) ); - connect( actionCollection(), TQT_SIGNAL( clearStatusText() ), - statusBar(), TQT_SLOT( clear() ) ); + connect( actionCollection(), TQ_SIGNAL( actionStatusText(const TQString &) ), + statusBar(), TQ_SLOT( message(const TQString &) ) ); + connect( actionCollection(), TQ_SIGNAL( clearStatusText() ), + statusBar(), TQ_SLOT( clear() ) ); m_part->actionCollection()->setHighlightingEnabled(true); - connect( m_part->actionCollection(), TQT_SIGNAL( actionStatusText(const TQString &) ), - statusBar(), TQT_SLOT( message(const TQString &) ) ); - connect( m_part->actionCollection(), TQT_SIGNAL( clearStatusText() ), - statusBar(), TQT_SLOT( clear() ) ); + connect( m_part->actionCollection(), TQ_SIGNAL( actionStatusText(const TQString &) ), + statusBar(), TQ_SLOT( message(const TQString &) ) ); + connect( m_part->actionCollection(), TQ_SIGNAL( clearStatusText() ), + statusBar(), TQ_SLOT( clear() ) ); createGUI( m_part ); @@ -79,7 +79,7 @@ CervisiaShell::CervisiaShell( const char *name ) setAutoSaveSettings("MainWindow", true); // if the session is restoring, we already read the settings - if( !kapp->isRestored() ) + if( !tdeApp->isRestored() ) readSettings(); } @@ -92,19 +92,19 @@ void CervisiaShell::setupActions() { setStandardToolBarMenuEnabled( true ); - TDEAction *action = KStdAction::configureToolbars( TQT_TQOBJECT(this), TQT_SLOT(slotConfigureToolBars()), + TDEAction *action = KStdAction::configureToolbars( this, TQ_SLOT(slotConfigureToolBars()), actionCollection() ); TQString hint = i18n("Allows you to configure the toolbar"); action->setToolTip( hint ); action->setWhatsThis( hint ); - action = KStdAction::keyBindings( TQT_TQOBJECT(this), TQT_SLOT(slotConfigureKeys()), + action = KStdAction::keyBindings( this, TQ_SLOT(slotConfigureKeys()), actionCollection() ); hint = i18n("Allows you to customize the keybindings"); action->setToolTip( hint ); action->setWhatsThis( hint ); - action = KStdAction::quit( TQT_TQOBJECT(kapp), TQT_SLOT( quit() ), actionCollection() ); + action = KStdAction::quit( tdeApp, TQ_SLOT( quit() ), actionCollection() ); hint = i18n("Exits Cervisia"); action->setToolTip( hint ); action->setWhatsThis( hint ); @@ -161,7 +161,7 @@ void CervisiaShell::slotConfigureToolBars() { saveMainWindowSettings( TDEGlobal::config(), autoSaveGroup() ); KEditToolbar dlg( factory() ); - connect(&dlg,TQT_SIGNAL(newToolbarConfig()),this,TQT_SLOT(slotNewToolbarConfig())); + connect(&dlg,TQ_SIGNAL(newToolbarConfig()),this,TQ_SLOT(slotNewToolbarConfig())); dlg.exec(); } @@ -183,7 +183,7 @@ void CervisiaShell::readProperties(TDEConfig* config) // if the session is restoring, make sure we open the URL // since it's not handled by main() - if( kapp->isRestored() ) + if( tdeApp->isRestored() ) openURL(); } diff --git a/cervisia/checkoutdlg.cpp b/cervisia/checkoutdlg.cpp index 1cce6c11..749aa96d 100644 --- a/cervisia/checkoutdlg.cpp +++ b/cervisia/checkoutdlg.cpp @@ -27,7 +27,7 @@ #include <tqlayout.h> #include <tqlabel.h> #include <tqpushbutton.h> -#include <kprocess.h> +#include <tdeprocess.h> #include <tdefiledialog.h> #include <klineedit.h> #include <tdelocale.h> @@ -84,8 +84,8 @@ CheckoutDialog::CheckoutDialog(TDEConfig& cfg, CvsService_stub* service, module_combo = new TQComboBox(true, mainWidget); TQPushButton* module_button = new TQPushButton(i18n("Fetch &List"), mainWidget); - connect( module_button, TQT_SIGNAL(clicked()), - this, TQT_SLOT(moduleButtonClicked()) ); + connect( module_button, TQ_SIGNAL(clicked()), + this, TQ_SLOT(moduleButtonClicked()) ); TQBoxLayout* module_layout = new TQHBoxLayout(); grid->addLayout(module_layout, 1, 1); @@ -98,8 +98,8 @@ CheckoutDialog::CheckoutDialog(TDEConfig& cfg, CvsService_stub* service, branchCombo = new TQComboBox(true, mainWidget); TQPushButton* branchButton = new TQPushButton(i18n("Fetch &List"), mainWidget); - connect( branchButton, TQT_SIGNAL(clicked()), - this, TQT_SLOT(branchButtonClicked()) ); + connect( branchButton, TQ_SIGNAL(clicked()), + this, TQ_SLOT(branchButtonClicked()) ); TQBoxLayout* branchLayout = new TQHBoxLayout(); grid->addLayout(branchLayout, 2, 1); @@ -110,8 +110,8 @@ CheckoutDialog::CheckoutDialog(TDEConfig& cfg, CvsService_stub* service, mainWidget); grid->addWidget(branch_label, 2, 0, AlignLeft | AlignVCenter); - connect( branchCombo, TQT_SIGNAL( textChanged( const TQString&)), - this, TQT_SLOT( branchTextChanged() )); + connect( branchCombo, TQ_SIGNAL( textChanged( const TQString&)), + this, TQ_SLOT( branchTextChanged() )); recursive_box = new TQCheckBox(i18n("Re&cursive checkout"), mainWidget); grid->addMultiCellWidget(recursive_box, 6, 6, 0, 1); @@ -124,12 +124,12 @@ CheckoutDialog::CheckoutDialog(TDEConfig& cfg, CvsService_stub* service, KURLCompletion* comp = new KURLCompletion(); workdir_edit->setCompletionObject(comp); workdir_edit->setAutoDeleteCompletionObject(true); - connect( workdir_edit, TQT_SIGNAL(returnPressed(const TQString&)), - comp, TQT_SLOT(addItem(const TQString&)) ); + connect( workdir_edit, TQ_SIGNAL(returnPressed(const TQString&)), + comp, TQ_SLOT(addItem(const TQString&)) ); TQPushButton* dir_button = new TQPushButton("...", mainWidget); - connect( dir_button, TQT_SIGNAL(clicked()), - this, TQT_SLOT(dirButtonClicked()) ); + connect( dir_button, TQ_SIGNAL(clicked()), + this, TQ_SLOT(dirButtonClicked()) ); dir_button->setFixedWidth(30); TQBoxLayout* workdir_layout = new TQHBoxLayout(); diff --git a/cervisia/commitdlg.cpp b/cervisia/commitdlg.cpp index 7a25f430..8dd32db5 100644 --- a/cervisia/commitdlg.cpp +++ b/cervisia/commitdlg.cpp @@ -71,10 +71,10 @@ CommitDialog::CommitDialog(TDEConfig& cfg, CvsService_stub* service, m_fileList->setFullWidth(true); m_fileList->header()->hide(); textlabel->setBuddy(m_fileList); - connect( m_fileList, TQT_SIGNAL(doubleClicked(TQListViewItem*)), - this, TQT_SLOT(fileSelected(TQListViewItem*))); - connect( m_fileList, TQT_SIGNAL(selectionChanged()), - this, TQT_SLOT(fileHighlighted()) ); + connect( m_fileList, TQ_SIGNAL(doubleClicked(TQListViewItem*)), + this, TQ_SLOT(fileSelected(TQListViewItem*))); + connect( m_fileList, TQ_SIGNAL(selectionChanged()), + this, TQ_SLOT(fileHighlighted()) ); layout->addWidget(m_fileList, 5); TQLabel *archivelabel = new TQLabel(i18n("Older &messages:"), mainWidget); @@ -82,7 +82,7 @@ CommitDialog::CommitDialog(TDEConfig& cfg, CvsService_stub* service, combo = new TQComboBox(mainWidget); archivelabel->setBuddy(combo); - connect( combo, TQT_SIGNAL(activated(int)), this, TQT_SLOT(comboActivated(int)) ); + connect( combo, TQ_SIGNAL(activated(int)), this, TQ_SLOT(comboActivated(int)) ); // make sure that combobox is smaller than the screen combo->setSizePolicy(TQSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Fixed)); layout->addWidget(combo); @@ -99,14 +99,14 @@ CommitDialog::CommitDialog(TDEConfig& cfg, CvsService_stub* service, m_useTemplateChk = new TQCheckBox(i18n("Use log message &template"), mainWidget); layout->addWidget(m_useTemplateChk); - connect( m_useTemplateChk, TQT_SIGNAL(clicked()), this, TQT_SLOT(useTemplateClicked()) ); + connect( m_useTemplateChk, TQ_SIGNAL(clicked()), this, TQ_SLOT(useTemplateClicked()) ); checkForTemplateFile(); setButtonGuiItem(User1, KGuiItem(i18n("&Diff"), "vcs_diff")); enableButton(User1, false); - connect( this, TQT_SIGNAL(user1Clicked()), - this, TQT_SLOT(diffClicked()) ); + connect( this, TQ_SIGNAL(user1Clicked()), + this, TQ_SLOT(diffClicked()) ); setHelp("commitingfiles"); diff --git a/cervisia/cvsinitdlg.cpp b/cervisia/cvsinitdlg.cpp index db39be24..3b1b308a 100644 --- a/cervisia/cvsinitdlg.cpp +++ b/cervisia/cvsinitdlg.cpp @@ -58,10 +58,10 @@ CvsInitDialog::CvsInitDialog(TQWidget* parent, const char* name) dirButton->setFixedWidth(30); dirLayout->addWidget(dirButton); - connect( dirButton, TQT_SIGNAL(clicked()), - this, TQT_SLOT(dirButtonClicked()) ); - connect( m_directoryEdit, TQT_SIGNAL(textChanged(const TQString&)), - this, TQT_SLOT(lineEditTextChanged(const TQString&))); + connect( dirButton, TQ_SIGNAL(clicked()), + this, TQ_SLOT(dirButtonClicked()) ); + connect( m_directoryEdit, TQ_SIGNAL(textChanged(const TQString&)), + this, TQ_SLOT(lineEditTextChanged(const TQString&))); enableButton(Ok, false); diff --git a/cervisia/cvsservice/DESIGN b/cervisia/cvsservice/DESIGN index 15c3eff4..20bd3a36 100644 --- a/cervisia/cvsservice/DESIGN +++ b/cervisia/cvsservice/DESIGN @@ -16,7 +16,7 @@ The cvs DCOP service consists of the following three parts: 3. CvsJob - This class represents a cvs job. You can execute and cancel it, and you can retrieve the output of the cvs client by either - connecting to the proper DCOP Q_SIGNALS or by using the output() + connecting to the proper DCOP signals or by using the output() method. There are two types of jobs. First the non-concurrent job which has to run alone, like cvs update or import. Second the jobs which can run concurrently like cvs log or annotate. @@ -45,7 +45,7 @@ How-to use this service in C++ applications: // call "cvs log" for cervisiapart.h DCOPRef job = cvsService.log("cervisiapart.h"); - // connect to Q_SIGNALS to get output + // connect to signals to get output connectDCOPSignal(job.app(), job.obj(), "jobExited(bool, int)", [MY SLOT]); connectDCOPSignal(job.app(), job.obj(), "receivedStdout(TQString)", [MY SLOT]); diff --git a/cervisia/cvsservice/cvsaskpass.cpp b/cervisia/cvsservice/cvsaskpass.cpp index dbe80fe8..0b9551b6 100644 --- a/cervisia/cvsservice/cvsaskpass.cpp +++ b/cervisia/cvsservice/cvsaskpass.cpp @@ -35,7 +35,7 @@ static TDECmdLineOptions options[] = }; -extern "C" KDE_EXPORT int kdemain(int argc, char** argv) +extern "C" TDE_EXPORT int kdemain(int argc, char** argv) { TDEAboutData about("cvsaskpass", I18N_NOOP("cvsaskpass"), "0.1", I18N_NOOP("ssh-askpass for the CVS DCOP Service"), diff --git a/cervisia/cvsservice/cvsjob.cpp b/cervisia/cvsservice/cvsjob.cpp index 24f42f48..2f181519 100644 --- a/cervisia/cvsservice/cvsjob.cpp +++ b/cervisia/cvsservice/cvsjob.cpp @@ -22,7 +22,7 @@ #include <tqfile.h> #include <kdebug.h> -#include <kprocess.h> +#include <tdeprocess.h> #include "sshagent.h" @@ -176,12 +176,12 @@ bool CvsJob::execute() if( !d->directory.isEmpty() ) d->childproc->setWorkingDirectory(d->directory); - connect(d->childproc, TQT_SIGNAL(processExited(TDEProcess*)), - TQT_SLOT(slotProcessExited())); - connect(d->childproc, TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)), - TQT_SLOT(slotReceivedStdout(TDEProcess*, char*, int))); - connect(d->childproc, TQT_SIGNAL(receivedStderr(TDEProcess*, char*, int)), - TQT_SLOT(slotReceivedStderr(TDEProcess*, char*, int)) ); + connect(d->childproc, TQ_SIGNAL(processExited(TDEProcess*)), + TQ_SLOT(slotProcessExited())); + connect(d->childproc, TQ_SIGNAL(receivedStdout(TDEProcess*, char*, int)), + TQ_SLOT(slotReceivedStdout(TDEProcess*, char*, int))); + connect(d->childproc, TQ_SIGNAL(receivedStderr(TDEProcess*, char*, int)), + TQ_SLOT(slotReceivedStderr(TDEProcess*, char*, int)) ); kdDebug(8051) << "Execute cvs command: " << cvsCommand() << endl; diff --git a/cervisia/cvsservice/cvsjob.h b/cervisia/cvsservice/cvsjob.h index ef2e20e8..d7c127d1 100644 --- a/cervisia/cvsservice/cvsjob.h +++ b/cervisia/cvsservice/cvsjob.h @@ -29,7 +29,7 @@ class TDEProcess; -class KDE_EXPORT CvsJob : public TQObject, public DCOPObject +class TDE_EXPORT CvsJob : public TQObject, public DCOPObject { TQ_OBJECT // diff --git a/cervisia/cvsservice/cvsservice.cpp b/cervisia/cvsservice/cvsservice.cpp index 9eabda4c..21370f83 100644 --- a/cervisia/cvsservice/cvsservice.cpp +++ b/cervisia/cvsservice/cvsservice.cpp @@ -29,7 +29,7 @@ #include <tdeconfig.h> #include <tdelocale.h> #include <tdemessagebox.h> -#include <kprocess.h> +#include <tdeprocess.h> #include "cvsjob.h" #include "cvsloginjob.h" @@ -74,7 +74,7 @@ CvsService::CvsService() : DCOPObject("CvsService") , d(new Private) { - d->appId = kapp->dcopClient()->appId(); + d->appId = tdeApp->dcopClient()->appId(); // create non-concurrent cvs job d->singleCvsJob = new CvsJob(SINGLE_JOB_ID); @@ -86,7 +86,7 @@ CvsService::CvsService() d->cvsJobs.setAutoDelete(true); d->loginJobs.setAutoDelete(true); - TDEConfig* config = kapp->config(); + TDEConfig* config = tdeApp->config(); TDEConfigGroupSaver cs(config, "General"); if( config->readBoolEntry("UseSshAgent", false) ) { @@ -950,7 +950,7 @@ DCOPRef CvsService::watchers(const TQStringList& files) void CvsService::quit() { - kapp->quit(); + tdeApp->quit(); } diff --git a/cervisia/cvsservice/cvsservice.h b/cervisia/cvsservice/cvsservice.h index cfa5bce1..50884075 100644 --- a/cervisia/cvsservice/cvsservice.h +++ b/cervisia/cvsservice/cvsservice.h @@ -28,7 +28,7 @@ class TQString; -class KDE_EXPORT CvsService : public DCOPObject +class TDE_EXPORT CvsService : public DCOPObject { K_DCOP diff --git a/cervisia/cvsservice/cvsserviceutils.cpp b/cervisia/cvsservice/cvsserviceutils.cpp index b08c4357..e74da0d1 100644 --- a/cervisia/cvsservice/cvsserviceutils.cpp +++ b/cervisia/cvsservice/cvsserviceutils.cpp @@ -22,7 +22,7 @@ #include <tqstring.h> #include <tqstringlist.h> -#include <kprocess.h> +#include <tdeprocess.h> TQString CvsServiceUtils::joinFileList(const TQStringList& files) diff --git a/cervisia/cvsservice/main.cpp b/cervisia/cvsservice/main.cpp index 6e11f605..b6a51b6e 100644 --- a/cervisia/cvsservice/main.cpp +++ b/cervisia/cvsservice/main.cpp @@ -25,7 +25,7 @@ #include "cvsservice.h" -extern "C" KDE_EXPORT int kdemain(int argc, char** argv) +extern "C" TDE_EXPORT int kdemain(int argc, char** argv) { TDEAboutData about("cvsservice", I18N_NOOP("CVS DCOP service"), "0.1", I18N_NOOP("DCOP service for CVS"), TDEAboutData::License_LGPL, diff --git a/cervisia/cvsservice/repository.cpp b/cervisia/cvsservice/repository.cpp index 74635a84..ac2c9255 100644 --- a/cervisia/cvsservice/repository.cpp +++ b/cervisia/cvsservice/repository.cpp @@ -27,7 +27,7 @@ #include <tdeapplication.h> #include <tdeconfig.h> #include <kdirwatch.h> -#include <kstandarddirs.h> +#include <tdestandarddirs.h> #include "sshagent.h" @@ -64,8 +64,8 @@ Repository::Repository() // so we watch it for changes d->configFileName = locate("config", "cvsservicerc"); KDirWatch* fileWatcher = new KDirWatch(this); - connect(fileWatcher, TQT_SIGNAL(dirty(const TQString&)), - this, TQT_SLOT(slotConfigDirty(const TQString&))); + connect(fileWatcher, TQ_SIGNAL(dirty(const TQString&)), + this, TQ_SLOT(slotConfigDirty(const TQString&))); fileWatcher->addFile(d->configFileName); } @@ -83,8 +83,8 @@ Repository::Repository(const TQString& repository) // so we watch it for changes d->configFileName = locate("config", "cvsservicerc"); KDirWatch* fileWatcher = new KDirWatch(this); - connect(fileWatcher, TQT_SIGNAL(dirty(const TQString&)), - this, TQT_SLOT(slotConfigDirty(const TQString&))); + connect(fileWatcher, TQ_SIGNAL(dirty(const TQString&)), + this, TQ_SLOT(slotConfigDirty(const TQString&))); fileWatcher->addFile(d->configFileName); } @@ -193,7 +193,7 @@ void Repository::slotConfigDirty(const TQString& fileName) if( fileName == d->configFileName ) { // reread the configuration data from disk - kapp->config()->reparseConfiguration(); + tdeApp->config()->reparseConfiguration(); d->readConfig(); } } @@ -201,7 +201,7 @@ void Repository::slotConfigDirty(const TQString& fileName) void Repository::Private::readGeneralConfig() { - TDEConfig* config = kapp->config(); + TDEConfig* config = tdeApp->config(); // get path to cvs client programm config->setGroup("General"); @@ -211,7 +211,7 @@ void Repository::Private::readGeneralConfig() void Repository::Private::readConfig() { - TDEConfig* config = kapp->config(); + TDEConfig* config = tdeApp->config(); // Sometimes the location can be unequal to the entry in the CVS/Root. // diff --git a/cervisia/cvsservice/repository.h b/cervisia/cvsservice/repository.h index 45c32896..0e5ccd03 100644 --- a/cervisia/cvsservice/repository.h +++ b/cervisia/cvsservice/repository.h @@ -31,7 +31,7 @@ class TQString; * Represents a local or remote cvs repository with * its repository-specific configuration data. */ -class KDE_EXPORT Repository : public TQObject, public DCOPObject +class TDE_EXPORT Repository : public TQObject, public DCOPObject { K_DCOP TQ_OBJECT diff --git a/cervisia/cvsservice/sshagent.cpp b/cervisia/cvsservice/sshagent.cpp index 6fbf0cb1..80ce2fd8 100644 --- a/cervisia/cvsservice/sshagent.cpp +++ b/cervisia/cvsservice/sshagent.cpp @@ -24,7 +24,7 @@ #include <tdeapplication.h> #include <kdebug.h> #include <tdeversion.h> -#include <kprocess.h> +#include <tdeprocess.h> #include <stdlib.h> @@ -99,10 +99,10 @@ bool SshAgent::addSshIdentities() proc << "ssh-add"; - connect(&proc, TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)), - TQT_SLOT(slotReceivedStdout(TDEProcess*, char*, int))); - connect(&proc, TQT_SIGNAL(receivedStderr(TDEProcess*, char*, int)), - TQT_SLOT(slotReceivedStderr(TDEProcess*, char*, int))); + connect(&proc, TQ_SIGNAL(receivedStdout(TDEProcess*, char*, int)), + TQ_SLOT(slotReceivedStdout(TDEProcess*, char*, int))); + connect(&proc, TQ_SIGNAL(receivedStderr(TDEProcess*, char*, int)), + TQ_SLOT(slotReceivedStderr(TDEProcess*, char*, int))); proc.start(TDEProcess::DontCare, TDEProcess::AllOutput); @@ -217,12 +217,12 @@ bool SshAgent::startSshAgent() proc << "ssh-agent"; - connect(&proc, TQT_SIGNAL(processExited(TDEProcess*)), - TQT_SLOT(slotProcessExited(TDEProcess*))); - connect(&proc, TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)), - TQT_SLOT(slotReceivedStdout(TDEProcess*, char*, int))); - connect(&proc, TQT_SIGNAL(receivedStderr(TDEProcess*, char*, int)), - TQT_SLOT(slotReceivedStderr(TDEProcess*, char*, int)) ); + connect(&proc, TQ_SIGNAL(processExited(TDEProcess*)), + TQ_SLOT(slotProcessExited(TDEProcess*))); + connect(&proc, TQ_SIGNAL(receivedStdout(TDEProcess*, char*, int)), + TQ_SLOT(slotReceivedStdout(TDEProcess*, char*, int))); + connect(&proc, TQ_SIGNAL(receivedStderr(TDEProcess*, char*, int)), + TQ_SLOT(slotReceivedStderr(TDEProcess*, char*, int)) ); proc.start(TDEProcess::NotifyOnExit, TDEProcess::All); diff --git a/cervisia/diffdlg.cpp b/cervisia/diffdlg.cpp index 41116256..c1a9fc0b 100644 --- a/cervisia/diffdlg.cpp +++ b/cervisia/diffdlg.cpp @@ -32,7 +32,7 @@ #include <tdelocale.h> #include <tdemessagebox.h> #include <tdetempfile.h> -#include <kprocess.h> +#include <tdeprocess.h> #include "cvsservice_stub.h" #include "repository_stub.h" @@ -81,25 +81,25 @@ DiffDialog::DiffDialog(TDEConfig& cfg, TQWidget *parent, const char *name, bool syncbox = new TQCheckBox(i18n("Synchronize scroll bars"), mainWidget); syncbox->setChecked(true); - connect( syncbox, TQT_SIGNAL(toggled(bool)), - this, TQT_SLOT(toggleSynchronize(bool)) ); + connect( syncbox, TQ_SIGNAL(toggled(bool)), + this, TQ_SLOT(toggleSynchronize(bool)) ); itemscombo = new TQComboBox(mainWidget); itemscombo->insertItem(TQString()); - connect( itemscombo, TQT_SIGNAL(activated(int)), - this, TQT_SLOT(comboActivated(int)) ); + connect( itemscombo, TQ_SIGNAL(activated(int)), + this, TQ_SLOT(comboActivated(int)) ); nofnlabel = new TQLabel(mainWidget); // avoids auto resize when the text is changed nofnlabel->setMinimumWidth(fontMetrics().width(i18n("%1 differences").arg(10000))); backbutton = new TQPushButton(TQString::fromLatin1("&<<"), mainWidget); - connect( backbutton, TQT_SIGNAL(clicked()), TQT_SLOT(backClicked()) ); + connect( backbutton, TQ_SIGNAL(clicked()), TQ_SLOT(backClicked()) ); forwbutton = new TQPushButton(TQString::fromLatin1("&>>"), mainWidget); - connect( forwbutton, TQT_SIGNAL(clicked()), TQT_SLOT(forwClicked()) ); + connect( forwbutton, TQ_SIGNAL(clicked()), TQ_SLOT(forwClicked()) ); - connect( this, TQT_SIGNAL(user1Clicked()), TQT_SLOT(saveAsClicked()) ); + connect( this, TQ_SIGNAL(user1Clicked()), TQ_SLOT(saveAsClicked()) ); TQBoxLayout *buttonlayout = new TQHBoxLayout(layout); buttonlayout->addWidget(syncbox, 0); diff --git a/cervisia/diffview.cpp b/cervisia/diffview.cpp index d246ca7b..21408b5d 100644 --- a/cervisia/diffview.cpp +++ b/cervisia/diffview.cpp @@ -103,14 +103,14 @@ void DiffView::setPartner(DiffView *other) partner = other; if (partner) { - connect( verticalScrollBar(), TQT_SIGNAL(valueChanged(int)), - TQT_SLOT(vertPositionChanged(int)) ); - connect( verticalScrollBar(), TQT_SIGNAL(sliderMoved(int)), - TQT_SLOT(vertPositionChanged(int)) ); - connect( horizontalScrollBar(), TQT_SIGNAL(valueChanged(int)), - TQT_SLOT(horzPositionChanged(int)) ); - connect( horizontalScrollBar(), TQT_SIGNAL(sliderMoved(int)), - TQT_SLOT(horzPositionChanged(int)) ); + connect( verticalScrollBar(), TQ_SIGNAL(valueChanged(int)), + TQ_SLOT(vertPositionChanged(int)) ); + connect( verticalScrollBar(), TQ_SIGNAL(sliderMoved(int)), + TQ_SLOT(vertPositionChanged(int)) ); + connect( horizontalScrollBar(), TQ_SIGNAL(valueChanged(int)), + TQ_SLOT(horzPositionChanged(int)) ); + connect( horizontalScrollBar(), TQ_SIGNAL(sliderMoved(int)), + TQ_SLOT(horzPositionChanged(int)) ); } } diff --git a/cervisia/editwithmenu.cpp b/cervisia/editwithmenu.cpp index 6be3a85e..61bddf44 100644 --- a/cervisia/editwithmenu.cpp +++ b/cervisia/editwithmenu.cpp @@ -50,7 +50,7 @@ EditWithMenu::EditWithMenu(const KURL& url, TQWidget* parent) { int id = m_menu->insertItem(SmallIcon((*it)->icon()), (*it)->name(), - this, TQT_SLOT(itemActivated(int))); + this, TQ_SLOT(itemActivated(int))); m_menu->setItemParameter(id, i); } } diff --git a/cervisia/historydlg.cpp b/cervisia/historydlg.cpp index e8bd8159..539b5c78 100644 --- a/cervisia/historydlg.cpp +++ b/cervisia/historydlg.cpp @@ -188,32 +188,32 @@ HistoryDialog::HistoryDialog(TDEConfig& cfg, TQWidget *parent, const char *name) dirname_edit = new KLineEdit(mainWidget); dirname_edit->setEnabled(false); - connect( onlyuser_box, TQT_SIGNAL(toggled(bool)), - this, TQT_SLOT(toggled(bool)) ); - connect( onlyfilenames_box, TQT_SIGNAL(toggled(bool)), - this, TQT_SLOT(toggled(bool)) ); - connect( onlydirnames_box, TQT_SIGNAL(toggled(bool)), - this, TQT_SLOT(toggled(bool)) ); - connect( commit_box, TQT_SIGNAL(toggled(bool)), - this, TQT_SLOT(choiceChanged()) ); - connect( checkout_box, TQT_SIGNAL(toggled(bool)), - this, TQT_SLOT(choiceChanged()) ); - connect( tag_box, TQT_SIGNAL(toggled(bool)), - this, TQT_SLOT(choiceChanged()) ); - connect( other_box, TQT_SIGNAL(toggled(bool)), - this, TQT_SLOT(choiceChanged()) ); - connect( onlyuser_box, TQT_SIGNAL(toggled(bool)), - this, TQT_SLOT(choiceChanged()) ); - connect( onlyfilenames_box, TQT_SIGNAL(toggled(bool)), - this, TQT_SLOT(choiceChanged()) ); - connect( onlydirnames_box, TQT_SIGNAL(toggled(bool)), - this, TQT_SLOT(choiceChanged()) ); - connect( user_edit, TQT_SIGNAL(returnPressed()), - this, TQT_SLOT(choiceChanged()) ); - connect( filename_edit, TQT_SIGNAL(returnPressed()), - this, TQT_SLOT(choiceChanged()) ); - connect( dirname_edit, TQT_SIGNAL(returnPressed()), - this, TQT_SLOT(choiceChanged()) ); + connect( onlyuser_box, TQ_SIGNAL(toggled(bool)), + this, TQ_SLOT(toggled(bool)) ); + connect( onlyfilenames_box, TQ_SIGNAL(toggled(bool)), + this, TQ_SLOT(toggled(bool)) ); + connect( onlydirnames_box, TQ_SIGNAL(toggled(bool)), + this, TQ_SLOT(toggled(bool)) ); + connect( commit_box, TQ_SIGNAL(toggled(bool)), + this, TQ_SLOT(choiceChanged()) ); + connect( checkout_box, TQ_SIGNAL(toggled(bool)), + this, TQ_SLOT(choiceChanged()) ); + connect( tag_box, TQ_SIGNAL(toggled(bool)), + this, TQ_SLOT(choiceChanged()) ); + connect( other_box, TQ_SIGNAL(toggled(bool)), + this, TQ_SLOT(choiceChanged()) ); + connect( onlyuser_box, TQ_SIGNAL(toggled(bool)), + this, TQ_SLOT(choiceChanged()) ); + connect( onlyfilenames_box, TQ_SIGNAL(toggled(bool)), + this, TQ_SLOT(choiceChanged()) ); + connect( onlydirnames_box, TQ_SIGNAL(toggled(bool)), + this, TQ_SLOT(choiceChanged()) ); + connect( user_edit, TQ_SIGNAL(returnPressed()), + this, TQ_SLOT(choiceChanged()) ); + connect( filename_edit, TQ_SIGNAL(returnPressed()), + this, TQ_SLOT(choiceChanged()) ); + connect( dirname_edit, TQ_SIGNAL(returnPressed()), + this, TQ_SLOT(choiceChanged()) ); TQGridLayout *grid = new TQGridLayout(layout); grid->setColStretch(0, 1); diff --git a/cervisia/logdlg.cpp b/cervisia/logdlg.cpp index 11086c9a..2c6433df 100644 --- a/cervisia/logdlg.cpp +++ b/cervisia/logdlg.cpp @@ -39,7 +39,7 @@ #include <tdelistviewsearchline.h> #include <tdelocale.h> #include <tdemessagebox.h> -#include <kprocess.h> +#include <tdeprocess.h> #include <krfcdate.h> #include <krun.h> #include <kurl.h> @@ -70,8 +70,8 @@ LogDialog::LogDialog(TDEConfig& cfg, TQWidget *parent, const char *name) setMainWidget(splitter); tree = new LogTreeView(this); - connect( tree, TQT_SIGNAL(revisionClicked(TQString,bool)), - this, TQT_SLOT(revisionSelected(TQString,bool)) ); + connect( tree, TQ_SIGNAL(revisionClicked(TQString,bool)), + this, TQ_SLOT(revisionSelected(TQString,bool)) ); TQWidget* listWidget = new TQWidget(this); TQVBoxLayout* listLayout = new TQVBoxLayout(listWidget); @@ -87,20 +87,20 @@ LogDialog::LogDialog(TDEConfig& cfg, TQWidget *parent, const char *name) searchLayout->addWidget(searchLabel); searchLayout->addWidget(searchLine, 1); - connect( list, TQT_SIGNAL(revisionClicked(TQString,bool)), - this, TQT_SLOT(revisionSelected(TQString,bool)) ); + connect( list, TQ_SIGNAL(revisionClicked(TQString,bool)), + this, TQ_SLOT(revisionSelected(TQString,bool)) ); plain = new LogPlainView(this); - connect( plain, TQT_SIGNAL(revisionClicked(TQString,bool)), - this, TQT_SLOT(revisionSelected(TQString,bool)) ); + connect( plain, TQ_SIGNAL(revisionClicked(TQString,bool)), + this, TQ_SLOT(revisionSelected(TQString,bool)) ); tabWidget = new TQTabWidget(splitter); tabWidget->addTab(tree, i18n("&Tree")); tabWidget->addTab(listWidget, i18n("&List")); tabWidget->addTab(plain, i18n("CVS &Output")); - connect(tabWidget, TQT_SIGNAL(currentChanged(TQWidget*)), - this, TQT_SLOT(tabChanged(TQWidget*))); + connect(tabWidget, TQ_SIGNAL(currentChanged(TQWidget*)), + this, TQ_SLOT(tabChanged(TQWidget*))); TQWhatsThis::add(tree, i18n("Choose revision A by clicking with the left " "mouse button,\nrevision B by clicking with " @@ -183,17 +183,17 @@ LogDialog::LogDialog(TDEConfig& cfg, TQWidget *parent, const char *name) TQWhatsThis::add(revbox[1], i18n("This revision is used as the second " "item of a Diff operation.")); - connect( tagcombo[0], TQT_SIGNAL(activated(int)), - this, TQT_SLOT(tagASelected(int)) ); - connect( tagcombo[1], TQT_SIGNAL(activated(int)), - this, TQT_SLOT(tagBSelected(int)) ); - - connect( this, TQT_SIGNAL(user1Clicked()), - this, TQT_SLOT(annotateClicked()) ); - connect( this, TQT_SIGNAL(user2Clicked()), - this, TQT_SLOT(diffClicked()) ); - connect( this, TQT_SIGNAL(user3Clicked()), - this, TQT_SLOT(findClicked()) ); + connect( tagcombo[0], TQ_SIGNAL(activated(int)), + this, TQ_SLOT(tagASelected(int)) ); + connect( tagcombo[1], TQ_SIGNAL(activated(int)), + this, TQ_SLOT(tagBSelected(int)) ); + + connect( this, TQ_SIGNAL(user1Clicked()), + this, TQ_SLOT(annotateClicked()) ); + connect( this, TQ_SIGNAL(user2Clicked()), + this, TQ_SLOT(diffClicked()) ); + connect( this, TQ_SIGNAL(user3Clicked()), + this, TQ_SLOT(findClicked()) ); setButtonGuiItem(Ok, KGuiItem(i18n("to view something", "&View"),"document-open")); setButtonGuiItem(Apply, KGuiItem(i18n("Create Patch..."))); diff --git a/cervisia/loglist.cpp b/cervisia/loglist.cpp index a5986f7e..46635c5c 100644 --- a/cervisia/loglist.cpp +++ b/cervisia/loglist.cpp @@ -124,8 +124,8 @@ LogListView::LogListView(TDEConfig& cfg, TQWidget *parent, const char *name) Cervisia::ToolTip* toolTip = new Cervisia::ToolTip(viewport()); - connect(toolTip, TQT_SIGNAL(queryToolTip(const TQPoint&, TQRect&, TQString&)), - this, TQT_SLOT(slotQueryToolTip(const TQPoint&, TQRect&, TQString&))); + connect(toolTip, TQ_SIGNAL(queryToolTip(const TQPoint&, TQRect&, TQString&)), + this, TQ_SLOT(slotQueryToolTip(const TQPoint&, TQRect&, TQString&))); // without this restoreLayout() can't change the column widths for (int i = 0; i < columns(); ++i) diff --git a/cervisia/logmessageedit.cpp b/cervisia/logmessageedit.cpp index bcc0e97d..567dda97 100644 --- a/cervisia/logmessageedit.cpp +++ b/cervisia/logmessageedit.cpp @@ -36,7 +36,7 @@ LogMessageEdit::LogMessageEdit(TQWidget* parent) completionObject(); // a mouse click stops the completion process - connect( this, TQT_SIGNAL(clicked(int, int)), TQT_SLOT(stopCompletion()) ); + connect( this, TQ_SIGNAL(clicked(int, int)), TQ_SLOT(stopCompletion()) ); } diff --git a/cervisia/logplainview.cpp b/cervisia/logplainview.cpp index 4cf78061..c8272648 100644 --- a/cervisia/logplainview.cpp +++ b/cervisia/logplainview.cpp @@ -109,10 +109,10 @@ void LogPlainView::searchText(int options, const TQString& pattern) { m_find = new KFind(pattern, options, this); - connect(m_find, TQT_SIGNAL(highlight(const TQString&, int, int)), - this, TQT_SLOT(searchHighlight(const TQString&, int, int))); - connect(m_find, TQT_SIGNAL(findNext()), - this, TQT_SLOT(findNext())); + connect(m_find, TQ_SIGNAL(highlight(const TQString&, int, int)), + this, TQ_SLOT(searchHighlight(const TQString&, int, int))); + connect(m_find, TQ_SIGNAL(findNext()), + this, TQ_SLOT(findNext())); m_findPos = 0; if( options & KFindDialog::FromCursor ) diff --git a/cervisia/logtree.cpp b/cervisia/logtree.cpp index 06899a10..aa5ff010 100644 --- a/cervisia/logtree.cpp +++ b/cervisia/logtree.cpp @@ -92,8 +92,8 @@ LogTreeView::LogTreeView(TQWidget *parent, const char *name) Cervisia::ToolTip* toolTip = new Cervisia::ToolTip(viewport()); - connect(toolTip, TQT_SIGNAL(queryToolTip(const TQPoint&, TQRect&, TQString&)), - this, TQT_SLOT(slotQueryToolTip(const TQPoint&, TQRect&, TQString&))); + connect(toolTip, TQ_SIGNAL(queryToolTip(const TQPoint&, TQRect&, TQString&)), + this, TQ_SLOT(slotQueryToolTip(const TQPoint&, TQRect&, TQString&))); } diff --git a/cervisia/main.cpp b/cervisia/main.cpp index 7c971cf9..3bf8ca41 100644 --- a/cervisia/main.cpp +++ b/cervisia/main.cpp @@ -65,13 +65,13 @@ static int ShowResolveDialog(const TQString& fileName) TDEConfig* config = new TDEConfig("cervisiapartrc"); ResolveDialog* dlg = new ResolveDialog(*config); - kapp->setMainWidget(dlg); + tdeApp->setMainWidget(dlg); if( dlg->parseFile(fileName) ) dlg->show(); else delete dlg; - int result = kapp->exec(); + int result = tdeApp->exec(); delete config; @@ -83,7 +83,7 @@ static int ShowLogDialog(const TQString& fileName) { TDEConfig* config = new TDEConfig("cervisiapartrc"); LogDialog* dlg = new LogDialog(*config); - kapp->setMainWidget(dlg); + tdeApp->setMainWidget(dlg); // get directory for file const TQFileInfo fi(fileName); @@ -97,7 +97,7 @@ static int ShowLogDialog(const TQString& fileName) else delete dlg; - int result = kapp->exec(); + int result = tdeApp->exec(); // stop the cvs DCOP service cvsService->quit(); @@ -113,7 +113,7 @@ static int ShowAnnotateDialog(const TQString& fileName) { TDEConfig* config = new TDEConfig("cervisiapartrc"); AnnotateDialog* dlg = new AnnotateDialog(*config); - kapp->setMainWidget(dlg); + tdeApp->setMainWidget(dlg); // get directory for file const TQFileInfo fi(fileName); @@ -125,7 +125,7 @@ static int ShowAnnotateDialog(const TQString& fileName) AnnotateController ctl(dlg, cvsService); ctl.showDialog(fi.fileName()); - int result = kapp->exec(); + int result = tdeApp->exec(); // stop the cvs DCOP service cvsService->quit(); @@ -137,7 +137,7 @@ static int ShowAnnotateDialog(const TQString& fileName) } -extern "C" KDE_EXPORT int kdemain(int argc, char **argv) +extern "C" TDE_EXPORT int kdemain(int argc, char **argv) { static TDECmdLineOptions options[] = { { "+[directory]", I18N_NOOP("The sandbox to be loaded"), 0 }, diff --git a/cervisia/mergedlg.cpp b/cervisia/mergedlg.cpp index 1157dd3b..63c3a653 100644 --- a/cervisia/mergedlg.cpp +++ b/cervisia/mergedlg.cpp @@ -54,8 +54,8 @@ MergeDialog::MergeDialog(CvsService_stub* service, branch_combo->setMinimumWidth(iComboBoxMinWidth); branch_button = new TQPushButton(i18n("Fetch &List"), mainWidget); - connect( branch_button, TQT_SIGNAL(clicked()), - this, TQT_SLOT(branchButtonClicked()) ); + connect( branch_button, TQ_SIGNAL(clicked()), + this, TQ_SLOT(branchButtonClicked()) ); TQBoxLayout *branchedit_layout = new TQHBoxLayout(layout); branchedit_layout->addSpacing(iWidgetIndent); @@ -74,8 +74,8 @@ MergeDialog::MergeDialog(CvsService_stub* service, tag2_combo->setMinimumWidth(iComboBoxMinWidth); tag_button = new TQPushButton(i18n("Fetch L&ist"), mainWidget); - connect( tag_button, TQT_SIGNAL(clicked()), - this, TQT_SLOT(tagButtonClicked()) ); + connect( tag_button, TQ_SIGNAL(clicked()), + this, TQ_SLOT(tagButtonClicked()) ); TQGridLayout *tagsedit_layout = new TQGridLayout(layout); tagsedit_layout->addColSpacing(0, iWidgetIndent); @@ -93,8 +93,8 @@ MergeDialog::MergeDialog(CvsService_stub* service, group->hide(); group->insert(bybranch_button); group->insert(bytags_button); - connect( group, TQT_SIGNAL(clicked(int)), - this, TQT_SLOT(toggled()) ); + connect( group, TQ_SIGNAL(clicked(int)), + this, TQ_SLOT(toggled()) ); // dis-/enable the widgets toggled(); diff --git a/cervisia/misc.cpp b/cervisia/misc.cpp index f72f29bd..4b6df924 100644 --- a/cervisia/misc.cpp +++ b/cervisia/misc.cpp @@ -33,7 +33,7 @@ #include <tdeemailsettings.h> #include <tdelocale.h> #include <tdemessagebox.h> -#include <kprocess.h> +#include <tdeprocess.h> #include <tdetempfile.h> #include <kuser.h> #include <kdebug.h> diff --git a/cervisia/patchoptiondlg.cpp b/cervisia/patchoptiondlg.cpp index 43ba7fdf..64e0cb13 100644 --- a/cervisia/patchoptiondlg.cpp +++ b/cervisia/patchoptiondlg.cpp @@ -38,8 +38,8 @@ PatchOptionDialog::PatchOptionDialog(TQWidget* parent, const char* name) m_formatBtnGroup = new TQVButtonGroup(i18n("Output Format"), mainWidget, ""); topLayout->addWidget(m_formatBtnGroup); - connect(m_formatBtnGroup, TQT_SIGNAL(clicked(int)), - this, TQT_SLOT(formatChanged(int))); + connect(m_formatBtnGroup, TQ_SIGNAL(clicked(int)), + this, TQ_SLOT(formatChanged(int))); new TQRadioButton(i18n( "Context" ), m_formatBtnGroup); new TQRadioButton(i18n( "Normal" ), m_formatBtnGroup); diff --git a/cervisia/progressdlg.cpp b/cervisia/progressdlg.cpp index 42783adc..e29a2017 100644 --- a/cervisia/progressdlg.cpp +++ b/cervisia/progressdlg.cpp @@ -125,7 +125,7 @@ bool ProgressDialog::execute() // we wait for 4 seconds (or the timeout set by the user) before we // force the dialog to show up d->timer = new TQTimer(this); - connect(d->timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotTimeoutOccurred())); + connect(d->timer, TQ_SIGNAL(timeout()), this, TQ_SLOT(slotTimeoutOccurred())); d->timer->start(CervisiaSettings::timeout(), true); bool started = d->cvsJob->execute(); @@ -133,7 +133,7 @@ bool ProgressDialog::execute() return false; TQApplication::setOverrideCursor(waitCursor); - kapp->enter_loop(); + tdeApp->enter_loop(); if (TQApplication::overrideCursor()) TQApplication::restoreOverrideCursor(); @@ -197,7 +197,7 @@ void ProgressDialog::slotJobExited(bool normalExit, int status) // error messages or the process has been aborted // 'by hand' (e.g. by clicking the cancel button) if( !d->hasError || !normalExit ) - kapp->exit_loop(); + tdeApp->exit_loop(); } @@ -209,7 +209,7 @@ void ProgressDialog::slotCancel() if( isRunning ) d->cvsJob->cancel(); else - kapp->exit_loop(); + tdeApp->exit_loop(); } @@ -229,7 +229,7 @@ void ProgressDialog::stopNonGuiPart() disconnectDCOPSignal(d->cvsJob->app(), d->cvsJob->obj(), "receivedStderr(TQString)", "slotReceivedOutputNonGui(TQString)"); - kapp->exit_loop(); + tdeApp->exit_loop(); } @@ -245,7 +245,7 @@ void ProgressDialog::startGuiPart() d->gear->start(); TQApplication::restoreOverrideCursor(); - kapp->enter_loop(); + tdeApp->enter_loop(); } diff --git a/cervisia/protocolview.cpp b/cervisia/protocolview.cpp index f64ac0af..a5847fba 100644 --- a/cervisia/protocolview.cpp +++ b/cervisia/protocolview.cpp @@ -84,8 +84,8 @@ bool ProtocolView::startJob(bool isUpdateJob) processOutput(); // disconnect 3rd party slots from our signals - disconnect( TQT_SIGNAL(receivedLine(TQString)) ); - disconnect( TQT_SIGNAL(jobFinished(bool, int)) ); + disconnect( TQ_SIGNAL(receivedLine(TQString)) ); + disconnect( TQ_SIGNAL(jobFinished(bool, int)) ); return job->execute(); } @@ -95,7 +95,7 @@ TQPopupMenu* ProtocolView::createPopupMenu(const TQPoint &pos) { TQPopupMenu* menu = TQTextEdit::createPopupMenu(pos); - int id = menu->insertItem(i18n("Clear"), this, TQT_SLOT( clear() ), 0, -1, 0); + int id = menu->insertItem(i18n("Clear"), this, TQ_SLOT( clear() ), 0, -1, 0); if( length() == 0 ) menu->setItemEnabled(id, false); diff --git a/cervisia/qttableview.cpp b/cervisia/qttableview.cpp index 6c02819c..91447276 100644 --- a/cervisia/qttableview.cpp +++ b/cervisia/qttableview.cpp @@ -107,7 +107,7 @@ void TQCornerSquare::paintEvent( TQPaintEvent * ) \warning the functions setNumRows(), setNumCols(), setCellHeight(), setCellWidth(), setTableFlags() and clearTableFlags() may cause virtual functions such as cellWidth() and cellHeight() to be called, - even if autoUpdate() is FALSE. This may cause errors if relevant + even if autoUpdate() is false. This may cause errors if relevant state variables are not initialized. \warning Experience has shown that use of this widget tends to cause @@ -155,13 +155,13 @@ QtTableView::QtTableView( TQWidget *parent, const char *name, WFlags f ) vScrollBar = hScrollBar = 0; // no scroll bars cornerSquare = 0; sbDirty = 0; - eraseInPaint = FALSE; - verSliding = FALSE; - verSnappingOff = FALSE; - horSliding = FALSE; - horSnappingOff = FALSE; - coveringCornerSquare = FALSE; - inSbUpdate = FALSE; + eraseInPaint = false; + verSliding = false; + verSnappingOff = false; + horSliding = false; + horSnappingOff = false; + coveringCornerSquare = false; + inSbUpdate = false; } /*! @@ -214,7 +214,7 @@ void QtTableView::show() Repaints the table view directly by calling paintEvent() directly unless updates are disabled. - Erases the view area \a (x,y,w,h) if \a erase is TRUE. Parameters \a + Erases the view area \a (x,y,w,h) if \a erase is true. Parameters \a (x,y) are in \e widget coordinates. If \a w is negative, it is replaced with <code>width() - x</code>. @@ -242,14 +242,14 @@ void QtTableView::repaint( int x, int y, int w, int h, bool erase ) return; // nothing to do TQPaintEvent e( r ); if ( erase && backgroundMode() != NoBackground ) - eraseInPaint = TRUE; // erase when painting + eraseInPaint = true; // erase when painting paintEvent( &e ); - eraseInPaint = FALSE; + eraseInPaint = false; } /*! \overload void QtTableView::repaint( const TQRect &r, bool erase ) - Replaints rectangle \a r. If \a erase is TRUE draws the background + Replaints rectangle \a r. If \a erase is true draws the background using the palette's background. */ @@ -463,7 +463,7 @@ void QtTableView::setYOffset( int y ) in the view. Parameters \a (x,y) are in \e table coordinates. The interaction with \link setTableFlags() Tbl_snapTo*Grid \endlink - is tricky. If \a updateScrBars is TRUE, the scroll bars are + is tricky. If \a updateScrBars is true, the scroll bars are updated. \sa xOffset(), yOffset(), setXOffset(), setYOffset(), setTopLeftCell() @@ -706,8 +706,8 @@ int QtTableView::totalHeight() /*! \fn bool QtTableView::testTableFlags( uint f ) const - Returns TRUE if any of the table flags in \a f are currently set, - otherwise FALSE. + Returns true if any of the table flags in \a f are currently set, + otherwise false. \sa setTableFlags(), clearTableFlags(), tableFlags() */ @@ -716,7 +716,7 @@ int QtTableView::totalHeight() Sets the table flags to \a f. If a flag setting changes the appearance of the table, the table is - repainted if - and only if - autoUpdate() is TRUE. + repainted if - and only if - autoUpdate() is true. The table flags are mostly single bits, though there are some multibit flags for convenience. Here is a complete list: @@ -783,15 +783,15 @@ void QtTableView::setTableFlags( uint f ) tFlags |= f; bool updateOn = autoUpdate(); - setAutoUpdate( FALSE ); + setAutoUpdate( false ); uint repaintMask = Tbl_cutCellsV | Tbl_cutCellsH; if ( f & Tbl_vScrollBar ) { - setVerScrollBar( TRUE ); + setVerScrollBar( true ); } if ( f & Tbl_hScrollBar ) { - setHorScrollBar( TRUE ); + setHorScrollBar( true ); } if ( f & Tbl_autoVScrollBar ) { updateScrollBars( verRange ); @@ -821,7 +821,7 @@ void QtTableView::setTableFlags( uint f ) } if ( updateOn ) { - setAutoUpdate( TRUE ); + setAutoUpdate( true ); updateScrollBars(); if ( isVisible() && (f & repaintMask) ) repaint(); @@ -849,15 +849,15 @@ void QtTableView::clearTableFlags( uint f ) tFlags &= ~f; bool updateOn = autoUpdate(); - setAutoUpdate( FALSE ); + setAutoUpdate( false ); uint repaintMask = Tbl_cutCellsV | Tbl_cutCellsH; if ( f & Tbl_vScrollBar ) { - setVerScrollBar( FALSE ); + setVerScrollBar( false ); } if ( f & Tbl_hScrollBar ) { - setHorScrollBar( FALSE ); + setHorScrollBar( false ); } if ( f & Tbl_scrollLastHCell ) { int maxX = maxXOffset(); @@ -890,7 +890,7 @@ void QtTableView::clearTableFlags( uint f ) updateScrollBars( verRange ); } if ( updateOn ) { - setAutoUpdate( TRUE ); + setAutoUpdate( true ); updateScrollBars(); // returns immediately if nothing to do if ( isVisible() && (f & repaintMask) ) repaint(); @@ -902,7 +902,7 @@ void QtTableView::clearTableFlags( uint f ) /*! \fn bool QtTableView::autoUpdate() const - Returns TRUE if the view updates itself automatically whenever it + Returns true if the view updates itself automatically whenever it is changed in some way. \sa setAutoUpdate() @@ -911,11 +911,11 @@ void QtTableView::clearTableFlags( uint f ) /*! Sets the auto-update option of the table view to \a enable. - If \a enable is TRUE (this is the default), the view updates itself + If \a enable is true (this is the default), the view updates itself automatically whenever it has changed in some way (for example, when a \link setTableFlags() flag\endlink is changed). - If \a enable is FALSE, the view does NOT repaint itself or update + If \a enable is false, the view does NOT repaint itself or update its internal state variables when it is changed. This can be useful to avoid flicker during large changes and is singularly useless otherwise. Disable auto-update, do the changes, re-enable @@ -925,7 +925,7 @@ void QtTableView::clearTableFlags( uint f ) (i.e., between events). If, for example, the user interacts with the view when auto-update is off, strange things can happen. - Setting auto-update to TRUE does not repaint the view; you must call + Setting auto-update to true does not repaint the view; you must call repaint() to do this. \sa autoUpdate(), repaint() @@ -946,7 +946,7 @@ void QtTableView::setAutoUpdate( bool enable ) /*! Repaints the cell at row \a row, column \a col if it is inside the view. - If \a erase is TRUE, the relevant part of the view is cleared to the + If \a erase is true, the relevant part of the view is cleared to the background color/pixmap before the contents are repainted. \sa isVisible() @@ -1042,7 +1042,7 @@ int QtTableView::lastColVisible() const } /*! - Returns TRUE if \a row is at least partially visible. + Returns true if \a row is at least partially visible. \sa colIsVisible() */ @@ -1052,7 +1052,7 @@ bool QtTableView::rowIsVisible( int row ) const } /*! - Returns TRUE if \a col is at least partially visible. + Returns true if \a col is at least partially visible. \sa rowIsVisible() */ @@ -1092,10 +1092,10 @@ void QtTableView::coverCornerSquare( bool enable ) \internal Scroll the view to a position such that: - If \a horizontal is TRUE, the leftmost column shown fits snugly + If \a horizontal is true, the leftmost column shown fits snugly with the left edge of the view. - If \a vertical is TRUE, the top row shown fits snugly with the top + If \a vertical is true, the top row shown fits snugly with the top of the view. You can achieve the same effect automatically by setting any of the @@ -1135,13 +1135,13 @@ void QtTableView::snapToGrid( bool horizontal, bool vertical ) void QtTableView::horSbValue( int val ) { if ( horSliding ) { - horSliding = FALSE; + horSliding = false; if ( horSnappingOff ) { - horSnappingOff = FALSE; + horSnappingOff = false; tFlags |= Tbl_snapToHGrid; } } - setOffset( val, yOffs, FALSE ); + setOffset( val, yOffs, false ); } /*! @@ -1157,10 +1157,10 @@ void QtTableView::horSbSliding( int val ) if ( testTableFlags(Tbl_snapToHGrid) && testTableFlags(Tbl_smoothHScrolling) ) { tFlags &= ~Tbl_snapToHGrid; // turn off snapping while sliding - setOffset( val, yOffs, FALSE ); + setOffset( val, yOffs, false ); tFlags |= Tbl_snapToHGrid; // turn on snapping again } else { - setOffset( val, yOffs, FALSE ); + setOffset( val, yOffs, false ); } } @@ -1174,7 +1174,7 @@ void QtTableView::horSbSlidingDone( ) { if ( testTableFlags(Tbl_snapToHGrid) && testTableFlags(Tbl_smoothHScrolling) ) - snapToGrid( TRUE, FALSE ); + snapToGrid( true, false ); } /*! @@ -1189,13 +1189,13 @@ void QtTableView::horSbSlidingDone( ) void QtTableView::verSbValue( int val ) { if ( verSliding ) { - verSliding = FALSE; + verSliding = false; if ( verSnappingOff ) { - verSnappingOff = FALSE; + verSnappingOff = false; tFlags |= Tbl_snapToVGrid; } } - setOffset( xOffs, val, FALSE ); + setOffset( xOffs, val, false ); } /*! @@ -1211,10 +1211,10 @@ void QtTableView::verSbSliding( int val ) if ( testTableFlags(Tbl_snapToVGrid) && testTableFlags(Tbl_smoothVScrolling) ) { tFlags &= ~Tbl_snapToVGrid; // turn off snapping while sliding - setOffset( xOffs, val, FALSE ); + setOffset( xOffs, val, false ); tFlags |= Tbl_snapToVGrid; // turn on snapping again } else { - setOffset( xOffs, val, FALSE ); + setOffset( xOffs, val, false ); } } @@ -1228,7 +1228,7 @@ void QtTableView::verSbSlidingDone( ) { if ( testTableFlags(Tbl_snapToVGrid) && testTableFlags(Tbl_smoothVScrolling) ) - snapToGrid( FALSE, TRUE ); + snapToGrid( false, true ); } @@ -1279,7 +1279,7 @@ void QtTableView::paintEvent( TQPaintEvent *e ) TQPainter paint( this ); - if ( !contentsRect().contains( updateR, TRUE ) ) {// update frame ? + if ( !contentsRect().contains( updateR, true ) ) {// update frame ? drawFrame( &paint ); if ( updateR.left() < frameWidth() ) //### updateR.setLeft( frameWidth() ); @@ -1345,7 +1345,7 @@ void QtTableView::paintEvent( TQPaintEvent *e ) frameWidth() > 0 && !winR.contains( cellR ) ) { //##arnt paint.setClipRect( cellUR ); paintCell( &paint, row, col ); - paint.setClipping( FALSE ); + paint.setClipping( false ); } else { paintCell( &paint, row, col ); } @@ -1357,7 +1357,7 @@ void QtTableView::paintEvent( TQPaintEvent *e ) frameWidth() > 0 && !winR.contains( cellR ) ) { //##arnt paint.setClipRect( cellUR ); paintCell( &paint, row, col ); - paint.setClipping( FALSE ); + paint.setClipping( false ); } else { paintCell( &paint, row, col ); } @@ -1378,7 +1378,7 @@ void QtTableView::paintEvent( TQPaintEvent *e ) // Note that this needs to be done regardless whether we do // eraseInPaint or not. Reason: a subclass may implement - // flicker-freeness and encourage the use of repaint(FALSE). + // flicker-freeness and encourage the use of repaint(false). // The subclass, however, cannot draw all pixels, just those // inside the cells. So QtTableView is reponsible for all pixels // outside the cells. @@ -1449,14 +1449,14 @@ TQScrollBar *QtTableView::verticalScrollBar() const #endif sb->resize( sb->sizeHint() ); // height is irrelevant TQ_CHECK_PTR(sb); - sb->setTracking( FALSE ); + sb->setTracking( false ); sb->setFocusPolicy( TQWidget::NoFocus ); - connect( sb, TQT_SIGNAL(valueChanged(int)), - TQT_SLOT(verSbValue(int))); - connect( sb, TQT_SIGNAL(sliderMoved(int)), - TQT_SLOT(verSbSliding(int))); - connect( sb, TQT_SIGNAL(sliderReleased()), - TQT_SLOT(verSbSlidingDone())); + connect( sb, TQ_SIGNAL(valueChanged(int)), + TQ_SLOT(verSbValue(int))); + connect( sb, TQ_SIGNAL(sliderMoved(int)), + TQ_SLOT(verSbSliding(int))); + connect( sb, TQ_SIGNAL(sliderReleased()), + TQ_SLOT(verSbSlidingDone())); sb->hide(); that->vScrollBar = sb; return sb; @@ -1481,13 +1481,13 @@ TQScrollBar *QtTableView::horizontalScrollBar() const sb->resize( sb->sizeHint() ); // width is irrelevant sb->setFocusPolicy( TQWidget::NoFocus ); TQ_CHECK_PTR(sb); - sb->setTracking( FALSE ); - connect( sb, TQT_SIGNAL(valueChanged(int)), - TQT_SLOT(horSbValue(int))); - connect( sb, TQT_SIGNAL(sliderMoved(int)), - TQT_SLOT(horSbSliding(int))); - connect( sb, TQT_SIGNAL(sliderReleased()), - TQT_SLOT(horSbSlidingDone())); + sb->setTracking( false ); + connect( sb, TQ_SIGNAL(valueChanged(int)), + TQ_SLOT(horSbValue(int))); + connect( sb, TQ_SIGNAL(sliderMoved(int)), + TQ_SLOT(horSbSliding(int))); + connect( sb, TQ_SIGNAL(sliderReleased()), + TQ_SLOT(horSbSlidingDone())); sb->hide(); that->hScrollBar = sb; return sb; @@ -1510,14 +1510,14 @@ void QtTableView::setHorScrollBar( bool on, bool update ) else sbDirty = sbDirty | (horMask | verMask); if ( testTableFlags( Tbl_vScrollBar ) ) - coverCornerSquare( TRUE ); + coverCornerSquare( true ); if ( autoUpdate() ) sbDirty = sbDirty | horMask; } else { tFlags &= ~Tbl_hScrollBar; if ( !hScrollBar ) return; - coverCornerSquare( FALSE ); + coverCornerSquare( false ); bool hideScrollBar = autoUpdate() && hScrollBar->isVisible(); if ( hideScrollBar ) hScrollBar->hide(); @@ -1549,14 +1549,14 @@ void QtTableView::setVerScrollBar( bool on, bool update ) else sbDirty = sbDirty | (horMask | verMask); if ( testTableFlags( Tbl_hScrollBar ) ) - coverCornerSquare( TRUE ); + coverCornerSquare( true ); if ( autoUpdate() ) sbDirty = sbDirty | verMask; } else { tFlags &= ~Tbl_vScrollBar; if ( !vScrollBar ) return; - coverCornerSquare( FALSE ); + coverCornerSquare( false ); bool hideScrollBar = autoUpdate() && vScrollBar->isVisible(); if ( hideScrollBar ) vScrollBar->hide(); @@ -1711,8 +1711,8 @@ int QtTableView::findCol( int xPos ) const /*! Computes the position in the widget of row \a row. - Returns TRUE and stores the result in \a *yPos (in \e widget - coordinates) if the row is visible. Returns FALSE and does not modify + Returns true and stores the result in \a *yPos (in \e widget + coordinates) if the row is visible. Returns false and does not modify \a *yPos if \a row is invisible or invalid. \sa colXPos(), findRow() @@ -1725,7 +1725,7 @@ bool QtTableView::rowYPos( int row, int *yPos ) const if ( cellH ) { int lastVisible = lastRowVisible(); if ( row > lastVisible || lastVisible == -1 ) - return FALSE; + return false; y = (row - yCellOffs)*cellH + minViewY() - yCellDelta; } else { //##arnt3 @@ -1736,23 +1736,23 @@ bool QtTableView::rowYPos( int row, int *yPos ) const while ( r < row && y <= maxY ) y += tw->cellHeight( r++ ); if ( y > maxY ) - return FALSE; + return false; } } else { - return FALSE; + return false; } if ( yPos ) *yPos = y; - return TRUE; + return true; } /*! Computes the position in the widget of column \a col. - Returns TRUE and stores the result in \a *xPos (in \e widget - coordinates) if the column is visible. Returns FALSE and does not + Returns true and stores the result in \a *xPos (in \e widget + coordinates) if the column is visible. Returns false and does not modify \a *xPos if \a col is invisible or invalid. \sa rowYPos(), findCol() @@ -1765,7 +1765,7 @@ bool QtTableView::colXPos( int col, int *xPos ) const if ( cellW ) { int lastVisible = lastColVisible(); if ( col > lastVisible || lastVisible == -1 ) - return FALSE; + return false; x = (col - xCellOffs)*cellW + minViewX() - xCellDelta; } else { //##arnt3 @@ -1776,14 +1776,14 @@ bool QtTableView::colXPos( int col, int *xPos ) const while ( c < col && x <= maxX ) x += tw->cellWidth( c++ ); if ( x > maxX ) - return FALSE; + return false; } } else { - return FALSE; + return false; } if ( xPos ) *xPos = x; - return TRUE; + return true; } @@ -1912,9 +1912,9 @@ void QtTableView::doAutoScrollBars() w += cellWidth( i++ ); } if ( w > viewW ) - hScrollOn = TRUE; + hScrollOn = true; else - hScrollOn = FALSE; + hScrollOn = false; } if ( testTableFlags(Tbl_autoVScrollBar) ) { @@ -1927,21 +1927,21 @@ void QtTableView::doAutoScrollBars() } if ( h > viewH ) - vScrollOn = TRUE; + vScrollOn = true; else - vScrollOn = FALSE; + vScrollOn = false; } if ( testTableFlags(Tbl_autoHScrollBar) && vScrollOn && !hScrollOn ) if ( w > viewW - VSBEXT ) - hScrollOn = TRUE; + hScrollOn = true; if ( testTableFlags(Tbl_autoVScrollBar) && hScrollOn && !vScrollOn ) if ( h > viewH - HSBEXT ) - vScrollOn = TRUE; + vScrollOn = true; - setHorScrollBar( hScrollOn, FALSE ); - setVerScrollBar( vScrollOn, FALSE ); + setHorScrollBar( hScrollOn, false ); + setVerScrollBar( vScrollOn, false ); updateFrameSize(); } @@ -1967,7 +1967,7 @@ void QtTableView::updateScrollBars( uint f ) sbDirty = sbDirty | f; if ( inSbUpdate ) return; - inSbUpdate = TRUE; + inSbUpdate = true; if ( testTableFlags(Tbl_autoHScrollBar) && (sbDirty & horRange) || testTableFlags(Tbl_autoVScrollBar) && (sbDirty & verRange) ) @@ -1975,7 +1975,7 @@ void QtTableView::updateScrollBars( uint f ) doAutoScrollBars(); // turn scroll bars on/off if needed if ( !autoUpdate() ) { - inSbUpdate = FALSE; + inSbUpdate = false; return; } if ( yOffset() > 0 && testTableFlags( Tbl_autoVScrollBar ) && @@ -1987,7 +1987,7 @@ void QtTableView::updateScrollBars( uint f ) setXOffset( 0 ); } if ( !isVisible() ) { - inSbUpdate = FALSE; + inSbUpdate = false; return; } @@ -2044,7 +2044,7 @@ void QtTableView::updateScrollBars( uint f ) maxViewY() + frameWidth() + 1 ); sbDirty = 0; - inSbUpdate = FALSE; + inSbUpdate = false; } @@ -2263,10 +2263,10 @@ void QtTableView::showOrHideScrollBars() void QtTableView::updateTableSize() { bool updateOn = autoUpdate(); - setAutoUpdate( FALSE ); + setAutoUpdate( false ); int xofs = xOffset(); xOffs++; //so that setOffset will not return immediately - setOffset(xofs,yOffset(),FALSE); //to calculate internal state correctly + setOffset(xofs,yOffset(),false); //to calculate internal state correctly setAutoUpdate(updateOn); updateScrollBars( horSteps | horRange | diff --git a/cervisia/qttableview.h b/cervisia/qttableview.h index df85cd71..c911dca2 100644 --- a/cervisia/qttableview.h +++ b/cervisia/qttableview.h @@ -32,9 +32,9 @@ public: virtual void setPalette( const TQPalette & ); void show(); - void repaint( bool erase=TRUE ); - void repaint( int x, int y, int w, int h, bool erase=TRUE ); - void repaint( const TQRect &, bool erase=TRUE ); + void repaint( bool erase=true ); + void repaint( int x, int y, int w, int h, bool erase=true ); + void repaint( const TQRect &, bool erase=true ); protected: QtTableView( TQWidget *parent=0, const char *name=0, WFlags f=0 ); @@ -55,7 +55,7 @@ protected: virtual void setXOffset( int ); int yOffset() const; virtual void setYOffset( int ); - virtual void setOffset( int x, int y, bool updateScrBars = TRUE ); + virtual void setOffset( int x, int y, bool updateScrBars = true ); virtual int cellWidth( int col ); virtual int cellHeight( int row ); @@ -75,7 +75,7 @@ protected: bool autoUpdate() const; virtual void setAutoUpdate( bool ); - void updateCell( int row, int column, bool erase=TRUE ); + void updateCell( int row, int column, bool erase=true ); TQRect cellUpdateRect() const; TQRect viewRect() const; @@ -130,13 +130,13 @@ protected: private: void coverCornerSquare( bool ); void snapToGrid( bool horizontal, bool vertical ); - virtual void setHorScrollBar( bool on, bool update = TRUE ); - virtual void setVerScrollBar( bool on, bool update = TRUE ); + virtual void setHorScrollBar( bool on, bool update = true ); + virtual void setVerScrollBar( bool on, bool update = true ); void updateView(); int findRawRow( int yPos, int *cellMaxY, int *cellMinY = 0, - bool goOutsideView = FALSE ) const; + bool goOutsideView = false ) const; int findRawCol( int xPos, int *cellMaxX, int *cellMinX = 0, - bool goOutsideView = FALSE ) const; + bool goOutsideView = false ) const; int maxColsVisible() const; void updateScrollBars( uint ); diff --git a/cervisia/repositorydlg.cpp b/cervisia/repositorydlg.cpp index 60a35257..8171b9df 100644 --- a/cervisia/repositorydlg.cpp +++ b/cervisia/repositorydlg.cpp @@ -173,10 +173,10 @@ RepositoryDialog::RepositoryDialog(TDEConfig& cfg, CvsService_stub* cvsService, m_repoList->addColumn(i18n("Status")); m_repoList->setFocus(); - connect(m_repoList, TQT_SIGNAL(doubleClicked(TQListViewItem*)), - this, TQT_SLOT(slotDoubleClicked(TQListViewItem*))); - connect(m_repoList, TQT_SIGNAL(selectionChanged()), - this, TQT_SLOT(slotSelectionChanged())); + connect(m_repoList, TQ_SIGNAL(doubleClicked(TQListViewItem*)), + this, TQ_SLOT(slotDoubleClicked(TQListViewItem*))); + connect(m_repoList, TQ_SIGNAL(selectionChanged()), + this, TQ_SLOT(slotSelectionChanged())); KButtonBox* actionbox = new KButtonBox(mainWidget, TQt::Vertical); TQPushButton* addbutton = actionbox->addButton(i18n("&Add...")); @@ -192,16 +192,16 @@ RepositoryDialog::RepositoryDialog(TDEConfig& cfg, CvsService_stub* cvsService, m_loginButton->setEnabled(false); m_logoutButton->setEnabled(false); - connect( addbutton, TQT_SIGNAL(clicked()), - this, TQT_SLOT(slotAddClicked()) ); - connect( m_modifyButton, TQT_SIGNAL(clicked()), - this, TQT_SLOT(slotModifyClicked()) ); - connect( m_removeButton, TQT_SIGNAL(clicked()), - this, TQT_SLOT(slotRemoveClicked()) ); - connect( m_loginButton, TQT_SIGNAL(clicked()), - this, TQT_SLOT(slotLoginClicked()) ); - connect( m_logoutButton, TQT_SIGNAL(clicked()), - this, TQT_SLOT(slotLogoutClicked()) ); + connect( addbutton, TQ_SIGNAL(clicked()), + this, TQ_SLOT(slotAddClicked()) ); + connect( m_modifyButton, TQ_SIGNAL(clicked()), + this, TQ_SLOT(slotModifyClicked()) ); + connect( m_removeButton, TQ_SIGNAL(clicked()), + this, TQ_SLOT(slotRemoveClicked()) ); + connect( m_loginButton, TQ_SIGNAL(clicked()), + this, TQ_SLOT(slotLoginClicked()) ); + connect( m_logoutButton, TQ_SIGNAL(clicked()), + this, TQ_SLOT(slotLogoutClicked()) ); // open cvs DCOP service configuration file m_serviceConfig = new TDEConfig("cvsservicerc"); diff --git a/cervisia/resolvedlg.cpp b/cervisia/resolvedlg.cpp index ce3ce533..395b0636 100644 --- a/cervisia/resolvedlg.cpp +++ b/cervisia/resolvedlg.cpp @@ -143,28 +143,28 @@ ResolveDialog::ResolveDialog(TDEConfig& cfg, TQWidget *parent, const char *name) layout->addWidget(vertSplitter); abutton = new TQPushButton("&A", mainWidget); - connect( abutton, TQT_SIGNAL(clicked()), TQT_SLOT(aClicked()) ); + connect( abutton, TQ_SIGNAL(clicked()), TQ_SLOT(aClicked()) ); bbutton = new TQPushButton("&B", mainWidget); - connect( bbutton, TQT_SIGNAL(clicked()), TQT_SLOT(bClicked()) ); + connect( bbutton, TQ_SIGNAL(clicked()), TQ_SLOT(bClicked()) ); abbutton = new TQPushButton("A+B", mainWidget); - connect( abbutton, TQT_SIGNAL(clicked()), TQT_SLOT(abClicked()) ); + connect( abbutton, TQ_SIGNAL(clicked()), TQ_SLOT(abClicked()) ); babutton = new TQPushButton("B+A", mainWidget); - connect( babutton, TQT_SIGNAL(clicked()), TQT_SLOT(baClicked()) ); + connect( babutton, TQ_SIGNAL(clicked()), TQ_SLOT(baClicked()) ); editbutton = new TQPushButton(i18n("&Edit"), mainWidget); - connect( editbutton, TQT_SIGNAL(clicked()), TQT_SLOT(editClicked()) ); + connect( editbutton, TQ_SIGNAL(clicked()), TQ_SLOT(editClicked()) ); nofnlabel = new TQLabel(mainWidget); nofnlabel->setAlignment(AlignCenter); backbutton = new TQPushButton("&<<", mainWidget); - connect( backbutton, TQT_SIGNAL(clicked()), TQT_SLOT(backClicked()) ); + connect( backbutton, TQ_SIGNAL(clicked()), TQ_SLOT(backClicked()) ); forwbutton = new TQPushButton("&>>", mainWidget); - connect( forwbutton, TQT_SIGNAL(clicked()), TQT_SLOT(forwClicked()) ); + connect( forwbutton, TQ_SIGNAL(clicked()), TQ_SLOT(forwClicked()) ); TQBoxLayout *buttonlayout = new TQHBoxLayout(layout); buttonlayout->addWidget(abutton, 1); @@ -178,8 +178,8 @@ ResolveDialog::ResolveDialog(TDEConfig& cfg, TQWidget *parent, const char *name) buttonlayout->addWidget(backbutton, 1); buttonlayout->addWidget(forwbutton, 1); - connect( this, TQT_SIGNAL(user2Clicked()), TQT_SLOT(saveClicked()) ); - connect( this, TQT_SIGNAL(user1Clicked()), TQT_SLOT(saveAsClicked()) ); + connect( this, TQ_SIGNAL(user2Clicked()), TQ_SLOT(saveClicked()) ); + connect( this, TQ_SIGNAL(user1Clicked()), TQ_SLOT(saveAsClicked()) ); TQFontMetrics const fm(fontMetrics()); setMinimumSize(fm.width('0') * 120, diff --git a/cervisia/settingsdlg.cpp b/cervisia/settingsdlg.cpp index 33f0b935..c6ecd33f 100644 --- a/cervisia/settingsdlg.cpp +++ b/cervisia/settingsdlg.cpp @@ -61,7 +61,7 @@ namespace FontButton::FontButton( const TQString &text, TQWidget *parent, const char *name ) : TQPushButton(text, parent, name) { - connect( this, TQT_SIGNAL(clicked()), this, TQT_SLOT(chooseFont()) ); + connect( this, TQ_SIGNAL(clicked()), this, TQ_SLOT(chooseFont()) ); } diff --git a/cervisia/tagdlg.cpp b/cervisia/tagdlg.cpp index 65c0915a..2df98f29 100644 --- a/cervisia/tagdlg.cpp +++ b/cervisia/tagdlg.cpp @@ -58,8 +58,8 @@ TagDialog::TagDialog(ActionType action, CvsService_stub* service, TQLabel *tag_label = new TQLabel(tag_combo, i18n("&Name of tag:"), mainWidget); TQPushButton *tag_button = new TQPushButton(i18n("Fetch &List"), mainWidget); - connect( tag_button, TQT_SIGNAL(clicked()), - this, TQT_SLOT(tagButtonClicked()) ); + connect( tag_button, TQ_SIGNAL(clicked()), + this, TQ_SLOT(tagButtonClicked()) ); TQBoxLayout *tagedit_layout = new TQHBoxLayout(layout); tagedit_layout->addWidget(tag_label); diff --git a/cervisia/updatedlg.cpp b/cervisia/updatedlg.cpp index 4b9b2a0c..9ae04cbb 100644 --- a/cervisia/updatedlg.cpp +++ b/cervisia/updatedlg.cpp @@ -54,8 +54,8 @@ UpdateDialog::UpdateDialog(CvsService_stub* service, branch_combo->setMinimumWidth(iComboBoxMinWidth); branch_button = new TQPushButton(i18n("Fetch &List"), mainWidget); - connect( branch_button, TQT_SIGNAL(clicked()), - this, TQT_SLOT(branchButtonClicked()) ); + connect( branch_button, TQ_SIGNAL(clicked()), + this, TQ_SLOT(branchButtonClicked()) ); TQBoxLayout *branchedit_layout = new TQHBoxLayout(layout); branchedit_layout->addSpacing(iWidgetIndent); @@ -69,8 +69,8 @@ UpdateDialog::UpdateDialog(CvsService_stub* service, tag_combo->setMinimumWidth(iComboBoxMinWidth); tag_button = new TQPushButton(i18n("Fetch L&ist"), mainWidget); - connect( tag_button, TQT_SIGNAL(clicked()), - this, TQT_SLOT(tagButtonClicked()) ); + connect( tag_button, TQ_SIGNAL(clicked()), + this, TQ_SLOT(tagButtonClicked()) ); TQBoxLayout *tagedit_layout = new TQHBoxLayout(layout); tagedit_layout->addSpacing(iWidgetIndent); @@ -91,8 +91,8 @@ UpdateDialog::UpdateDialog(CvsService_stub* service, group->insert(bytag_button); group->insert(bybranch_button); group->insert(bydate_button); - connect( group, TQT_SIGNAL(clicked(int)), - this, TQT_SLOT(toggled()) ); + connect( group, TQ_SIGNAL(clicked(int)), + this, TQ_SLOT(toggled()) ); // dis-/enable the widgets toggled(); diff --git a/cervisia/updateview.cpp b/cervisia/updateview.cpp index 4c6d6e37..3c119b92 100644 --- a/cervisia/updateview.cpp +++ b/cervisia/updateview.cpp @@ -56,10 +56,10 @@ UpdateView::UpdateView(TDEConfig& partConfig, TQWidget *parent, const char *name setFilter(NoFilter); - connect( this, TQT_SIGNAL(doubleClicked(TQListViewItem*)), - this, TQT_SLOT(itemExecuted(TQListViewItem*)) ); - connect( this, TQT_SIGNAL(returnPressed(TQListViewItem*)), - this, TQT_SLOT(itemExecuted(TQListViewItem*)) ); + connect( this, TQ_SIGNAL(doubleClicked(TQListViewItem*)), + this, TQ_SLOT(itemExecuted(TQListViewItem*)) ); + connect( this, TQ_SIGNAL(returnPressed(TQListViewItem*)), + this, TQ_SLOT(itemExecuted(TQListViewItem*)) ); // without this restoreLayout() can't change the column widths for (int col = 0; col < columns(); ++col) diff --git a/cervisia/watchdlg.cpp b/cervisia/watchdlg.cpp index a835c0f8..d11bb0bc 100644 --- a/cervisia/watchdlg.cpp +++ b/cervisia/watchdlg.cpp @@ -73,12 +73,12 @@ WatchDialog::WatchDialog(ActionType action, TQWidget *parent, const char *name) group->insert(all_button); group->insert(only_button); - connect( only_button, TQT_SIGNAL(toggled(bool)), - commitbox, TQT_SLOT(setEnabled(bool)) ); - connect( only_button, TQT_SIGNAL(toggled(bool)), - editbox, TQT_SLOT(setEnabled(bool)) ); - connect( only_button, TQT_SIGNAL(toggled(bool)), - uneditbox, TQT_SLOT(setEnabled(bool)) ); + connect( only_button, TQ_SIGNAL(toggled(bool)), + commitbox, TQ_SLOT(setEnabled(bool)) ); + connect( only_button, TQ_SIGNAL(toggled(bool)), + editbox, TQ_SLOT(setEnabled(bool)) ); + connect( only_button, TQ_SIGNAL(toggled(bool)), + uneditbox, TQ_SLOT(setEnabled(bool)) ); setHelp("watches"); } |