kio
kbookmarkbar.cc File Reference
#include <qregexp.h>
#include <qfile.h>
#include <kbookmarkbar.h>
#include <kbookmarkdrag.h>
#include <kbookmarkmenu.h>
#include <kdebug.h>
#include <ktoolbar.h>
#include <ktoolbarbutton.h>
#include <kconfig.h>
#include <kpopupmenu.h>
#include "kbookmarkmenu_p.h"
#include "kbookmarkdombuilder.h"
#include "dptrtemplate.h"
#include <qapplication.h>
#include "kbookmarkbar.moc"
Include dependency graph for kbookmarkbar.cc:
Go to the source code of this file.
Defines | |
#define | CURRENT_MANAGER() |
#define | CURRENT_TOOLBAR() |
Functions | |
static KAction * | findPluggedAction (QPtrList< KAction > actions, KToolBar *tb, int id) |
static QString | handleToolbarDragMoveEvent (KBookmarkBarPrivate *p, KToolBar *tb, QPoint pos, QPtrList< KAction > actions, bool &atFirst, KBookmarkManager *mgr) |
static KAction * | handleToolbarMouseButton (QPoint pos, QPtrList< KAction > actions, KBookmarkManager *, QPoint &pt) |
static void | removeTempSep (KBookmarkBarPrivate *p) |
static RMB * | rmbSelf (KBookmarkBar *m) |
static bool | showInToolbar (const KBookmark &bk) |
Variables | |
static const int | const_sepId = -9999 |
Define Documentation
#define CURRENT_MANAGER | ( | ) |
Value:
( \ dptr()->m_filteredMgr ? dptr()->m_filteredMgr \ : m_pManager )
Definition at line 117 of file kbookmarkbar.cc.
#define CURRENT_TOOLBAR | ( | ) |
Value:
( \ dptr()->m_filteredMgr ? dptr()->m_filteredMgr->root() \ : m_pManager->toolbar() )
Definition at line 113 of file kbookmarkbar.cc.
Function Documentation
Definition at line 285 of file kbookmarkbar.cc.
static QString handleToolbarDragMoveEvent | ( | KBookmarkBarPrivate * | p, | |
KToolBar * | tb, | |||
QPoint | pos, | |||
QPtrList< KAction > | actions, | |||
bool & | atFirst, | |||
KBookmarkManager * | mgr | |||
) | [static] |
Handle a QDragMoveEvent event on a toolbar drop.
- Returns:
- the address of the bookmark to be dropped after/before else a QString::null if event should be ignored
- Parameters:
-
pos the current QDragMoveEvent position the toolbar actions the list of actions plugged into the bar atFirst bool reference, when true the position before the returned action was dropped on
Definition at line 304 of file kbookmarkbar.cc.
static KAction* handleToolbarMouseButton | ( | QPoint | pos, | |
QPtrList< KAction > | actions, | |||
KBookmarkManager * | , | |||
QPoint & | pt | |||
) | [static] |
Definition at line 385 of file kbookmarkbar.cc.
static void removeTempSep | ( | KBookmarkBarPrivate * | p | ) | [static] |
Definition at line 277 of file kbookmarkbar.cc.
static RMB* rmbSelf | ( | KBookmarkBar * | m | ) | [static] |
Definition at line 418 of file kbookmarkbar.cc.
static bool showInToolbar | ( | const KBookmark & | bk | ) | [static] |
Definition at line 525 of file kbookmarkbar.cc.
Variable Documentation
const int const_sepId = -9999 [static] |
Definition at line 273 of file kbookmarkbar.cc.