@ -22,7 +22,7 @@
without including the source code for Qt in the source distribution .
*/
# include < qwidget.h>
# include < t qwidget.h>
# include <kaction.h>
# include <kactioncollection.h>
# include <klocale.h>
@ -30,9 +30,9 @@
# include <kshortcut.h>
# include <kxmlguifactory.h>
# include < qmap.h>
# include < qstring.h>
# include < qvaluelist.h>
# include < t qmap.h>
# include < t qstring.h>
# include < t qvaluelist.h>
# include "actionmanagerimpl.h"
# include "akregatorconfig.h"
@ -134,19 +134,19 @@ public:
KActionMenu * tagMenu ;
KActionCollection * actionCollection ;
TagSet * tagSet ;
QMap< QString, TagAction * > tagActions ;
T QMap< T QString, TagAction * > tagActions ;
TabWidget * tabWidget ;
KAction * speakSelectedArticlesAction ;
} ;
void ActionManagerImpl : : slotUpdateTagActions ( bool enabled , const QStringList& tagIds )
void ActionManagerImpl : : slotUpdateTagActions ( bool enabled , const T QStringList& tagIds )
{
if ( Settings : : showTaggingGUI ( ) & & d - > tagMenu )
{
d - > tagMenu - > setEnabled ( enabled ) ;
QValueList< TagAction * > actions = d - > tagActions . values ( ) ;
T QValueList< TagAction * > actions = d - > tagActions . values ( ) ;
for ( QValueList< TagAction * > : : ConstIterator it = actions . begin ( ) ; it ! = actions . end ( ) ; + + it )
for ( T QValueList< TagAction * > : : ConstIterator it = actions . begin ( ) ; it ! = actions . end ( ) ; + + it )
{
( * it ) - > setChecked ( tagIds . contains ( ( * it ) - > tag ( ) . id ( ) ) ) ;
}
@ -160,20 +160,20 @@ void ActionManagerImpl::setTagSet(TagSet* tagSet)
if ( d - > tagSet ! = 0 )
{
disconnect ( d - > tagSet , SIGNAL( signalTagAdded ( const Tag & ) ) , this , SLOT( slotTagAdded ( const Tag & ) ) ) ;
disconnect ( d - > tagSet , SIGNAL( signalTagRemoved ( const Tag & ) ) , this , SLOT( slotTagRemoved ( const Tag & ) ) ) ;
disconnect ( d - > tagSet , TQT_ SIGNAL( signalTagAdded ( const Tag & ) ) , this , TQT_ SLOT( slotTagAdded ( const Tag & ) ) ) ;
disconnect ( d - > tagSet , TQT_ SIGNAL( signalTagRemoved ( const Tag & ) ) , this , TQT_ SLOT( slotTagRemoved ( const Tag & ) ) ) ;
}
d - > tagSet = tagSet ;
if ( tagSet ! = 0 )
{
connect ( d - > tagSet , SIGNAL( signalTagAdded ( const Tag & ) ) , this , SLOT( slotTagAdded ( const Tag & ) ) ) ;
connect ( d - > tagSet , SIGNAL( signalTagRemoved ( const Tag & ) ) , this , SLOT( slotTagRemoved ( const Tag & ) ) ) ;
connect ( d - > tagSet , TQT_ SIGNAL( signalTagAdded ( const Tag & ) ) , this , TQT_ SLOT( slotTagAdded ( const Tag & ) ) ) ;
connect ( d - > tagSet , TQT_ SIGNAL( signalTagRemoved ( const Tag & ) ) , this , TQT_ SLOT( slotTagRemoved ( const Tag & ) ) ) ;
}
QValueList< TagAction * > actions = d - > tagActions . values ( ) ;
for ( QValueList< TagAction * > : : ConstIterator it = actions . begin ( ) ; it ! = actions . end ( ) ; + + it )
T QValueList< TagAction * > actions = d - > tagActions . values ( ) ;
for ( T QValueList< TagAction * > : : ConstIterator it = actions . begin ( ) ; it ! = actions . end ( ) ; + + it )
{
d - > tagMenu - > remove ( * it ) ;
delete * it ;
@ -186,8 +186,8 @@ void ActionManagerImpl::setTagSet(TagSet* tagSet)
if ( tagSet ! = 0L )
{
QValueList< Tag > list = tagSet - > toMap ( ) . values ( ) ;
for ( QValueList< Tag > : : ConstIterator it = list . begin ( ) ; it ! = list . end ( ) ; + + it )
T QValueList< Tag > list = tagSet - > toMap ( ) . values ( ) ;
for ( T QValueList< Tag > : : ConstIterator it = list . begin ( ) ; it ! = list . end ( ) ; + + it )
slotTagAdded ( * it ) ;
}
}
@ -199,7 +199,7 @@ void ActionManagerImpl::slotTagAdded(const Tag& tag)
if ( ! d - > tagActions . contains ( tag . id ( ) ) )
{
d - > tagActions [ tag . id ( ) ] = new TagAction ( tag , d - > view , SLOT( slotAssignTag ( const Tag & , bool ) ) , d - > tagMenu ) ;
d - > tagActions [ tag . id ( ) ] = new TagAction ( tag , d - > view , TQT_ SLOT( slotAssignTag ( const Tag & , bool ) ) , d - > tagMenu ) ;
d - > tagMenu - > insert ( d - > tagActions [ tag . id ( ) ] ) ;
}
}
@ -209,7 +209,7 @@ void ActionManagerImpl::slotTagRemoved(const Tag& tag)
if ( ! Settings : : showTaggingGUI ( ) )
return ;
QString id = tag . id ( ) ;
T QString id = tag . id ( ) ;
TagAction * action = d - > tagActions [ id ] ;
d - > tagMenu - > remove ( action ) ;
d - > tagActions . remove ( id ) ;
@ -222,7 +222,7 @@ void ActionManagerImpl::slotNodeSelected(TreeNode* node)
d - > nodeSelectVisitor - > visit ( node ) ;
}
ActionManagerImpl : : ActionManagerImpl ( Part * part , QObject* parent , const char * name ) : ActionManager ( parent , name ) , d ( new ActionManagerImplPrivate )
ActionManagerImpl : : ActionManagerImpl ( Part * part , T QObject* parent , const char * name ) : ActionManager ( parent , name ) , d ( new ActionManagerImplPrivate )
{
d - > nodeSelectVisitor = new NodeSelectVisitor ( this ) ;
d - > part = part ;
@ -262,15 +262,15 @@ void ActionManagerImpl::initTrayIcon(TrayIcon* trayIcon)
void ActionManagerImpl : : initPart ( )
{
new KAction ( i18n ( " &Import Feeds... " ) , " " , " " , d - > part , SLOT( fileImport ( ) ) , d - > actionCollection , " file_import " ) ;
new KAction ( i18n ( " &Export Feeds... " ) , " " , " " , d - > part , SLOT( fileExport ( ) ) , d - > actionCollection , " file_export " ) ;
//new KAction(i18n("&Get Feeds From Web..."), "", "", d->part, SLOT(fileGetFeeds()), d->actionCollection, "file_getfromweb");
new KAction ( i18n ( " &Import Feeds... " ) , " " , " " , d - > part , TQT_ SLOT( fileImport ( ) ) , d - > actionCollection , " file_import " ) ;
new KAction ( i18n ( " &Export Feeds... " ) , " " , " " , d - > part , TQT_ SLOT( fileExport ( ) ) , d - > actionCollection , " file_export " ) ;
//new KAction(i18n("&Get Feeds From Web..."), "", "", d->part, TQT_ SLOT(fileGetFeeds()), d->actionCollection, "file_getfromweb");
new KAction ( i18n ( " Send &Link Address... " ) , " mail_generic " , " " , d - > part , SLOT( fileSendLink ( ) ) , d - > actionCollection , " file_sendlink " ) ;
new KAction ( i18n ( " Send &File... " ) , " mail_generic " , " " , d - > part , SLOT( fileSendFile ( ) ) , d - > actionCollection , " file_sendfile " ) ;
new KAction ( i18n ( " Send &Link Address... " ) , " mail_generic " , " " , d - > part , TQT_ SLOT( fileSendLink ( ) ) , d - > actionCollection , " file_sendlink " ) ;
new KAction ( i18n ( " Send &File... " ) , " mail_generic " , " " , d - > part , TQT_ SLOT( fileSendFile ( ) ) , d - > actionCollection , " file_sendfile " ) ;
KStdAction : : configureNotifications ( d - > part , SLOT( showKNotifyOptions ( ) ) , d - > actionCollection ) ; // options_configure_notifications
new KAction ( i18n ( " Configure &Akregator... " ) , " configure " , " " , d - > part , SLOT( showOptions ( ) ) , d - > actionCollection , " akregator_configure_akregator " ) ;
KStdAction : : configureNotifications ( d - > part , TQT_ SLOT( showKNotifyOptions ( ) ) , d - > actionCollection ) ; // options_configure_notifications
new KAction ( i18n ( " Configure &Akregator... " ) , " configure " , " " , d - > part , TQT_ SLOT( showOptions ( ) ) , d - > actionCollection , " akregator_configure_akregator " ) ;
}
void ActionManagerImpl : : initView ( View * view )
@ -281,51 +281,51 @@ void ActionManagerImpl::initView(View* view)
d - > view = view ;
// tag actions
new KAction ( i18n ( " &New Tag... " ) , " " , " " , d - > view , SLOT( slotNewTag ( ) ) , actionCollection ( ) , " tag_new " ) ;
new KAction ( i18n ( " &New Tag... " ) , " " , " " , d - > view , TQT_ SLOT( slotNewTag ( ) ) , actionCollection ( ) , " tag_new " ) ;
// Feed/Feed Group popup menu
new KAction ( i18n ( " &Open Homepage " ) , " " , " Ctrl+H " , d - > view , SLOT( slotOpenHomepage ( ) ) , actionCollection ( ) , " feed_homepage " ) ;
new KAction ( i18n ( " &Add Feed... " ) , " bookmark_add " , " Insert " , d - > view , SLOT( slotFeedAdd ( ) ) , actionCollection ( ) , " feed_add " ) ;
new KAction ( i18n ( " Ne&w Folder... " ) , " folder_new " , " Shift+Insert " , d - > view , SLOT( slotFeedAddGroup ( ) ) , actionCollection ( ) , " feed_add_group " ) ;
new KAction ( i18n ( " &Delete Feed " ) , " editdelete " , " Alt+Delete " , d - > view , SLOT( slotFeedRemove ( ) ) , actionCollection ( ) , " feed_remove " ) ;
new KAction ( i18n ( " &Edit Feed... " ) , " edit " , " F2 " , d - > view , SLOT( slotFeedModify ( ) ) , actionCollection ( ) , " feed_modify " ) ;
new KAction ( i18n ( " &Open Homepage " ) , " " , " Ctrl+H " , d - > view , TQT_ SLOT( slotOpenHomepage ( ) ) , actionCollection ( ) , " feed_homepage " ) ;
new KAction ( i18n ( " &Add Feed... " ) , " bookmark_add " , " Insert " , d - > view , TQT_ SLOT( slotFeedAdd ( ) ) , actionCollection ( ) , " feed_add " ) ;
new KAction ( i18n ( " Ne&w Folder... " ) , " folder_new " , " Shift+Insert " , d - > view , TQT_ SLOT( slotFeedAddGroup ( ) ) , actionCollection ( ) , " feed_add_group " ) ;
new KAction ( i18n ( " &Delete Feed " ) , " editdelete " , " Alt+Delete " , d - > view , TQT_ SLOT( slotFeedRemove ( ) ) , actionCollection ( ) , " feed_remove " ) ;
new KAction ( i18n ( " &Edit Feed... " ) , " edit " , " F2 " , d - > view , TQT_ SLOT( slotFeedModify ( ) ) , actionCollection ( ) , " feed_modify " ) ;
KActionMenu * vm = new KActionMenu ( i18n ( " &View Mode " ) , actionCollection ( ) , " view_mode " ) ;
KRadioAction * ra = new KRadioAction ( i18n ( " &Normal View " ) , " view_top_bottom " , " Ctrl+Shift+1 " , d - > view , SLOT( slotNormalView ( ) ) , actionCollection ( ) , " normal_view " ) ;
KRadioAction * ra = new KRadioAction ( i18n ( " &Normal View " ) , " view_top_bottom " , " Ctrl+Shift+1 " , d - > view , TQT_ SLOT( slotNormalView ( ) ) , actionCollection ( ) , " normal_view " ) ;
ra - > setExclusiveGroup ( " ViewMode " ) ;
vm - > insert ( ra ) ;
ra = new KRadioAction ( i18n ( " &Widescreen View " ) , " view_left_right " , " Ctrl+Shift+2 " , d - > view , SLOT( slotWidescreenView ( ) ) , actionCollection ( ) , " widescreen_view " ) ;
ra = new KRadioAction ( i18n ( " &Widescreen View " ) , " view_left_right " , " Ctrl+Shift+2 " , d - > view , TQT_ SLOT( slotWidescreenView ( ) ) , actionCollection ( ) , " widescreen_view " ) ;
ra - > setExclusiveGroup ( " ViewMode " ) ;
vm - > insert ( ra ) ;
ra = new KRadioAction ( i18n ( " C&ombined View " ) , " view_text " , " Ctrl+Shift+3 " , d - > view , SLOT( slotCombinedView ( ) ) , actionCollection ( ) , " combined_view " ) ;
ra = new KRadioAction ( i18n ( " C&ombined View " ) , " view_text " , " Ctrl+Shift+3 " , d - > view , TQT_ SLOT( slotCombinedView ( ) ) , actionCollection ( ) , " combined_view " ) ;
ra - > setExclusiveGroup ( " ViewMode " ) ;
vm - > insert ( ra ) ;
// toolbar / feed menu
new KAction ( i18n ( " &Fetch Feed " ) , " down " , KStdAccel : : shortcut ( KStdAccel : : Reload ) , d - > view , SLOT( slotFetchCurrentFeed ( ) ) , actionCollection ( ) , " feed_fetch " ) ;
new KAction ( i18n ( " Fe&tch All Feeds " ) , " bottom " , " Ctrl+L " , d - > view , SLOT( slotFetchAllFeeds ( ) ) , actionCollection ( ) , " feed_fetch_all " ) ;
new KAction ( i18n ( " &Fetch Feed " ) , " down " , KStdAccel : : shortcut ( KStdAccel : : Reload ) , d - > view , TQT_ SLOT( slotFetchCurrentFeed ( ) ) , actionCollection ( ) , " feed_fetch " ) ;
new KAction ( i18n ( " Fe&tch All Feeds " ) , " bottom " , " Ctrl+L " , d - > view , TQT_ SLOT( slotFetchAllFeeds ( ) ) , actionCollection ( ) , " feed_fetch_all " ) ;
KAction * stopAction = new KAction ( i18n ( " &Abort Fetches " ) , " stop " , Key_Escape , Kernel : : self ( ) - > fetchQueue ( ) , SLOT( slotAbort ( ) ) , actionCollection ( ) , " feed_stop " ) ;
KAction * stopAction = new KAction ( i18n ( " &Abort Fetches " ) , " stop " , Key_Escape , Kernel : : self ( ) - > fetchQueue ( ) , TQT_ SLOT( slotAbort ( ) ) , actionCollection ( ) , " feed_stop " ) ;
stopAction - > setEnabled ( false ) ;
new KAction ( i18n ( " &Mark Feed as Read " ) , " goto " , " Ctrl+R " , d - > view , SLOT( slotMarkAllRead ( ) ) , actionCollection ( ) , " feed_mark_all_as_read " ) ;
new KAction ( i18n ( " Ma&rk All Feeds as Read " ) , " goto " , " Ctrl+Shift+R " , d - > view , SLOT( slotMarkAllFeedsRead ( ) ) , actionCollection ( ) , " feed_mark_all_feeds_as_read " ) ;
new KAction ( i18n ( " &Mark Feed as Read " ) , " goto " , " Ctrl+R " , d - > view , TQT_ SLOT( slotMarkAllRead ( ) ) , actionCollection ( ) , " feed_mark_all_as_read " ) ;
new KAction ( i18n ( " Ma&rk All Feeds as Read " ) , " goto " , " Ctrl+Shift+R " , d - > view , TQT_ SLOT( slotMarkAllFeedsRead ( ) ) , actionCollection ( ) , " feed_mark_all_feeds_as_read " ) ;
// Settings menu
KToggleAction * sqf = new KToggleAction ( i18n ( " Show Quick Filter " ) , QString: : null , 0 , d - > view , SLOT( slotToggleShowQuickFilter ( ) ) , actionCollection ( ) , " show_quick_filter " ) ;
KToggleAction * sqf = new KToggleAction ( i18n ( " Show Quick Filter " ) , T QString: : null , 0 , d - > view , TQT_ SLOT( slotToggleShowQuickFilter ( ) ) , actionCollection ( ) , " show_quick_filter " ) ;
sqf - > setChecked ( Settings : : showQuickFilter ( ) ) ;
new KAction ( i18n ( " Open in Tab " ) , " tab_new " , " Shift+Return " , d - > view , SLOT( slotOpenCurrentArticle ( ) ) , actionCollection ( ) , " article_open " ) ;
new KAction ( i18n ( " Open in Background Tab " ) , QString: : null , " tab_new " , d - > view , SLOT( slotOpenCurrentArticleBackgroundTab ( ) ) , actionCollection ( ) , " article_open_background_tab " ) ;
new KAction ( i18n ( " Open in External Browser " ) , " window_new " , " Ctrl+Shift+Return " , d - > view , SLOT( slotOpenCurrentArticleExternal ( ) ) , actionCollection ( ) , " article_open_external " ) ;
new KAction ( i18n ( " Copy Link Address " ) , QString: : null , QString: : null , d - > view , SLOT( slotCopyLinkAddress ( ) ) , actionCollection ( ) , " article_copy_link_address " ) ;
new KAction ( i18n ( " Open in Tab " ) , " tab_new " , " Shift+Return " , d - > view , TQT_ SLOT( slotOpenCurrentArticle ( ) ) , actionCollection ( ) , " article_open " ) ;
new KAction ( i18n ( " Open in Background Tab " ) , T QString: : null , " tab_new " , d - > view , TQT_ SLOT( slotOpenCurrentArticleBackgroundTab ( ) ) , actionCollection ( ) , " article_open_background_tab " ) ;
new KAction ( i18n ( " Open in External Browser " ) , " window_new " , " Ctrl+Shift+Return " , d - > view , TQT_ SLOT( slotOpenCurrentArticleExternal ( ) ) , actionCollection ( ) , " article_open_external " ) ;
new KAction ( i18n ( " Copy Link Address " ) , T QString: : null , T QString: : null , d - > view , TQT_ SLOT( slotCopyLinkAddress ( ) ) , actionCollection ( ) , " article_copy_link_address " ) ;
new KAction ( i18n ( " Pre&vious Unread Article " ) , " " , Key_Minus , d - > view , SLOT( slotPrevUnreadArticle ( ) ) , actionCollection ( ) , " go_prev_unread_article " ) ;
new KAction ( i18n ( " Ne&xt Unread Article " ) , " " , Key_Plus , d - > view , SLOT( slotNextUnreadArticle ( ) ) , actionCollection ( ) , " go_next_unread_article " ) ;
new KAction ( i18n ( " Pre&vious Unread Article " ) , " " , Key_Minus , d - > view , TQT_ SLOT( slotPrevUnreadArticle ( ) ) , actionCollection ( ) , " go_prev_unread_article " ) ;
new KAction ( i18n ( " Ne&xt Unread Article " ) , " " , Key_Plus , d - > view , TQT_ SLOT( slotNextUnreadArticle ( ) ) , actionCollection ( ) , " go_next_unread_article " ) ;
new KAction ( i18n ( " &Delete " ) , " editdelete " , " Delete " , d - > view , SLOT( slotArticleDelete ( ) ) , actionCollection ( ) , " article_delete " ) ;
new KAction ( i18n ( " &Delete " ) , " editdelete " , " Delete " , d - > view , TQT_ SLOT( slotArticleDelete ( ) ) , actionCollection ( ) , " article_delete " ) ;
if ( Settings : : showTaggingGUI ( ) )
{
@ -335,39 +335,39 @@ void ActionManagerImpl::initView(View* view)
KActionMenu * statusMenu = new KActionMenu ( i18n ( " &Mark As " ) ,
actionCollection ( ) , " article_set_status " ) ;
d - > speakSelectedArticlesAction = new KAction ( i18n ( " &Speak Selected Articles " ) , " kttsd " , " " , d - > view , SLOT( slotTextToSpeechRequest ( ) ) , actionCollection ( ) , " akr_texttospeech " ) ;
d - > speakSelectedArticlesAction = new KAction ( i18n ( " &Speak Selected Articles " ) , " kttsd " , " " , d - > view , TQT_ SLOT( slotTextToSpeechRequest ( ) ) , actionCollection ( ) , " akr_texttospeech " ) ;
KAction * abortTTS = new KAction ( i18n ( " &Stop Speaking " ) , " player_stop " , Key_Escape , SpeechClient : : self ( ) , SLOT( slotAbortJobs ( ) ) , actionCollection ( ) , " akr_aborttexttospeech " ) ;
KAction * abortTTS = new KAction ( i18n ( " &Stop Speaking " ) , " player_stop " , Key_Escape , SpeechClient : : self ( ) , TQT_ SLOT( slotAbortJobs ( ) ) , actionCollection ( ) , " akr_aborttexttospeech " ) ;
abortTTS - > setEnabled ( false ) ;
connect ( SpeechClient : : self ( ) , SIGNAL( signalActivated ( bool ) ) ,
abortTTS , SLOT( setEnabled ( bool ) ) ) ;
connect ( SpeechClient : : self ( ) , TQT_ SIGNAL( signalActivated ( bool ) ) ,
abortTTS , TQT_ SLOT( setEnabled ( bool ) ) ) ;
statusMenu - > insert ( new KAction ( KGuiItem ( i18n ( " as in: mark as read " , " &Read " ) , " " ,
i18n ( " Mark selected article as read " ) ) ,
" Ctrl+E " , d - > view , SLOT( slotSetSelectedArticleRead ( ) ) ,
" Ctrl+E " , d - > view , TQT_ SLOT( slotSetSelectedArticleRead ( ) ) ,
actionCollection ( ) , " article_set_status_read " ) ) ;
statusMenu - > insert ( new KAction ( KGuiItem ( i18n ( " &New " ) , " " ,
i18n ( " Mark selected article as new " ) ) ,
" Ctrl+N " , d - > view , SLOT( slotSetSelectedArticleNew ( ) ) ,
" Ctrl+N " , d - > view , TQT_ SLOT( slotSetSelectedArticleNew ( ) ) ,
actionCollection ( ) , " article_set_status_new " ) ) ;
statusMenu - > insert ( new KAction ( KGuiItem ( i18n ( " &Unread " ) , " " ,
i18n ( " Mark selected article as unread " ) ) ,
" Ctrl+U " , d - > view , SLOT( slotSetSelectedArticleUnread ( ) ) ,
" Ctrl+U " , d - > view , TQT_ SLOT( slotSetSelectedArticleUnread ( ) ) ,
actionCollection ( ) , " article_set_status_unread " ) ) ;
KToggleAction * importantAction = new KToggleAction ( i18n ( " &Mark as Important " ) , " flag " , " Ctrl+I " , actionCollection ( ) , " article_set_status_important " ) ;
importantAction - > setCheckedState ( i18n ( " Remove &Important Mark " ) ) ;
connect ( importantAction , SIGNAL( toggled ( bool ) ) , d - > view , SLOT( slotArticleToggleKeepFlag ( bool ) ) ) ;
connect ( importantAction , TQT_ SIGNAL( toggled ( bool ) ) , d - > view , TQT_ SLOT( slotArticleToggleKeepFlag ( bool ) ) ) ;
new KAction ( i18n ( " Move Node Up " ) , QString: : null , " Shift+Alt+Up " , view , SLOT( slotMoveCurrentNodeUp ( ) ) , d - > actionCollection , " feedstree_move_up " ) ;
new KAction ( i18n ( " Move Node Down " ) , QString: : null , " Shift+Alt+Down " , view , SLOT( slotMoveCurrentNodeDown ( ) ) , d - > actionCollection , " feedstree_move_down " ) ;
new KAction ( i18n ( " Move Node Left " ) , QString: : null , " Shift+Alt+Left " , view , SLOT( slotMoveCurrentNodeLeft ( ) ) , d - > actionCollection , " feedstree_move_left " ) ;
new KAction ( i18n ( " Move Node Right " ) , QString: : null , " Shift+Alt+Right " , view , SLOT( slotMoveCurrentNodeRight ( ) ) , d - > actionCollection , " feedstree_move_right " ) ;
new KAction ( i18n ( " Move Node Up " ) , T QString: : null , " Shift+Alt+Up " , view , TQT_ SLOT( slotMoveCurrentNodeUp ( ) ) , d - > actionCollection , " feedstree_move_up " ) ;
new KAction ( i18n ( " Move Node Down " ) , T QString: : null , " Shift+Alt+Down " , view , TQT_ SLOT( slotMoveCurrentNodeDown ( ) ) , d - > actionCollection , " feedstree_move_down " ) ;
new KAction ( i18n ( " Move Node Left " ) , T QString: : null , " Shift+Alt+Left " , view , TQT_ SLOT( slotMoveCurrentNodeLeft ( ) ) , d - > actionCollection , " feedstree_move_left " ) ;
new KAction ( i18n ( " Move Node Right " ) , T QString: : null , " Shift+Alt+Right " , view , TQT_ SLOT( slotMoveCurrentNodeRight ( ) ) , d - > actionCollection , " feedstree_move_right " ) ;
}
void ActionManagerImpl : : initArticleViewer ( ArticleViewer * articleViewer )
@ -385,8 +385,8 @@ void ActionManagerImpl::initArticleListView(ArticleListView* articleList)
else
d - > articleList = articleList ;
new KAction ( i18n ( " &Previous Article " ) , QString: : null , " Left " , articleList , SLOT( slotPreviousArticle ( ) ) , actionCollection ( ) , " go_previous_article " ) ;
new KAction ( i18n ( " &Next Article " ) , QString: : null , " Right " , articleList , SLOT( slotNextArticle ( ) ) , actionCollection ( ) , " go_next_article " ) ;
new KAction ( i18n ( " &Previous Article " ) , T QString: : null , " Left " , articleList , TQT_ SLOT( slotPreviousArticle ( ) ) , actionCollection ( ) , " go_previous_article " ) ;
new KAction ( i18n ( " &Next Article " ) , T QString: : null , " Right " , articleList , TQT_ SLOT( slotNextArticle ( ) ) , actionCollection ( ) , " go_next_article " ) ;
}
void ActionManagerImpl : : initListTabWidget ( ListTabWidget * listTabWidget )
@ -396,17 +396,17 @@ void ActionManagerImpl::initListTabWidget(ListTabWidget* listTabWidget)
else
d - > listTabWidget = listTabWidget ;
new KAction ( i18n ( " &Previous Feed " ) , " " , " P " , listTabWidget , SLOT( slotPrevFeed ( ) ) , actionCollection ( ) , " go_prev_feed " ) ;
new KAction ( i18n ( " &Next Feed " ) , " " , " N " , listTabWidget , SLOT( slotNextFeed ( ) ) , actionCollection ( ) , " go_next_feed " ) ;
new KAction ( i18n ( " N&ext Unread Feed " ) , " " , " Alt+Plus " , listTabWidget , SLOT( slotNextUnreadFeed ( ) ) , actionCollection ( ) , " go_next_unread_feed " ) ;
new KAction ( i18n ( " Prev&ious Unread Feed " ) , " " , " Alt+Minus " , listTabWidget , SLOT( slotPrevUnreadFeed ( ) ) , actionCollection ( ) , " go_prev_unread_feed " ) ;
new KAction ( i18n ( " Go to Top of Tree " ) , QString: : null , " Ctrl+Home " , listTabWidget , SLOT( slotItemBegin ( ) ) , d - > actionCollection , " feedstree_home " ) ;
new KAction ( i18n ( " Go to Bottom of Tree " ) , QString: : null , " Ctrl+End " , listTabWidget , SLOT( slotItemEnd ( ) ) , d - > actionCollection , " feedstree_end " ) ;
new KAction ( i18n ( " Go Left in Tree " ) , QString: : null , " Ctrl+Left " , listTabWidget , SLOT( slotItemLeft ( ) ) , d - > actionCollection , " feedstree_left " ) ;
new KAction ( i18n ( " Go Right in Tree " ) , QString: : null , " Ctrl+Right " , listTabWidget , SLOT( slotItemRight ( ) ) , d - > actionCollection , " feedstree_right " ) ;
new KAction ( i18n ( " Go Up in Tree " ) , QString: : null , " Ctrl+Up " , listTabWidget , SLOT( slotItemUp ( ) ) , d - > actionCollection , " feedstree_up " ) ;
new KAction ( i18n ( " Go Down in Tree " ) , QString: : null , " Ctrl+Down " , listTabWidget , SLOT( slotItemDown ( ) ) , d - > actionCollection , " feedstree_down " ) ;
new KAction ( i18n ( " &Previous Feed " ) , " " , " P " , listTabWidget , TQT_ SLOT( slotPrevFeed ( ) ) , actionCollection ( ) , " go_prev_feed " ) ;
new KAction ( i18n ( " &Next Feed " ) , " " , " N " , listTabWidget , TQT_ SLOT( slotNextFeed ( ) ) , actionCollection ( ) , " go_next_feed " ) ;
new KAction ( i18n ( " N&ext Unread Feed " ) , " " , " Alt+Plus " , listTabWidget , TQT_ SLOT( slotNextUnreadFeed ( ) ) , actionCollection ( ) , " go_next_unread_feed " ) ;
new KAction ( i18n ( " Prev&ious Unread Feed " ) , " " , " Alt+Minus " , listTabWidget , TQT_ SLOT( slotPrevUnreadFeed ( ) ) , actionCollection ( ) , " go_prev_unread_feed " ) ;
new KAction ( i18n ( " Go to Top of Tree " ) , T QString: : null , " Ctrl+Home " , listTabWidget , TQT_ SLOT( slotItemBegin ( ) ) , d - > actionCollection , " feedstree_home " ) ;
new KAction ( i18n ( " Go to Bottom of Tree " ) , T QString: : null , " Ctrl+End " , listTabWidget , TQT_ SLOT( slotItemEnd ( ) ) , d - > actionCollection , " feedstree_end " ) ;
new KAction ( i18n ( " Go Left in Tree " ) , T QString: : null , " Ctrl+Left " , listTabWidget , TQT_ SLOT( slotItemLeft ( ) ) , d - > actionCollection , " feedstree_left " ) ;
new KAction ( i18n ( " Go Right in Tree " ) , T QString: : null , " Ctrl+Right " , listTabWidget , TQT_ SLOT( slotItemRight ( ) ) , d - > actionCollection , " feedstree_right " ) ;
new KAction ( i18n ( " Go Up in Tree " ) , T QString: : null , " Ctrl+Up " , listTabWidget , TQT_ SLOT( slotItemUp ( ) ) , d - > actionCollection , " feedstree_up " ) ;
new KAction ( i18n ( " Go Down in Tree " ) , T QString: : null , " Ctrl+Down " , listTabWidget , TQT_ SLOT( slotItemDown ( ) ) , d - > actionCollection , " feedstree_down " ) ;
}
void ActionManagerImpl : : initTabWidget ( TabWidget * tabWidget )
@ -416,14 +416,14 @@ void ActionManagerImpl::initTabWidget(TabWidget* tabWidget)
else
d - > tabWidget = tabWidget ;
new KAction ( i18n ( " Select Next Tab " ) , " " , " Ctrl+Period " , d - > tabWidget , SLOT( slotNextTab ( ) ) , actionCollection ( ) , " select_next_tab " ) ;
new KAction ( i18n ( " Select Previous Tab " ) , " " , " Ctrl+Comma " , d - > tabWidget , SLOT( slotPreviousTab ( ) ) , actionCollection ( ) , " select_previous_tab " ) ;
new KAction ( i18n ( " Detach Tab " ) , " tab_breakoff " , CTRL + SHIFT + Key_B , d - > tabWidget , SLOT( slotDetachTab ( ) ) , actionCollection ( ) , " tab_detach " ) ;
new KAction ( i18n ( " Copy Link Address " ) , QString: : null , QString: : null , d - > tabWidget , SLOT( slotCopyLinkAddress ( ) ) , actionCollection ( ) , " tab_copylinkaddress " ) ;
new KAction ( i18n ( " &Close Tab " ) , " tab_remove " , KStdAccel : : close ( ) , d - > tabWidget , SLOT( slotCloseTab ( ) ) , actionCollection ( ) , " tab_remove " ) ;
new KAction ( i18n ( " Select Next Tab " ) , " " , " Ctrl+Period " , d - > tabWidget , TQT_ SLOT( slotNextTab ( ) ) , actionCollection ( ) , " select_next_tab " ) ;
new KAction ( i18n ( " Select Previous Tab " ) , " " , " Ctrl+Comma " , d - > tabWidget , TQT_ SLOT( slotPreviousTab ( ) ) , actionCollection ( ) , " select_previous_tab " ) ;
new KAction ( i18n ( " Detach Tab " ) , " tab_breakoff " , CTRL + SHIFT + Key_B , d - > tabWidget , TQT_ SLOT( slotDetachTab ( ) ) , actionCollection ( ) , " tab_detach " ) ;
new KAction ( i18n ( " Copy Link Address " ) , T QString: : null , T QString: : null , d - > tabWidget , TQT_ SLOT( slotCopyLinkAddress ( ) ) , actionCollection ( ) , " tab_copylinkaddress " ) ;
new KAction ( i18n ( " &Close Tab " ) , " tab_remove " , KStdAccel : : close ( ) , d - > tabWidget , TQT_ SLOT( slotCloseTab ( ) ) , actionCollection ( ) , " tab_remove " ) ;
}
QWidget* ActionManagerImpl : : container ( const char * name )
T QWidget* ActionManagerImpl : : container ( const char * name )
{
return d - > part - > factory ( ) - > container ( name , d - > part ) ;
}