Changeset View
Changeset View
Standalone View
Standalone View
krusader/BookMan/krbookmarkhandler.h
Show First 20 Lines • Show All 77 Lines • ▼ Show 20 Line(s) | 75 | private: | |||
---|---|---|---|---|---|
78 | KrBookmark *_root; | 78 | KrBookmark *_root; | ||
79 | // the whole KBookmarkManager is an ugly hack. use it until we have our own | 79 | // the whole KBookmarkManager is an ugly hack. use it until we have our own | ||
80 | KBookmarkManager *manager; | 80 | KBookmarkManager *manager; | ||
81 | bool _middleClick; // if true, the user clicked the middle button to open the bookmark | 81 | bool _middleClick; // if true, the user clicked the middle button to open the bookmark | ||
82 | 82 | | |||
83 | QPointer<QMenu> _mainBookmarkPopup; // main bookmark popup menu | 83 | QPointer<QMenu> _mainBookmarkPopup; // main bookmark popup menu | ||
84 | QList<QAction *> _specialBookmarks; // the action list of the special bookmarks | 84 | QList<QAction *> _specialBookmarks; // the action list of the special bookmarks | ||
85 | 85 | | |||
86 | QWidgetAction *_quickSearchAction; | 86 | QWidgetAction *_quickSearchAction; ///< Search bar container action | ||
87 | QLineEdit *_quickSearchBar; | 87 | QLineEdit *_quickSearchBar; ///< Search bar containing current query | ||
88 | QMenu *_quickSearchMenu; ///< The menu where the search is performed | ||||
88 | QHash<QAction *, QString> _quickSearchOriginalActionTitles; ///< Saved original action text values to restore after search | 89 | QHash<QAction *, QString> _quickSearchOriginalActionTitles; ///< Saved original action text values to restore after search | ||
89 | 90 | | |||
90 | void _setQuickSearchText(const QString &text); | 91 | void _setQuickSearchText(const QString &text); | ||
91 | QString _quickSearchText() const; | 92 | QString _quickSearchText() const; | ||
92 | static void _highlightAction(QAction *action, bool isMatched = true); | 93 | static void _highlightAction(QAction *action, bool isMatched = true); | ||
93 | void _resetActionTextAndHighlighting(); | 94 | void _resetActionTextAndHighlighting(); | ||
94 | }; | 95 | }; | ||
95 | 96 | | |||
96 | Q_DECLARE_METATYPE(KrBookmark *) | 97 | Q_DECLARE_METATYPE(KrBookmark *) | ||
97 | 98 | | |||
98 | #endif // KRBOOKMARK_HANDLER_H | 99 | #endif // KRBOOKMARK_HANDLER_H |