keynav fixes

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5269 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2002-09-11 17:42:45 +00:00
parent c4be10e3ce
commit c25a3c200c
15 changed files with 107 additions and 27 deletions

View File

@ -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();

View File

@ -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

View File

@ -32,6 +32,13 @@ QExternalDialog::QExternalDialog(QExternal * form)
}
void QExternalDialog::show()
{
QExternalDialogBase::show();
fileED->setFocus();
}
void QExternalDialog::change_adaptor()
{
form_->changed();

View File

@ -21,6 +21,8 @@ class QExternalDialog : public QExternalDialogBase
public:
QExternalDialog(QExternal * form);
virtual void show();
protected slots:
virtual void change_adaptor();
virtual void editClicked();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -23,6 +23,8 @@ public:
void updateLists();
virtual void show();
protected slots:
virtual void change_adaptor();
virtual void loadClicked();

View File

@ -43,6 +43,13 @@ QIndexDialog::QIndexDialog(QIndex * form)
}
void QIndexDialog::show()
{
QIndexDialogBase::show();
keywordED->setFocus();
}
void QIndexDialog::change_adaptor()
{
form_->changed();

View File

@ -21,6 +21,8 @@ class QIndexDialog : public QIndexDialogBase
public:
QIndexDialog(QIndex * form);
virtual void show();
protected slots:
virtual void change_adaptor();

View File

@ -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();

View File

@ -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

View File

@ -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();

View File

@ -20,6 +20,8 @@ public:
QURLDialog(QURL * form);
~QURLDialog();
virtual void show();
public slots:
void changed_adaptor();

View File

@ -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 &amp;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>&amp;Replace</string>
</property>
<property stdset="1">
<name>enabled</name>
<bool>false</bool>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;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 &amp;All </string>
</property>
<property stdset="1">
<name>enabled</name>
<bool>false</bool>
</property>
<property stdset="1">
<name>text</name>
<string>Replace &amp;All </string>
</property>
</widget>
<widget row="5" column="0" rowspan="1" colspan="2" >
<class>QCheckBox</class>