mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-11 03:03:06 +00:00
keynav fixes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5269 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
c4be10e3ce
commit
c25a3c200c
@ -52,6 +52,7 @@ pair<bool, string> const askForText_pimpl(string const & msg, string const & dfl
|
|||||||
// less than ideal !
|
// less than ideal !
|
||||||
d.askLA->setText((string("&") + msg).c_str());
|
d.askLA->setText((string("&") + msg).c_str());
|
||||||
d.askLE->setText(dflt.c_str());
|
d.askLE->setText(dflt.c_str());
|
||||||
|
d.askLE->setFocus();
|
||||||
int ret = d.exec();
|
int ret = d.exec();
|
||||||
|
|
||||||
d.hide();
|
d.hide();
|
||||||
|
@ -1,3 +1,19 @@
|
|||||||
|
2002-09-11 John Levon <levon@movementarian.org>
|
||||||
|
|
||||||
|
* Alert_pimpl.C:
|
||||||
|
* QExternalDialog.h:
|
||||||
|
* QExternalDialog.C:
|
||||||
|
* QGraphicsDialog.h:
|
||||||
|
* QGraphicsDialog.C:
|
||||||
|
* QIncludeDialog.h:
|
||||||
|
* QIncludeDialog.C:
|
||||||
|
* QIndexDialog.h:
|
||||||
|
* QIndexDialog.C:
|
||||||
|
* QSearchDialog.h:
|
||||||
|
* QSearchDialog.C:
|
||||||
|
* QURLDialog.h:
|
||||||
|
* QURLDialog.C: focus on the first linedit on show()
|
||||||
|
|
||||||
2002-09-11 John Levon <levon@movementarian.org>
|
2002-09-11 John Levon <levon@movementarian.org>
|
||||||
|
|
||||||
* QSearchDialog.C: fill combo boxes
|
* QSearchDialog.C: fill combo boxes
|
||||||
|
@ -32,6 +32,13 @@ QExternalDialog::QExternalDialog(QExternal * form)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void QExternalDialog::show()
|
||||||
|
{
|
||||||
|
QExternalDialogBase::show();
|
||||||
|
fileED->setFocus();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void QExternalDialog::change_adaptor()
|
void QExternalDialog::change_adaptor()
|
||||||
{
|
{
|
||||||
form_->changed();
|
form_->changed();
|
||||||
|
@ -21,6 +21,8 @@ class QExternalDialog : public QExternalDialogBase
|
|||||||
public:
|
public:
|
||||||
QExternalDialog(QExternal * form);
|
QExternalDialog(QExternal * form);
|
||||||
|
|
||||||
|
virtual void show();
|
||||||
|
|
||||||
protected slots:
|
protected slots:
|
||||||
virtual void change_adaptor();
|
virtual void change_adaptor();
|
||||||
virtual void editClicked();
|
virtual void editClicked();
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
|
|
||||||
#include <qwidget.h>
|
#include <qwidget.h>
|
||||||
#include <qpushbutton.h>
|
#include <qpushbutton.h>
|
||||||
|
#include <qlineedit.h>
|
||||||
#include <qcheckbox.h>
|
#include <qcheckbox.h>
|
||||||
|
|
||||||
#include "QGraphicsDialog.h"
|
#include "QGraphicsDialog.h"
|
||||||
@ -35,6 +36,13 @@ QGraphicsDialog::QGraphicsDialog(QGraphics * form)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void QGraphicsDialog::show()
|
||||||
|
{
|
||||||
|
QGraphicsDialogBase::show();
|
||||||
|
filename->setFocus();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void QGraphicsDialog::change_adaptor()
|
void QGraphicsDialog::change_adaptor()
|
||||||
{
|
{
|
||||||
form_->changed();
|
form_->changed();
|
||||||
|
@ -21,6 +21,8 @@ class QGraphicsDialog : public QGraphicsDialogBase
|
|||||||
public:
|
public:
|
||||||
QGraphicsDialog(QGraphics * form);
|
QGraphicsDialog(QGraphics * form);
|
||||||
|
|
||||||
|
virtual void show();
|
||||||
|
|
||||||
protected slots:
|
protected slots:
|
||||||
virtual void change_adaptor();
|
virtual void change_adaptor();
|
||||||
virtual void browse_clicked();
|
virtual void browse_clicked();
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
#include <qwidget.h>
|
#include <qwidget.h>
|
||||||
#include <qpushbutton.h>
|
#include <qpushbutton.h>
|
||||||
#include <qcheckbox.h>
|
#include <qcheckbox.h>
|
||||||
|
#include <qlineedit.h>
|
||||||
|
|
||||||
#include "QIncludeDialog.h"
|
#include "QIncludeDialog.h"
|
||||||
#include "QInclude.h"
|
#include "QInclude.h"
|
||||||
@ -31,6 +32,13 @@ QIncludeDialog::QIncludeDialog(QInclude * form)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void QIncludeDialog::show()
|
||||||
|
{
|
||||||
|
QIncludeDialogBase::show();
|
||||||
|
filenameED->setFocus();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void QIncludeDialog::change_adaptor()
|
void QIncludeDialog::change_adaptor()
|
||||||
{
|
{
|
||||||
form_->changed();
|
form_->changed();
|
||||||
|
@ -23,6 +23,8 @@ public:
|
|||||||
|
|
||||||
void updateLists();
|
void updateLists();
|
||||||
|
|
||||||
|
virtual void show();
|
||||||
|
|
||||||
protected slots:
|
protected slots:
|
||||||
virtual void change_adaptor();
|
virtual void change_adaptor();
|
||||||
virtual void loadClicked();
|
virtual void loadClicked();
|
||||||
|
@ -43,6 +43,13 @@ QIndexDialog::QIndexDialog(QIndex * form)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void QIndexDialog::show()
|
||||||
|
{
|
||||||
|
QIndexDialogBase::show();
|
||||||
|
keywordED->setFocus();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void QIndexDialog::change_adaptor()
|
void QIndexDialog::change_adaptor()
|
||||||
{
|
{
|
||||||
form_->changed();
|
form_->changed();
|
||||||
|
@ -21,6 +21,8 @@ class QIndexDialog : public QIndexDialogBase
|
|||||||
public:
|
public:
|
||||||
QIndexDialog(QIndex * form);
|
QIndexDialog(QIndex * form);
|
||||||
|
|
||||||
|
virtual void show();
|
||||||
|
|
||||||
protected slots:
|
protected slots:
|
||||||
virtual void change_adaptor();
|
virtual void change_adaptor();
|
||||||
|
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
#include <qpushbutton.h>
|
#include <qpushbutton.h>
|
||||||
#include <qcombobox.h>
|
#include <qcombobox.h>
|
||||||
#include <qcheckbox.h>
|
#include <qcheckbox.h>
|
||||||
|
#include <qlineedit.h>
|
||||||
#include <qlabel.h>
|
#include <qlabel.h>
|
||||||
|
|
||||||
QSearchDialog::QSearchDialog(QSearch * form)
|
QSearchDialog::QSearchDialog(QSearch * form)
|
||||||
@ -23,13 +24,17 @@ QSearchDialog::QSearchDialog(QSearch * form)
|
|||||||
{
|
{
|
||||||
connect(closePB, SIGNAL(clicked()),
|
connect(closePB, SIGNAL(clicked()),
|
||||||
form_, SLOT(slotClose()));
|
form_, SLOT(slotClose()));
|
||||||
findCO->setDuplicatesEnabled(false);
|
|
||||||
findCO->setInsertionPolicy(QComboBox::AtTop);
|
|
||||||
replaceCO->setDuplicatesEnabled(false);
|
|
||||||
replaceCO->setInsertionPolicy(QComboBox::AtTop);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void QSearchDialog::show()
|
||||||
|
{
|
||||||
|
QSearchDialogBase::show();
|
||||||
|
findCO->setFocus();
|
||||||
|
findCO->lineEdit()->setSelection(0, findCO->lineEdit()->text().length());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void QSearchDialog::closeEvent(QCloseEvent * e)
|
void QSearchDialog::closeEvent(QCloseEvent * e)
|
||||||
{
|
{
|
||||||
form_->slotWMHide();
|
form_->slotWMHide();
|
||||||
|
@ -23,6 +23,8 @@ class QSearchDialog : public QSearchDialogBase
|
|||||||
public:
|
public:
|
||||||
QSearchDialog(QSearch * form);
|
QSearchDialog(QSearch * form);
|
||||||
|
|
||||||
|
virtual void show();
|
||||||
|
|
||||||
protected slots:
|
protected slots:
|
||||||
void findChanged();
|
void findChanged();
|
||||||
void findClicked();
|
void findClicked();
|
||||||
@ -30,7 +32,7 @@ protected slots:
|
|||||||
void replaceallClicked();
|
void replaceallClicked();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void closeEvent(QCloseEvent * e);
|
virtual void closeEvent(QCloseEvent * e);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// add a string to the combo if needed
|
// add a string to the combo if needed
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
#include "QURLDialog.h"
|
#include "QURLDialog.h"
|
||||||
|
|
||||||
#include <qpushbutton.h>
|
#include <qpushbutton.h>
|
||||||
|
#include <qlineedit.h>
|
||||||
|
|
||||||
QURLDialog::QURLDialog(QURL * form)
|
QURLDialog::QURLDialog(QURL * form)
|
||||||
: QURLDialogBase(0, 0, false, 0),
|
: QURLDialogBase(0, 0, false, 0),
|
||||||
@ -29,6 +30,13 @@ QURLDialog::~QURLDialog()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void QURLDialog::show()
|
||||||
|
{
|
||||||
|
QURLDialogBase::show();
|
||||||
|
urlED->setFocus();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void QURLDialog::changed_adaptor()
|
void QURLDialog::changed_adaptor()
|
||||||
{
|
{
|
||||||
form_->changed();
|
form_->changed();
|
||||||
|
@ -20,6 +20,8 @@ public:
|
|||||||
QURLDialog(QURL * form);
|
QURLDialog(QURL * form);
|
||||||
~QURLDialog();
|
~QURLDialog();
|
||||||
|
|
||||||
|
virtual void show();
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void changed_adaptor();
|
void changed_adaptor();
|
||||||
|
|
||||||
|
@ -77,8 +77,12 @@
|
|||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
<property stdset="1">
|
<property stdset="1">
|
||||||
<name>duplicatesEnabled</name>
|
<name>sizeLimit</name>
|
||||||
<bool>false</bool>
|
<number>10</number>
|
||||||
|
</property>
|
||||||
|
<property stdset="1">
|
||||||
|
<name>maxCount</name>
|
||||||
|
<number>666</number>
|
||||||
</property>
|
</property>
|
||||||
<property stdset="1">
|
<property stdset="1">
|
||||||
<name>insertionPolicy</name>
|
<name>insertionPolicy</name>
|
||||||
@ -89,8 +93,8 @@
|
|||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
<property stdset="1">
|
<property stdset="1">
|
||||||
<name>maxCount</name>
|
<name>duplicatesEnabled</name>
|
||||||
<number>10</number>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget row="1" column="0" >
|
<widget row="1" column="0" >
|
||||||
@ -126,20 +130,24 @@
|
|||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
<property stdset="1">
|
<property stdset="1">
|
||||||
<name>insertionPolicy</name>
|
<name>sizeLimit</name>
|
||||||
<enum>AtTop</enum>
|
<number>10</number>
|
||||||
</property>
|
</property>
|
||||||
<property stdset="1">
|
<property stdset="1">
|
||||||
<name>duplicatesEnabled</name>
|
<name>maxCount</name>
|
||||||
<bool>false</bool>
|
<number>666</number>
|
||||||
|
</property>
|
||||||
|
<property stdset="1">
|
||||||
|
<name>insertionPolicy</name>
|
||||||
|
<enum>AtTop</enum>
|
||||||
</property>
|
</property>
|
||||||
<property stdset="1">
|
<property stdset="1">
|
||||||
<name>autoCompletion</name>
|
<name>autoCompletion</name>
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
<property stdset="1">
|
<property stdset="1">
|
||||||
<name>maxCount</name>
|
<name>duplicatesEnabled</name>
|
||||||
<number>10</number>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget row="2" column="0" rowspan="1" colspan="2" >
|
<widget row="2" column="0" rowspan="1" colspan="2" >
|
||||||
@ -233,6 +241,10 @@
|
|||||||
<name>name</name>
|
<name>name</name>
|
||||||
<cstring>findPB</cstring>
|
<cstring>findPB</cstring>
|
||||||
</property>
|
</property>
|
||||||
|
<property stdset="1">
|
||||||
|
<name>enabled</name>
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
<property stdset="1">
|
<property stdset="1">
|
||||||
<name>text</name>
|
<name>text</name>
|
||||||
<string>Find &Next</string>
|
<string>Find &Next</string>
|
||||||
@ -241,10 +253,6 @@
|
|||||||
<name>default</name>
|
<name>default</name>
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
<property stdset="1">
|
|
||||||
<name>enabled</name>
|
|
||||||
<bool>false</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
</widget>
|
||||||
<widget row="1" column="3" >
|
<widget row="1" column="3" >
|
||||||
<class>QPushButton</class>
|
<class>QPushButton</class>
|
||||||
@ -252,14 +260,14 @@
|
|||||||
<name>name</name>
|
<name>name</name>
|
||||||
<cstring>replacePB</cstring>
|
<cstring>replacePB</cstring>
|
||||||
</property>
|
</property>
|
||||||
<property stdset="1">
|
|
||||||
<name>text</name>
|
|
||||||
<string>&Replace</string>
|
|
||||||
</property>
|
|
||||||
<property stdset="1">
|
<property stdset="1">
|
||||||
<name>enabled</name>
|
<name>enabled</name>
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
|
<property stdset="1">
|
||||||
|
<name>text</name>
|
||||||
|
<string>&Replace</string>
|
||||||
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget row="2" column="3" rowspan="2" colspan="1" >
|
<widget row="2" column="3" rowspan="2" colspan="1" >
|
||||||
<class>QPushButton</class>
|
<class>QPushButton</class>
|
||||||
@ -267,14 +275,14 @@
|
|||||||
<name>name</name>
|
<name>name</name>
|
||||||
<cstring>replaceallPB</cstring>
|
<cstring>replaceallPB</cstring>
|
||||||
</property>
|
</property>
|
||||||
<property stdset="1">
|
|
||||||
<name>text</name>
|
|
||||||
<string>Replace &All </string>
|
|
||||||
</property>
|
|
||||||
<property stdset="1">
|
<property stdset="1">
|
||||||
<name>enabled</name>
|
<name>enabled</name>
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
|
<property stdset="1">
|
||||||
|
<name>text</name>
|
||||||
|
<string>Replace &All </string>
|
||||||
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget row="5" column="0" rowspan="1" colspan="2" >
|
<widget row="5" column="0" rowspan="1" colspan="2" >
|
||||||
<class>QCheckBox</class>
|
<class>QCheckBox</class>
|
||||||
|
Loading…
Reference in New Issue
Block a user