summaryrefslogtreecommitdiffstats
path: root/konsole/konsole/konsole.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'konsole/konsole/konsole.cpp')
-rw-r--r--konsole/konsole/konsole.cpp604
1 files changed, 304 insertions, 300 deletions
diff --git a/konsole/konsole/konsole.cpp b/konsole/konsole/konsole.cpp
index b6d5e1c69..dae5b834c 100644
--- a/konsole/konsole/konsole.cpp
+++ b/konsole/konsole/konsole.cpp
@@ -266,6 +266,7 @@ Konsole::Konsole(const char* name, int histon, bool menubaron, bool tabbaron, bo
,b_installBitmapFonts(false)
,b_framevis(true)
,b_metaAsAlt(false)
+,b_realTransparency(false)
,b_fullscreen(false)
,m_menuCreated(false)
,b_warnQuit(false)
@@ -289,16 +290,16 @@ Konsole::Konsole(const char* name, int histon, bool menubaron, bool tabbaron, bo
,m_filterData(0)
{
isRestored = b_inRestore;
- connect( &m_closeTimeout, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotCouldNotClose()));
+ connect( &m_closeTimeout, TQ_SIGNAL(timeout()), this, TQ_SLOT(slotCouldNotClose()));
no2command.setAutoDelete(true);
menubar = menuBar();
TDEAcceleratorManager::setNoAccel( menubar );
- sessionNumberMapper = new TQSignalMapper( TQT_TQOBJECT(this) );
- connect( sessionNumberMapper, TQT_SIGNAL( mapped( int ) ),
- this, TQT_SLOT( newSessionTabbar( int ) ) );
+ sessionNumberMapper = new TQSignalMapper( this );
+ connect( sessionNumberMapper, TQ_SIGNAL( mapped( int ) ),
+ this, TQ_SLOT( newSessionTabbar( int ) ) );
colors = new ColorSchemaList();
colors->checkSchemas();
@@ -358,14 +359,9 @@ Konsole::Konsole(const char* name, int histon, bool menubaron, bool tabbaron, bo
if (te) te->setScrollbarLocation(TEWidget::SCRNONE);
}
-// connect(kapp, TQT_SIGNAL(tdedisplayFontChanged()), this, TQT_SLOT(slotFontChanged()));
+// connect(kapp, TQ_SIGNAL(tdedisplayFontChanged()), this, TQ_SLOT(slotFontChanged()));
kapp->dcopClient()->setDefaultObject( "konsole" );
-
- // Signal that we want to be transparent to the desktop, not to windows behind us...
- Atom kde_wm_transparent_to_desktop;
- kde_wm_transparent_to_desktop = XInternAtom(tqt_xdisplay(), "_TDE_TRANSPARENT_TO_DESKTOP", False);
- XChangeProperty(tqt_xdisplay(), winId(), kde_wm_transparent_to_desktop, XA_INTEGER, 32, PropModeReplace, (unsigned char *) "TRUE", 1L);
}
@@ -480,29 +476,29 @@ void Konsole::makeGUI()
if (m_menuCreated) return;
if (m_tabbarSessionsCommands)
- disconnect(m_tabbarSessionsCommands,TQT_SIGNAL(aboutToShow()),this,TQT_SLOT(makeGUI()));
- disconnect(m_session,TQT_SIGNAL(aboutToShow()),this,TQT_SLOT(makeGUI()));
+ disconnect(m_tabbarSessionsCommands,TQ_SIGNAL(aboutToShow()),this,TQ_SLOT(makeGUI()));
+ disconnect(m_session,TQ_SIGNAL(aboutToShow()),this,TQ_SLOT(makeGUI()));
if (m_options)
- disconnect(m_options,TQT_SIGNAL(aboutToShow()),this,TQT_SLOT(makeGUI()));
+ disconnect(m_options,TQ_SIGNAL(aboutToShow()),this,TQ_SLOT(makeGUI()));
if (m_help)
- disconnect(m_help,TQT_SIGNAL(aboutToShow()),this,TQT_SLOT(makeGUI()));
+ disconnect(m_help,TQ_SIGNAL(aboutToShow()),this,TQ_SLOT(makeGUI()));
if (m_rightButton)
- disconnect(m_rightButton,TQT_SIGNAL(aboutToShow()),this,TQT_SLOT(makeGUI()));
- disconnect(m_edit,TQT_SIGNAL(aboutToShow()),this,TQT_SLOT(makeGUI()));
- disconnect(m_view,TQT_SIGNAL(aboutToShow()),this,TQT_SLOT(makeGUI()));
+ disconnect(m_rightButton,TQ_SIGNAL(aboutToShow()),this,TQ_SLOT(makeGUI()));
+ disconnect(m_edit,TQ_SIGNAL(aboutToShow()),this,TQ_SLOT(makeGUI()));
+ disconnect(m_view,TQ_SIGNAL(aboutToShow()),this,TQ_SLOT(makeGUI()));
if (m_bookmarks)
- disconnect(m_bookmarks,TQT_SIGNAL(aboutToShow()),this,TQT_SLOT(makeGUI()));
+ disconnect(m_bookmarks,TQ_SIGNAL(aboutToShow()),this,TQ_SLOT(makeGUI()));
if (m_bookmarksSession)
- disconnect(m_bookmarksSession,TQT_SIGNAL(aboutToShow()),this,TQT_SLOT(makeGUI()));
+ disconnect(m_bookmarksSession,TQ_SIGNAL(aboutToShow()),this,TQ_SLOT(makeGUI()));
if (m_tabbarSessionsCommands)
- connect(m_tabbarSessionsCommands,TQT_SIGNAL(aboutToShow()),this,TQT_SLOT(loadScreenSessions()));
- connect(m_session,TQT_SIGNAL(aboutToShow()),this,TQT_SLOT(loadScreenSessions()));
+ connect(m_tabbarSessionsCommands,TQ_SIGNAL(aboutToShow()),this,TQ_SLOT(loadScreenSessions()));
+ connect(m_session,TQ_SIGNAL(aboutToShow()),this,TQ_SLOT(loadScreenSessions()));
m_menuCreated=true;
// Remove the empty separator Qt inserts if the menu is empty on popup,
// not sure if this will be "fixed" in Qt, for now use this hack (malte)
if(!(isRestored)) {
- if (sender() && sender()->inherits(TQPOPUPMENU_OBJECT_NAME_STRING) &&
+ if (sender() && sender()->inherits("TQPopupMenu") &&
static_cast<const TQPopupMenu *>(sender())->count() == 1)
const_cast<TQPopupMenu *>(static_cast<const TQPopupMenu *>(sender()))->removeItemAt(0);
}
@@ -521,7 +517,7 @@ void Konsole::makeGUI()
m_signals->insertItem( i18n( "&Kill Task" ) + " (KILL)", SIGKILL);
m_signals->insertItem( i18n( "User Signal &1") + " (USR1)", SIGUSR1);
m_signals->insertItem( i18n( "User Signal &2") + " (USR2)", SIGUSR2);
- connect(m_signals, TQT_SIGNAL(activated(int)), TQT_SLOT(sendSignal(int)));
+ connect(m_signals, TQ_SIGNAL(activated(int)), TQ_SLOT(sendSignal(int)));
TDEAcceleratorManager::manage( m_signals );
}
@@ -575,28 +571,28 @@ void Konsole::makeGUI()
//bookmarks menu
if (bookmarkHandler)
- connect( bookmarkHandler, TQT_SIGNAL( openURL( const TQString&, const TQString& )),
- TQT_SLOT( enterURL( const TQString&, const TQString& )));
+ connect( bookmarkHandler, TQ_SIGNAL( openURL( const TQString&, const TQString& )),
+ TQ_SLOT( enterURL( const TQString&, const TQString& )));
if (bookmarkHandlerSession)
- connect( bookmarkHandlerSession, TQT_SIGNAL( openURL( const TQString&, const TQString& )),
- TQT_SLOT( newSession( const TQString&, const TQString& )));
+ connect( bookmarkHandlerSession, TQ_SIGNAL( openURL( const TQString&, const TQString& )),
+ TQ_SLOT( newSession( const TQString&, const TQString& )));
if (m_bookmarks)
- connect(m_bookmarks, TQT_SIGNAL(aboutToShow()), TQT_SLOT(bookmarks_menu_check()));
+ connect(m_bookmarks, TQ_SIGNAL(aboutToShow()), TQ_SLOT(bookmarks_menu_check()));
if (m_bookmarksSession)
- connect(m_bookmarksSession, TQT_SIGNAL(aboutToShow()), TQT_SLOT(bookmarks_menu_check()));
+ connect(m_bookmarksSession, TQ_SIGNAL(aboutToShow()), TQ_SLOT(bookmarks_menu_check()));
// Schema Options Menu -----------------------------------------------------
m_schema = new TDEPopupMenu(this);
m_schema->setCheckable(true);
TDEAcceleratorManager::manage( m_schema );
- connect(m_schema, TQT_SIGNAL(activated(int)), TQT_SLOT(schema_menu_activated(int)));
- connect(m_schema, TQT_SIGNAL(aboutToShow()), TQT_SLOT(schema_menu_check()));
+ connect(m_schema, TQ_SIGNAL(activated(int)), TQ_SLOT(schema_menu_activated(int)));
+ connect(m_schema, TQ_SIGNAL(aboutToShow()), TQ_SLOT(schema_menu_check()));
// Keyboard Options Menu ---------------------------------------------------
m_keytab = new TDEPopupMenu(this);
m_keytab->setCheckable(true);
TDEAcceleratorManager::manage( m_keytab );
- connect(m_keytab, TQT_SIGNAL(activated(int)), TQT_SLOT(keytab_menu_activated(int)));
+ connect(m_keytab, TQ_SIGNAL(activated(int)), TQ_SLOT(keytab_menu_activated(int)));
//options menu
if (m_options)
@@ -605,16 +601,16 @@ void Konsole::makeGUI()
showMenubar->plug ( m_options );
// Tabbar
- selectTabbar = new TDESelectAction(i18n("&Tab Bar"), 0, TQT_TQOBJECT(this),
- TQT_SLOT(slotSelectTabbar()), actions, "tabbar" );
+ selectTabbar = new TDESelectAction(i18n("&Tab Bar"), 0, this,
+ TQ_SLOT(slotSelectTabbar()), actions, "tabbar" );
TQStringList tabbaritems;
tabbaritems << i18n("&Hide") << i18n("&Top") << i18n("&Bottom");
selectTabbar->setItems(tabbaritems);
selectTabbar->plug(m_options);
// Scrollbar
- selectScrollbar = new TDESelectAction(i18n("Sc&rollbar"), 0, TQT_TQOBJECT(this),
- TQT_SLOT(slotSelectScrollbar()), actions, "scrollbar" );
+ selectScrollbar = new TDESelectAction(i18n("Sc&rollbar"), 0, this,
+ TQ_SLOT(slotSelectScrollbar()), actions, "scrollbar" );
TQStringList scrollitems;
scrollitems << i18n("&Hide") << i18n("&Left") << i18n("&Right");
selectScrollbar->setItems(scrollitems);
@@ -629,8 +625,8 @@ void Konsole::makeGUI()
}
// Select Bell
- selectBell = new TDESelectAction(i18n("&Bell"), SmallIconSet( "bell"), 0 , TQT_TQOBJECT(this),
- TQT_SLOT(slotSelectBell()), actions, "bell");
+ selectBell = new TDESelectAction(i18n("&Bell"), SmallIconSet( "bell"), 0 , this,
+ TQ_SLOT(slotSelectBell()), actions, "bell");
TQStringList bellitems;
bellitems << i18n("System &Bell")
<< i18n("System &Notification")
@@ -644,28 +640,28 @@ void Konsole::makeGUI()
SmallIconSet( "text" ),
actions, 0L );
m_fontsizes->insert( new TDEAction( i18n( "&Enlarge Font" ),
- SmallIconSet( "fontsizeup" ), 0, TQT_TQOBJECT(this),
- TQT_SLOT( biggerFont() ), actions,
+ SmallIconSet( "fontsizeup" ), 0, this,
+ TQ_SLOT( biggerFont() ), actions,
"enlarge_font" ) );
m_fontsizes->insert( new TDEAction( i18n( "&Shrink Font" ),
- SmallIconSet( "fontsizedown" ), 0, TQT_TQOBJECT(this),
- TQT_SLOT( smallerFont() ), actions,
+ SmallIconSet( "fontsizedown" ), 0, this,
+ TQ_SLOT( smallerFont() ), actions,
"shrink_font" ) );
m_fontsizes->insert( new TDEAction( i18n( "Se&lect..." ),
- SmallIconSet( "font-x-generic" ), 0, TQT_TQOBJECT(this),
- TQT_SLOT( slotSelectFont() ), actions,
+ SmallIconSet( "font-x-generic" ), 0, this,
+ TQ_SLOT( slotSelectFont() ), actions,
"select_font" ) );
if ( b_installBitmapFonts )
{
m_fontsizes->insert( new TDEAction( i18n( "&Install Bitmap..." ),
- SmallIconSet( "font-x-generic" ), 0, TQT_TQOBJECT(this),
- TQT_SLOT( slotInstallBitmapFonts() ), actions,
+ SmallIconSet( "font-x-generic" ), 0, this,
+ TQ_SLOT( slotInstallBitmapFonts() ), actions,
"install_fonts" ) );
}
m_fontsizes->plug(m_options);
// encoding menu, start with default checked !
- selectSetEncoding = new TDESelectAction( i18n( "&Encoding" ), SmallIconSet( "charset" ), 0, TQT_TQOBJECT(this), TQT_SLOT(slotSetEncoding()), actions, "set_encoding" );
+ selectSetEncoding = new TDESelectAction( i18n( "&Encoding" ), SmallIconSet( "charset" ), 0, this, TQ_SLOT(slotSetEncoding()), actions, "set_encoding" );
TQStringList list = TDEGlobal::charsets()->descriptiveEncodingNames();
list.prepend( i18n( "Default" ) );
selectSetEncoding->setItems(list);
@@ -682,8 +678,8 @@ void Konsole::makeGUI()
// Select size
if (!b_fixedSize)
{
- selectSize = new KonsoleFontSelectAction(i18n("S&ize"), 0, TQT_TQOBJECT(this),
- TQT_SLOT(slotSelectSize()), actions, "size");
+ selectSize = new KonsoleFontSelectAction(i18n("S&ize"), 0, this,
+ TQ_SLOT(slotSelectSize()), actions, "size");
TQStringList sizeitems;
sizeitems << i18n("40x15 (&Small)")
<< i18n("80x24 (&VT100)")
@@ -696,14 +692,14 @@ void Konsole::makeGUI()
selectSize->plug(m_options);
}
- TDEAction *historyType = new TDEAction(i18n("Hist&ory..."), "history", 0, TQT_TQOBJECT(this),
- TQT_SLOT(slotHistoryType()), actions, "history");
+ TDEAction *historyType = new TDEAction(i18n("Hist&ory..."), "history", 0, this,
+ TQ_SLOT(slotHistoryType()), actions, "history");
historyType->plug(m_options);
m_options->insertSeparator();
- TDEAction *save_settings = new TDEAction(i18n("&Save as Default"), "document-save", 0, TQT_TQOBJECT(this),
- TQT_SLOT(slotSaveSettings()), actions, "save_default");
+ TDEAction *save_settings = new TDEAction(i18n("&Save as Default"), "document-save", 0, this,
+ TQ_SLOT(slotSaveSettings()), actions, "save_default");
save_settings->plug(m_options);
m_options->insertSeparator();
@@ -712,9 +708,9 @@ void Konsole::makeGUI()
m_options->insertSeparator();
- KStdAction::configureNotifications(TQT_TQOBJECT(this), TQT_SLOT(slotConfigureNotifications()), actionCollection())->plug(m_options);
- KStdAction::keyBindings(TQT_TQOBJECT(this), TQT_SLOT(slotConfigureKeys()), actionCollection())->plug(m_options);
- TDEAction *configure = KStdAction::preferences(TQT_TQOBJECT(this), TQT_SLOT(slotConfigure()), actions);
+ KStdAction::configureNotifications(this, TQ_SLOT(slotConfigureNotifications()), actionCollection())->plug(m_options);
+ KStdAction::keyBindings(this, TQ_SLOT(slotConfigureKeys()), actionCollection())->plug(m_options);
+ TDEAction *configure = KStdAction::preferences(this, TQ_SLOT(slotConfigure()), actions);
configure->plug(m_options);
if (TDEGlobalSettings::insertTearOffHandle())
@@ -726,21 +722,21 @@ void Konsole::makeGUI()
{
m_help->insertSeparator(1);
m_help->insertItem(SmallIcon( "idea" ), i18n("&Tip of the Day"),
- this, TQT_SLOT(showTip()), 0, -1, 2);
+ this, TQ_SLOT(showTip()), 0, -1, 2);
}
//the different session menus
buildSessionMenus();
- connect(m_session, TQT_SIGNAL(activated(int)), TQT_SLOT(newSession(int)));
+ connect(m_session, TQ_SIGNAL(activated(int)), TQ_SLOT(newSession(int)));
// Right mouse button menu
if (m_rightButton)
{
updateRMBMenu(); // show menubar / exit fullscreen
- TDEAction* selectionEnd = new TDEAction(i18n("Set Selection End"), 0, TQT_TQOBJECT(this),
- TQT_SLOT(slotSetSelectionEnd()), actions, "selection_end");
+ TDEAction* selectionEnd = new TDEAction(i18n("Set Selection End"), 0, this,
+ TQ_SLOT(slotSetSelectionEnd()), actions, "selection_end");
selectionEnd->plug(m_rightButton);
m_copyClipboard->plug(m_rightButton);
@@ -748,7 +744,7 @@ void Konsole::makeGUI()
m_openSelection = new TDEPopupMenu(this);
m_rightButton->insertItem( i18n("&Open.."), m_openSelection );
- connect(m_openSelection, TQT_SIGNAL(aboutToShow()), TQT_SLOT(slotOpenSelection()));
+ connect(m_openSelection, TQ_SIGNAL(aboutToShow()), TQ_SLOT(slotOpenSelection()));
if (m_signals)
m_rightButton->insertItem(i18n("&Send Signal"), m_signals);
@@ -825,57 +821,58 @@ void Konsole::makeGUI()
if (!m_detachSession)
{
- m_detachSession = new TDEAction(i18n("&Detach Session"), SmallIconSet("tab_breakoff"), 0, TQT_TQOBJECT(this),
- TQT_SLOT(slotDetachSession()), m_shortcuts, "detach_session");
+ m_detachSession = new TDEAction(i18n("&Detach Session"), SmallIconSet("tab_breakoff"), 0, this,
+ TQ_SLOT(slotDetachSession()), m_shortcuts, "detach_session");
}
m_detachSession->plug(m_tabPopupMenu);
- m_tabPopupMenu->insertItem( i18n("&Rename Session..."), TQT_TQOBJECT(this),
- TQT_SLOT(slotTabRenameSession()) );
+ m_tabPopupMenu->insertItem( i18n("&Rename Session..."), this,
+ TQ_SLOT(slotTabRenameSession()) );
m_tabPopupMenu->insertSeparator();
m_tabMonitorActivity = new TDEToggleAction ( i18n( "Monitor for &Activity" ),
- SmallIconSet("activity"), 0, TQT_TQOBJECT(this), TQT_SLOT( slotTabToggleMonitor() ), TQT_TQOBJECT(this) );
+ SmallIconSet("activity"), 0, this, TQ_SLOT( slotTabToggleMonitor() ), this );
m_tabMonitorActivity->setCheckedState( KGuiItem( i18n( "Stop Monitoring for &Activity" ) ) );
m_tabMonitorActivity->plug(m_tabPopupMenu);
m_tabMonitorSilence = new TDEToggleAction ( i18n( "Monitor for &Silence" ),
- SmallIconSet("silence"), 0, TQT_TQOBJECT(this), TQT_SLOT( slotTabToggleMonitor() ), TQT_TQOBJECT(this) );
+ SmallIconSet("silence"), 0, this, TQ_SLOT( slotTabToggleMonitor() ), this );
m_tabMonitorSilence->setCheckedState( KGuiItem( i18n( "Stop Monitoring for &Silence" ) ) );
m_tabMonitorSilence->plug(m_tabPopupMenu);
- m_tabMasterMode = new TDEToggleAction ( i18n( "Send &Input to All Sessions" ), "remote", 0, TQT_TQOBJECT(this),
- TQT_SLOT( slotTabToggleMasterMode() ), TQT_TQOBJECT(this));
+ m_tabMasterMode = new TDEToggleAction ( i18n( "Send &Input to All Sessions" ), "remote", 0, this,
+ TQ_SLOT( slotTabToggleMasterMode() ), this);
m_tabMasterMode->plug(m_tabPopupMenu);
m_tabPopupMenu->insertSeparator();
if (!m_moveSessionLeft)
{
m_moveSessionLeft = new TDEAction(i18n("&Move Session Left"), TQApplication::reverseLayout() ? "forward" : "back",
- TQApplication::reverseLayout() ? Qt::CTRL+Qt::SHIFT+Qt::Key_Right : Qt::CTRL+Qt::SHIFT+Qt::Key_Left, TQT_TQOBJECT(this),
- TQT_SLOT(moveSessionLeft()), m_shortcuts, "move_session_left");
+ TQApplication::reverseLayout() ? TQt::CTRL+TQt::SHIFT+TQt::Key_Right : TQt::CTRL+TQt::SHIFT+TQt::Key_Left, this,
+ TQ_SLOT(moveSessionLeft()), m_shortcuts, "move_session_left");
}
m_moveSessionLeft->plug(m_tabPopupMenu);
if (!m_moveSessionRight)
{
m_moveSessionRight = new TDEAction(i18n("M&ove Session Right"), TQApplication::reverseLayout() ? "back" : "forward",
- TQApplication::reverseLayout() ? Qt::CTRL+Qt::SHIFT+Qt::Key_Left : Qt::CTRL+Qt::SHIFT+Qt::Key_Right, TQT_TQOBJECT(this),
- TQT_SLOT(moveSessionRight()), m_shortcuts, "move_session_right");
+ TQApplication::reverseLayout() ? TQt::CTRL+TQt::SHIFT+TQt::Key_Left : TQt::CTRL+TQt::SHIFT+TQt::Key_Right, this,
+ TQ_SLOT(moveSessionRight()), m_shortcuts, "move_session_right");
}
m_moveSessionRight->plug(m_tabPopupMenu);
m_tabPopupMenu->insertSeparator();
- m_tabPopupMenu->insertItem( SmallIconSet("colors"), i18n("Select &Tab Color..."), TQT_TQOBJECT(this), TQT_SLOT(slotTabSelectColor()) );
+ m_tabPopupMenu->insertItem( SmallIconSet("colors"), i18n("Select &Tab Color..."), this, TQ_SLOT(slotTabSelectColor()) );
+ m_tabPopupMenu->insertItem( i18n("Reset Tab Color"), this, TQ_SLOT(slotTabResetColor()) );
m_tabPopupMenu->insertSeparator();
m_tabPopupTabsMenu = new TDEPopupMenu( m_tabPopupMenu );
m_tabPopupMenu->insertItem( i18n("Switch to Tab" ), m_tabPopupTabsMenu );
- connect( m_tabPopupTabsMenu, TQT_SIGNAL( activated ( int ) ),
- TQT_SLOT( activateSession( int ) ) );
+ connect( m_tabPopupTabsMenu, TQ_SIGNAL( activated ( int ) ),
+ TQ_SLOT( activateSession( int ) ) );
m_tabPopupMenu->insertSeparator();
- m_tabPopupMenu->insertItem( SmallIcon("window-close"), i18n("C&lose Session"), TQT_TQOBJECT(this),
- TQT_SLOT(slotTabCloseSession()) );
+ m_tabPopupMenu->insertItem( SmallIcon("window-close"), i18n("C&lose Session"), this,
+ TQ_SLOT(slotTabCloseSession()) );
if (m_options) {
// Fill tab bar context menu
@@ -883,23 +880,23 @@ void Konsole::makeGUI()
TDEAcceleratorManager::manage( m_tabbarPopupMenu );
selectTabbar->plug(m_tabbarPopupMenu);
- TDESelectAction *viewOptions = new TDESelectAction(TQT_TQOBJECT(this));
+ TDESelectAction *viewOptions = new TDESelectAction(this);
viewOptions->setText(i18n("Tab &Options"));
TQStringList options;
options << i18n("&Text && Icons") << i18n("Text &Only") << i18n("&Icons Only");
viewOptions->setItems(options);
viewOptions->setCurrentItem(m_tabViewMode);
viewOptions->plug(m_tabbarPopupMenu);
- connect(viewOptions, TQT_SIGNAL(activated(int)), TQT_TQOBJECT(this), TQT_SLOT(slotTabSetViewOptions(int)));
+ connect(viewOptions, TQ_SIGNAL(activated(int)), this, TQ_SLOT(slotTabSetViewOptions(int)));
slotTabSetViewOptions(m_tabViewMode);
- TDEToggleAction *dynamicTabHideOption = new TDEToggleAction ( i18n( "&Dynamic Hide" ), 0, TQT_TQOBJECT(this),
- TQT_SLOT( slotTabbarToggleDynamicHide() ), TQT_TQOBJECT(this));
+ TDEToggleAction *dynamicTabHideOption = new TDEToggleAction ( i18n( "&Dynamic Hide" ), 0, this,
+ TQ_SLOT( slotTabbarToggleDynamicHide() ), this);
dynamicTabHideOption->setChecked(b_dynamicTabHide);
dynamicTabHideOption->plug(m_tabbarPopupMenu);
TDEToggleAction *m_autoResizeTabs = new TDEToggleAction( i18n("&Auto Resize Tabs"),
- 0, TQT_TQOBJECT(this), TQT_SLOT( slotToggleAutoResizeTabs() ), TQT_TQOBJECT(this));
+ 0, this, TQ_SLOT( slotToggleAutoResizeTabs() ), this);
m_autoResizeTabs->setChecked(b_autoResizeTabs);
m_autoResizeTabs->plug(m_tabbarPopupMenu);
}
@@ -955,23 +952,23 @@ void Konsole::makeTabWidget()
TDEAcceleratorManager::setNoAccel( tabwidget );
- connect(tabwidget, TQT_SIGNAL(movedTab(int,int)), TQT_SLOT(slotMovedTab(int,int)));
- connect(tabwidget, TQT_SIGNAL(mouseDoubleClick(TQWidget*)), TQT_SLOT(slotRenameSession()));
- connect(tabwidget, TQT_SIGNAL(currentChanged(TQWidget*)), TQT_SLOT(activateSession(TQWidget*)));
- connect(tabwidget, TQT_SIGNAL(contextMenu(TQWidget*, const TQPoint &)),
- TQT_SLOT(slotTabContextMenu(TQWidget*, const TQPoint &)));
- connect(tabwidget, TQT_SIGNAL(contextMenu(const TQPoint &)),
- TQT_SLOT(slotTabbarContextMenu(const TQPoint &)));
+ connect(tabwidget, TQ_SIGNAL(movedTab(int,int)), TQ_SLOT(slotMovedTab(int,int)));
+ connect(tabwidget, TQ_SIGNAL(mouseDoubleClick(TQWidget*)), TQ_SLOT(slotRenameSession()));
+ connect(tabwidget, TQ_SIGNAL(currentChanged(TQWidget*)), TQ_SLOT(activateSession(TQWidget*)));
+ connect(tabwidget, TQ_SIGNAL(contextMenu(TQWidget*, const TQPoint &)),
+ TQ_SLOT(slotTabContextMenu(TQWidget*, const TQPoint &)));
+ connect(tabwidget, TQ_SIGNAL(contextMenu(const TQPoint &)),
+ TQ_SLOT(slotTabbarContextMenu(const TQPoint &)));
if (kapp->authorize("shell_access")) {
- connect(tabwidget, TQT_SIGNAL(mouseDoubleClick()), TQT_SLOT(newSession()));
+ connect(tabwidget, TQ_SIGNAL(mouseDoubleClick()), TQ_SLOT(newSession()));
m_newSessionButton = new TQToolButton( tabwidget );
TQToolTip::add(m_newSessionButton,i18n("Click for new standard session\nClick and hold for session menu"));
m_newSessionButton->setIconSet( SmallIcon( "tab_new" ) );
m_newSessionButton->adjustSize();
m_newSessionButton->setPopup( m_tabbarSessionsCommands );
- connect(m_newSessionButton, TQT_SIGNAL(clicked()), TQT_SLOT(newSession()));
+ connect(m_newSessionButton, TQ_SIGNAL(clicked()), TQ_SLOT(newSession()));
tabwidget->setCornerWidget( m_newSessionButton, BottomLeft );
m_newSessionButton->installEventFilter(this);
@@ -980,7 +977,7 @@ void Konsole::makeTabWidget()
m_removeSessionButton->setIconSet( SmallIconSet( "tab_remove" ) );
m_removeSessionButton->adjustSize();
m_removeSessionButton->setEnabled(false);
- connect(m_removeSessionButton, TQT_SIGNAL(clicked()), TQT_SLOT(confirmCloseCurrentSession()));
+ connect(m_removeSessionButton, TQ_SIGNAL(clicked()), TQ_SLOT(confirmCloseCurrentSession()));
tabwidget->setCornerWidget( m_removeSessionButton, BottomRight );
}
@@ -988,18 +985,18 @@ void Konsole::makeTabWidget()
bool Konsole::eventFilter( TQObject *o, TQEvent *ev )
{
- if (TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(m_newSessionButton))
+ if (o == m_newSessionButton)
{
// Popup the menu when the left mousebutton is pressed and the mouse
// is moved by a small distance.
if (ev->type() == TQEvent::MouseButtonPress)
{
- TQMouseEvent* mev = TQT_TQMOUSEEVENT(ev);
+ TQMouseEvent* mev = static_cast<TQMouseEvent*>(ev);
m_newSessionButtonMousePressPos = mev->pos();
}
else if (ev->type() == TQEvent::MouseMove)
{
- TQMouseEvent* mev = TQT_TQMOUSEEVENT(ev);
+ TQMouseEvent* mev = static_cast<TQMouseEvent*>(ev);
if ((mev->pos() - m_newSessionButtonMousePressPos).manhattanLength()
> TDEGlobalSettings::dndEventDelay())
{
@@ -1009,7 +1006,7 @@ bool Konsole::eventFilter( TQObject *o, TQEvent *ev )
}
else if (ev->type() == TQEvent::ContextMenu)
{
- TQMouseEvent* mev = TQT_TQMOUSEEVENT(ev);
+ TQMouseEvent* mev = static_cast<TQMouseEvent*>(ev);
slotTabbarContextMenu(mev->globalPos());
return true;
}
@@ -1022,7 +1019,7 @@ void Konsole::makeBasicGUI()
if (kapp->authorize("shell_access")) {
m_tabbarSessionsCommands = new TDEPopupMenu( this );
TDEAcceleratorManager::manage( m_tabbarSessionsCommands );
- connect(m_tabbarSessionsCommands, TQT_SIGNAL(activated(int)), TQT_SLOT(newSessionTabbar(int)));
+ connect(m_tabbarSessionsCommands, TQ_SIGNAL(activated(int)), TQ_SLOT(newSessionTabbar(int)));
}
m_session = new TDEPopupMenu(this);
@@ -1065,20 +1062,20 @@ void Konsole::makeBasicGUI()
// programs.
if (m_tabbarSessionsCommands)
- connect(m_tabbarSessionsCommands,TQT_SIGNAL(aboutToShow()),this,TQT_SLOT(makeGUI()));
- connect(m_session,TQT_SIGNAL(aboutToShow()),this,TQT_SLOT(makeGUI()));
+ connect(m_tabbarSessionsCommands,TQ_SIGNAL(aboutToShow()),this,TQ_SLOT(makeGUI()));
+ connect(m_session,TQ_SIGNAL(aboutToShow()),this,TQ_SLOT(makeGUI()));
if (m_options)
- connect(m_options,TQT_SIGNAL(aboutToShow()),this,TQT_SLOT(makeGUI()));
+ connect(m_options,TQ_SIGNAL(aboutToShow()),this,TQ_SLOT(makeGUI()));
if (m_help)
- connect(m_help,TQT_SIGNAL(aboutToShow()),this,TQT_SLOT(makeGUI()));
+ connect(m_help,TQ_SIGNAL(aboutToShow()),this,TQ_SLOT(makeGUI()));
if (m_rightButton)
- connect(m_rightButton,TQT_SIGNAL(aboutToShow()),this,TQT_SLOT(makeGUI()));
- connect(m_edit,TQT_SIGNAL(aboutToShow()),this,TQT_SLOT(makeGUI()));
- connect(m_view,TQT_SIGNAL(aboutToShow()),this,TQT_SLOT(makeGUI()));
+ connect(m_rightButton,TQ_SIGNAL(aboutToShow()),this,TQ_SLOT(makeGUI()));
+ connect(m_edit,TQ_SIGNAL(aboutToShow()),this,TQ_SLOT(makeGUI()));
+ connect(m_view,TQ_SIGNAL(aboutToShow()),this,TQ_SLOT(makeGUI()));
if (m_bookmarks)
- connect(m_bookmarks,TQT_SIGNAL(aboutToShow()),this,TQT_SLOT(makeGUI()));
+ connect(m_bookmarks,TQ_SIGNAL(aboutToShow()),this,TQ_SLOT(makeGUI()));
if (m_bookmarksSession)
- connect(m_bookmarksSession,TQT_SIGNAL(aboutToShow()),this,TQT_SLOT(makeGUI()));
+ connect(m_bookmarksSession,TQ_SIGNAL(aboutToShow()),this,TQ_SLOT(makeGUI()));
m_session_id=menubar->insertItem(m_session_string , m_session);
m_edit_id=menubar->insertItem(m_edit_string, m_edit);
@@ -1092,79 +1089,79 @@ void Konsole::makeBasicGUI()
m_shortcuts = new TDEActionCollection(this);
- m_copyClipboard = new TDEAction(i18n("&Copy"), "edit-copy", 0, TQT_TQOBJECT(this),
- TQT_SLOT(slotCopyClipboard()), m_shortcuts, "edit_copy");
- m_pasteClipboard = new TDEAction(i18n("&Paste"), "edit-paste", Qt::SHIFT+Qt::Key_Insert, TQT_TQOBJECT(this),
- TQT_SLOT(slotPasteClipboard()), m_shortcuts, "edit_paste");
- m_pasteSelection = new TDEAction(i18n("Paste Selection"), Qt::CTRL+Qt::SHIFT+Qt::Key_Insert, TQT_TQOBJECT(this),
- TQT_SLOT(slotPasteSelection()), m_shortcuts, "pasteselection");
-
- m_clearTerminal = new TDEAction(i18n("C&lear Terminal"), 0, TQT_TQOBJECT(this),
- TQT_SLOT(slotClearTerminal()), m_shortcuts, "clear_terminal");
- m_resetClearTerminal = new TDEAction(i18n("&Reset && Clear Terminal"), 0, TQT_TQOBJECT(this),
- TQT_SLOT(slotResetClearTerminal()), m_shortcuts, "reset_clear_terminal");
- m_findHistory = new TDEAction(i18n("&Find in History..."), "edit-find", 0, TQT_TQOBJECT(this),
- TQT_SLOT(slotFindHistory()), m_shortcuts, "find_history");
+ m_copyClipboard = new TDEAction(i18n("&Copy"), "edit-copy", 0, this,
+ TQ_SLOT(slotCopyClipboard()), m_shortcuts, "edit_copy");
+ m_pasteClipboard = new TDEAction(i18n("&Paste"), "edit-paste", TQt::SHIFT+TQt::Key_Insert, this,
+ TQ_SLOT(slotPasteClipboard()), m_shortcuts, "edit_paste");
+ m_pasteSelection = new TDEAction(i18n("Paste Selection"), TQt::CTRL+TQt::SHIFT+TQt::Key_Insert, this,
+ TQ_SLOT(slotPasteSelection()), m_shortcuts, "pasteselection");
+
+ m_clearTerminal = new TDEAction(i18n("C&lear Terminal"), 0, this,
+ TQ_SLOT(slotClearTerminal()), m_shortcuts, "clear_terminal");
+ m_resetClearTerminal = new TDEAction(i18n("&Reset && Clear Terminal"), 0, this,
+ TQ_SLOT(slotResetClearTerminal()), m_shortcuts, "reset_clear_terminal");
+ m_findHistory = new TDEAction(i18n("&Find in History..."), "edit-find", 0, this,
+ TQ_SLOT(slotFindHistory()), m_shortcuts, "find_history");
m_findHistory->setEnabled(b_histEnabled);
- m_findNext = new TDEAction(i18n("Find &Next"), "go-next", 0, TQT_TQOBJECT(this),
- TQT_SLOT(slotFindNext()), m_shortcuts, "find_next");
+ m_findNext = new TDEAction(i18n("Find &Next"), "go-next", 0, this,
+ TQ_SLOT(slotFindNext()), m_shortcuts, "find_next");
m_findNext->setEnabled(b_histEnabled);
- m_findPrevious = new TDEAction(i18n("Find Pre&vious"), "go-previous", 0, TQT_TQOBJECT(this),
- TQT_SLOT(slotFindPrevious()), m_shortcuts, "find_previous");
+ m_findPrevious = new TDEAction(i18n("Find Pre&vious"), "go-previous", 0, this,
+ TQ_SLOT(slotFindPrevious()), m_shortcuts, "find_previous");
m_findPrevious->setEnabled( b_histEnabled );
- m_saveHistory = new TDEAction(i18n("S&ave History As..."), "document-save-as", 0, TQT_TQOBJECT(this),
- TQT_SLOT(slotSaveHistory()), m_shortcuts, "save_history");
+ m_saveHistory = new TDEAction(i18n("S&ave History As..."), "document-save-as", 0, this,
+ TQ_SLOT(slotSaveHistory()), m_shortcuts, "save_history");
m_saveHistory->setEnabled(b_histEnabled );
- m_clearHistory = new TDEAction(i18n("Clear &History"), "history_clear", 0, TQT_TQOBJECT(this),
- TQT_SLOT(slotClearHistory()), m_shortcuts, "clear_history");
+ m_clearHistory = new TDEAction(i18n("Clear &History"), "history_clear", 0, this,
+ TQ_SLOT(slotClearHistory()), m_shortcuts, "clear_history");
m_clearHistory->setEnabled(b_histEnabled);
m_clearAllSessionHistories = new TDEAction(i18n("Clear All H&istories"), "history_clear", 0,
- TQT_TQOBJECT(this), TQT_SLOT(slotClearAllSessionHistories()), m_shortcuts, "clear_all_histories");
+ this, TQ_SLOT(slotClearAllSessionHistories()), m_shortcuts, "clear_all_histories");
if (!m_detachSession)
{
- m_detachSession = new TDEAction(i18n("&Detach Session"), SmallIconSet("tab_breakoff"), 0, TQT_TQOBJECT(this),
- TQT_SLOT(slotDetachSession()), m_shortcuts, "detach_session");
+ m_detachSession = new TDEAction(i18n("&Detach Session"), SmallIconSet("tab_breakoff"), 0, this,
+ TQ_SLOT(slotDetachSession()), m_shortcuts, "detach_session");
}
m_detachSession->setEnabled(false);
- m_renameSession = new TDEAction(i18n("&Rename Session..."), Qt::CTRL+Qt::SHIFT+Qt::Key_R, TQT_TQOBJECT(this),
- TQT_SLOT(slotRenameSession()), m_shortcuts, "rename_session");
+ m_renameSession = new TDEAction(i18n("&Rename Session..."), TQt::CTRL+TQt::SHIFT+TQt::Key_R, this,
+ TQ_SLOT(slotRenameSession()), m_shortcuts, "rename_session");
if (kapp->authorizeTDEAction("zmodem_upload"))
m_zmodemUpload = new TDEAction( i18n( "&ZModem Upload..." ),
- Qt::CTRL+Qt::ALT+Qt::Key_U, TQT_TQOBJECT(this),
- TQT_SLOT( slotZModemUpload() ),
+ TQt::CTRL+TQt::ALT+TQt::Key_U, this,
+ TQ_SLOT( slotZModemUpload() ),
m_shortcuts, "zmodem_upload" );
monitorActivity = new TDEToggleAction ( i18n( "Monitor for &Activity" ),
- SmallIconSet("activity"), 0, TQT_TQOBJECT(this),
- TQT_SLOT( slotToggleMonitor() ), m_shortcuts, "monitor_activity" );
+ SmallIconSet("activity"), 0, this,
+ TQ_SLOT( slotToggleMonitor() ), m_shortcuts, "monitor_activity" );
monitorActivity->setCheckedState( KGuiItem( i18n( "Stop Monitoring for &Activity" ) ) );
monitorSilence = new TDEToggleAction ( i18n( "Monitor for &Silence" ),
- SmallIconSet("silence"), 0, TQT_TQOBJECT(this),
- TQT_SLOT( slotToggleMonitor() ), m_shortcuts, "monitor_silence" );
+ SmallIconSet("silence"), 0, this,
+ TQ_SLOT( slotToggleMonitor() ), m_shortcuts, "monitor_silence" );
monitorSilence->setCheckedState( KGuiItem( i18n( "Stop Monitoring for &Silence" ) ) );
- masterMode = new TDEToggleAction ( i18n( "Send &Input to All Sessions" ), "remote", 0, TQT_TQOBJECT(this),
- TQT_SLOT( slotToggleMasterMode() ), m_shortcuts, "send_input_to_all_sessions" );
+ masterMode = new TDEToggleAction ( i18n( "Send &Input to All Sessions" ), "remote", 0, this,
+ TQ_SLOT( slotToggleMasterMode() ), m_shortcuts, "send_input_to_all_sessions" );
- showMenubar = new TDEToggleAction ( i18n( "Show &Menubar" ), "showmenu", Qt::CTRL+Qt::SHIFT+Qt::ALT+Qt::Key_M, TQT_TQOBJECT(this),
- TQT_SLOT( slotToggleMenubar() ), m_shortcuts, "show_menubar" );
+ showMenubar = new TDEToggleAction ( i18n( "Show &Menubar" ), "showmenu", TQt::CTRL+TQt::SHIFT+TQt::ALT+TQt::Key_M, this,
+ TQ_SLOT( slotToggleMenubar() ), m_shortcuts, "show_menubar" );
showMenubar->setCheckedState( KGuiItem( i18n("Hide &Menubar"), "showmenu", TQString::null, TQString::null ) );
m_fullscreen = KStdAction::fullScreen(0, 0, m_shortcuts, this );
- connect( m_fullscreen,TQT_SIGNAL(toggled(bool)), TQT_TQOBJECT(this),TQT_SLOT(updateFullScreen(bool)));
+ connect( m_fullscreen,TQ_SIGNAL(toggled(bool)), this,TQ_SLOT(updateFullScreen(bool)));
m_fullscreen->setChecked(b_fullscreen);
- m_saveProfile = new TDEAction( i18n( "Save Sessions &Profile..." ), SmallIconSet("document-save-as"), 0, TQT_TQOBJECT(this),
- TQT_SLOT( slotSaveSessionsProfile() ), m_shortcuts, "save_sessions_profile" );
+ m_saveProfile = new TDEAction( i18n( "Save Sessions &Profile..." ), SmallIconSet("document-save-as"), 0, this,
+ TQ_SLOT( slotSaveSessionsProfile() ), m_shortcuts, "save_sessions_profile" );
//help menu
if (m_help)
@@ -1172,43 +1169,43 @@ void Konsole::makeBasicGUI()
// Don't steal F1 (handbook) accel (esp. since it not visible in
// "Configure Shortcuts").
- m_closeSession = new TDEAction(i18n("C&lose Session"), "window-close", 0, TQT_TQOBJECT(this),
- TQT_SLOT(confirmCloseCurrentSession()), m_shortcuts, "close_session");
- m_print = new TDEAction(i18n("&Print Screen..."), "document-print", 0, TQT_TQOBJECT(this), TQT_SLOT( slotPrint() ), m_shortcuts, "file_print");
- m_quit = new TDEAction(i18n("&Quit"), "system-log-out", 0, TQT_TQOBJECT(this), TQT_SLOT( close() ), m_shortcuts, "file_quit");
+ m_closeSession = new TDEAction(i18n("C&lose Session"), "window-close", 0, this,
+ TQ_SLOT(confirmCloseCurrentSession()), m_shortcuts, "close_session");
+ m_print = new TDEAction(i18n("&Print Screen..."), "document-print", 0, this, TQ_SLOT( slotPrint() ), m_shortcuts, "file_print");
+ m_quit = new TDEAction(i18n("&Quit"), "system-log-out", 0, this, TQ_SLOT( close() ), m_shortcuts, "file_quit");
- TDEShortcut shortcut(Qt::CTRL+Qt::ALT+Qt::Key_N);
- shortcut.append(TDEShortcut(Qt::CTRL+Qt::SHIFT+Qt::Key_N));
- new TDEAction(i18n("New Session"), shortcut, TQT_TQOBJECT(this), TQT_SLOT(newSession()), m_shortcuts, "new_session");
- new TDEAction(i18n("Activate Menu"), Qt::CTRL+Qt::ALT+Qt::Key_M, TQT_TQOBJECT(this), TQT_SLOT(activateMenu()), m_shortcuts, "activate_menu");
- new TDEAction(i18n("List Sessions"), 0, TQT_TQOBJECT(this), TQT_SLOT(listSessions()), m_shortcuts, "list_sessions");
+ TDEShortcut shortcut(TQt::CTRL+TQt::ALT+TQt::Key_N);
+ shortcut.append(TDEShortcut(TQt::CTRL+TQt::SHIFT+TQt::Key_N));
+ new TDEAction(i18n("New Session"), shortcut, this, TQ_SLOT(newSession()), m_shortcuts, "new_session");
+ new TDEAction(i18n("Activate Menu"), TQt::CTRL+TQt::ALT+TQt::Key_M, this, TQ_SLOT(activateMenu()), m_shortcuts, "activate_menu");
+ new TDEAction(i18n("List Sessions"), 0, this, TQ_SLOT(listSessions()), m_shortcuts, "list_sessions");
if (!m_moveSessionLeft)
{
m_moveSessionLeft = new TDEAction(i18n("&Move Session Left"), TQApplication::reverseLayout() ? "forward" : "back",
- TQApplication::reverseLayout() ? Qt::CTRL+Qt::SHIFT+Qt::Key_Right : Qt::CTRL+Qt::SHIFT+Qt::Key_Left, TQT_TQOBJECT(this),
- TQT_SLOT(moveSessionLeft()), m_shortcuts, "move_session_left");
+ TQApplication::reverseLayout() ? TQt::CTRL+TQt::SHIFT+TQt::Key_Right : TQt::CTRL+TQt::SHIFT+TQt::Key_Left, this,
+ TQ_SLOT(moveSessionLeft()), m_shortcuts, "move_session_left");
}
if (!m_moveSessionRight)
{
m_moveSessionRight = new TDEAction(i18n("M&ove Session Right"), TQApplication::reverseLayout() ? "back" : "forward",
- TQApplication::reverseLayout() ? Qt::CTRL+Qt::SHIFT+Qt::Key_Left : Qt::CTRL+Qt::SHIFT+Qt::Key_Right, TQT_TQOBJECT(this),
- TQT_SLOT(moveSessionRight()), m_shortcuts, "move_session_right");
+ TQApplication::reverseLayout() ? TQt::CTRL+TQt::SHIFT+TQt::Key_Left : TQt::CTRL+TQt::SHIFT+TQt::Key_Right, this,
+ TQ_SLOT(moveSessionRight()), m_shortcuts, "move_session_right");
}
- new TDEAction(i18n("Go to Previous Session"), TQApplication::reverseLayout() ? Qt::SHIFT+Qt::Key_Right : Qt::SHIFT+Qt::Key_Left,
- TQT_TQOBJECT(this), TQT_SLOT(prevSession()), m_shortcuts, "previous_session");
- new TDEAction(i18n("Go to Next Session"), TQApplication::reverseLayout() ? Qt::SHIFT+Qt::Key_Left : Qt::SHIFT+Qt::Key_Right,
- TQT_TQOBJECT(this), TQT_SLOT(nextSession()), m_shortcuts, "next_session");
+ new TDEAction(i18n("Go to Previous Session"), TQApplication::reverseLayout() ? TQt::SHIFT+TQt::Key_Right : TQt::SHIFT+TQt::Key_Left,
+ this, TQ_SLOT(prevSession()), m_shortcuts, "previous_session");
+ new TDEAction(i18n("Go to Next Session"), TQApplication::reverseLayout() ? TQt::SHIFT+TQt::Key_Left : TQt::SHIFT+TQt::Key_Right,
+ this, TQ_SLOT(nextSession()), m_shortcuts, "next_session");
for (int i=1;i<13;i++) { // Due to 12 function keys?
- new TDEAction(i18n("Switch to Session %1").arg(i), 0, TQT_TQOBJECT(this), TQT_SLOT(switchToSession()), m_shortcuts, TQString(TQString().sprintf("switch_to_session_%02d", i)).latin1());
+ new TDEAction(i18n("Switch to Session %1").arg(i), 0, this, TQ_SLOT(switchToSession()), m_shortcuts, TQString(TQString().sprintf("switch_to_session_%02d", i)).latin1());
}
- new TDEAction(i18n("Enlarge Font"), 0, TQT_TQOBJECT(this), TQT_SLOT(biggerFont()), m_shortcuts, "bigger_font");
- new TDEAction(i18n("Shrink Font"), 0, TQT_TQOBJECT(this), TQT_SLOT(smallerFont()), m_shortcuts, "smaller_font");
+ new TDEAction(i18n("Enlarge Font"), 0, this, TQ_SLOT(biggerFont()), m_shortcuts, "bigger_font");
+ new TDEAction(i18n("Shrink Font"), 0, this, TQ_SLOT(smallerFont()), m_shortcuts, "smaller_font");
- new TDEAction(i18n("Toggle Bidi"), Qt::CTRL+Qt::ALT+Qt::Key_B, TQT_TQOBJECT(this), TQT_SLOT(toggleBidi()), m_shortcuts, "toggle_bidi");
+ new TDEAction(i18n("Toggle Bidi"), TQt::CTRL+TQt::ALT+TQt::Key_B, this, TQ_SLOT(toggleBidi()), m_shortcuts, "toggle_bidi");
// Should we load all *.desktop files now? Required for Session shortcuts.
if ( TDEConfigGroup(TDEGlobal::config(), "General").readBoolEntry("SessionShortcutsEnabled", false) ) {
@@ -1220,7 +1217,7 @@ void Konsole::makeBasicGUI()
m_sessionList = new TDEPopupMenu(this);
TDEAcceleratorManager::manage( m_sessionList );
- connect(m_sessionList, TQT_SIGNAL(activated(int)), TQT_SLOT(activateSession(int)));
+ connect(m_sessionList, TQ_SIGNAL(activated(int)), TQ_SLOT(activateSession(int)));
}
/**
@@ -1383,10 +1380,16 @@ void Konsole::slotTabRenameSession() {
void Konsole::slotTabSelectColor()
{
TQColor color = tabwidget->tabColor( m_contextMenuSession->widget() );
- int result = KColorDialog::getColor( color );
+ int result = KColorDialog::getColor( color, tabwidget->colorGroup().foreground() );
- if ( result == KColorDialog::Accepted )
+ if ( result == KColorDialog::Accepted ) {
tabwidget->setTabColor(m_contextMenuSession->widget(), color);
+ }
+}
+
+void Konsole::slotTabResetColor()
+{
+ tabwidget->resetTabColor(m_contextMenuSession->widget());
}
void Konsole::slotTabToggleMonitor()
@@ -1616,6 +1619,20 @@ void Konsole::readProperties(TDEConfig* config, const TQString &schema, bool glo
s_word_seps= config->readEntry("wordseps",":@-./_~");
b_framevis = config->readBoolEntry("has frame",true);
b_metaAsAlt = config->readBoolEntry("metaAsAltMode",false);
+ b_realTransparency = config->readBoolEntry("RealTransparency",false);
+
+ Atom kde_wm_transparent_to_desktop;
+ kde_wm_transparent_to_desktop = XInternAtom(tqt_xdisplay(), "_TDE_TRANSPARENT_TO_DESKTOP", False);
+ if (b_realTransparency)
+ {
+ XDeleteProperty(tqt_xdisplay(), winId(), kde_wm_transparent_to_desktop);
+ }
+ else
+ {
+ // Signal that we want to be transparent to the desktop, not to windows behind us...
+ XChangeProperty(tqt_xdisplay(), winId(), kde_wm_transparent_to_desktop, XA_INTEGER, 32, PropModeReplace, (unsigned char *) "TRUE", 1L);
+ }
+
TQPtrList<TEWidget> tes = activeTEs();
for (TEWidget *_te = tes.first(); _te; _te = tes.next()) {
_te->setWordCharacters(s_word_seps);
@@ -1642,10 +1659,6 @@ void Konsole::readProperties(TDEConfig* config, const TQString &schema, bool glo
config->setGroup("UTMP");
b_addToUtmp = config->readBoolEntry("AddToUtmp",true);
config->setDesktopGroup();
-
- // Do not set a default value; this allows the System-wide Scheme
- // to set the tab text color.
- m_tabColor = config->readColorEntry("TabColor");
}
if (!globalConfigOnly)
@@ -1720,7 +1733,7 @@ void Konsole::readProperties(TDEConfig* config, const TQString &schema, bool glo
// profile scrollbar entry differs from the konsolerc scrollbar entry.
TQPtrList<TEWidget> tes = activeTEs();
for (TEWidget *_te = tes.first(); _te; _te = tes.next()) {
- if (_te->getScrollbarLocation() != n_scroll)
+ if (_te->getScrollbarLocation() != n_scroll)
_te->setScrollbarLocation(n_scroll);
}
}
@@ -1977,7 +1990,7 @@ void Konsole::slotToggleMenubar() {
}
if (!showMenubar->isChecked()) {
setCaption(i18n("Use the right mouse button to bring back the menu"));
- TQTimer::singleShot(5000,this,TQT_SLOT(updateTitle()));
+ TQTimer::singleShot(5000,this,TQ_SLOT(updateTitle()));
}
updateRMBMenu();
}
@@ -2015,8 +2028,6 @@ void Konsole::createSessionTab(TEWidget *widget, const TQIconSet &iconSet,
tabwidget->insertTab(widget, iconSet, TQString::null, index);
break;
}
- if ( m_tabColor.isValid() )
- tabwidget->setTabColor(widget, m_tabColor);
}
TQIconSet Konsole::iconSetForSession(TESession *session) const
@@ -2131,12 +2142,12 @@ void Konsole::reparseConfiguration()
b_sessionShortcutsMapped = false;
// Mappings may have to be changed...get a fresh mapper.
- disconnect( sessionNumberMapper, TQT_SIGNAL( mapped( int ) ),
- this, TQT_SLOT( newSessionTabbar( int ) ) );
+ disconnect( sessionNumberMapper, TQ_SIGNAL( mapped( int ) ),
+ this, TQ_SLOT( newSessionTabbar( int ) ) );
delete sessionNumberMapper;
- sessionNumberMapper = new TQSignalMapper( TQT_TQOBJECT(this) );
- connect( sessionNumberMapper, TQT_SIGNAL( mapped( int ) ),
- this, TQT_SLOT( newSessionTabbar( int ) ) );
+ sessionNumberMapper = new TQSignalMapper( this );
+ connect( sessionNumberMapper, TQ_SIGNAL( mapped( int ) ),
+ this, TQ_SLOT( newSessionTabbar( int ) ) );
sl_sessionShortCuts.clear();
buildSessionMenus();
@@ -2287,7 +2298,7 @@ void Konsole::updateTitle(TESession* _se)
TDERadioAction *ra = session2action.find(_se);
if (ra && (ra->icon() != icon))
ra->setIcon(icon);
- if (m_tabViewMode == ShowIconOnly)
+ if (m_tabViewMode == ShowIconOnly)
tabwidget->changeTab( _se->widget(), TQString::null );
else if (b_matchTabWinTitle)
tabwidget->setTabLabel( _se->widget(), _se->fullTitle().replace('&',"&&"));
@@ -2369,12 +2380,12 @@ void Konsole::disableMasterModeConnections()
TESession *to = to_it.current();
if (to!=from)
{
- disconnect(from->widget(), TQT_SIGNAL(keyPressedSignal(TQKeyEvent*)),
- to->getEmulation(), TQT_SLOT(onKeyPress(TQKeyEvent*)));
- disconnect(from->widget(), TQT_SIGNAL(keyReleasedSignal(TQKeyEvent*)),
- to->getEmulation(), TQT_SLOT(onKeyReleased(TQKeyEvent*)));
- disconnect(from->widget(), TQT_SIGNAL(focusInSignal(TQFocusEvent*)),
- to->getEmulation(), TQT_SLOT(onFocusIn(TQFocusEvent*)));
+ disconnect(from->widget(), TQ_SIGNAL(keyPressedSignal(TQKeyEvent*)),
+ to->getEmulation(), TQ_SLOT(onKeyPress(TQKeyEvent*)));
+ disconnect(from->widget(), TQ_SIGNAL(keyReleasedSignal(TQKeyEvent*)),
+ to->getEmulation(), TQ_SLOT(onKeyReleased(TQKeyEvent*)));
+ disconnect(from->widget(), TQ_SIGNAL(focusInSignal(TQFocusEvent*)),
+ to->getEmulation(), TQ_SLOT(onFocusIn(TQFocusEvent*)));
}
}
}
@@ -2392,12 +2403,12 @@ void Konsole::enableMasterModeConnections()
TESession *to = to_it.current();
if (to!=from)
{
- connect(from->widget(), TQT_SIGNAL(keyPressedSignal(TQKeyEvent*)),
- to->getEmulation(), TQT_SLOT(onKeyPress(TQKeyEvent*)));
- connect(from->widget(), TQT_SIGNAL(keyReleasedSignal(TQKeyEvent*)),
- to->getEmulation(), TQT_SLOT(onKeyReleased(TQKeyEvent*)));
- connect(from->widget(), TQT_SIGNAL(focusInSignal(TQFocusEvent*)),
- to->getEmulation(), TQT_SLOT(onFocusIn(TQFocusEvent*)));
+ connect(from->widget(), TQ_SIGNAL(keyPressedSignal(TQKeyEvent*)),
+ to->getEmulation(), TQ_SLOT(onKeyPress(TQKeyEvent*)));
+ connect(from->widget(), TQ_SIGNAL(keyReleasedSignal(TQKeyEvent*)),
+ to->getEmulation(), TQ_SLOT(onKeyReleased(TQKeyEvent*)));
+ connect(from->widget(), TQ_SIGNAL(focusInSignal(TQFocusEvent*)),
+ to->getEmulation(), TQ_SLOT(onFocusIn(TQFocusEvent*)));
}
}
}
@@ -2492,7 +2503,7 @@ void Konsole::runSession(TESession* s)
// give some time to get through the
// resize events before starting up.
- TQTimer::singleShot(100,s,TQT_SLOT(run()));
+ TQTimer::singleShot(100,s,TQ_SLOT(run()));
}
void Konsole::addSession(TESession* s)
@@ -2525,8 +2536,8 @@ void Konsole::addSession(TESession* s)
TDERadioAction *ra = new TDERadioAction(newTitle.replace('&',"&&"),
s->IconName(),
0,
- TQT_TQOBJECT(this),
- TQT_SLOT(activateSession()),
+ this,
+ TQ_SLOT(activateSession()),
m_shortcuts);
ra->setExclusiveGroup("sessions");
ra->setChecked(true);
@@ -2581,7 +2592,7 @@ void Konsole::listSessions()
void Konsole::switchToSession()
{
- activateSession( TQString( TQT_TQOBJECT_CONST(sender())->name() ).right( 2 ).toInt() -1 );
+ activateSession( TQString( sender()->name() ).right( 2 ).toInt() -1 );
}
void Konsole::activateSession(int position)
@@ -2654,8 +2665,8 @@ void Konsole::activateSession(TESession *s)
pmPath = cs->imagePath();
n_render = cs->alignment();
-// BR 106464 temporary fix...
-// only 2 sessions opened, 2nd session viewable, right-click on 1st tab and
+// BR 106464 temporary fix...
+// only 2 sessions opened, 2nd session viewable, right-click on 1st tab and
// select 'Detach', close original Konsole window... crash
// s is not set properly on original Konsole window
TDERadioAction *ra = session2action.find(se);
@@ -2665,7 +2676,7 @@ void Konsole::activateSession(TESession *s)
}
ra->setChecked(true);
- TQTimer::singleShot(1,this,TQT_SLOT(allowPrevNext())); // hack, hack, hack
+ TQTimer::singleShot(1,this,TQ_SLOT(allowPrevNext())); // hack, hack, hack
tabwidget->showPage( se->widget() );
te = se->widget();
@@ -2739,7 +2750,7 @@ void Konsole::setSessionEncoding( const TQString &encoding, TESession *session )
while ( it != encodingNames.end() && !found_encoding )
{
- if ( TQString::compare( TDEGlobal::charsets()->encodingForName(*it),
+ if ( TQString::compare( TDEGlobal::charsets()->encodingForName(*it),
t_encoding ) == 0 ) {
found_encoding = true;
}
@@ -2942,8 +2953,8 @@ TQString Konsole::newSession(KSimpleConfig *co, TQString program, const TQStrLis
TEWidget* te_old = te;
te=new TEWidget(tabwidget);
- connect( te, TQT_SIGNAL(configureRequest(TEWidget*, int, int, int)),
- this, TQT_SLOT(configureRequest(TEWidget*,int,int,int)) );
+ connect( te, TQ_SIGNAL(configureRequest(TEWidget*, int, int, int)),
+ this, TQ_SLOT(configureRequest(TEWidget*,int,int,int)) );
if (te_old) {
initTEWidget(te, te_old);
}
@@ -2962,40 +2973,40 @@ TQString Konsole::newSession(KSimpleConfig *co, TQString program, const TQStrLis
s->setMonitorSilenceSeconds(monitorSilenceSeconds);
s->enableFullScripting(b_fullScripting);
s->setMetaAsAltMode(b_metaAsAlt);
-
+
// If you add any new signal-slot connection below, think about doing it in konsolePart too
- connect( s,TQT_SIGNAL(done(TESession*)),
- this,TQT_SLOT(doneSession(TESession*)));
- connect( s, TQT_SIGNAL(updateTitle(TESession*)),
- this, TQT_SLOT(updateTitle(TESession*)));
- connect( s, TQT_SIGNAL(notifySessionState(TESession*, int)),
- this, TQT_SLOT(notifySessionState(TESession*, int)));
- connect( s, TQT_SIGNAL(disableMasterModeConnections()),
- this, TQT_SLOT(disableMasterModeConnections()));
- connect( s, TQT_SIGNAL(enableMasterModeConnections()),
- this, TQT_SLOT(enableMasterModeConnections()));
- connect( s, TQT_SIGNAL(renameSession(TESession*,const TQString&)),
- this, TQT_SLOT(slotRenameSession(TESession*, const TQString&)));
- connect( s->getEmulation(), TQT_SIGNAL(changeColumns(int)),
- this, TQT_SLOT(changeColumns(int)) );
- connect( s->getEmulation(), TQT_SIGNAL(changeColLin(int,int)),
- this, TQT_SLOT(changeColLin(int,int)));
- connect( s->getEmulation(), TQT_SIGNAL(ImageSizeChanged(int,int)),
- this, TQT_SLOT(notifySize(int,int)));
- connect( s, TQT_SIGNAL(zmodemDetected(TESession*)),
- this, TQT_SLOT(slotZModemDetected(TESession*)));
- connect( s, TQT_SIGNAL(updateSessionConfig(TESession*)),
- this, TQT_SLOT(slotUpdateSessionConfig(TESession*)));
- connect( s, TQT_SIGNAL(resizeSession(TESession*, TQSize)),
- this, TQT_SLOT(slotResizeSession(TESession*, TQSize)));
- connect( s, TQT_SIGNAL(setSessionEncoding(TESession*, const TQString &)),
- this, TQT_SLOT(slotSetSessionEncoding(TESession*, const TQString &)));
- connect( s, TQT_SIGNAL(getSessionSchema(TESession*, TQString &)),
- this, TQT_SLOT(slotGetSessionSchema(TESession*, TQString &)));
- connect( s, TQT_SIGNAL(setSessionSchema(TESession*, const TQString &)),
- this, TQT_SLOT(slotSetSessionSchema(TESession*, const TQString &)));
- connect( s, TQT_SIGNAL(changeTabTextColor(TESession*, int)),
- this,TQT_SLOT(changeTabTextColor(TESession*, int)));
+ connect( s,TQ_SIGNAL(done(TESession*)),
+ this,TQ_SLOT(doneSession(TESession*)));
+ connect( s, TQ_SIGNAL(updateTitle(TESession*)),
+ this, TQ_SLOT(updateTitle(TESession*)));
+ connect( s, TQ_SIGNAL(notifySessionState(TESession*, int)),
+ this, TQ_SLOT(notifySessionState(TESession*, int)));
+ connect( s, TQ_SIGNAL(disableMasterModeConnections()),
+ this, TQ_SLOT(disableMasterModeConnections()));
+ connect( s, TQ_SIGNAL(enableMasterModeConnections()),
+ this, TQ_SLOT(enableMasterModeConnections()));
+ connect( s, TQ_SIGNAL(renameSession(TESession*,const TQString&)),
+ this, TQ_SLOT(slotRenameSession(TESession*, const TQString&)));
+ connect( s->getEmulation(), TQ_SIGNAL(changeColumns(int)),
+ this, TQ_SLOT(changeColumns(int)) );
+ connect( s->getEmulation(), TQ_SIGNAL(changeColLin(int,int)),
+ this, TQ_SLOT(changeColLin(int,int)));
+ connect( s->getEmulation(), TQ_SIGNAL(ImageSizeChanged(int,int)),
+ this, TQ_SLOT(notifySize(int,int)));
+ connect( s, TQ_SIGNAL(zmodemDetected(TESession*)),
+ this, TQ_SLOT(slotZModemDetected(TESession*)));
+ connect( s, TQ_SIGNAL(updateSessionConfig(TESession*)),
+ this, TQ_SLOT(slotUpdateSessionConfig(TESession*)));
+ connect( s, TQ_SIGNAL(resizeSession(TESession*, TQSize)),
+ this, TQ_SLOT(slotResizeSession(TESession*, TQSize)));
+ connect( s, TQ_SIGNAL(setSessionEncoding(TESession*, const TQString &)),
+ this, TQ_SLOT(slotSetSessionEncoding(TESession*, const TQString &)));
+ connect( s, TQ_SIGNAL(getSessionSchema(TESession*, TQString &)),
+ this, TQ_SLOT(slotGetSessionSchema(TESession*, TQString &)));
+ connect( s, TQ_SIGNAL(setSessionSchema(TESession*, const TQString &)),
+ this, TQ_SLOT(slotSetSessionSchema(TESession*, const TQString &)));
+ connect( s, TQ_SIGNAL(changeTabTextColor(TESession*, int)),
+ this,TQ_SLOT(changeTabTextColor(TESession*, int)));
s->widget()->setVTFont(defaultFont);// Hack to set font again after newSession
s->setSchemaNo(schmno);
@@ -3138,7 +3149,7 @@ void Konsole::doneSession(TESession* s)
// Since the timer approach only works at good weather,
// the whole construction is not suited to what it
// should do. Affected is the TEEmulation::setConnect.
- TQTimer::singleShot(1,this,TQT_SLOT(activateSession()));
+ TQTimer::singleShot(1,this,TQ_SLOT(activateSession()));
}
else
close();
@@ -3211,16 +3222,16 @@ void Konsole::moveSessionLeft()
ra->plug(m_view,(m_view->count()-sessions.count()+1)+position-1);
TQColor oldcolor = tabwidget->tabColor(se->widget());
-
+
tabwidget->blockSignals(true);
tabwidget->removePage(se->widget());
tabwidget->blockSignals(false);
TQString title = se->Title();
- createSessionTab(se->widget(), iconSetForSession(se),
+ createSessionTab(se->widget(), iconSetForSession(se),
title.replace('&', "&&"), position-1);
tabwidget->showPage(se->widget());
tabwidget->setTabColor(se->widget(),oldcolor);
-
+
if (!m_menuCreated)
makeGUI();
m_moveSessionLeft->setEnabled(position-1>0);
@@ -3244,16 +3255,16 @@ void Konsole::moveSessionRight()
ra->plug(m_view,(m_view->count()-sessions.count()+1)+position+1);
TQColor oldcolor = tabwidget->tabColor(se->widget());
-
+
tabwidget->blockSignals(true);
tabwidget->removePage(se->widget());
tabwidget->blockSignals(false);
TQString title = se->Title();
- createSessionTab(se->widget(), iconSetForSession(se),
+ createSessionTab(se->widget(), iconSetForSession(se),
title.replace('&', "&&"), position+1);
tabwidget->showPage(se->widget());
tabwidget->setTabColor(se->widget(),oldcolor);
-
+
if (!m_menuCreated)
makeGUI();
m_moveSessionLeft->setEnabled(true);
@@ -3469,9 +3480,9 @@ void Konsole::addSessionCommand(const TQString &path)
if ( m_shortcuts->action( name.latin1() ) ) {
sessionAction = m_shortcuts->action( name.latin1() );
} else {
- sessionAction = new TDEAction( comment, 0, TQT_TQOBJECT(this), 0, m_shortcuts, name.latin1() );
+ sessionAction = new TDEAction( comment, 0, this, 0, m_shortcuts, name.latin1() );
}
- connect( sessionAction, TQT_SIGNAL( activated() ), sessionNumberMapper, TQT_SLOT( map() ) );
+ connect( sessionAction, TQ_SIGNAL( activated() ), sessionNumberMapper, TQ_SLOT( map() ) );
sessionNumberMapper->setMapping( sessionAction, cmd_serial );
}
@@ -3741,31 +3752,31 @@ void Konsole::detachSession(TESession* _se) {
TESession *from = from_it.current();
if(from->isMasterMode())
{
- disconnect(from->widget(), TQT_SIGNAL(keyPressedSignal(TQKeyEvent*)),
- _se->getEmulation(), TQT_SLOT(onKeyPress(TQKeyEvent*)));
- disconnect(from->widget(), TQT_SIGNAL(keyReleasedSignal(TQKeyEvent*)),
- _se->getEmulation(), TQT_SLOT(onKeyReleased(TQKeyEvent*)));
- disconnect(from->widget(), TQT_SIGNAL(focusInSignal(TQFocusEvent*)),
- _se->getEmulation(), TQT_SLOT(onFocusIn(TQFocusEvent*)));
+ disconnect(from->widget(), TQ_SIGNAL(keyPressedSignal(TQKeyEvent*)),
+ _se->getEmulation(), TQ_SLOT(onKeyPress(TQKeyEvent*)));
+ disconnect(from->widget(), TQ_SIGNAL(keyReleasedSignal(TQKeyEvent*)),
+ _se->getEmulation(), TQ_SLOT(onKeyReleased(TQKeyEvent*)));
+ disconnect(from->widget(), TQ_SIGNAL(focusInSignal(TQFocusEvent*)),
+ _se->getEmulation(), TQ_SLOT(onFocusIn(TQFocusEvent*)));
}
}
}
TQColor se_tabtextcolor = tabwidget->tabColor( _se->widget() );
- disconnect( _se,TQT_SIGNAL(done(TESession*)),
- this,TQT_SLOT(doneSession(TESession*)) );
+ disconnect( _se,TQ_SIGNAL(done(TESession*)),
+ this,TQ_SLOT(doneSession(TESession*)) );
- disconnect( _se->getEmulation(),TQT_SIGNAL(ImageSizeChanged(int,int)), this,TQT_SLOT(notifySize(int,int)));
- disconnect( _se->getEmulation(),TQT_SIGNAL(changeColLin(int, int)), this,TQT_SLOT(changeColLin(int,int)) );
- disconnect( _se->getEmulation(),TQT_SIGNAL(changeColumns(int)), this,TQT_SLOT(changeColumns(int)) );
- disconnect( _se, TQT_SIGNAL(changeTabTextColor(TESession*, int)), this, TQT_SLOT(changeTabTextColor(TESession*, int)) );
+ disconnect( _se->getEmulation(),TQ_SIGNAL(ImageSizeChanged(int,int)), this,TQ_SLOT(notifySize(int,int)));
+ disconnect( _se->getEmulation(),TQ_SIGNAL(changeColLin(int, int)), this,TQ_SLOT(changeColLin(int,int)) );
+ disconnect( _se->getEmulation(),TQ_SIGNAL(changeColumns(int)), this,TQ_SLOT(changeColumns(int)) );
+ disconnect( _se, TQ_SIGNAL(changeTabTextColor(TESession*, int)), this, TQ_SLOT(changeTabTextColor(TESession*, int)) );
- disconnect( _se,TQT_SIGNAL(updateTitle(TESession*)), this,TQT_SLOT(updateTitle(TESession*)) );
- disconnect( _se,TQT_SIGNAL(notifySessionState(TESession*,int)), this,TQT_SLOT(notifySessionState(TESession*,int)) );
- disconnect( _se,TQT_SIGNAL(disableMasterModeConnections()), this,TQT_SLOT(disableMasterModeConnections()) );
- disconnect( _se,TQT_SIGNAL(enableMasterModeConnections()), this,TQT_SLOT(enableMasterModeConnections()) );
- disconnect( _se,TQT_SIGNAL(renameSession(TESession*,const TQString&)), this,TQT_SLOT(slotRenameSession(TESession*,const TQString&)) );
+ disconnect( _se,TQ_SIGNAL(updateTitle(TESession*)), this,TQ_SLOT(updateTitle(TESession*)) );
+ disconnect( _se,TQ_SIGNAL(notifySessionState(TESession*,int)), this,TQ_SLOT(notifySessionState(TESession*,int)) );
+ disconnect( _se,TQ_SIGNAL(disableMasterModeConnections()), this,TQ_SLOT(disableMasterModeConnections()) );
+ disconnect( _se,TQ_SIGNAL(enableMasterModeConnections()), this,TQ_SLOT(enableMasterModeConnections()) );
+ disconnect( _se,TQ_SIGNAL(renameSession(TESession*,const TQString&)), this,TQ_SLOT(slotRenameSession(TESession*,const TQString&)) );
// TODO: "type" isn't passed properly
Konsole* konsole = new Konsole(name(), b_histEnabled, !menubar->isHidden(), n_tabbar != TabNone, b_framevis,
@@ -3789,7 +3800,7 @@ void Konsole::detachSession(TESession* _se) {
else
se = sessions.at(sessionIndex ? sessionIndex - 1 : 0);
session2action.find(se)->setChecked(true);
- TQTimer::singleShot(1,this,TQT_SLOT(activateSession()));
+ TQTimer::singleShot(1,this,TQ_SLOT(activateSession()));
}
if (sessions.count()==1)
@@ -3817,8 +3828,8 @@ void Konsole::attachSession(TESession* session)
te=new TEWidget(tabwidget);
- connect( te, TQT_SIGNAL(configureRequest(TEWidget*, int, int, int)),
- this, TQT_SLOT(configureRequest(TEWidget*,int,int,int)) );
+ connect( te, TQ_SIGNAL(configureRequest(TEWidget*, int, int, int)),
+ this, TQ_SLOT(configureRequest(TEWidget*,int,int,int)) );
te->resize(se_widget->size());
te->setSize(se_widget->Columns(), se_widget->Lines());
@@ -3834,7 +3845,7 @@ void Konsole::attachSession(TESession* session)
TQString title=session->Title();
TDERadioAction *ra = new TDERadioAction(title.replace('&',"&&"), session->IconName(),
- 0, TQT_TQOBJECT(this), TQT_SLOT(activateSession()), m_shortcuts);
+ 0, this, TQ_SLOT(activateSession()), m_shortcuts);
ra->setExclusiveGroup("sessions");
ra->setChecked(true);
@@ -3848,20 +3859,20 @@ void Konsole::attachSession(TESession* session)
if (m_menuCreated)
ra->plug(m_view);
- connect( session,TQT_SIGNAL(done(TESession*)),
- this,TQT_SLOT(doneSession(TESession*)) );
+ connect( session,TQ_SIGNAL(done(TESession*)),
+ this,TQ_SLOT(doneSession(TESession*)) );
- connect( session,TQT_SIGNAL(updateTitle(TESession*)), this,TQT_SLOT(updateTitle(TESession*)) );
- connect( session,TQT_SIGNAL(notifySessionState(TESession*,int)), this,TQT_SLOT(notifySessionState(TESession*,int)) );
+ connect( session,TQ_SIGNAL(updateTitle(TESession*)), this,TQ_SLOT(updateTitle(TESession*)) );
+ connect( session,TQ_SIGNAL(notifySessionState(TESession*,int)), this,TQ_SLOT(notifySessionState(TESession*,int)) );
- connect( session,TQT_SIGNAL(disableMasterModeConnections()), this,TQT_SLOT(disableMasterModeConnections()) );
- connect( session,TQT_SIGNAL(enableMasterModeConnections()), this,TQT_SLOT(enableMasterModeConnections()) );
- connect( session,TQT_SIGNAL(renameSession(TESession*,const TQString&)), this,TQT_SLOT(slotRenameSession(TESession*,const TQString&)) );
- connect( session->getEmulation(),TQT_SIGNAL(ImageSizeChanged(int,int)), this,TQT_SLOT(notifySize(int,int)));
- connect( session->getEmulation(),TQT_SIGNAL(changeColumns(int)), this,TQT_SLOT(changeColumns(int)) );
- connect( session->getEmulation(),TQT_SIGNAL(changeColLin(int, int)), this,TQT_SLOT(changeColLin(int,int)) );
+ connect( session,TQ_SIGNAL(disableMasterModeConnections()), this,TQ_SLOT(disableMasterModeConnections()) );
+ connect( session,TQ_SIGNAL(enableMasterModeConnections()), this,TQ_SLOT(enableMasterModeConnections()) );
+ connect( session,TQ_SIGNAL(renameSession(TESession*,const TQString&)), this,TQ_SLOT(slotRenameSession(TESession*,const TQString&)) );
+ connect( session->getEmulation(),TQ_SIGNAL(ImageSizeChanged(int,int)), this,TQ_SLOT(notifySize(int,int)));
+ connect( session->getEmulation(),TQ_SIGNAL(changeColumns(int)), this,TQ_SLOT(changeColumns(int)) );
+ connect( session->getEmulation(),TQ_SIGNAL(changeColLin(int, int)), this,TQ_SLOT(changeColLin(int,int)) );
- connect( session, TQT_SIGNAL(changeTabTextColor(TESession*, int)), this, TQT_SLOT(changeTabTextColor(TESession*, int)) );
+ connect( session, TQ_SIGNAL(changeTabTextColor(TESession*, int)), this, TQ_SLOT(changeTabTextColor(TESession*, int)) );
activateSession(session);
}
@@ -3923,7 +3934,7 @@ HistoryTypeDialog::HistoryTypeDialog(const HistoryType& histType,
TQHBoxLayout *hb = new TQHBoxLayout(mainFrame);
m_btnEnable = new TQCheckBox(i18n("&Enable"), mainFrame);
- connect(m_btnEnable, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotHistEnable(bool)));
+ connect(m_btnEnable, TQ_SIGNAL(toggled(bool)), TQ_SLOT(slotHistEnable(bool)));
m_label = new TQLabel(i18n("&Number of lines: "), mainFrame);
@@ -3934,7 +3945,7 @@ HistoryTypeDialog::HistoryTypeDialog(const HistoryType& histType,
m_label->setBuddy( m_size );
m_setUnlimited = new TQPushButton(i18n("&Set Unlimited"), mainFrame);
- connect( m_setUnlimited,TQT_SIGNAL(clicked()), this,TQT_SLOT(slotSetUnlimited()) );
+ connect( m_setUnlimited,TQ_SIGNAL(clicked()), this,TQ_SLOT(slotSetUnlimited()) );
hb->addWidget(m_btnEnable);
hb->addSpacing(10);
@@ -4028,8 +4039,8 @@ void Konsole::slotFindHistory()
{
if( !m_finddialog ) {
m_finddialog = new KonsoleFind( this, "konsolefind", false);
- connect(m_finddialog,TQT_SIGNAL(search()),this,TQT_SLOT(slotFind()));
- connect(m_finddialog,TQT_SIGNAL(done()),this,TQT_SLOT(slotFindDone()));
+ connect(m_finddialog,TQ_SIGNAL(search()),this,TQ_SLOT(slotFind()));
+ connect(m_finddialog,TQ_SIGNAL(done()),this,TQ_SLOT(slotFindDone()));
}
TQString string;
@@ -4048,7 +4059,7 @@ void Konsole::slotOpenSelection()
delete m_filterData;
m_openSelection->clear();
- disconnect(m_openSelection, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotOpenURI(int)));
+ disconnect(m_openSelection, TQ_SIGNAL(activated(int)), this, TQ_SLOT(slotOpenURI(int)));
TQString selection = se->getEmulation()->getSelection();
TQString curdir = baseURL().path();
@@ -4063,7 +4074,7 @@ void Konsole::slotOpenSelection()
KURIFilter::self()->filterURI( *(m_filterData) );
m_openSelection->insertItem( SmallIconSet( m_filterData->iconName() ),i18n( "%1" ).arg(m_filterData->uri().url()), 1 );
- connect(m_openSelection, TQT_SIGNAL(activated(int)), TQT_SLOT(slotOpenURI(int)));
+ connect(m_openSelection, TQ_SIGNAL(activated(int)), TQ_SLOT(slotOpenURI(int)));
}
void Konsole::slotOpenURI(int)
@@ -4334,8 +4345,8 @@ KonsoleFind::KonsoleFind( TQWidget *parent, const char *name, bool /*modal*/ )
if (!TDETrader::self()->query("KRegExpEditor/KRegExpEditor").isEmpty()) {
m_editRegExp = new TQPushButton( i18n("&Edit..."), row, "editRegExp" );
- connect( m_asRegExp, TQT_SIGNAL( toggled(bool) ), m_editRegExp, TQT_SLOT( setEnabled(bool) ) );
- connect( m_editRegExp, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotEditRegExp() ) );
+ connect( m_asRegExp, TQ_SIGNAL( toggled(bool) ), m_editRegExp, TQ_SLOT( setEnabled(bool) ) );
+ connect( m_editRegExp, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotEditRegExp() ) );
m_editRegExp->setEnabled( false );
}
}
@@ -4343,7 +4354,7 @@ KonsoleFind::KonsoleFind( TQWidget *parent, const char *name, bool /*modal*/ )
void KonsoleFind::slotEditRegExp()
{
if ( m_editorDialog == 0 )
- m_editorDialog = KParts::ComponentFactory::createInstanceFromQuery<TQDialog>( "KRegExpEditor/KRegExpEditor", TQString(), TQT_TQOBJECT(this) );
+ m_editorDialog = KParts::ComponentFactory::createInstanceFromQuery<TQDialog>( "KRegExpEditor/KRegExpEditor", TQString(), this );
assert( m_editorDialog );
@@ -4377,20 +4388,13 @@ void Konsole::slotFontChanged()
void Konsole::biggerFont(void) {
if ( !se ) return;
-
- TQFont f = te->getVTFont();
- f.setPointSize( f.pointSize() + 1 );
- te->setVTFont( f );
+ te->biggerFont();
activateSession();
}
void Konsole::smallerFont(void) {
if ( !se ) return;
-
- TQFont f = te->getVTFont();
- if ( f.pointSize() < 6 ) return; // A minimum size
- f.setPointSize( f.pointSize() - 1 );
- te->setVTFont( f );
+ te->smallerFont();
activateSession();
}
@@ -4473,7 +4477,7 @@ void Konsole::setMenuAcceleratos()
if (m_help)
menubar->changeItem(m_help_id, m_help_string);
}
- else
+ else
{
menubar->changeItem(m_session_id, TQString(m_session_string).replace(TQRegExp("&([^&])"), "\\1"));
menubar->changeItem(m_edit_id, TQString(m_edit_string).replace(TQRegExp("&([^&])"), "\\1"));
@@ -4486,5 +4490,5 @@ void Konsole::setMenuAcceleratos()
menubar->changeItem(m_help_id, TQString(m_help_string).replace(TQRegExp("&([^&])"), "\\1"));
}
}
-
+
#include "konsole.moc"