Commit d1cdcd5f authored by Enrico Ros's avatar Enrico Ros
Browse files

SearchWidget back to work

svn path=/trunk/kdegraphics/kpdf/; revision=375078
parent 1e0f8af1
......@@ -7,8 +7,6 @@ Legend:
(*) - Some parts of this item are already done
In progress:
-> REGRESSION: find-as-you-type somewhat broken here
-> FIX: PageTransitions can be 0L.
Urgent fixes and items to get ready before 3.4 (special high-priority list):
-> FIX 1/2: sync Memory Management (in Document) with the Generator (exp. undoing requests) (may Segfault!)
......@@ -17,12 +15,12 @@ Urgent fixes and items to get ready before 3.4 (special high-priority list):
-> FIX: priorities for requests (pageview regular over thumbnails regular over pv preloading ...)
-> FIX: linearize memory pages map iterators in respect to time
-> ADD: preloading (very easy, but change request a little)
-> FIX: check for removing 'canUnloadPixmap' from observers in place of a requested
'visiblity list'
-> FIX: viewport changes the right way when clicking links and TOC items (also
suggested by Mikolaj Machowski). Create a great viewport definition and merge
it inside the synopsis too. [60% done]
-> link thumbnails view with document [first, the 'Viewport' must be defined]
-> FIX: check for removing 'canUnloadPixmap' from observers in place of a requested
'visiblity list'
More items (first items will enter 'In progress list' first):
-> move toolbar view actions in the PageView instead of the part. maybe.. or not...
......@@ -43,8 +41,8 @@ More items (first items will enter 'In progress list' first):
-> Dom framework to cache document metadata. It should archive those types of data:
(NOTE: already Dom'ed object is marked with 'X')
- <X> Synopsis will go there after 1st generation (so we can edit it too)
- <X - on progress> Document info (after the 1st gen)
- <X - Albert?> Bookmarked pages
- <X> Document info (after the 1st gen)
- <X - in progress> Bookmarked pages
- Edited pages (rotated/with_data for example)
- Overlay editing (hilighting/notations/etc..)
- Presentation related overrides (FS mode, individual / global transitions)
......@@ -90,7 +88,9 @@ More items (first items will enter 'In progress list' first):
-> link following when in presentation mode
-> FIX: single page mode: add a little margin on pageview (top-bottom edges)
Done (newest feature comes firts):
Done (newest features come first):
-> FIX: searchline back to work
-> CHG: DocumentInfo is now a DomTree and the properties dialog is dynamically generated (Tobias)
-> ADD: Presentation transitions are loaded from the pdf files as well as fullscreen state (Tobias)
-> Merged on HEAD on 2005-01-02 (The branch is frozen, development continues here)
-> FIX: Fix my update cursor FIX :-D
......@@ -145,12 +145,9 @@ Done (newest feature comes firts):
-> FIX: previews speedup: 50-100%
-> CHG: use local instead of X memory for thumbnails (..)
-> MRG: merge lots of kpdf_part and part (centralview) code (to simplify/clenup)
-> Branch 'kpdf_experiments' created at this point
-> The branch 'kpdf_experiments' was created at this point. Code refactoring started.
-> ADD: Completely use xpdf code for rendering that solves most font problems (Albert)
-> MRG: Replace xpdf version with lastest one (3.00) that supports PDF 1.5 (Albert)
-> CHG: convert DocumentInfo to a DomTree containing a few common fields (see the current
implmentation) and being extensible for letting generator developers adding their
custom fields. convert the Properties dialog into a dynamic generated one.
Here comes a list of suggestions from a dot post http://dot.kde.org/1095261317 and IRC:
Tool: ruler, measure: distance, perimeter, ?area?
......
......@@ -45,15 +45,15 @@ SearchWidget::SearchWidget( QWidget * parent, KPDFDocument * document )
this, SLOT( startSearch() ) );
// line edit
m_linedId = insertLined( QString::null, LEDIT_ID, SIGNAL( textChanged(const QString &) ),
this, SLOT( slotTextChanged(const QString &) ), true,
i18n( "Enter at least 3 letters to filter pages" ), 0/*size*/, 1 );
insertLined( QString::null, LEDIT_ID, SIGNAL( textChanged(const QString &) ),
this, SLOT( slotTextChanged(const QString &) ), true,
i18n( "Enter at least 3 letters to filter pages" ), 0/*size*/, 1 );
// clear button (uses a lineEdit slot, so it must be created after)
insertButton( QApplication::reverseLayout() ? "clear_left" : "locationbar_erase",
CLEAR_ID, SIGNAL( clicked() ),
getLined( LEDIT_ID ), SLOT( clear() ), true,
i18n( "Clear filter" ), 0/*index*/ );
CLEAR_ID, SIGNAL( clicked() ),
getLined( LEDIT_ID ), SLOT( clear() ), true,
i18n( "Clear filter" ), 0/*index*/ );
#ifdef SW_ENABLE_CASE_BUTTON
// create popup menu for change case button
......@@ -83,7 +83,7 @@ void SearchWidget::slotTextChanged( const QString & text )
void SearchWidget::startSearch()
{
QString text = getLinedText(m_linedId);
QString text = getLined( LEDIT_ID )->text();
m_document->findTextAll( text.length() < 3 ? QString::null : text, m_caseSensitive );
}
......
......@@ -33,8 +33,7 @@ class SearchWidget : public KToolBar
private:
KPDFDocument * m_document;
KPopupMenu * m_caseMenu;
QTimer* m_inputDelayTimer;
int m_linedId;
QTimer * m_inputDelayTimer;
bool m_caseSensitive;
private slots:
......
......@@ -99,7 +99,7 @@ void ThumbnailList::pageSetup( const QValueVector<KPDFPage*> & pages, bool /*doc
bool skipCheck = true;
for ( uint i = 0; i < pages.count(); i++ )
if ( pages[i]->attributes() & KPDFPage::Highlight )
skipCheck = false;
skipCheck = false;
// generate Thumbnails for the given set of pages
ThumbnailWidget *t;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment