diff options
| author | Peter Penz <[email protected]> | 2012-04-28 23:58:56 +0200 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2012-04-29 00:00:38 +0200 |
| commit | b419cfc5974192f3445b6a439b40bae4af119615 (patch) | |
| tree | 3e31094427b7f54fd6ffb5771890ed02e0662795 /src/panels/places/placespanel.h | |
| parent | 0a00f13bf246d37182dafcd053776048f63d2299 (diff) | |
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).
Diffstat (limited to 'src/panels/places/placespanel.h')
| -rw-r--r-- | src/panels/places/placespanel.h | 14 |
1 files changed, 14 insertions, 0 deletions
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 <KUrl> #include <panels/panel.h> +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; |
