summaryrefslogtreecommitdiffstats
path: root/src/mainwindowshare.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindowshare.cpp')
-rw-r--r--src/mainwindowshare.cpp110
1 files changed, 55 insertions, 55 deletions
diff --git a/src/mainwindowshare.cpp b/src/mainwindowshare.cpp
index 4dcb17c9..b725db23 100644
--- a/src/mainwindowshare.cpp
+++ b/src/mainwindowshare.cpp
@@ -15,12 +15,12 @@
* *
***************************************************************************/
-#include <qcheckbox.h>
-#include <qvbox.h>
-#include <qbuttongroup.h>
-#include <qradiobutton.h>
-#include <qdir.h>
-#include <qregexp.h>
+#include <tqcheckbox.h>
+#include <tqvbox.h>
+#include <tqbuttongroup.h>
+#include <tqradiobutton.h>
+#include <tqdir.h>
+#include <tqregexp.h>
#include <kxmlguiclient.h>
#include <kaction.h>
@@ -67,8 +67,8 @@
using namespace MainWindowUtils;
-MainWindowShare::MainWindowShare(QObject* pParent, const char* name)
- :QObject(pParent, name)
+MainWindowShare::MainWindowShare(TQObject* pParent, const char* name)
+ :TQObject(pParent, name)
,m_toggleMainToolbar(0L)
,m_toggleBuildToolbar(0L)
,m_toggleViewToolbar(0L)
@@ -81,14 +81,14 @@ MainWindowShare::MainWindowShare(QObject* pParent, const char* name)
void MainWindowShare::init()
{
- connect(Core::getInstance(), SIGNAL(contextMenu(QPopupMenu *, const Context *)),
- this, SLOT(contextMenu(QPopupMenu *, const Context *)));
+ connect(Core::getInstance(), TQT_SIGNAL(contextMenu(TQPopupMenu *, const Context *)),
+ this, TQT_SLOT(contextMenu(TQPopupMenu *, const Context *)));
- connect( m_pMainWnd->actionCollection(), SIGNAL( actionStatusText( const QString & ) ),
- this, SLOT( slotActionStatusText( const QString & ) ) );
+ connect( m_pMainWnd->actionCollection(), TQT_SIGNAL( actionStatusText( const TQString & ) ),
+ this, TQT_SLOT( slotActionStatusText( const TQString & ) ) );
}
-void MainWindowShare::slotActionStatusText( const QString &text )
+void MainWindowShare::slotActionStatusText( const TQString &text )
{
// kdDebug(9000) << "MainWindowShare::slotActionStatusText() - " << text << endl;
@@ -105,83 +105,83 @@ void MainWindowShare::createActions()
{
ProjectManager::getInstance()->createActions( m_pMainWnd->actionCollection() );
- KStdAction::quit(this->parent(), SLOT(close()), m_pMainWnd->actionCollection());
+ KStdAction::quit(this->parent(), TQT_SLOT(close()), m_pMainWnd->actionCollection());
KAction* action;
m_stopProcesses = new KToolBarPopupAction( i18n( "&Stop" ), "stop",
- Key_Escape, this, SLOT(slotStopButtonPressed()),
+ Key_Escape, this, TQT_SLOT(slotStopButtonPressed()),
m_pMainWnd->actionCollection(), "stop_processes" );
m_stopProcesses->setToolTip(i18n("Stop"));
m_stopProcesses->setWhatsThis(i18n("<b>Stop</b><p>Stops all running processes (like building process, grep command, etc.). When placed onto a toolbar provides a popup menu to choose a process to stop."));
m_stopProcesses->setEnabled( false );
- connect(m_stopProcesses->popupMenu(), SIGNAL(aboutToShow()),
- this, SLOT(slotStopMenuAboutToShow()));
- connect(m_stopProcesses->popupMenu(), SIGNAL(activated(int)),
- this, SLOT(slotStopPopupActivated(int)));
+ connect(m_stopProcesses->popupMenu(), TQT_SIGNAL(aboutToShow()),
+ this, TQT_SLOT(slotStopMenuAboutToShow()));
+ connect(m_stopProcesses->popupMenu(), TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(slotStopPopupActivated(int)));
- connect( Core::getInstance(), SIGNAL(activeProcessChanged(KDevPlugin*, bool)),
- this, SLOT(slotActiveProcessChanged(KDevPlugin*, bool)) );
+ connect( Core::getInstance(), TQT_SIGNAL(activeProcessChanged(KDevPlugin*, bool)),
+ this, TQT_SLOT(slotActiveProcessChanged(KDevPlugin*, bool)) );
action = KStdAction::showMenubar(
- this, SLOT(slotShowMenuBar()),
+ this, TQT_SLOT(slotShowMenuBar()),
m_pMainWnd->actionCollection(), "settings_show_menubar" );
action->setToolTip(beautifyToolTip(action->text()));
- action->setWhatsThis(QString("<b>%1</b><p>%2").arg(beautifyToolTip(action->text())).arg(i18n("Lets you switch the menubar on/off.")));
+ action->setWhatsThis(TQString("<b>%1</b><p>%2").arg(beautifyToolTip(action->text())).arg(i18n("Lets you switch the menubar on/off.")));
action = KStdAction::keyBindings(
- this, SLOT(slotKeyBindings()),
+ this, TQT_SLOT(slotKeyBindings()),
m_pMainWnd->actionCollection(), "settings_configure_shortcuts" );
action->setToolTip(beautifyToolTip(action->text()));
- action->setWhatsThis(QString("<b>%1</b><p>%2").arg(beautifyToolTip(action->text())).arg(i18n("Lets you configure shortcut keys.")));
+ action->setWhatsThis(TQString("<b>%1</b><p>%2").arg(beautifyToolTip(action->text())).arg(i18n("Lets you configure shortcut keys.")));
action = KStdAction::configureToolbars(
- this, SLOT(slotConfigureToolbars()),
+ this, TQT_SLOT(slotConfigureToolbars()),
m_pMainWnd->actionCollection(), "settings_configure_toolbars" );
action->setToolTip(beautifyToolTip(action->text()));
- action->setWhatsThis(QString("<b>%1</b><p>%2").arg(beautifyToolTip(action->text())).arg(i18n("Lets you configure toolbars.")));
+ action->setWhatsThis(TQString("<b>%1</b><p>%2").arg(beautifyToolTip(action->text())).arg(i18n("Lets you configure toolbars.")));
action = KStdAction::configureNotifications(
- this, SLOT(slotConfigureNotifications()),
+ this, TQT_SLOT(slotConfigureNotifications()),
m_pMainWnd->actionCollection(), "settings_configure_notifications" );
action->setToolTip(beautifyToolTip(action->text()));
- action->setWhatsThis(QString("<b>%1</b><p>%2").arg(beautifyToolTip(action->text())).arg(i18n("Lets you configure system notifications.")));
+ action->setWhatsThis(TQString("<b>%1</b><p>%2").arg(beautifyToolTip(action->text())).arg(i18n("Lets you configure system notifications.")));
- action = KStdAction::preferences(this, SLOT(slotSettings()),
+ action = KStdAction::preferences(this, TQT_SLOT(slotSettings()),
m_pMainWnd->actionCollection(), "settings_configure" );
action->setToolTip( i18n( "Configure KDevelop" ) );
- action->setWhatsThis(QString("<b>%1</b><p>%2").arg(i18n( "Configure KDevelop" )).arg(i18n("Lets you customize KDevelop.")));
+ action->setWhatsThis(TQString("<b>%1</b><p>%2").arg(i18n( "Configure KDevelop" )).arg(i18n("Lets you customize KDevelop.")));
- m_toggleStatusbar = KStdAction::showToolbar(this, SLOT(slotToggleStatusbar()),m_pMainWnd->actionCollection(), "settings_statusbar");
+ m_toggleStatusbar = KStdAction::showToolbar(this, TQT_SLOT(slotToggleStatusbar()),m_pMainWnd->actionCollection(), "settings_statusbar");
m_toggleStatusbar->setText(i18n("Show &Statusbar"));
m_toggleStatusbar->setToolTip( i18n("Show statusbar") );
m_toggleStatusbar->setWhatsThis(i18n("<b>Show statusbar</b><p>Hides or shows the statusbar."));
- action = new KAction( i18n("&Next Window"), ALT+Key_Right, this, SIGNAL(gotoNextWindow()),m_pMainWnd->actionCollection(), "view_next_window");
+ action = new KAction( i18n("&Next Window"), ALT+Key_Right, this, TQT_SIGNAL(gotoNextWindow()),m_pMainWnd->actionCollection(), "view_next_window");
action->setToolTip( i18n("Next window") );
action->setWhatsThis(i18n("<b>Next window</b><p>Switches to the next window."));
- action = new KAction( i18n("&Previous Window"), ALT+Key_Left, this, SIGNAL(gotoPreviousWindow()),m_pMainWnd->actionCollection(), "view_previous_window");
+ action = new KAction( i18n("&Previous Window"), ALT+Key_Left, this, TQT_SIGNAL(gotoPreviousWindow()),m_pMainWnd->actionCollection(), "view_previous_window");
action->setToolTip( i18n("Previous window") );
action->setWhatsThis(i18n("<b>Previous window</b><p>Switches to the previous window."));
- action = new KAction( i18n("&Last Accessed Window"), ALT+Key_Up, this, SIGNAL(gotoLastWindow()), m_pMainWnd->actionCollection(), "view_last_window");
+ action = new KAction( i18n("&Last Accessed Window"), ALT+Key_Up, this, TQT_SIGNAL(gotoLastWindow()), m_pMainWnd->actionCollection(), "view_last_window");
action->setToolTip( i18n("Last accessed window") );
action->setWhatsThis(i18n("<b>Last accessed window</b><p>Switches to the last viewed window (Hold the Alt key pressed and walk on by repeating the Up key)."));
- action = new KAction( i18n("&First Accessed Window"), ALT+Key_Down, this, SIGNAL(gotoFirstWindow()), m_pMainWnd->actionCollection(), "view_first_window");
+ action = new KAction( i18n("&First Accessed Window"), ALT+Key_Down, this, TQT_SIGNAL(gotoFirstWindow()), m_pMainWnd->actionCollection(), "view_first_window");
action->setToolTip( i18n("First accessed window") );
action->setWhatsThis(i18n("<b>First accessed window</b><p>Switches to the first accessed window (Hold the Alt key pressed and walk on by repeating the Down key)."));
- action = new KAction( i18n("Configure Plugins..."), SmallIconSet("configure"), 0, PluginController::getInstance(), SLOT(selectPlugins()), m_pMainWnd->actionCollection(), "settings_configure_plugins" );
+ action = new KAction( i18n("Configure Plugins..."), SmallIconSet("configure"), 0, PluginController::getInstance(), TQT_SLOT(selectPlugins()), m_pMainWnd->actionCollection(), "settings_configure_plugins" );
- m_configureEditorAction = new KAction( i18n("Configure &Editor..."), SmallIconSet("configure"), 0, this, SLOT( slotConfigureEditors() ), m_pMainWnd->actionCollection(), "settings_configure_editors");
+ m_configureEditorAction = new KAction( i18n("Configure &Editor..."), SmallIconSet("configure"), 0, this, TQT_SLOT( slotConfigureEditors() ), m_pMainWnd->actionCollection(), "settings_configure_editors");
m_configureEditorAction->setToolTip( i18n("Configure editor settings") );
m_configureEditorAction->setWhatsThis(i18n("<b>Configure editor</b><p>Opens editor configuration dialog."));
m_configureEditorAction->setEnabled( false );
KDevPartController * partController = API::getInstance()->partController();
- connect( partController, SIGNAL(activePartChanged(KParts::Part*)), this, SLOT(slotActivePartChanged(KParts::Part* )) );
+ connect( partController, TQT_SIGNAL(activePartChanged(KParts::Part*)), this, TQT_SLOT(slotActivePartChanged(KParts::Part* )) );
}
void MainWindowShare::slotReportBug()
@@ -257,7 +257,7 @@ void MainWindowShare::slotStopPopupActivated( int id )
return;
} else {
// oops... list has changed in the meantime
- QString str = m_stopProcesses->popupMenu()->text( id );
+ TQString str = m_stopProcesses->popupMenu()->text( id );
for ( plugin = activeProcesses.first(); plugin; plugin = activeProcesses.next() ) {
if ( plugin->info()->genericName() == str ) {
Core::getInstance()->doEmitStopButtonPressed( plugin );
@@ -269,7 +269,7 @@ void MainWindowShare::slotStopPopupActivated( int id )
void MainWindowShare::slotStopMenuAboutToShow()
{
- QPopupMenu* popup = m_stopProcesses->popupMenu();
+ TQPopupMenu* popup = m_stopProcesses->popupMenu();
popup->clear();
int i = 0;
@@ -317,7 +317,7 @@ void MainWindowShare::slotSettings()
config->writeEntry( "Height", dlg.size().height() );
config->writeEntry( "Width", dlg.size().width() );
- if ( dlg.result() != QDialog::Rejected )
+ if ( dlg.result() != TQDialog::Rejected )
ShellExtension::getInstance()->acceptGlobalSettingsPage(&dlg);
}
@@ -367,15 +367,15 @@ void MainWindowShare::slotGUICreated( KParts::Part * part )
if ( KAction * action = part->action("file_save") )
{
kdDebug(9000) << " *** found \"file_save\" action - disconnecting" << endl;
- disconnect( action, SIGNAL(activated()), 0, 0 );
- connect( action, SIGNAL(activated()), PartController::getInstance(), SLOT(slotSave()) );
+ disconnect( action, TQT_SIGNAL(activated()), 0, 0 );
+ connect( action, TQT_SIGNAL(activated()), PartController::getInstance(), TQT_SLOT(slotSave()) );
}
if ( KAction * action = part->action("file_reload") )
{
kdDebug(9000) << " *** found \"file_reload\" action - disconnecting" << endl;
- disconnect( action, SIGNAL(activated()), 0, 0 );
- connect( action, SIGNAL(activated()), PartController::getInstance(), SLOT(slotReload()) );
+ disconnect( action, TQT_SIGNAL(activated()), 0, 0 );
+ connect( action, TQT_SIGNAL(activated()), PartController::getInstance(), TQT_SLOT(slotReload()) );
}
}
@@ -392,8 +392,8 @@ void MainWindowShare::slotNewToolbarConfig()
void MainWindowShare::slotKeyBindings()
{
KKeyDialog dlg( false, m_pMainWnd );
- QPtrList<KXMLGUIClient> clients = m_pMainWnd->guiFactory()->clients();
- for( QPtrListIterator<KXMLGUIClient> it( clients );
+ TQPtrList<KXMLGUIClient> clients = m_pMainWnd->guiFactory()->clients();
+ for( TQPtrListIterator<KXMLGUIClient> it( clients );
it.current(); ++it ) {
dlg.insert( (*it)->actionCollection() );
}
@@ -401,17 +401,17 @@ void MainWindowShare::slotKeyBindings()
{
// this is needed for when we have multiple embedded kateparts and change one of them.
// it also needs to be done to their views, as they too have actioncollections to update
- if( const QPtrList<KParts::Part> * partlist = PartController::getInstance()->parts() )
+ if( const TQPtrList<KParts::Part> * partlist = PartController::getInstance()->parts() )
{
- QPtrListIterator<KParts::Part> it( *partlist );
+ TQPtrListIterator<KParts::Part> it( *partlist );
while ( KParts::Part* part = it.current() )
{
if ( KTextEditor::Document * doc = dynamic_cast<KTextEditor::Document*>( part ) )
{
doc->reloadXML();
- QPtrList<KTextEditor::View> const & list = doc->views();
- QPtrListIterator<KTextEditor::View> itt( list );
+ TQPtrList<KTextEditor::View> const & list = doc->views();
+ TQPtrListIterator<KTextEditor::View> itt( list );
while( KTextEditor::View * view = itt.current() )
{
view->reloadXML();
@@ -429,16 +429,16 @@ void MainWindowShare::slotConfigureToolbars()
{
m_pMainWnd->saveMainWindowSettings( KGlobal::config(), "Mainwindow" );
KEditToolbar dlg( m_pMainWnd->factory() );
- connect(&dlg, SIGNAL(newToolbarConfig()), this, SLOT(slotNewToolbarConfig()));
+ connect(&dlg, TQT_SIGNAL(newToolbarConfig()), this, TQT_SLOT(slotNewToolbarConfig()));
dlg.exec();
}
-void MainWindowShare::contextMenu(QPopupMenu* popup, const Context *)
+void MainWindowShare::contextMenu(TQPopupMenu* popup, const Context *)
{
if ( m_pMainWnd->menuBar()->isVisible() )
return;
- int id = popup->insertItem( i18n("Show &Menubar"), m_pMainWnd->menuBar(), SLOT(show()) );
+ int id = popup->insertItem( i18n("Show &Menubar"), m_pMainWnd->menuBar(), TQT_SLOT(show()) );
popup->setWhatsThis(id, i18n("<b>Show menubar</b><p>Lets you switch the menubar on/off."));
}