Fix bug #2213 (part 3): GuiChanges lacks "Previous Change" button.

Add Button to GuiChanges.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29110 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2009-04-05 19:15:52 +00:00
parent 03671821d3
commit bb5b02a362
3 changed files with 22 additions and 0 deletions

View File

@ -42,6 +42,7 @@ GuiChanges::GuiChanges(GuiView & lv)
connect(closePB, SIGNAL(clicked()), this, SLOT(slotClose()));
connect(nextPB, SIGNAL(clicked()), this, SLOT(nextChange()));
connect(previousPB, SIGNAL(clicked()), this, SLOT(previousChange()));
connect(rejectPB, SIGNAL(clicked()), this, SLOT(rejectChange()));
connect(acceptPB, SIGNAL(clicked()), this, SLOT(acceptChange()));
@ -73,6 +74,12 @@ void GuiChanges::nextChange()
}
void GuiChanges::previousChange()
{
dispatch(FuncRequest(LFUN_CHANGE_PREVIOUS));
}
docstring GuiChanges::changeDate() const
{
Change const & c = bufferview()->getCurrentChange();

View File

@ -35,6 +35,8 @@ protected Q_SLOTS:
void rejectChange();
/// find the next change and highlight it
void nextChange();
/// find the previous change and highlight it
void previousChange();
private:
///

View File

@ -43,6 +43,19 @@
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QPushButton" name="previousPB" >
<property name="toolTip" >
<string>Go to previous change</string>
</property>
<property name="text" >
<string>&amp;Previous change</string>
</property>
<property name="default" >
<bool>false</bool>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="nextPB" >
<property name="toolTip" >