// 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();
+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
}
+void QExternalDialog::show()
+{
+ QExternalDialogBase::show();
+ fileED->setFocus();
+}
+
+
void QExternalDialog::change_adaptor()
{
form_->changed();
public:
QExternalDialog(QExternal * form);
+ virtual void show();
+
protected slots:
virtual void change_adaptor();
virtual void editClicked();
#include <qwidget.h>
#include <qpushbutton.h>
+#include <qlineedit.h>
#include <qcheckbox.h>
#include "QGraphicsDialog.h"
}
+void QGraphicsDialog::show()
+{
+ QGraphicsDialogBase::show();
+ filename->setFocus();
+}
+
+
void QGraphicsDialog::change_adaptor()
{
form_->changed();
public:
QGraphicsDialog(QGraphics * form);
+ virtual void show();
+
protected slots:
virtual void change_adaptor();
virtual void browse_clicked();
#include <qwidget.h>
#include <qpushbutton.h>
#include <qcheckbox.h>
+#include <qlineedit.h>
#include "QIncludeDialog.h"
#include "QInclude.h"
}
+void QIncludeDialog::show()
+{
+ QIncludeDialogBase::show();
+ filenameED->setFocus();
+}
+
+
void QIncludeDialog::change_adaptor()
{
form_->changed();
void updateLists();
+ virtual void show();
+
protected slots:
virtual void change_adaptor();
virtual void loadClicked();
}
+void QIndexDialog::show()
+{
+ QIndexDialogBase::show();
+ keywordED->setFocus();
+}
+
+
void QIndexDialog::change_adaptor()
{
form_->changed();
public:
QIndexDialog(QIndex * form);
+ virtual void show();
+
protected slots:
virtual void change_adaptor();
#include <qpushbutton.h>
#include <qcombobox.h>
#include <qcheckbox.h>
+#include <qlineedit.h>
#include <qlabel.h>
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();
public:
QSearchDialog(QSearch * form);
+ virtual void show();
+
protected slots:
void findChanged();
void findClicked();
void replaceallClicked();
protected:
- void closeEvent(QCloseEvent * e);
+ virtual void closeEvent(QCloseEvent * e);
private:
// add a string to the combo if needed
#include "QURLDialog.h"
#include <qpushbutton.h>
+#include <qlineedit.h>
QURLDialog::QURLDialog(QURL * form)
: QURLDialogBase(0, 0, false, 0),
}
+void QURLDialog::show()
+{
+ QURLDialogBase::show();
+ urlED->setFocus();
+}
+
+
void QURLDialog::changed_adaptor()
{
form_->changed();
QURLDialog(QURL * form);
~QURLDialog();
+ virtual void show();
+
public slots:
void changed_adaptor();
<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>
<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" >
<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" >
<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>
<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>
<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>
<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>