@ -71,102 +71,102 @@ KonversationMainWindow::KonversationMainWindow() : TDEMainWindow(0,"main_window"
setCentralWidget ( m_viewContainer - > getWidget ( ) ) ;
//used for event compression. See header file for resetHasDirtySettings()
connect ( KonversationApplication : : instance ( ) , TQ T _SIGNAL( appearanceChanged ( ) ) , this , TQ T _SLOT( resetHasDirtySettings ( ) ) ) ;
connect ( KonversationApplication : : instance ( ) , TQ T _SIGNAL( appearanceChanged ( ) ) , this , TQ T _SLOT( updateTrayIcon ( ) ) ) ;
connect ( KonversationApplication : : instance ( ) , TQ _SIGNAL( appearanceChanged ( ) ) , this , TQ _SLOT( resetHasDirtySettings ( ) ) ) ;
connect ( KonversationApplication : : instance ( ) , TQ _SIGNAL( appearanceChanged ( ) ) , this , TQ _SLOT( updateTrayIcon ( ) ) ) ;
// Set up view container
connect ( KonversationApplication : : instance ( ) , TQ T _SIGNAL( appearanceChanged ( ) ) , m_viewContainer , TQ T _SLOT( updateAppearance ( ) ) ) ;
connect ( KonversationApplication : : instance ( ) , TQ T _SIGNAL( iconChanged ( int ) ) , m_viewContainer , TQ T _SLOT( updateViewIcons ( ) ) ) ;
connect ( KonversationApplication : : instance ( ) , TQ T _SIGNAL( serverGroupsChanged ( const Konversation : : ServerGroupSettings * ) ) ,
m_viewContainer , TQ T _SLOT( updateViews ( const Konversation : : ServerGroupSettings * ) ) ) ;
connect ( m_viewContainer , TQ T _SIGNAL( autoJoinToggled ( const Konversation : : ServerGroupSettings * ) ) ,
KonversationApplication : : instance ( ) , TQ T _SIGNAL( serverGroupsChanged ( const Konversation : : ServerGroupSettings * ) ) ) ;
connect ( m_viewContainer , TQ T _SIGNAL( setWindowCaption ( const TQString & ) ) , this , TQ T _SLOT( setCaption ( const TQString & ) ) ) ;
connect ( KonversationApplication : : instance ( ) , TQ _SIGNAL( appearanceChanged ( ) ) , m_viewContainer , TQ _SLOT( updateAppearance ( ) ) ) ;
connect ( KonversationApplication : : instance ( ) , TQ _SIGNAL( iconChanged ( int ) ) , m_viewContainer , TQ _SLOT( updateViewIcons ( ) ) ) ;
connect ( KonversationApplication : : instance ( ) , TQ _SIGNAL( serverGroupsChanged ( const Konversation : : ServerGroupSettings * ) ) ,
m_viewContainer , TQ _SLOT( updateViews ( const Konversation : : ServerGroupSettings * ) ) ) ;
connect ( m_viewContainer , TQ _SIGNAL( autoJoinToggled ( const Konversation : : ServerGroupSettings * ) ) ,
KonversationApplication : : instance ( ) , TQ _SIGNAL( serverGroupsChanged ( const Konversation : : ServerGroupSettings * ) ) ) ;
connect ( m_viewContainer , TQ _SIGNAL( setWindowCaption ( const TQString & ) ) , this , TQ _SLOT( setCaption ( const TQString & ) ) ) ;
connect ( KonversationApplication : : instance ( ) - > getConnectionManager ( ) ,
TQ T _SIGNAL( connectionChangedState ( Server * , Konversation : : ConnectionState ) ) ,
m_viewContainer , TQ T _SLOT( connectionStateChanged ( Server * , Konversation : : ConnectionState ) ) ) ;
connect ( this , TQ T _SIGNAL( triggerRememberLine ( ) ) , m_viewContainer , TQ T _SLOT( insertRememberLine ( ) ) ) ;
connect ( this , TQ T _SIGNAL( triggerRememberLines ( Server * ) ) , m_viewContainer , TQ T _SLOT( insertRememberLines ( Server * ) ) ) ;
connect ( this , TQ T _SIGNAL( cancelRememberLine ( ) ) , m_viewContainer , TQ T _SLOT( cancelRememberLine ( ) ) ) ;
connect ( this , TQ T _SIGNAL( insertMarkerLine ( ) ) , m_viewContainer , TQ T _SLOT( insertMarkerLine ( ) ) ) ;
TQ _SIGNAL( connectionChangedState ( Server * , Konversation : : ConnectionState ) ) ,
m_viewContainer , TQ _SLOT( connectionStateChanged ( Server * , Konversation : : ConnectionState ) ) ) ;
connect ( this , TQ _SIGNAL( triggerRememberLine ( ) ) , m_viewContainer , TQ _SLOT( insertRememberLine ( ) ) ) ;
connect ( this , TQ _SIGNAL( triggerRememberLines ( Server * ) ) , m_viewContainer , TQ _SLOT( insertRememberLines ( Server * ) ) ) ;
connect ( this , TQ _SIGNAL( cancelRememberLine ( ) ) , m_viewContainer , TQ _SLOT( cancelRememberLine ( ) ) ) ;
connect ( this , TQ _SIGNAL( insertMarkerLine ( ) ) , m_viewContainer , TQ _SLOT( insertMarkerLine ( ) ) ) ;
// Set up status bar
m_statusBar = new KonversationStatusBar ( this ) ;
connect ( KonversationApplication : : instance ( ) , TQ T _SIGNAL( appearanceChanged ( ) ) , m_statusBar , TQ T _SLOT( updateAppearance ( ) ) ) ;
connect ( KonversationApplication : : instance ( ) , TQ _SIGNAL( appearanceChanged ( ) ) , m_statusBar , TQ _SLOT( updateAppearance ( ) ) ) ;
createStandardStatusBarAction ( ) ;
connect ( actionCollection ( ) , TQ T _SIGNAL( actionStatusText ( const TQString & ) ) , m_statusBar , TQ T _SLOT( setMainLabelTempText ( const TQString & ) ) ) ;
connect ( actionCollection ( ) , TQ T _SIGNAL( clearStatusText ( ) ) , m_statusBar , TQ T _SLOT( clearMainLabelTempText ( ) ) ) ;
connect ( actionCollection ( ) , TQ _SIGNAL( actionStatusText ( const TQString & ) ) , m_statusBar , TQ _SLOT( setMainLabelTempText ( const TQString & ) ) ) ;
connect ( actionCollection ( ) , TQ _SIGNAL( clearStatusText ( ) ) , m_statusBar , TQ _SLOT( clearMainLabelTempText ( ) ) ) ;
actionCollection ( ) - > setHighlightingEnabled ( true ) ;
connect ( m_viewContainer , TQ T _SIGNAL( resetStatusBar ( ) ) , m_statusBar , TQ T _SLOT( resetStatusBar ( ) ) ) ;
connect ( m_viewContainer , TQ T _SIGNAL( setStatusBarTempText ( const TQString & ) ) , m_statusBar , TQ T _SLOT( setMainLabelTempText ( const TQString & ) ) ) ;
connect ( m_viewContainer , TQ T _SIGNAL( clearStatusBarTempText ( ) ) , m_statusBar , TQ T _SLOT( clearMainLabelTempText ( ) ) ) ;
connect ( m_viewContainer , TQ T _SIGNAL( setStatusBarInfoLabel ( const TQString & ) ) , m_statusBar , TQ T _SLOT( updateInfoLabel ( const TQString & ) ) ) ;
connect ( m_viewContainer , TQ T _SIGNAL( clearStatusBarInfoLabel ( ) ) , m_statusBar , TQ T _SLOT( clearInfoLabel ( ) ) ) ;
connect ( m_viewContainer , TQ T _SIGNAL( setStatusBarLagLabelShown ( bool ) ) , m_statusBar , TQ T _SLOT( setLagLabelShown ( bool ) ) ) ;
connect ( m_viewContainer , TQ T _SIGNAL( updateStatusBarLagLabel ( Server * , int ) ) , m_statusBar , TQ T _SLOT( updateLagLabel ( Server * , int ) ) ) ;
connect ( m_viewContainer , TQ T _SIGNAL( resetStatusBarLagLabel ( ) ) , m_statusBar , TQ T _SLOT( resetLagLabel ( ) ) ) ;
connect ( m_viewContainer , TQ T _SIGNAL( setStatusBarLagLabelTooLongLag ( Server * , int ) ) , m_statusBar , TQ T _SLOT( setTooLongLag ( Server * , int ) ) ) ;
connect ( m_viewContainer , TQ T _SIGNAL( updateStatusBarSSLLabel ( Server * ) ) , m_statusBar , TQ T _SLOT( updateSSLLabel ( Server * ) ) ) ;
connect ( m_viewContainer , TQ T _SIGNAL( removeStatusBarSSLLabel ( ) ) , m_statusBar , TQ T _SLOT( removeSSLLabel ( ) ) ) ;
connect ( m_viewContainer , TQ _SIGNAL( resetStatusBar ( ) ) , m_statusBar , TQ _SLOT( resetStatusBar ( ) ) ) ;
connect ( m_viewContainer , TQ _SIGNAL( setStatusBarTempText ( const TQString & ) ) , m_statusBar , TQ _SLOT( setMainLabelTempText ( const TQString & ) ) ) ;
connect ( m_viewContainer , TQ _SIGNAL( clearStatusBarTempText ( ) ) , m_statusBar , TQ _SLOT( clearMainLabelTempText ( ) ) ) ;
connect ( m_viewContainer , TQ _SIGNAL( setStatusBarInfoLabel ( const TQString & ) ) , m_statusBar , TQ _SLOT( updateInfoLabel ( const TQString & ) ) ) ;
connect ( m_viewContainer , TQ _SIGNAL( clearStatusBarInfoLabel ( ) ) , m_statusBar , TQ _SLOT( clearInfoLabel ( ) ) ) ;
connect ( m_viewContainer , TQ _SIGNAL( setStatusBarLagLabelShown ( bool ) ) , m_statusBar , TQ _SLOT( setLagLabelShown ( bool ) ) ) ;
connect ( m_viewContainer , TQ _SIGNAL( updateStatusBarLagLabel ( Server * , int ) ) , m_statusBar , TQ _SLOT( updateLagLabel ( Server * , int ) ) ) ;
connect ( m_viewContainer , TQ _SIGNAL( resetStatusBarLagLabel ( ) ) , m_statusBar , TQ _SLOT( resetLagLabel ( ) ) ) ;
connect ( m_viewContainer , TQ _SIGNAL( setStatusBarLagLabelTooLongLag ( Server * , int ) ) , m_statusBar , TQ _SLOT( setTooLongLag ( Server * , int ) ) ) ;
connect ( m_viewContainer , TQ _SIGNAL( updateStatusBarSSLLabel ( Server * ) ) , m_statusBar , TQ _SLOT( updateSSLLabel ( Server * ) ) ) ;
connect ( m_viewContainer , TQ _SIGNAL( removeStatusBarSSLLabel ( ) ) , m_statusBar , TQ _SLOT( removeSSLLabel ( ) ) ) ;
// Actions
KStdAction : : quit ( this , TQ T _SLOT( quitProgram ( ) ) , actionCollection ( ) ) ;
KStdAction : : quit ( this , TQ _SLOT( quitProgram ( ) ) , actionCollection ( ) ) ;
hideMenuBarAction = KStdAction : : showMenubar ( this , TQ T _SLOT( toggleMenubar ( ) ) , actionCollection ( ) ) ;
hideMenuBarAction = KStdAction : : showMenubar ( this , TQ _SLOT( toggleMenubar ( ) ) , actionCollection ( ) ) ;
setStandardToolBarMenuEnabled ( true ) ;
KStdAction : : configureToolbars ( this , TQ T _SLOT( configureToolbar ( ) ) , actionCollection ( ) ) ;
KStdAction : : configureToolbars ( this , TQ _SLOT( configureToolbar ( ) ) , actionCollection ( ) ) ;
KStdAction : : keyBindings ( this , TQ T _SLOT( openKeyBindings ( ) ) , actionCollection ( ) ) ;
TDEAction * preferencesAction = KStdAction : : preferences ( this , TQ T _SLOT( openPrefsDialog ( ) ) , actionCollection ( ) ) ;
KStdAction : : keyBindings ( this , TQ _SLOT( openKeyBindings ( ) ) , actionCollection ( ) ) ;
TDEAction * preferencesAction = KStdAction : : preferences ( this , TQ _SLOT( openPrefsDialog ( ) ) , actionCollection ( ) ) ;
# ifdef USE_KNOTIFY // options_configure_notifications
TDEAction * configureNotificationsAction = KStdAction : : configureNotifications ( this , TQ T _SLOT( openNotifications ( ) ) , actionCollection ( ) ) ;
TDEAction * configureNotificationsAction = KStdAction : : configureNotifications ( this , TQ _SLOT( openNotifications ( ) ) , actionCollection ( ) ) ;
# endif
TDEAction * action ;
( new TDEAction ( i18n ( " &Server List... " ) , " server " , TDEShortcut ( " F2 " ) , this , TQ T _SLOT( openServerList ( ) ) ,
( new TDEAction ( i18n ( " &Server List... " ) , " server " , TDEShortcut ( " F2 " ) , this , TQ _SLOT( openServerList ( ) ) ,
actionCollection ( ) , " open_server_list " ) ) - > setToolTip ( i18n ( " Manage networks and servers " ) ) ;
( new TDEAction ( i18n ( " Quick &Connect... " ) , " connect_creating " , TDEShortcut ( " F7 " ) , this , TQ T _SLOT( openQuickConnectDialog ( ) ) ,
( new TDEAction ( i18n ( " Quick &Connect... " ) , " connect_creating " , TDEShortcut ( " F7 " ) , this , TQ _SLOT( openQuickConnectDialog ( ) ) ,
actionCollection ( ) , " quick_connect_dialog " ) ) - > setToolTip ( i18n ( " Type in the address of a new IRC server to connect to " ) ) ;
action = new TDEAction ( i18n ( " &Reconnect " ) , " connect_creating " , 0 , m_viewContainer , TQ T _SLOT( reconnectFrontServer ( ) ) , actionCollection ( ) , " reconnect_server " ) ;
action = new TDEAction ( i18n ( " &Reconnect " ) , " connect_creating " , 0 , m_viewContainer , TQ _SLOT( reconnectFrontServer ( ) ) , actionCollection ( ) , " reconnect_server " ) ;
action - > setEnabled ( false ) ;
action - > setToolTip ( i18n ( " Reconnect to the current server. " ) ) ;
action = new TDEAction ( i18n ( " &Disconnect " ) , " connect_no " , 0 , m_viewContainer , TQ T _SLOT( disconnectFrontServer ( ) ) , actionCollection ( ) , " disconnect_server " ) ;
action = new TDEAction ( i18n ( " &Disconnect " ) , " connect_no " , 0 , m_viewContainer , TQ _SLOT( disconnectFrontServer ( ) ) , actionCollection ( ) , " disconnect_server " ) ;
action - > setEnabled ( false ) ;
action - > setToolTip ( i18n ( " Disconnect from the current server. " ) ) ;
( new TDEAction ( i18n ( " &Identities... " ) , " identity " , TDEShortcut ( " F8 " ) , this , TQ T _SLOT( openIdentitiesDialog ( ) ) ,
( new TDEAction ( i18n ( " &Identities... " ) , " identity " , TDEShortcut ( " F8 " ) , this , TQ _SLOT( openIdentitiesDialog ( ) ) ,
actionCollection ( ) , " identities_dialog " ) ) - > setToolTip ( i18n ( " Manage your nick, away and other identity settings " ) ) ;
new TDEToggleAction ( i18n ( " &Watched Nicks Online " ) , " kontact_contacts " , TDEShortcut ( " F4 " ) , m_viewContainer , TQ T _SLOT( openNicksOnlinePanel ( ) ) , actionCollection ( ) , " open_nicksonline_window " ) ;
new TDEToggleAction ( i18n ( " &DCC Status " ) , " 2rightarrow " , TDEShortcut ( " F9 " ) , m_viewContainer , TQ T _SLOT( toggleDccPanel ( ) ) , actionCollection ( ) , " open_dccstatus_window " ) ;
action = new TDEAction ( i18n ( " &Open Logfile " ) , " history " , TDEShortcut ( " Ctrl+O " ) , m_viewContainer , TQ T _SLOT( openLogFile ( ) ) , actionCollection ( ) , " open_logfile " ) ;
new TDEToggleAction ( i18n ( " &Watched Nicks Online " ) , " kontact_contacts " , TDEShortcut ( " F4 " ) , m_viewContainer , TQ _SLOT( openNicksOnlinePanel ( ) ) , actionCollection ( ) , " open_nicksonline_window " ) ;
new TDEToggleAction ( i18n ( " &DCC Status " ) , " 2rightarrow " , TDEShortcut ( " F9 " ) , m_viewContainer , TQ _SLOT( toggleDccPanel ( ) ) , actionCollection ( ) , " open_dccstatus_window " ) ;
action = new TDEAction ( i18n ( " &Open Logfile " ) , " history " , TDEShortcut ( " Ctrl+O " ) , m_viewContainer , TQ _SLOT( openLogFile ( ) ) , actionCollection ( ) , " open_logfile " ) ;
action - > setEnabled ( false ) ;
action - > setToolTip ( i18n ( " Open the known history for this channel in a new tab " ) ) ;
action = new TDEAction ( i18n ( " &Channel Settings... " ) , " edit " , m_viewContainer , TQ T _SLOT( openChannelSettings ( ) ) , actionCollection ( ) , " channel_settings " ) ;
action = new TDEAction ( i18n ( " &Channel Settings... " ) , " edit " , m_viewContainer , TQ _SLOT( openChannelSettings ( ) ) , actionCollection ( ) , " channel_settings " ) ;
action - > setEnabled ( false ) ;
action - > setToolTip ( i18n ( " Open the channel settings dialog for this tab " ) ) ;
TDEToggleAction * channelListAction = new TDEToggleAction ( i18n ( " Channel &List " ) , " view_text " , TDEShortcut ( " F5 " ) , m_viewContainer , TQ T _SLOT( openChannelList ( ) ) , actionCollection ( ) , " open_channel_list " ) ;
TDEToggleAction * channelListAction = new TDEToggleAction ( i18n ( " Channel &List " ) , " view_text " , TDEShortcut ( " F5 " ) , m_viewContainer , TQ _SLOT( openChannelList ( ) ) , actionCollection ( ) , " open_channel_list " ) ;
channelListAction - > setEnabled ( false ) ;
channelListAction - > setToolTip ( i18n ( " Show a list of all the known channels on this server " ) ) ;
action = new TDEToggleAction ( i18n ( " &URL Catcher " ) , " enhanced_browsing " , TDEShortcut ( " F6 " ) , m_viewContainer , TQ T _SLOT( addUrlCatcher ( ) ) , actionCollection ( ) , " open_url_catcher " ) ;
action = new TDEToggleAction ( i18n ( " &URL Catcher " ) , " enhanced_browsing " , TDEShortcut ( " F6 " ) , m_viewContainer , TQ _SLOT( addUrlCatcher ( ) ) , actionCollection ( ) , " open_url_catcher " ) ;
action - > setToolTip ( i18n ( " List all URLs that have been mentioned recently in a new tab " ) ) ;
if ( kapp - > authorize ( " shell_access " ) )
{
action = new TDEAction ( i18n ( " New &Konsole " ) , " openterm " , 0 , m_viewContainer , TQ T _SLOT( addKonsolePanel ( ) ) , actionCollection ( ) , " open_konsole " ) ;
action = new TDEAction ( i18n ( " New &Konsole " ) , " openterm " , 0 , m_viewContainer , TQ _SLOT( addKonsolePanel ( ) ) , actionCollection ( ) , " open_konsole " ) ;
action - > setToolTip ( i18n ( " Open a terminal in a new tab " ) ) ;
}
@ -177,26 +177,26 @@ KonversationMainWindow::KonversationMainWindow() : TDEMainWindow(0,"main_window"
prevShortcut . setSeq ( 1 , KKeySequence ( " Alt+Left " ) ) ;
action = new TDEAction ( i18n ( " &Next Tab " ) , TQApplication : : reverseLayout ( ) ? " go-previous " : " go-next " ,
TQApplication : : reverseLayout ( ) ? prevShortcut : nextShortcut ,
m_viewContainer , TQ T _SLOT( showNextView ( ) ) , actionCollection ( ) , " next_tab " ) ;
m_viewContainer , TQ _SLOT( showNextView ( ) ) , actionCollection ( ) , " next_tab " ) ;
action - > setEnabled ( false ) ;
action = new TDEAction ( i18n ( " &Previous Tab " ) , TQApplication : : reverseLayout ( ) ? " go-next " : " go-previous " ,
TQApplication : : reverseLayout ( ) ? nextShortcut : prevShortcut ,
m_viewContainer , TQ T _SLOT( showPreviousView ( ) ) , actionCollection ( ) , " previous_tab " ) ;
m_viewContainer , TQ _SLOT( showPreviousView ( ) ) , actionCollection ( ) , " previous_tab " ) ;
action - > setEnabled ( false ) ;
action = new TDEAction ( i18n ( " Close &Tab " ) , " tab_remove " , TDEShortcut ( " Ctrl+w " ) , m_viewContainer , TQ T _SLOT( closeCurrentView ( ) ) , actionCollection ( ) , " close_tab " ) ;
action = new TDEAction ( i18n ( " Close &Tab " ) , " tab_remove " , TDEShortcut ( " Ctrl+w " ) , m_viewContainer , TQ _SLOT( closeCurrentView ( ) ) , actionCollection ( ) , " close_tab " ) ;
action - > setEnabled ( false ) ;
action = new TDEAction ( i18n ( " Next Active Tab " ) , 0 , TDEShortcut ( " Ctrl+Alt+Space " ) , m_viewContainer , TQ T _SLOT( showNextActiveView ( ) ) ,
action = new TDEAction ( i18n ( " Next Active Tab " ) , 0 , TDEShortcut ( " Ctrl+Alt+Space " ) , m_viewContainer , TQ _SLOT( showNextActiveView ( ) ) ,
actionCollection ( ) , " next_active_tab " ) ;
action - > setEnabled ( false ) ;
if ( Preferences : : tabPlacement ( ) = = PreferencesBase : : Left )
{
action = new TDEAction ( i18n ( " Move Tab Up " ) , " 1uparrow " , TDEShortcut ( " Alt+Shift+Left " ) ,
m_viewContainer , TQ T _SLOT( moveViewLeft ( ) ) , actionCollection ( ) , " move_tab_left " ) ;
m_viewContainer , TQ _SLOT( moveViewLeft ( ) ) , actionCollection ( ) , " move_tab_left " ) ;
action - > setEnabled ( false ) ;
action - > setToolTip ( " Move this tab " ) ;
action = new TDEAction ( i18n ( " Move Tab Down " ) , " 1downarrow " , TDEShortcut ( " Alt+Shift+Right " ) ,
m_viewContainer , TQ T _SLOT( moveViewRight ( ) ) , actionCollection ( ) , " move_tab_right " ) ;
m_viewContainer , TQ _SLOT( moveViewRight ( ) ) , actionCollection ( ) , " move_tab_right " ) ;
action - > setEnabled ( false ) ;
action - > setToolTip ( " Move this tab " ) ;
}
@ -206,16 +206,16 @@ KonversationMainWindow::KonversationMainWindow() : TDEMainWindow(0,"main_window"
if ( TQApplication : : reverseLayout ( ) )
{
action2 = new TDEAction ( i18n ( " Move Tab Right " ) , " 1rightarrow " , TDEShortcut ( " Alt+Shift+Right " ) ,
m_viewContainer , TQ T _SLOT( moveViewLeft ( ) ) , actionCollection ( ) , " move_tab_left " ) ;
m_viewContainer , TQ _SLOT( moveViewLeft ( ) ) , actionCollection ( ) , " move_tab_left " ) ;
action = new TDEAction ( i18n ( " Move Tab Left " ) , " 1leftarrow " , TDEShortcut ( " Alt+Shift+Left " ) ,
m_viewContainer , TQ T _SLOT( moveViewRight ( ) ) , actionCollection ( ) , " move_tab_right " ) ;
m_viewContainer , TQ _SLOT( moveViewRight ( ) ) , actionCollection ( ) , " move_tab_right " ) ;
}
else
{
action = new TDEAction ( i18n ( " Move Tab Left " ) , " 1leftarrow " , TDEShortcut ( " Alt+Shift+Left " ) ,
m_viewContainer , TQ T _SLOT( moveViewLeft ( ) ) , actionCollection ( ) , " move_tab_left " ) ;
m_viewContainer , TQ _SLOT( moveViewLeft ( ) ) , actionCollection ( ) , " move_tab_left " ) ;
action2 = new TDEAction ( i18n ( " Move Tab Right " ) , " 1rightarrow " , TDEShortcut ( " Alt+Shift+Right " ) ,
m_viewContainer , TQ T _SLOT( moveViewRight ( ) ) , actionCollection ( ) , " move_tab_right " ) ;
m_viewContainer , TQ _SLOT( moveViewRight ( ) ) , actionCollection ( ) , " move_tab_right " ) ;
}
action - > setEnabled ( false ) ;
@ -224,13 +224,13 @@ KonversationMainWindow::KonversationMainWindow() : TDEMainWindow(0,"main_window"
action2 - > setToolTip ( " Move this tab " ) ;
}
action = new TDEAction ( i18n ( " Rejoin Channel " ) , 0 , m_viewContainer , TQ T _SLOT( rejoinChannel ( ) ) , actionCollection ( ) , " rejoin_channel " ) ;
action = new TDEAction ( i18n ( " Rejoin Channel " ) , 0 , m_viewContainer , TQ _SLOT( rejoinChannel ( ) ) , actionCollection ( ) , " rejoin_channel " ) ;
action - > setEnabled ( false ) ;
action = new TDEToggleAction ( i18n ( " Enable Notifications " ) , 0 , 0 , m_viewContainer , TQ T _SLOT( toggleViewNotifications ( ) ) , actionCollection ( ) , " tab_notifications " ) ;
action = new TDEToggleAction ( i18n ( " Enable Notifications " ) , 0 , 0 , m_viewContainer , TQ _SLOT( toggleViewNotifications ( ) ) , actionCollection ( ) , " tab_notifications " ) ;
action - > setEnabled ( false ) ;
action = new TDEToggleAction ( i18n ( " Join on Connect " ) , 0 , 0 , m_viewContainer , TQ T _SLOT( toggleAutoJoin ( ) ) , actionCollection ( ) , " tab_autojoin " ) ;
action = new TDEToggleAction ( i18n ( " Join on Connect " ) , 0 , 0 , m_viewContainer , TQ _SLOT( toggleAutoJoin ( ) ) , actionCollection ( ) , " tab_autojoin " ) ;
action - > setEnabled ( false ) ;
TDESelectAction * selectAction = new TDESelectAction ( i18n ( " Set Encoding " ) , " charset " , 0 , actionCollection ( ) , " tab_encoding " ) ;
@ -239,66 +239,66 @@ KonversationMainWindow::KonversationMainWindow() : TDEMainWindow(0,"main_window"
encodingDescs . prepend ( i18n ( " Default " ) ) ;
selectAction - > setItems ( encodingDescs ) ;
selectAction - > setEnabled ( false ) ;
connect ( selectAction , TQ T _SIGNAL( activated ( int ) ) , m_viewContainer , TQ T _SLOT( changeViewCharset ( int ) ) ) ;
connect ( selectAction , TQ _SIGNAL( activated ( int ) ) , m_viewContainer , TQ _SLOT( changeViewCharset ( int ) ) ) ;
TQSignalMapper * tabSelectionMapper = new TQSignalMapper ( this ) ;
connect ( tabSelectionMapper , TQ T _SIGNAL( mapped ( int ) ) , m_viewContainer , TQ T _SLOT( goToView ( int ) ) ) ;
connect ( tabSelectionMapper , TQ _SIGNAL( mapped ( int ) ) , m_viewContainer , TQ _SLOT( goToView ( int ) ) ) ;
for ( uint i = 1 ; i < = 10 ; + + i )
{
TDEAction * tabSelectionAction = new TDEAction ( i18n ( " Go to Tab %1 " ) . arg ( i ) , 0 , TDEShortcut ( TQString ( " Alt+%1 " ) . arg ( i % 10 ) ) ,
tabSelectionMapper , TQ T _SLOT( map ( ) ) , actionCollection ( ) , TQString ( " go_to_tab_%1 " ) . arg ( i ) . local8Bit ( ) ) ;
tabSelectionMapper , TQ _SLOT( map ( ) ) , actionCollection ( ) , TQString ( " go_to_tab_%1 " ) . arg ( i ) . local8Bit ( ) ) ;
tabSelectionMapper - > setMapping ( tabSelectionAction , i - 1 ) ;
}
action = new TDEAction ( i18n ( " Clear &Marker Lines " ) , 0 , TDEShortcut ( " CTRL+SHIFT+R " ) , m_viewContainer , TQ T _SLOT( clearViewLines ( ) ) , actionCollection ( ) , " clear_lines " ) ;
action = new TDEAction ( i18n ( " Clear &Marker Lines " ) , 0 , TDEShortcut ( " CTRL+SHIFT+R " ) , m_viewContainer , TQ _SLOT( clearViewLines ( ) ) , actionCollection ( ) , " clear_lines " ) ;
action - > setToolTip ( i18n ( " Clear marker lines in the current tab " ) ) ;
action - > setEnabled ( false ) ;
action = new TDEAction ( i18n ( " &Clear Window " ) , 0 , TDEShortcut ( " Ctrl+L " ) , m_viewContainer , TQ T _SLOT( clearView ( ) ) , actionCollection ( ) , " clear_window " ) ;
action = new TDEAction ( i18n ( " &Clear Window " ) , 0 , TDEShortcut ( " Ctrl+L " ) , m_viewContainer , TQ _SLOT( clearView ( ) ) , actionCollection ( ) , " clear_window " ) ;
action - > setToolTip ( i18n ( " Clear the contents of the current tab " ) ) ;
action - > setEnabled ( false ) ;
action = new TDEAction ( i18n ( " Clear &All Windows " ) , 0 , TDEShortcut ( " CTRL+SHIFT+L " ) , m_viewContainer , TQ T _SLOT( clearAllViews ( ) ) , actionCollection ( ) , " clear_tabs " ) ;
action = new TDEAction ( i18n ( " Clear &All Windows " ) , 0 , TDEShortcut ( " CTRL+SHIFT+L " ) , m_viewContainer , TQ _SLOT( clearAllViews ( ) ) , actionCollection ( ) , " clear_tabs " ) ;
action - > setToolTip ( i18n ( " Clear the contents of all open tabs " ) ) ;
action - > setEnabled ( false ) ;
TDEToggleAction * awayAction = new TDEToggleAction ( i18n ( " Global Away " ) , TDEShortcut ( " Ctrl+Shift+A " ) , actionCollection ( ) , " toggle_away " ) ;
connect ( awayAction , TQ T _SIGNAL( toggled ( bool ) ) , static_cast < KonversationApplication * > ( kapp ) - > getAwayManager ( ) , TQ T _SLOT( toggleGlobalAway ( bool ) ) ) ;
connect ( awayAction , TQ _SIGNAL( toggled ( bool ) ) , static_cast < KonversationApplication * > ( kapp ) - > getAwayManager ( ) , TQ _SLOT( toggleGlobalAway ( bool ) ) ) ;
awayAction - > setEnabled ( false ) ;
action = new TDEAction ( i18n ( " &Join Channel... " ) , " add " , TDEShortcut ( " Ctrl+J " ) , m_viewContainer , TQ T _SLOT( showJoinChannelDialog ( ) ) , actionCollection ( ) , " join_channel " ) ;
action = new TDEAction ( i18n ( " &Join Channel... " ) , " add " , TDEShortcut ( " Ctrl+J " ) , m_viewContainer , TQ _SLOT( showJoinChannelDialog ( ) ) , actionCollection ( ) , " join_channel " ) ;
action - > setEnabled ( false ) ;
action - > setToolTip ( " Join a new channel on this server " ) ;
action = KStdAction : : find ( m_viewContainer , TQ T _SLOT( findText ( ) ) , actionCollection ( ) ) ;
action = KStdAction : : find ( m_viewContainer , TQ _SLOT( findText ( ) ) , actionCollection ( ) ) ;
action - > setEnabled ( false ) ;
action = KStdAction : : findNext ( m_viewContainer , TQ T _SLOT( findNextText ( ) ) , actionCollection ( ) ) ;
action = KStdAction : : findNext ( m_viewContainer , TQ _SLOT( findNextText ( ) ) , actionCollection ( ) ) ;
action - > setEnabled ( false ) ;
action = KStdAction : : findPrev ( m_viewContainer , TQ T _SLOT( findPrevText ( ) ) , actionCollection ( ) ) ;
action = KStdAction : : findPrev ( m_viewContainer , TQ _SLOT( findPrevText ( ) ) , actionCollection ( ) ) ;
action - > setEnabled ( false ) ;
action = new TDEAction ( i18n ( " &IRC Color... " ) , " colorize " , CTRL + Key_K , m_viewContainer , TQ T _SLOT( insertIRCColor ( ) ) , actionCollection ( ) , " irc_colors " ) ;
action = new TDEAction ( i18n ( " &IRC Color... " ) , " colorize " , CTRL + Key_K , m_viewContainer , TQ _SLOT( insertIRCColor ( ) ) , actionCollection ( ) , " irc_colors " ) ;
action - > setToolTip ( i18n ( " Set the color of your current IRC message " ) ) ;
action - > setEnabled ( false ) ;
action = new TDEAction ( i18n ( " &Marker Line " ) , 0 , TDEShortcut ( " Ctrl+R " ) , m_viewContainer , TQ T _SLOT( insertMarkerLine ( ) ) , actionCollection ( ) , " insert_marker_line " ) ;
action = new TDEAction ( i18n ( " &Marker Line " ) , 0 , TDEShortcut ( " Ctrl+R " ) , m_viewContainer , TQ _SLOT( insertMarkerLine ( ) ) , actionCollection ( ) , " insert_marker_line " ) ;
action - > setToolTip ( i18n ( " Insert a horizontal line into the current tab that only you can see " ) ) ;
action - > setEnabled ( false ) ;
action = new TDEAction ( i18n ( " Special &Character... " ) , " char " , TDEShortcut ( " Alt+Shift+C " ) , m_viewContainer , TQ T _SLOT( insertCharacter ( ) ) , actionCollection ( ) , " insert_character " ) ;
action = new TDEAction ( i18n ( " Special &Character... " ) , " char " , TDEShortcut ( " Alt+Shift+C " ) , m_viewContainer , TQ _SLOT( insertCharacter ( ) ) , actionCollection ( ) , " insert_character " ) ;
action - > setToolTip ( i18n ( " Insert any character into your current IRC message " ) ) ;
action - > setEnabled ( false ) ;
action = new TDEAction ( i18n ( " Close &All Open Queries " ) , 0 , TDEShortcut ( " F11 " ) , m_viewContainer , TQ T _SLOT( closeQueries ( ) ) , actionCollection ( ) , " close_queries " ) ;
action = new TDEAction ( i18n ( " Close &All Open Queries " ) , 0 , TDEShortcut ( " F11 " ) , m_viewContainer , TQ _SLOT( closeQueries ( ) ) , actionCollection ( ) , " close_queries " ) ;
action - > setEnabled ( false ) ;
TDEToggleAction * toggleChannelNickListsAction = new TDEToggleAction ( i18n ( " Hide Nicklist " ) , 0 ,
TDEShortcut ( " Ctrl+H " ) , m_viewContainer , TQ T _SLOT( toggleChannelNicklists ( ) ) , actionCollection ( ) , " hide_nicknamelist " ) ;
TDEShortcut ( " Ctrl+H " ) , m_viewContainer , TQ _SLOT( toggleChannelNicklists ( ) ) , actionCollection ( ) , " hide_nicknamelist " ) ;
if ( ! Preferences : : showNickList ( ) )
toggleChannelNickListsAction - > setChecked ( true ) ;
// set up system tray
m_trayIcon = new Konversation : : TrayIcon ( this ) ;
connect ( this , TQ T _SIGNAL( endNotification ( ) ) , m_trayIcon , TQ T _SLOT( endNotification ( ) ) ) ;
connect ( KonversationApplication : : instance ( ) , TQ T _SIGNAL( iconChanged ( int ) ) , m_trayIcon , TQ T _SLOT( updateAppearance ( ) ) ) ;
connect ( m_trayIcon , TQ T _SIGNAL( quitSelected ( ) ) , this , TQ T _SLOT( quitProgram ( ) ) ) ;
connect ( this , TQ _SIGNAL( endNotification ( ) ) , m_trayIcon , TQ _SLOT( endNotification ( ) ) ) ;
connect ( KonversationApplication : : instance ( ) , TQ _SIGNAL( iconChanged ( int ) ) , m_trayIcon , TQ _SLOT( updateAppearance ( ) ) ) ;
connect ( m_trayIcon , TQ _SIGNAL( quitSelected ( ) ) , this , TQ _SLOT( quitProgram ( ) ) ) ;
TDEPopupMenu * trayMenu = m_trayIcon - > contextMenu ( ) ;
# ifdef USE_KNOTIFY
configureNotificationsAction - > plug ( trayMenu ) ;
@ -457,7 +457,7 @@ void KonversationMainWindow::settingsChangedSlot()
// The appearanceChanged signal is connected to resetHasDirtySettings to reset this bool
if ( ! m_hasDirtySettings )
{
TQTimer : : singleShot ( 0 , KonversationApplication : : instance ( ) , TQ T _SIGNAL( appearanceChanged ( ) ) ) ;
TQTimer : : singleShot ( 0 , KonversationApplication : : instance ( ) , TQ _SIGNAL( appearanceChanged ( ) ) ) ;
m_hasDirtySettings = true ;
}
}
@ -500,7 +500,7 @@ int KonversationMainWindow::configureToolbar()
{
saveMainWindowSettings ( TDEGlobal : : config ( ) ) ;
KEditToolbar dlg ( actionCollection ( ) , xmlFile ( ) , true , this ) ;
connect ( & dlg , TQ T _SIGNAL( newToolbarConfig ( ) ) , TQ T _SLOT( saveToolbarConfig ( ) ) ) ;
connect ( & dlg , TQ _SIGNAL( newToolbarConfig ( ) ) , TQ _SLOT( saveToolbarConfig ( ) ) ) ;
return dlg . exec ( ) ;
}
@ -528,7 +528,7 @@ void KonversationMainWindow::openPrefsDialog()
m_settingsDialog = new KonviSettingsDialog ( this ) ;
//User edited the configuration - update your local copies of the
//configuration data
connect ( m_settingsDialog , TQ T _SIGNAL( settingsChanged ( ) ) , this , TQ T _SLOT( settingsChangedSlot ( ) ) ) ;
connect ( m_settingsDialog , TQ _SIGNAL( settingsChanged ( ) ) , this , TQ _SLOT( settingsChangedSlot ( ) ) ) ;
}
m_settingsDialog - > show ( ) ;
}
@ -566,15 +566,15 @@ void KonversationMainWindow::openServerList()
m_serverListDialog = new Konversation : : ServerListDialog ( this ) ;
KonversationApplication * konvApp = static_cast < KonversationApplication * > ( kapp ) ;
connect ( m_serverListDialog , TQ T _SIGNAL( serverGroupsChanged ( const Konversation : : ServerGroupSettings * ) ) ,
konvApp , TQ T _SIGNAL( serverGroupsChanged ( const Konversation : : ServerGroupSettings * ) ) ) ;
connect ( konvApp , TQ T _SIGNAL( serverGroupsChanged ( const Konversation : : ServerGroupSettings * ) ) ,
m_serverListDialog , TQ T _SLOT( updateServerList ( ) ) ) ;
connect ( m_serverListDialog , TQ T _SIGNAL( connectTo ( Konversation : : ConnectionFlag , int ) ) ,
konvApp - > getConnectionManager ( ) , TQ T _SLOT( connectTo ( Konversation : : ConnectionFlag , int ) ) ) ;
connect ( m_serverListDialog , TQ T _SIGNAL( connectTo ( Konversation : : ConnectionFlag , ConnectionSettings & ) ) ,
konvApp - > getConnectionManager ( ) , TQ T _SLOT( connectTo ( Konversation : : ConnectionFlag , ConnectionSettings & ) ) ) ;
connect ( konvApp - > getConnectionManager ( ) , TQ T _SIGNAL( closeServerList ( ) ) , m_serverListDialog , TQ T _SLOT( slotClose ( ) ) ) ;
connect ( m_serverListDialog , TQ _SIGNAL( serverGroupsChanged ( const Konversation : : ServerGroupSettings * ) ) ,
konvApp , TQ _SIGNAL( serverGroupsChanged ( const Konversation : : ServerGroupSettings * ) ) ) ;
connect ( konvApp , TQ _SIGNAL( serverGroupsChanged ( const Konversation : : ServerGroupSettings * ) ) ,
m_serverListDialog , TQ _SLOT( updateServerList ( ) ) ) ;
connect ( m_serverListDialog , TQ _SIGNAL( connectTo ( Konversation : : ConnectionFlag , int ) ) ,
konvApp - > getConnectionManager ( ) , TQ _SLOT( connectTo ( Konversation : : ConnectionFlag , int ) ) ) ;
connect ( m_serverListDialog , TQ _SIGNAL( connectTo ( Konversation : : ConnectionFlag , ConnectionSettings & ) ) ,
konvApp - > getConnectionManager ( ) , TQ _SLOT( connectTo ( Konversation : : ConnectionFlag , ConnectionSettings & ) ) ) ;
connect ( konvApp - > getConnectionManager ( ) , TQ _SIGNAL( closeServerList ( ) ) , m_serverListDialog , TQ _SLOT( slotClose ( ) ) ) ;
}
m_serverListDialog - > show ( ) ;