mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +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 !
|
||||
d.askLA->setText((string("&") + msg).c_str());
|
||||
d.askLE->setText(dflt.c_str());
|
||||
d.askLE->setFocus();
|
||||
int ret = d.exec();
|
||||
|
||||
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>
|
||||
|
||||
* QSearchDialog.C: fill combo boxes
|
||||
|
@ -32,6 +32,13 @@ QExternalDialog::QExternalDialog(QExternal * form)
|
||||
}
|
||||
|
||||
|
||||
void QExternalDialog::show()
|
||||
{
|
||||
QExternalDialogBase::show();
|
||||
fileED->setFocus();
|
||||
}
|
||||
|
||||
|
||||
void QExternalDialog::change_adaptor()
|
||||
{
|
||||
form_->changed();
|
||||
|
@ -21,6 +21,8 @@ class QExternalDialog : public QExternalDialogBase
|
||||
public:
|
||||
QExternalDialog(QExternal * form);
|
||||
|
||||
virtual void show();
|
||||
|
||||
protected slots:
|
||||
virtual void change_adaptor();
|
||||
virtual void editClicked();
|
||||
|
@ -15,6 +15,7 @@
|
||||
|
||||
#include <qwidget.h>
|
||||
#include <qpushbutton.h>
|
||||
#include <qlineedit.h>
|
||||
#include <qcheckbox.h>
|
||||
|
||||
#include "QGraphicsDialog.h"
|
||||
@ -35,6 +36,13 @@ QGraphicsDialog::QGraphicsDialog(QGraphics * form)
|
||||
}
|
||||
|
||||
|
||||
void QGraphicsDialog::show()
|
||||
{
|
||||
QGraphicsDialogBase::show();
|
||||
filename->setFocus();
|
||||
}
|
||||
|
||||
|
||||
void QGraphicsDialog::change_adaptor()
|
||||
{
|
||||
form_->changed();
|
||||
|
@ -21,6 +21,8 @@ class QGraphicsDialog : public QGraphicsDialogBase
|
||||
public:
|
||||
QGraphicsDialog(QGraphics * form);
|
||||
|
||||
virtual void show();
|
||||
|
||||
protected slots:
|
||||
virtual void change_adaptor();
|
||||
virtual void browse_clicked();
|
||||
|
@ -16,6 +16,7 @@
|
||||
#include <qwidget.h>
|
||||
#include <qpushbutton.h>
|
||||
#include <qcheckbox.h>
|
||||
#include <qlineedit.h>
|
||||
|
||||
#include "QIncludeDialog.h"
|
||||
#include "QInclude.h"
|
||||
@ -31,6 +32,13 @@ QIncludeDialog::QIncludeDialog(QInclude * form)
|
||||
}
|
||||
|
||||
|
||||
void QIncludeDialog::show()
|
||||
{
|
||||
QIncludeDialogBase::show();
|
||||
filenameED->setFocus();
|
||||
}
|
||||
|
||||
|
||||
void QIncludeDialog::change_adaptor()
|
||||
{
|
||||
form_->changed();
|
||||
|
@ -23,6 +23,8 @@ public:
|
||||
|
||||
void updateLists();
|
||||
|
||||
virtual void show();
|
||||
|
||||
protected slots:
|
||||
virtual void change_adaptor();
|
||||
virtual void loadClicked();
|
||||
|
@ -43,6 +43,13 @@ QIndexDialog::QIndexDialog(QIndex * form)
|
||||
}
|
||||
|
||||
|
||||
void QIndexDialog::show()
|
||||
{
|
||||
QIndexDialogBase::show();
|
||||
keywordED->setFocus();
|
||||
}
|
||||
|
||||
|
||||
void QIndexDialog::change_adaptor()
|
||||
{
|
||||
form_->changed();
|
||||
|
@ -21,6 +21,8 @@ class QIndexDialog : public QIndexDialogBase
|
||||
public:
|
||||
QIndexDialog(QIndex * form);
|
||||
|
||||
virtual void show();
|
||||
|
||||
protected slots:
|
||||
virtual void change_adaptor();
|
||||
|
||||
|
@ -15,6 +15,7 @@
|
||||
#include <qpushbutton.h>
|
||||
#include <qcombobox.h>
|
||||
#include <qcheckbox.h>
|
||||
#include <qlineedit.h>
|
||||
#include <qlabel.h>
|
||||
|
||||
QSearchDialog::QSearchDialog(QSearch * form)
|
||||
@ -23,13 +24,17 @@ QSearchDialog::QSearchDialog(QSearch * form)
|
||||
{
|
||||
connect(closePB, SIGNAL(clicked()),
|
||||
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)
|
||||
{
|
||||
form_->slotWMHide();
|
||||
|
@ -23,6 +23,8 @@ class QSearchDialog : public QSearchDialogBase
|
||||
public:
|
||||
QSearchDialog(QSearch * form);
|
||||
|
||||
virtual void show();
|
||||
|
||||
protected slots:
|
||||
void findChanged();
|
||||
void findClicked();
|
||||
@ -30,7 +32,7 @@ protected slots:
|
||||
void replaceallClicked();
|
||||
|
||||
protected:
|
||||
void closeEvent(QCloseEvent * e);
|
||||
virtual void closeEvent(QCloseEvent * e);
|
||||
|
||||
private:
|
||||
// add a string to the combo if needed
|
||||
|
@ -12,6 +12,7 @@
|
||||
#include "QURLDialog.h"
|
||||
|
||||
#include <qpushbutton.h>
|
||||
#include <qlineedit.h>
|
||||
|
||||
QURLDialog::QURLDialog(QURL * form)
|
||||
: QURLDialogBase(0, 0, false, 0),
|
||||
@ -29,6 +30,13 @@ QURLDialog::~QURLDialog()
|
||||
}
|
||||
|
||||
|
||||
void QURLDialog::show()
|
||||
{
|
||||
QURLDialogBase::show();
|
||||
urlED->setFocus();
|
||||
}
|
||||
|
||||
|
||||
void QURLDialog::changed_adaptor()
|
||||
{
|
||||
form_->changed();
|
||||
|
@ -20,6 +20,8 @@ public:
|
||||
QURLDialog(QURL * form);
|
||||
~QURLDialog();
|
||||
|
||||
virtual void show();
|
||||
|
||||
public slots:
|
||||
void changed_adaptor();
|
||||
|
||||
|
@ -77,8 +77,12 @@
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>duplicatesEnabled</name>
|
||||
<bool>false</bool>
|
||||
<name>sizeLimit</name>
|
||||
<number>10</number>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>maxCount</name>
|
||||
<number>666</number>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>insertionPolicy</name>
|
||||
@ -89,8 +93,8 @@
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>maxCount</name>
|
||||
<number>10</number>
|
||||
<name>duplicatesEnabled</name>
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="1" column="0" >
|
||||
@ -126,20 +130,24 @@
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>insertionPolicy</name>
|
||||
<enum>AtTop</enum>
|
||||
<name>sizeLimit</name>
|
||||
<number>10</number>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>duplicatesEnabled</name>
|
||||
<bool>false</bool>
|
||||
<name>maxCount</name>
|
||||
<number>666</number>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>insertionPolicy</name>
|
||||
<enum>AtTop</enum>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>autoCompletion</name>
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>maxCount</name>
|
||||
<number>10</number>
|
||||
<name>duplicatesEnabled</name>
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="2" column="0" rowspan="1" colspan="2" >
|
||||
@ -233,6 +241,10 @@
|
||||
<name>name</name>
|
||||
<cstring>findPB</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>enabled</name>
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>Find &Next</string>
|
||||
@ -241,10 +253,6 @@
|
||||
<name>default</name>
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>enabled</name>
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="1" column="3" >
|
||||
<class>QPushButton</class>
|
||||
@ -252,14 +260,14 @@
|
||||
<name>name</name>
|
||||
<cstring>replacePB</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>&Replace</string>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>enabled</name>
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>&Replace</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="2" column="3" rowspan="2" colspan="1" >
|
||||
<class>QPushButton</class>
|
||||
@ -267,14 +275,14 @@
|
||||
<name>name</name>
|
||||
<cstring>replaceallPB</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>Replace &All </string>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>enabled</name>
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>Replace &All </string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="5" column="0" rowspan="1" colspan="2" >
|
||||
<class>QCheckBox</class>
|
||||
|
Loading…
Reference in New Issue
Block a user