urlNavigator->setUrlEditable(action->isChecked());
}
-void DolphinMainWindow::editLocation()
+void DolphinMainWindow::replaceLocation()
{
KUrlNavigator* navigator = m_activeViewContainer->urlNavigator();
navigator->setUrlEditable(true);
stop->setIcon(KIcon("process-stop"));
connect(stop, SIGNAL(triggered()), this, SLOT(stopLoading()));
- // TODO: the naming "Show full Location" is currently confusing...
KToggleAction* showFullLocation = actionCollection()->add<KToggleAction>("editable_location");
- showFullLocation->setText(i18nc("@action:inmenu Navigation Bar", "Show Full Location"));
+ showFullLocation->setText(i18nc("@action:inmenu Navigation Bar", "Editable Location"));
showFullLocation->setShortcut(Qt::CTRL | Qt::Key_L);
connect(showFullLocation, SIGNAL(triggered()), this, SLOT(toggleEditLocation()));
- KAction* editLocation = actionCollection()->addAction("edit_location");
- editLocation->setText(i18nc("@action:inmenu Navigation Bar", "Edit Location"));
- editLocation->setShortcut(Qt::Key_F6);
- connect(editLocation, SIGNAL(triggered()), this, SLOT(editLocation()));
+ KAction* replaceLocation = actionCollection()->addAction("replace_location");
+ replaceLocation->setText(i18nc("@action:inmenu Navigation Bar", "Replace Location"));
+ replaceLocation->setShortcut(Qt::Key_F6);
+ connect(replaceLocation, SIGNAL(triggered()), this, SLOT(replaceLocation()));
// setup 'Go' menu
KAction* backAction = KStandardAction::back(this, SLOT(goBack()), actionCollection());
void toggleEditLocation();
/**
- * Switches to the edit mode of the navigation bar. If the edit mode is
+ * Switches to the edit mode of the navigation bar and selects
+ * the whole URL, so that it can be replaced by the user. If the edit mode is
* already active, it is assured that the navigation bar get focused.
*/
- void editLocation();
+ void replaceLocation();
/** Goes back on step of the URL history. */
void goBack();
<!DOCTYPE kpartgui SYSTEM "kpartgui.dtd">
-<kpartgui name="dolphin" version="5">
+<kpartgui name="dolphin" version="6">
<MenuBar>
<Menu name="file">
<Action name="create_new" />
<Menu name="navigation_bar">
<text context="@title:menu">Navigation Bar</text>
<Action name="editable_location" />
- <Action name="edit_location" />
+ <Action name="replace_location" />
</Menu>
<Separator/>
<Action name="view_properties" />