From b419cfc5974192f3445b6a439b40bae4af119615 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sat, 28 Apr 2012 23:58:56 +0200 Subject: Places Panel fixes Implement adding, editing and removing of entries. Note that the result currently is still not stored in bookmarks.xml (this needs to wait until the hiding is implemented in the model). --- src/panels/places/placespanel.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/panels/places/placespanel.h') diff --git a/src/panels/places/placespanel.h b/src/panels/places/placespanel.h index c9ea7ba04..0b86ced1a 100644 --- a/src/panels/places/placespanel.h +++ b/src/panels/places/placespanel.h @@ -26,7 +26,9 @@ #include #include +class KStandardItem; class KItemListController; +class PlacesItemEditDialog; class PlacesItemModel; /** @@ -61,6 +63,18 @@ private: void addEntry(); void editEntry(int index); + /** + * Selects the item that has the closest URL for the URL set + * for the panel (see Panel::setUrl()). + */ + void selectClosestItem(); + + /** + * @return New instance of a KStandardItem containing the properties that have + * been set in the places-dialog. + */ + KStandardItem* createStandardItemFromDialog(PlacesItemEditDialog* dialog) const; + private: KItemListController* m_controller; PlacesItemModel* m_model; -- cgit v1.3.1