svn path=/trunk/KDE/kdebase/apps/; revision=704553
popup->addSeparator();
// insert 'Bookmark This Folder' entry if exactly one item is selected
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)) {
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
}
// Insert 'Open With...' sub menu
QAction* activatedAction = popup->exec(QCursor::pos());
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(),
const KUrl selectedUrl(m_fileInfo.url());
if (selectedUrl.isValid()) {
DolphinSettings::instance().placesModel()->addPlace(selectedUrl.fileName(),
- 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"));
popup->addSeparator();
QAction* propertiesAction = popup->addAction(i18nc("@action:inmenu", "Properties"));
const KUrl& url = m_mainWindow->activeViewContainer()->url();
KPropertiesDialog dialog(url);
dialog.exec();
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);
const KUrl& url = m_mainWindow->activeViewContainer()->url();
if (url.isValid()) {
DolphinSettings::instance().placesModel()->addPlace(url.fileName(), url);
* @brief Manages and stores all settings from Dolphin.
*
* The following properties are stored:
* @brief Manages and stores all settings from Dolphin.
*
* The following properties are stored:
- * - Url navigator state (editable or not)
+ * - URL navigator state (editable or not)
- * - bookmarks
- * - properties for icons and details view
+ * - properties for views
*/
class LIBDOLPHINPRIVATE_EXPORT DolphinSettings
{
*/
class LIBDOLPHINPRIVATE_EXPORT DolphinSettings
{
/**
* @brief Settings dialog for Dolphin.
*
/**
* @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>
*/
*
* @author Peter Penz <peter.penz@gmx.at>
*/
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
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;
}
// and hence the view must be reset.
keepOldDirs = false;
}
K3Icon::SizeEnormous);
m_preview->setPixmap(icon);
m_nameLabel->setText(i18ncp("@info", "%1 item selected", "%1 items selected", selectedItems.count()));
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);
// try to get a preview pixmap from the item...
KUrl::List list;
list.append(file);
void InfoSidebarPage::showIcon(const KFileItem& item)
{
m_pendingPreview = false;
void InfoSidebarPage::showIcon(const KFileItem& item)
{
m_pendingPreview = false;
- if (!applyBookmark(item.url())) {
+ if (!applyPlace(item.url())) {
m_preview->setPixmap(item.pixmap(K3Icon::SizeEnormous));
}
}
m_preview->setPixmap(item.pixmap(K3Icon::SizeEnormous));
}
}
-bool InfoSidebarPage::applyBookmark(const KUrl& url)
+bool InfoSidebarPage::applyPlace(const KUrl& url)
{
KFilePlacesModel* placesModel = DolphinSettings::instance().placesModel();
int count = placesModel->rowCount();
{
KFilePlacesModel* placesModel = DolphinSettings::instance().placesModel();
int count = placesModel->rowCount();
enum { TimerDelay = 300 };
/**
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.
*/
* @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();
/** Assures that any pending item information request is cancelled. */
void cancelRequest();
{
Q_ASSERT(m_dirLister != 0);
{
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()) {
KFilePlacesModel* placesModel = DolphinSettings::instance().placesModel();
KUrl baseUrl = placesModel->url(placesModel->closestItem(url));
if (!baseUrl.isValid()) {
/**
* @brief Shows a tree view of the directories starting from
/**
* @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.
*
* The tree view is always synchronized with the currently active view
* from the main window.