mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-20 08:51:24 +00:00
'New bookmark' feature, requested by Carsten.
A small issue with the icon though. svn path=/trunk/kdebase/konqueror/keditbookmarks/; revision=92790
This commit is contained in:
parent
a2c4c2c47b
commit
570702ed46
|
@ -9,6 +9,7 @@
|
|||
<Action name="exportNS"/>
|
||||
<Action name="exportMoz"/>
|
||||
<Separator/><!-- Creation -->
|
||||
<Action name="newbookmark"/>
|
||||
<Action name="newfolder"/>
|
||||
<Action name="insertseparator"/>
|
||||
<Separator/>
|
||||
|
@ -43,6 +44,7 @@
|
|||
<Action name="edit_undo"/>
|
||||
<Action name="edit_redo"/>
|
||||
<Action name="delete"/>
|
||||
<Action name="newbookmark"/>
|
||||
<Action name="newfolder"/>
|
||||
</ToolBar>
|
||||
|
||||
|
@ -59,6 +61,7 @@
|
|||
<Action name="changeicon"/>
|
||||
<Action name="delete"/>
|
||||
<Separator/><!-- Creation -->
|
||||
<Action name="newbookmark"/>
|
||||
<Action name="newfolder"/>
|
||||
<Action name="insertseparator"/>
|
||||
<Separator/><!-- Stuff for folders -->
|
||||
|
@ -81,6 +84,7 @@
|
|||
<Action name="changeurl"/>
|
||||
<Action name="changeicon"/>
|
||||
<Separator/><!-- Creation -->
|
||||
<Action name="newbookmark"/>
|
||||
<Action name="newfolder"/>
|
||||
<Action name="insertseparator"/>
|
||||
<Separator/><!-- Dangerous actions :/ -->
|
||||
|
|
|
@ -172,8 +172,9 @@ KEBTopLevel::KEBTopLevel( const QString & bookmarksFile )
|
|||
(void) new KAction( i18n( "&Delete" ), "editdelete", Key_Delete, this, SLOT( slotDelete() ), actionCollection(), "delete" );
|
||||
(void) new KAction( i18n( "&Rename" ), "text", Key_F2, this, SLOT( slotRename() ), actionCollection(), "rename" );
|
||||
(void) new KAction( i18n( "Change &URL" ), "text", Key_F3, this, SLOT( slotChangeURL() ), actionCollection(), "changeurl" );
|
||||
(void) new KAction( i18n( "Chan&ge Icon" ), "www", 0, this, SLOT( slotChangeIcon() ), actionCollection(), "changeicon" );
|
||||
(void) new KAction( i18n( "Chan&ge Icon" ), 0, this, SLOT( slotChangeIcon() ), actionCollection(), "changeicon" );
|
||||
(void) new KAction( i18n( "&Create New Folder" ), "folder_new", CTRL+Key_N, this, SLOT( slotNewFolder() ), actionCollection(), "newfolder" );
|
||||
(void) new KAction( i18n( "&Create New Bookmark" ), "www", 0, this, SLOT( slotNewBookmark() ), actionCollection(), "newbookmark" );
|
||||
(void) new KAction( i18n( "&Insert separator" ), CTRL+Key_I, this, SLOT( slotInsertSeparator() ), actionCollection(), "insertseparator" );
|
||||
(void) new KAction( i18n( "&Sort alphabetically" ), 0, this, SLOT( slotSort() ), actionCollection(), "sort" );
|
||||
(void) new KAction( i18n( "Set As &Toolbar Folder" ), "bookmark_toolbar", 0, this, SLOT( slotSetAsToolbar() ), actionCollection(), "setastoolbar" );
|
||||
|
@ -345,6 +346,17 @@ void KEBTopLevel::slotNewFolder()
|
|||
}
|
||||
}
|
||||
|
||||
void KEBTopLevel::slotNewBookmark()
|
||||
{
|
||||
if( !m_pListView->selectedItem() )
|
||||
{
|
||||
kdWarning() << "KEBTopLevel::slotNewBookmark no selected item !" << endl;
|
||||
return;
|
||||
}
|
||||
CreateCommand * cmd = new CreateCommand( i18n("Create bookmark" ), insertionAddress(), QString::null, KURL() );
|
||||
m_commandHistory.addCommand( cmd );
|
||||
}
|
||||
|
||||
void KEBTopLevel::slotInsertSeparator()
|
||||
{
|
||||
CreateCommand * cmd = new CreateCommand( i18n("Insert separator"), insertionAddress() );
|
||||
|
|
|
@ -106,6 +106,7 @@ public slots:
|
|||
void slotChangeIcon();
|
||||
void slotDelete();
|
||||
void slotNewFolder();
|
||||
void slotNewBookmark();
|
||||
void slotInsertSeparator();
|
||||
void slotSort();
|
||||
void slotSetAsToolbar();
|
||||
|
|
Loading…
Reference in a new issue