added gotofirstpage action
This commit is contained in:
parent
e883b24ffc
commit
767e4c01c8
@ -6,6 +6,7 @@
|
|||||||
<file>images/history.png</file>
|
<file>images/history.png</file>
|
||||||
<file>images/nextpage.png</file>
|
<file>images/nextpage.png</file>
|
||||||
<file>images/prevpage.png</file>
|
<file>images/prevpage.png</file>
|
||||||
|
<file>images/firstpage.png</file>
|
||||||
<file>images/sortparms.png</file>
|
<file>images/sortparms.png</file>
|
||||||
<file>images/spell.png</file>
|
<file>images/spell.png</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
|
|||||||
@ -120,6 +120,7 @@
|
|||||||
<property name="label">
|
<property name="label">
|
||||||
<string>Result list</string>
|
<string>Result list</string>
|
||||||
</property>
|
</property>
|
||||||
|
<action name="firstPageAction"/>
|
||||||
<action name="prevPageAction"/>
|
<action name="prevPageAction"/>
|
||||||
<action name="nextPageAction"/>
|
<action name="nextPageAction"/>
|
||||||
</toolbar>
|
</toolbar>
|
||||||
@ -259,6 +260,20 @@
|
|||||||
<string>Next page of results</string>
|
<string>Next page of results</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
|
<action>
|
||||||
|
<property name="name">
|
||||||
|
<cstring>firstPageAction</cstring>
|
||||||
|
</property>
|
||||||
|
<property name="enabled">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>First page</string>
|
||||||
|
</property>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Go to first page of results</string>
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
<action>
|
<action>
|
||||||
<property name="name">
|
<property name="name">
|
||||||
<cstring>prevPageAction</cstring>
|
<cstring>prevPageAction</cstring>
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char rcsid[] = "@(#$Id: rclmain_w.cpp,v 1.38 2007-08-01 10:04:53 dockes Exp $ (C) 2005 J.F.Dockes";
|
static char rcsid[] = "@(#$Id: rclmain_w.cpp,v 1.39 2007-08-02 06:33:35 dockes Exp $ (C) 2005 J.F.Dockes";
|
||||||
#endif
|
#endif
|
||||||
/*
|
/*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
@ -151,6 +151,8 @@ void RclMain::init()
|
|||||||
// signals and slots connections
|
// signals and slots connections
|
||||||
connect(sSearch, SIGNAL(clearSearch()),
|
connect(sSearch, SIGNAL(clearSearch()),
|
||||||
this, SLOT(resetSearch()));
|
this, SLOT(resetSearch()));
|
||||||
|
connect(firstPageAction, SIGNAL(activated()),
|
||||||
|
resList, SLOT(resultPageFirst()));
|
||||||
connect(prevPageAction, SIGNAL(activated()),
|
connect(prevPageAction, SIGNAL(activated()),
|
||||||
resList, SLOT(resultPageBack()));
|
resList, SLOT(resultPageBack()));
|
||||||
connect(nextPageAction, SIGNAL(activated()),
|
connect(nextPageAction, SIGNAL(activated()),
|
||||||
@ -202,6 +204,7 @@ void RclMain::init()
|
|||||||
#if (QT_VERSION < 0x040000)
|
#if (QT_VERSION < 0x040000)
|
||||||
nextPageAction->setIconSet(createIconSet("nextpage.png"));
|
nextPageAction->setIconSet(createIconSet("nextpage.png"));
|
||||||
prevPageAction->setIconSet(createIconSet("prevpage.png"));
|
prevPageAction->setIconSet(createIconSet("prevpage.png"));
|
||||||
|
firstPageAction->setIconSet(createIconSet("firstpage.png"));
|
||||||
toolsSpellAction->setIconSet(QPixmap::fromMimeSource("spell.png"));
|
toolsSpellAction->setIconSet(QPixmap::fromMimeSource("spell.png"));
|
||||||
toolsDoc_HistoryAction->setIconSet(QPixmap::fromMimeSource("history.png"));
|
toolsDoc_HistoryAction->setIconSet(QPixmap::fromMimeSource("history.png"));
|
||||||
toolsAdvanced_SearchAction->setIconSet(QPixmap::fromMimeSource("asearch.png"));
|
toolsAdvanced_SearchAction->setIconSet(QPixmap::fromMimeSource("asearch.png"));
|
||||||
@ -210,6 +213,7 @@ void RclMain::init()
|
|||||||
toolsSpellAction->setIcon(QIcon(":/images/spell.png"));
|
toolsSpellAction->setIcon(QIcon(":/images/spell.png"));
|
||||||
nextPageAction->setIcon(QIcon(":/images/nextpage.png"));
|
nextPageAction->setIcon(QIcon(":/images/nextpage.png"));
|
||||||
prevPageAction->setIcon(QIcon(":/images/prevpage.png"));
|
prevPageAction->setIcon(QIcon(":/images/prevpage.png"));
|
||||||
|
firstPageAction->setIcon(QIcon(":/images/firstpage.png"));
|
||||||
toolsDoc_HistoryAction->setIcon(QIcon(":/images/history.png"));
|
toolsDoc_HistoryAction->setIcon(QIcon(":/images/history.png"));
|
||||||
toolsAdvanced_SearchAction->setIcon(QIcon(":/images/asearch.png"));
|
toolsAdvanced_SearchAction->setIcon(QIcon(":/images/asearch.png"));
|
||||||
toolsSort_parametersAction->setIcon(QIcon(":/images/sortparms.png"));
|
toolsSort_parametersAction->setIcon(QIcon(":/images/sortparms.png"));
|
||||||
@ -950,5 +954,6 @@ void RclMain::enableNextPage(bool yesno)
|
|||||||
void RclMain::enablePrevPage(bool yesno)
|
void RclMain::enablePrevPage(bool yesno)
|
||||||
{
|
{
|
||||||
prevPageAction->setEnabled(yesno);
|
prevPageAction->setEnabled(yesno);
|
||||||
|
firstPageAction->setEnabled(yesno);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -42,14 +42,17 @@ FORMS = \
|
|||||||
uiprefs.ui \
|
uiprefs.ui \
|
||||||
viewaction.ui
|
viewaction.ui
|
||||||
|
|
||||||
IMAGES = images/asearch.png \
|
IMAGES = \
|
||||||
images/history.png \
|
images/asearch.png \
|
||||||
|
images/d_firstpage.png \
|
||||||
images/d_nextpage.png \
|
images/d_nextpage.png \
|
||||||
images/nextpage.png \
|
|
||||||
images/d_prevpage.png \
|
images/d_prevpage.png \
|
||||||
|
images/d_spell.png \
|
||||||
|
images/firstpage.png \
|
||||||
|
images/history.png \
|
||||||
|
images/nextpage.png \
|
||||||
images/prevpage.png \
|
images/prevpage.png \
|
||||||
images/sortparms.png \
|
images/sortparms.png \
|
||||||
images/d_spell.png \
|
|
||||||
images/spell.png
|
images/spell.png
|
||||||
|
|
||||||
unix {
|
unix {
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char rcsid[] = "@(#$Id: reslist.cpp,v 1.32 2007-07-20 14:32:55 dockes Exp $ (C) 2005 J.F.Dockes";
|
static char rcsid[] = "@(#$Id: reslist.cpp,v 1.33 2007-08-02 06:33:35 dockes Exp $ (C) 2005 J.F.Dockes";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
@ -247,6 +247,13 @@ void ResList::resultPageBack()
|
|||||||
resultPageNext();
|
resultPageNext();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Go to the first page
|
||||||
|
void ResList::resultPageFirst()
|
||||||
|
{
|
||||||
|
m_winfirst = -1;
|
||||||
|
resultPageNext();
|
||||||
|
}
|
||||||
|
|
||||||
// Convert byte count into unit (KB/MB...) appropriate for display
|
// Convert byte count into unit (KB/MB...) appropriate for display
|
||||||
static string displayableBytes(long size)
|
static string displayableBytes(long size)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
#ifndef _RESLIST_H_INCLUDED_
|
#ifndef _RESLIST_H_INCLUDED_
|
||||||
#define _RESLIST_H_INCLUDED_
|
#define _RESLIST_H_INCLUDED_
|
||||||
/* @(#$Id: reslist.h,v 1.12 2007-07-20 14:32:55 dockes Exp $ (C) 2005 J.F.Dockes */
|
/* @(#$Id: reslist.h,v 1.13 2007-08-02 06:33:35 dockes Exp $ (C) 2005 J.F.Dockes */
|
||||||
|
|
||||||
#include <list>
|
#include <list>
|
||||||
|
|
||||||
@ -47,6 +47,7 @@ class ResList : public QTEXTBROWSER
|
|||||||
virtual void resPageUpOrBack(); // Page up pressed
|
virtual void resPageUpOrBack(); // Page up pressed
|
||||||
virtual void resPageDownOrNext(); // Page down pressed
|
virtual void resPageDownOrNext(); // Page down pressed
|
||||||
virtual void resultPageBack(); // Display previous page of results
|
virtual void resultPageBack(); // Display previous page of results
|
||||||
|
virtual void resultPageFirst(); // Display first page of results
|
||||||
virtual void resultPageNext(); // Display next (or first) page of results
|
virtual void resultPageNext(); // Display next (or first) page of results
|
||||||
virtual void menuPreview();
|
virtual void menuPreview();
|
||||||
virtual void menuEdit();
|
virtual void menuEdit();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user