mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-27 10:37:53 +00:00
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:
parent
03671821d3
commit
bb5b02a362
@ -42,6 +42,7 @@ GuiChanges::GuiChanges(GuiView & lv)
|
|||||||
|
|
||||||
connect(closePB, SIGNAL(clicked()), this, SLOT(slotClose()));
|
connect(closePB, SIGNAL(clicked()), this, SLOT(slotClose()));
|
||||||
connect(nextPB, SIGNAL(clicked()), this, SLOT(nextChange()));
|
connect(nextPB, SIGNAL(clicked()), this, SLOT(nextChange()));
|
||||||
|
connect(previousPB, SIGNAL(clicked()), this, SLOT(previousChange()));
|
||||||
connect(rejectPB, SIGNAL(clicked()), this, SLOT(rejectChange()));
|
connect(rejectPB, SIGNAL(clicked()), this, SLOT(rejectChange()));
|
||||||
connect(acceptPB, SIGNAL(clicked()), this, SLOT(acceptChange()));
|
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
|
docstring GuiChanges::changeDate() const
|
||||||
{
|
{
|
||||||
Change const & c = bufferview()->getCurrentChange();
|
Change const & c = bufferview()->getCurrentChange();
|
||||||
|
@ -35,6 +35,8 @@ protected Q_SLOTS:
|
|||||||
void rejectChange();
|
void rejectChange();
|
||||||
/// find the next change and highlight it
|
/// find the next change and highlight it
|
||||||
void nextChange();
|
void nextChange();
|
||||||
|
/// find the previous change and highlight it
|
||||||
|
void previousChange();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
///
|
///
|
||||||
|
@ -43,6 +43,19 @@
|
|||||||
<property name="spacing" >
|
<property name="spacing" >
|
||||||
<number>6</number>
|
<number>6</number>
|
||||||
</property>
|
</property>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="previousPB" >
|
||||||
|
<property name="toolTip" >
|
||||||
|
<string>Go to previous change</string>
|
||||||
|
</property>
|
||||||
|
<property name="text" >
|
||||||
|
<string>&Previous change</string>
|
||||||
|
</property>
|
||||||
|
<property name="default" >
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="nextPB" >
|
<widget class="QPushButton" name="nextPB" >
|
||||||
<property name="toolTip" >
|
<property name="toolTip" >
|
||||||
|
Loading…
x
Reference in New Issue
Block a user