Changeset View
Changeset View
Standalone View
Standalone View
ui/searchlineedit.h
Show All 24 Lines | |||||
25 | { | 25 | { | ||
26 | Q_OBJECT | 26 | Q_OBJECT | ||
27 | public: | 27 | public: | ||
28 | SearchLineEdit( QWidget *parent, Okular::Document *document ); | 28 | SearchLineEdit( QWidget *parent, Okular::Document *document ); | ||
29 | 29 | | |||
30 | void clearText(); | 30 | void clearText(); | ||
31 | 31 | | |||
32 | void setSearchCaseSensitivity( Qt::CaseSensitivity cs ); | 32 | void setSearchCaseSensitivity( Qt::CaseSensitivity cs ); | ||
33 | void setWholeWords( bool wholeWords ); | ||||
33 | void setSearchMinimumLength( int length ); | 34 | void setSearchMinimumLength( int length ); | ||
34 | void setSearchType( Okular::Document::SearchType type ); | 35 | void setSearchType( Okular::Document::SearchType type ); | ||
35 | void setSearchId( int id ); | 36 | void setSearchId( int id ); | ||
36 | void setSearchColor( const QColor &color ); | 37 | void setSearchColor( const QColor &color ); | ||
37 | void setSearchMoveViewport( bool move ); | 38 | void setSearchMoveViewport( bool move ); | ||
38 | void setSearchFromStart( bool fromStart ); | 39 | void setSearchFromStart( bool fromStart ); | ||
39 | void setFindAsYouType( bool findAsYouType ); | 40 | void setFindAsYouType( bool findAsYouType ); | ||
40 | void resetSearch(); | 41 | void resetSearch(); | ||
Show All 16 Lines | 55 | private: | |||
57 | Okular::Document * m_document; | 58 | Okular::Document * m_document; | ||
58 | QTimer * m_inputDelayTimer; | 59 | QTimer * m_inputDelayTimer; | ||
59 | int m_minLength; | 60 | int m_minLength; | ||
60 | Qt::CaseSensitivity m_caseSensitivity; | 61 | Qt::CaseSensitivity m_caseSensitivity; | ||
61 | Okular::Document::SearchType m_searchType; | 62 | Okular::Document::SearchType m_searchType; | ||
62 | int m_id; | 63 | int m_id; | ||
63 | QColor m_color; | 64 | QColor m_color; | ||
64 | bool m_moveViewport; | 65 | bool m_moveViewport; | ||
66 | bool m_wholeWords; | ||||
65 | bool m_changed; | 67 | bool m_changed; | ||
66 | bool m_fromStart; | 68 | bool m_fromStart; | ||
67 | bool m_findAsYouType; | 69 | bool m_findAsYouType; | ||
68 | bool m_searchRunning; | 70 | bool m_searchRunning; | ||
69 | 71 | | |||
70 | private Q_SLOTS: | 72 | private Q_SLOTS: | ||
71 | void slotTextChanged( const QString & text ); | 73 | void slotTextChanged( const QString & text ); | ||
72 | void slotReturnPressed( const QString &text ); | 74 | void slotReturnPressed( const QString &text ); | ||
Show All 24 Lines |