[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    playground/network/videocatcher/src
From:       Jonas Emanuel Müller <zanoi () zanoi ! net>
Date:       2011-08-18 20:27:49
Message-ID: 20110818202749.4B905AC876 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1247965 by jonasemuller:

Make action names short and statups tips longer


 M  +14 -13    mainwindowkde.cpp  


--- trunk/playground/network/videocatcher/src/mainwindowkde.cpp #1247964:1247965
@@ -143,6 +143,7 @@
     d->m_searchText->setClearButtonShown( true );
     d->m_searchText->setClickMessage( i18nc( "Search episodes", "Search" ) );
     d->m_searchText->setCompletionMode( KGlobalSettings::CompletionPopup );
+    d->m_searchText->setMaximumWidth(300);
     
     setupActions();
     connect(d->m_episodeView, SIGNAL(doubleClicked(const QModelIndex &)), this, \
SLOT(episodeDoubleClicked(const QModelIndex &))); @@ -212,21 +213,21 @@
     
     KAction *importChannelsAction = new KAction(i18n("&Import from File"), this);
     importChannelsAction->setIcon(KIcon("document-import"));
-    importChannelsAction->setStatusTip(i18n("Import new channels from file"));
+    importChannelsAction->setStatusTip(i18n("Import a list of channels from a \
                file"));
     actionCollection()->addAction("importChannels", importChannelsAction);
     connect(importChannelsAction, SIGNAL(triggered()), this, \
SLOT(importChannels()));  
     KAction *addChannelAction = new KAction(i18n("&Add Channel"), this);
     addChannelAction->setIcon(KIcon("feed-subscribe"));
     addChannelAction->setShortcuts(KShortcut("Insert"));
-    addChannelAction->setStatusTip(i18n("Add a new channel"));
+    addChannelAction->setStatusTip(i18n("Add new channel"));
     actionCollection()->addAction("add", addChannelAction);
     connect(addChannelAction, SIGNAL(triggered()), this, SLOT(addChannel()));
 
-    KAction *removeChannelAction = new KAction(i18n("Remo&ve Channel"), this);
+    KAction *removeChannelAction = new KAction(i18n("Remo&ve"), this);
     removeChannelAction->setIcon(KIcon("edit-delete"));
     removeChannelAction->setShortcuts(KShortcut("Alt+Delete"));
-    removeChannelAction->setStatusTip(i18n("Remove channel"));
+    removeChannelAction->setStatusTip(i18n("Remove currently selected channel"));
     actionCollection()->addAction("remove", removeChannelAction);
     connect(removeChannelAction, SIGNAL(triggered()), this, SLOT(removeChannel()));
 
@@ -240,7 +241,7 @@
     KAction *refreshChannelAction = new KAction(i18n("&Refresh Channel"), this);
     refreshChannelAction->setIcon(KIcon("view-refresh"));
     refreshChannelAction->setShortcuts(KStandardShortcut::shortcut(KStandardShortcut::Reload));
                
-    refreshChannelAction->setStatusTip(i18n("Refresh selected channel"));
+    refreshChannelAction->setStatusTip(i18n("Refresh currently selected channel"));
     //if not connected to any network
     if(Solid::Networking::status() != Solid::Networking::Connected && \
Solid::Networking::status() != Solid::Networking::Unknown) {  \
refreshChannelAction->setEnabled(false); @@ -251,7 +252,7 @@
     KAction *refreshAllChannelsAction = new KAction(i18n("Refresh &All Channels"), \
this);  refreshAllChannelsAction->setShortcuts(KShortcut("Ctrl+L"));
     refreshAllChannelsAction->setIcon(KIcon("view-refresh")); //"go-bottom"
-    refreshAllChannelsAction->setStatusTip(i18n("Refresh all channels"));
+    refreshAllChannelsAction->setStatusTip(i18n("Check all channels to see if new \
episodes are available"));  //if not connected to any network
     if(Solid::Networking::status() != Solid::Networking::Connected && \
Solid::Networking::status() != Solid::Networking::Unknown) {  \
refreshAllChannelsAction->setEnabled(false); @@ -259,10 +260,10 @@
     actionCollection()->addAction("refreshAll", refreshAllChannelsAction);
     connect(refreshAllChannelsAction, SIGNAL(triggered()), this, \
SLOT(refreshAllChannels()));  
-    KAction *downloadEpisodeAction = new KAction(i18n("&Download Episode"), this);
+    KAction *downloadEpisodeAction = new KAction(i18n("&Download"), this);
     //downloadEpisodeAction->setShortcut(i18n(""));
     downloadEpisodeAction->setIcon(KIcon("download"));
-    downloadEpisodeAction->setStatusTip(i18n("Download episode"));
+    downloadEpisodeAction->setStatusTip(i18n("Download currently selected \
episode"));  downloadEpisodeAction->setEnabled(false);
     actionCollection()->addAction("download", downloadEpisodeAction);
     connect(downloadEpisodeAction, SIGNAL(triggered()), this, \
SLOT(downloadEpisode())); @@ -270,26 +271,26 @@
     KAction *cancelEpisodeDownloadAction = new KAction(i18n("&Cancel Download"), \
this);  //cancelEpisodeDownloadAction->setShortcut(i18n(""));
     cancelEpisodeDownloadAction->setIcon(KIcon("process-stop"));
-    cancelEpisodeDownloadAction->setStatusTip(i18n("Cancel download"));
+    cancelEpisodeDownloadAction->setStatusTip(i18n("Cancel currently selected \
download"));  cancelEpisodeDownloadAction->setEnabled(false);
     actionCollection()->addAction("cancel", cancelEpisodeDownloadAction);
     connect(cancelEpisodeDownloadAction, SIGNAL(triggered()), this,
         SLOT(cancelEpisodeDownload()));
 
-    d->m_playMenu = new KActionMenu(i18n("&Play Episode"), this);
+    d->m_playMenu = new KActionMenu(i18n("&Play"), this);
     d->m_playMenu->setShortcuts(KShortcut("Space"));
     d->m_playMenu->setIcon(KIcon("media-playback-start"));
-    d->m_playMenu->setStatusTip(i18n("Play episode"));
+    d->m_playMenu->setStatusTip(i18n("Play currently selected episode"));
     d->m_playMenu->setEnabled(false);
     d->m_playMenu->setDelayed(true);
     actionCollection()->addAction("play", d->m_playMenu);
     connect(d->m_playMenu, SIGNAL(triggered()), this, SLOT(playEpisode()));
     d->m_playMenuActions = new QStringList;
 
-    KAction *streamEpisodeAction = new KAction(i18n("&Stream Episode"), this);
+    KAction *streamEpisodeAction = new KAction(i18n("&Stream"), this);
     //streamEpisodeAction->setShortcut(i18n(""));
     //streamEpisodeAction->setIcon(KIcon(""));
-    streamEpisodeAction->setStatusTip(i18n("Stream episode"));
+    streamEpisodeAction->setStatusTip(i18n("Stream currently selected episode"));
     streamEpisodeAction->setEnabled(false);
     actionCollection()->addAction("stream", streamEpisodeAction);
     connect(streamEpisodeAction, SIGNAL(triggered()), this, SLOT(streamEpisode()));


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic