20 #ifndef __kbookmarkmenu_h__
21 #define __kbookmarkmenu_h__
23 #include <sys/types.h>
25 #include <tqptrlist.h>
26 #include <tqptrstack.h>
28 #include <tqlistview.h>
30 #include <kdialogbase.h>
31 #include <tdelocale.h>
32 #include <tdeaction.h>
34 #include "kbookmark.h"
35 #include "kbookmarkmanager.h"
46 class TDEActionCollection;
51 namespace TDEIO {
class Job; }
104 TDEActionCollection * collec,
bool root,
bool add =
true,
105 const TQString & parentAddress =
"" );
114 void fillBookmarkMenu();
120 void ensureUpToDate();
133 class DynMenuInfoPrivate *d;
140 static DynMenuInfo showDynamicBookmarks(
const TQString &
id );
150 static void setDynamicBookmarks(
const TQString &
id,
const DynMenuInfo &info );
156 static TQStringList dynamicBookmarksList();
159 void aboutToShowContextMenu(
const KBookmark &, TQPopupMenu * );
166 void slotBookmarksChanged(
const TQString & );
169 void slotAboutToShow();
170 void slotAboutToShowContextMenu( TDEPopupMenu *,
int, TQPopupMenu * );
171 void slotActionHighlighted( TDEAction * );
173 void slotRMBActionRemove(
int );
174 void slotRMBActionInsert(
int );
175 void slotRMBActionCopyLocation(
int );
176 void slotRMBActionEditAt(
int );
177 void slotRMBActionProperties(
int );
179 void slotBookmarkSelected();
183 void slotBookmarkSelected( TDEAction::ActivationReason reason, TQt::ButtonState state );
184 void slotAddBookmarksList();
185 void slotAddBookmark();
186 void slotNewFolder();
196 void addAddBookmark();
197 void addAddBookmarksList();
198 void addEditBookmarks();
201 void fillContextMenu( TQPopupMenu *,
const TQString &,
int );
204 bool m_bAddBookmark:1;
206 bool m_bNSBookmark:1;
207 bool m_bAddShortcuts:1;
220 TDEActionCollection * m_actionCollection;
231 static TQString s_highlightedAddress;
232 static TQString s_highlightedImportLocation;
233 static TQString s_highlightedImportType;
244 m_menu(menu), m_actionCollection(act), m_pManager(mgr) {}
246 void openNSBookmarks();
247 void openBookmarks(
const TQString &location,
const TQString &type );
248 void connectToImporter(
const TQObject &importer );
251 void newBookmark(
const TQString & text,
const TQCString & url,
const TQString & );
252 void newFolder(
const TQString & text,
bool,
const TQString & );
257 TQPtrStack<KBookmarkMenu> mstack;
259 TDEActionCollection * m_actionCollection;
This class implements the reading/writing of bookmarks in XML.
The KBookmarkMenu and KBookmarkBar classes gives the user the ability to either edit bookmarks or add...