]> cloud.milkyroute.net Git - dolphin.git/commitdiff
don't use the term "Bookmarks" anymore, use "Places" instead (includes devices etc.)
authorPeter Penz <peter.penz19@gmail.com>
Sat, 25 Aug 2007 10:42:10 +0000 (10:42 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Sat, 25 Aug 2007 10:42:10 +0000 (10:42 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=704553

src/dolphincontextmenu.cpp
src/dolphinsettings.h
src/dolphinsettingsdialog.h
src/dolphinview.cpp
src/infosidebarpage.cpp
src/infosidebarpage.h
src/treeviewsidebarpage.cpp
src/treeviewsidebarpage.h

index 8bd67111b54277f82a1ec041ef52ff4d8da53387..4b46455d79b0d579d811f22c0c99ff325735841e 100644 (file)
@@ -158,10 +158,10 @@ void DolphinContextMenu::openItemContextMenu()
     popup->addSeparator();
 
     // insert 'Bookmark This Folder' entry if exactly one item is selected
-    QAction* bookmarkAction = 0;
+    QAction* addToPlacesAction = 0;
     if (m_fileInfo.isDir() && (m_selectedUrls.count() == 1)) {
-        bookmarkAction = popup->addAction(KIcon("bookmark-folder"),
-                                          i18nc("@action:inmenu", "Bookmark Folder..."));
+        addToPlacesAction = popup->addAction(KIcon("bookmark-folder"),
+                                             i18nc("@action:inmenu Add selected folder to places", "Add to Places"));
     }
 
     // Insert 'Open With...' sub menu
@@ -179,7 +179,7 @@ void DolphinContextMenu::openItemContextMenu()
 
     QAction* activatedAction = popup->exec(QCursor::pos());
 
-    if ((bookmarkAction != 0) && (activatedAction == bookmarkAction)) {
+    if ((addToPlacesAction != 0) && (activatedAction == addToPlacesAction)) {
         const KUrl selectedUrl(m_fileInfo.url());
         if (selectedUrl.isValid()) {
             DolphinSettings::instance().placesModel()->addPlace(selectedUrl.fileName(),
@@ -240,8 +240,8 @@ void DolphinContextMenu::openViewportContextMenu()
 
     popup->addSeparator();
 
-    QAction* bookmarkAction = popup->addAction(KIcon("bookmark-folder"),
-                                               i18nc("@action:inmenu", "Bookmark This Folder..."));
+    QAction* addToPlacesAction = popup->addAction(KIcon("bookmark-folder"),
+                                                  i18nc("@action:inmenu Add current folder to places", "Add to Places"));
     popup->addSeparator();
 
     QAction* propertiesAction = popup->addAction(i18nc("@action:inmenu", "Properties"));
@@ -251,7 +251,7 @@ void DolphinContextMenu::openViewportContextMenu()
         const KUrl& url = m_mainWindow->activeViewContainer()->url();
         KPropertiesDialog dialog(url);
         dialog.exec();
-    } else if (action == bookmarkAction) {
+    } else if (action == addToPlacesAction) {
         const KUrl& url = m_mainWindow->activeViewContainer()->url();
         if (url.isValid()) {
             DolphinSettings::instance().placesModel()->addPlace(url.fileName(), url);
index 327e4defc8ec9101f6faf0907417e32653165add..dc1b0a8401d57c572c723f8917e1e22ffce59004 100644 (file)
@@ -33,12 +33,11 @@ class KFilePlacesModel;
  * @brief Manages and stores all settings from Dolphin.
  *
  * The following properties are stored:
- * - home Url
+ * - home URL
  * - default view mode
- * - Url navigator state (editable or not)
+ * - URL navigator state (editable or not)
  * - split view
- * - bookmarks
- * - properties for icons and details view
+ * - properties for views
  */
 class LIBDOLPHINPRIVATE_EXPORT DolphinSettings
 {
index 612baa3c2380c7bbd0a3ba7e26868b940424405d..d7bc4ddfb79a8802938dc6d34207bedbcd238ea7 100644 (file)
@@ -29,8 +29,7 @@ class DolphinMainWindow;
 /**
  * @brief Settings dialog for Dolphin.
  *
- * Contains the pages for general settings, view settings and
- * bookmark settings.
+ * Contains the pages for general settings and view settings.
  *
  * @author Peter Penz <peter.penz@gmx.at>
  */
index 01099b1cc0f967d9192e211193ee96d9a47cc5e4..207b236ee9e6e02e4c965fee23ec26e43d99b220 100644 (file)
@@ -576,7 +576,7 @@ void DolphinView::startDirLister(const KUrl& url, bool reload)
             const KUrl& dirListerUrl = m_dirLister->url();
             if ((dirListerUrl == url) || !m_dirLister->url().isParentOf(url)) {
                 // The current URL is not a child of the dir lister
-                // URL. This may happen when e. g. a bookmark has been selected
+                // URL. This may happen when e. g. a place has been selected
                 // and hence the view must be reset.
                 keepOldDirs = false;
             }
index b1dee423fb1ab063df084775554feb6011287316..ae692fc42f0d2bab11d582d1e8453b76ed5b02a4 100644 (file)
@@ -186,7 +186,7 @@ void InfoSidebarPage::showItemInfo()
                                            K3Icon::SizeEnormous);
         m_preview->setPixmap(icon);
         m_nameLabel->setText(i18ncp("@info", "%1 item selected", "%1 items selected", selectedItems.count()));
-    } else if (!applyBookmark(file)) {
+    } else if (!applyPlace(file)) {
         // try to get a preview pixmap from the item...
         KUrl::List list;
         list.append(file);
@@ -226,7 +226,7 @@ void InfoSidebarPage::slotTimeout()
 void InfoSidebarPage::showIcon(const KFileItem& item)
 {
     m_pendingPreview = false;
-    if (!applyBookmark(item.url())) {
+    if (!applyPlace(item.url())) {
         m_preview->setPixmap(item.pixmap(K3Icon::SizeEnormous));
     }
 }
@@ -241,7 +241,7 @@ void InfoSidebarPage::showPreview(const KFileItem& item,
     }
 }
 
-bool InfoSidebarPage::applyBookmark(const KUrl& url)
+bool InfoSidebarPage::applyPlace(const KUrl& url)
 {
     KFilePlacesModel* placesModel = DolphinSettings::instance().placesModel();
     int count = placesModel->rowCount();
index c78eaa0933c5c144e0aa9318a2a8084426f3dc7e..24e639dcd21d832d146c10dcf7d67d65d3b98234 100644 (file)
@@ -105,12 +105,12 @@ private:
     enum { TimerDelay = 300 };
 
     /**
-     * Checks whether the an URL is repesented by a bookmark. If yes,
-     * then the bookmark icon and name are shown instead of a preview.
-     * @return True, if the URL represents exactly a bookmark.
+     * Checks whether the an URL is repesented by a place. If yes,
+     * then the place icon and name are shown instead of a preview.
+     * @return True, if the URL represents exactly a place.
      * @param url The url to check.
      */
-    bool applyBookmark(const KUrl& url);
+    bool applyPlace(const KUrl& url);
 
     /** Assures that any pending item information request is cancelled. */
     void cancelRequest();
index 7b434a495c62ebd9b33c415f1728a8d70fb932f8..c8bae088b48920ffe52bee7428ab531933d4c51b 100644 (file)
@@ -189,7 +189,7 @@ void TreeViewSidebarPage::loadTree(const KUrl& url)
 {
     Q_ASSERT(m_dirLister != 0);
 
-    // adjust the root of the tree to the base bookmark
+    // adjust the root of the tree to the base place
     KFilePlacesModel* placesModel = DolphinSettings::instance().placesModel();
     KUrl baseUrl = placesModel->url(placesModel->closestItem(url));
     if (!baseUrl.isValid()) {
index 06631abda5562376e193385a8957d7b9ef31838d..05df1f75a718d52c4cc5b4b9f2e0323e5c3c54ed 100644 (file)
@@ -32,7 +32,7 @@ class QModelIndex;
 
 /**
  * @brief Shows a tree view of the directories starting from
- *        the currently selected bookmark.
+ *        the currently selected place.
  *
  * The tree view is always synchronized with the currently active view
  * from the main window.