mirror of
https://invent.kde.org/graphics/okular
synced 2024-09-12 20:51:17 +00:00
eed32c7654
feels better. Updated TODO with interesting things. Note: I feel performance loss. Need to check carefully all zoom functions, relayouts and wasted paints. I'll love to do that after merging to HEAD. Note to all: HEAD merge only after API will be final (the only 2 variables are MemManager, ThreadedGen and maybe a DocumentDom (if I can make it next weekend, but I think not)). svn path=/branches/kpdf_experiments/kdegraphics/kpdf/; revision=370404
43 lines
1.4 KiB
C++
43 lines
1.4 KiB
C++
/***************************************************************************
|
|
* Copyright (C) 2004 by Enrico Ros <eros.kde@email.it> *
|
|
* *
|
|
* This program is free software; you can redistribute it and/or modify *
|
|
* it under the terms of the GNU General Public License as published by *
|
|
* the Free Software Foundation; either version 2 of the License, or *
|
|
* (at your option) any later version. *
|
|
***************************************************************************/
|
|
|
|
#ifndef _KPDF_SEARCHWIDGET_H_
|
|
#define _KPDF_SEARCHWIDGET_H_
|
|
|
|
#include <ktoolbar.h>
|
|
|
|
class KPopupMenu;
|
|
class KPDFDocument;
|
|
|
|
/**
|
|
* @short A widget for find-as-you-type search. Outputs to the Document.
|
|
*
|
|
* This widget accepts keyboard input and performs a call to findTextAll(..)
|
|
* in the KPDFDocument class when there are 3 or more chars to search for.
|
|
* It supports case sensitive/unsensitive(default) and provieds a button
|
|
* for switching between the 2 modes.
|
|
*/
|
|
class SearchWidget : public KToolBar
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
SearchWidget( QWidget *parent, KPDFDocument *document );
|
|
|
|
private:
|
|
KPDFDocument * m_document;
|
|
KPopupMenu * m_caseMenu;
|
|
bool m_caseSensitive;
|
|
|
|
private slots:
|
|
void slotTextChanged( const QString & text );
|
|
void slotCaseChanged( int index );
|
|
};
|
|
|
|
#endif
|