#include "FormCopyrightDialogImpl.h"
#undef emit
+#include "../xforms/FormCredits.h"
+#include "../xforms/FormError.h"
+#include "../xforms/FormGraphics.h"
+#include "../xforms/FormPreferences.h"
+#include "../xforms/FormTabular.h"
+
#include "FormCharacter.h"
#include "FormCitation.h"
-#include "FormCredits.h"
#include "FormCopyright.h"
//#include "FormDocument.h"
-#include "FormError.h"
-#include "FormGraphics.h"
//#include "FormIndex.h"
#include "FormParagraph.h"
-#include "FormPreferences.h"
#include "FormPrint.h"
//#include "FormRef.h"
#include "FormSearch.h"
#include "FormSplash.h"
-#include "FormTabular.h"
#include "FormTabularCreate.h"
//#include "FormToc.h"
//#include "FormUrl.h"
#include <config.h>
#include "LString.h"
-
-#include <qapplication.h>
+
+#include <qapplication.h>
#include <qfiledialog.h>
-
+
#include "QtLyXView.h"
#include "debug.h"
-
+
#include "FileDialog_private.h"
LyXFileDialog::LyXFileDialog(LyXView * lv, kb_action a, string const & p, string const & m, string const & t)
void LyXFileDialog::done(int what)
{
- lyxerr[Debug::GUI] << "Done FileDialog, value " << what << endl;
-
+ lyxerr[Debug::GUI] << "Done FileDialog, value " << what << std::endl;
+
if (action_ == LFUN_SELECT_FILE_SYNC) {
QDialog::done(what);
return;
+++ /dev/null
-// -*- C++ -*-
-/* This file is part of
- * ======================================================
- *
- * LyX, The Document Processor
- *
- * Copyright 2000 The LyX Team.
- *
- * ======================================================
- *
- * \author Angus Leeming <a.leeming@ic.ac.uk>
- */
-
-#include <config.h>
-
-#ifdef __GNUG__
-#pragma implementation
-#endif
-
-#include <qdialog.h>
-#undef emit
-
-#include "Dialogs.h"
-#include "FormBase.h"
-#include "qt2BC.h"
-#include "support/LAssert.h"
-
-#include <stdio.h>
-
-
-FormBase::FormBase(ControlBase & c, string const & t)
- : ViewBC<qt2BC>(c), title_(t)
-{}
-
-
-
-void FormBase::show()
-{
- fprintf( stderr, "FormBase::show() 1\n" );
- if (!form()) {
- fprintf( stderr, "FormBase::show() 2\n" );
- build();
- fprintf( stderr, "FormBase::show() 3\n" );
- }
- fprintf( stderr, "FormBase::show() 4\n" );
-
- update(); // make sure its up-to-date
- fprintf( stderr, "FormBase::show() 5\n" );
-
- if (form()->isVisible()) {
- fprintf( stderr, "FormBase::show() 6\n" );
- form()->raise();
- fprintf( stderr, "FormBase::show() 7\n" );
- } else {
- fprintf( stderr, "FormBase::show() 8\n" );
- form()->setCaption( title_.c_str() );
- fprintf( stderr, "FormBase::show() 9\n" );
- form()->show();
- fprintf( stderr, "FormBase::show() 10\n" );
- }
-}
-
-
-void FormBase::hide()
-{
- if (form() && form()->isVisible() )
- form()->hide();
-}
-
-
-// PENDING(kalle) Handle this with QValidator?
-// void FormBase::InputCB(FL_OBJECT * ob, long data)
-// {
-// bc().input(input(ob, data));
-// }
-
-
-ButtonPolicy::SMInput FormBase::input(QWidget*, long)
-{
- return ButtonPolicy::SMI_VALID;
-}
-
-
-
-void FormBase::slotWMHide()
-{
- CancelButton();
-}
-
-
-
-void FormBase::slotApply()
-{
- ApplyButton();
-}
-
-
-void FormBase::slotOK()
-{
- OKButton();
-}
-
-
-void FormBase::slotCancel()
-{
- CancelButton();
-}
-
-
-void FormBase::slotRestore()
-{
- RestoreButton();
-}
-
-
-// PENDING(kalle) How to handle this?
-// extern "C" void C_FormBaseInputCB(FL_OBJECT * ob, long d)
-// {
-// GetForm(ob)->InputCB(ob, d);
-// }
+++ /dev/null
-// -*- C++ -*-
-/* This file is part of
- * ======================================================
- *
- * LyX, The Document Processor
- *
- * Copyright 2000 The LyX Team.
- *
- * ======================================================
- *
- * \author Angus Leeming <a.leeming@ic.ac.uk>
- */
-
-#ifndef FORMBASE_H
-#define FORMBASE_H
-
-#include <boost/smart_ptr.hpp>
-
-class QDialog;
-
-#include <qfont.h>
-#include <qobject.h>
-
-#ifdef __GNUG__
-#pragma interface
-#endif
-
-#include "ViewBase.h"
-#include "LString.h"
-#include "ButtonPolicies.h"
-
-class qt2BC;
-
-/** This class is an Qt2 GUI base class.
- */
-class FormBase : public QObject, public ViewBC<qt2BC>
-{
- Q_OBJECT
-public:
- ///
- FormBase(ControlBase &, string const &);
- ///
- virtual ~FormBase() {}
-
-protected:
- /// Build the dialog
- virtual void build() = 0;
- /// Hide the dialog.
- void hide();
- /// Create the dialog if necessary, update it and display it.
- void show();
-
-protected slots:
- // dialog closed from WM
- void slotWMHide();
-
- // Apply button clicked
- void slotApply();
-
- // OK button clicked
- void slotOK();
-
- // Cancel button clicked
- void slotCancel();
-
- // Restore button clicked
- void slotRestore();
-
-private:
- /// Pointer to the actual instantiation of xform's form
- virtual QDialog* form() const = 0;
- /** Filter the inputs on callback from xforms
- Return true if inputs are valid. */
- virtual ButtonPolicy::SMInput input(QWidget*, long);
-
-private:
- /// dialog title, displayed by WM.
- string title_;
-};
-
-
-template <class Dialog>
-class FormDB: public FormBase
-{
-protected:
- ///
- FormDB(ControlBase &, string const &);
- /// Pointer to the actual instantiation of the Qt dialog
- virtual QDialog* form() const;
- /// Real GUI implementation.
- boost::scoped_ptr<Dialog> dialog_;
-};
-
-
-template <class Dialog>
-FormDB<Dialog>::FormDB(ControlBase & c, string const & t)
- : FormBase(c, t)
-{}
-
-
-template <class Dialog>
-QDialog* FormDB<Dialog>::form() const
-{
- return dialog_.get();
-}
-
-
-template <class Controller, class Base>
-class FormCB: public Base
-{
-protected:
- ///
- FormCB(ControlBase &, string const &);
- /// The parent controller
- Controller & controller() const;
-};
-
-
-template <class Controller, class Base>
-FormCB<Controller, Base>::FormCB(ControlBase & c, string const & t)
- : Base(c, t)
-{}
-
-
-template <class Controller, class Base>
-Controller & FormCB<Controller, Base>::controller() const
-{
- return static_cast<Controller &>(controller_);
- //return dynamic_cast<Controller &>(controller_);
-}
-
-
-#endif // FORMBASE_H
#include "language.h"
#include "support/lstrings.h"
+using SigC::slot;
using Liason::setMinibuffer;
FormCharacter::FormCharacter(LyXView *v, Dialogs *d)
{
if (!lv_->view()->available() || !dialog_)
return;
-
+
LyXFont font = dialog_->getChar();
-
+
if (dialog_->langItem()==1)
font.setLanguage(lv_->buffer()->params.language);
h_ = d_->hideBufferDependent.connect(slot(this, &FormCharacter::hide));
u_ = d_->updateBufferDependent.connect(slot(this, &FormCharacter::update));
}
-
+
dialog_->raise();
dialog_->setActiveWindow();
update();
void FormCharacter::update(bool)
{
-
+
if (!lv_->view()->available())
return;
-
+
dialog_->setReadOnly(lv_->buffer()->isReadonly());
}
#include <qmultilineedit.h>
#include <qpushbutton.h>
+using SigC::slot;
using std::vector;
using std::pair;
using std::find;
+using std::sort;
FormCitation::FormCitation(LyXView *v, Dialogs *d)
: dialog_(0), lv_(v), d_(d), inset_(0), ih_(0)
void FormCitation::showCitation(InsetCommand * inset)
{
if (inset == 0) return; // maybe we should Assert this?
-
+
// If connected to another inset, disconnect from it.
if (inset_)
ih_.disconnect();
-
+
inset_ = inset;
params = inset->params();
ih_ = inset->hideDialog.connect(slot(this, &FormCitation::hide));
void FormCitation::createCitation(string const & arg)
{
- if (inset_) {
+ if (inset_) {
ih_.disconnect();
inset_ = 0;
}
-
+
params.setFromString(arg);
show();
}
dialog_ = new FormCitationDialogImpl(this, 0, _("LyX: Citation Reference"), false);
dialog_->show();
-
+
update();
}
blist.clear();
updateBrowser(dialog_->bibliographyKeysLB, bibkeys);
-
+
// Ditto for the keys cited in this inset
citekeys.clear();
string tmp, keys(params.getContents());
bool const activate = (status == ON);
bool const activate_up = (activate && sel != 1);
bool const activate_down = (activate && sel != maxline);
-
+
dialog_->stopPB->setEnabled(activate);
dialog_->upPB->setEnabled(activate_up);
dialog_->downPB->setEnabled(activate_down);
params.setContents(contents);
params.setOptions( dialog_->textAfterED->text().latin1() );
-
+
if (inset_ != 0) {
// Only update if contents have changed
if (params != inset_->params()) {
} else {
lv_->getLyXFunc()->Dispatch(LFUN_CITATION_INSERT,
params.getAsString());
- }
+ }
}
/// create a Citation inset
void createCitation(string const &);
/// edit a Citation inset
- void showCitation(InsetCommand * const);
+ void showCitation(InsetCommand* );
/// update a listbox
void updateBrowser( QListBox* listbox,
- vector<string> const & keys) const;
+ std::vector<string> const & keys) const;
/// Real GUI implementation.
FormCitationDialog * dialog_;
/**
- * $Id: FormCitationDialogImpl.C,v 1.1 2001/03/16 17:20:06 kalle Exp $
+ * $Id: FormCitationDialogImpl.C,v 1.2 2001/03/26 19:34:45 kalle Exp $
*/
#include "FormCitationDialogImpl.h"
#include "LyXView.h"
#include "buffer.h"
-// PENDING(kalle) Wire text before and citaiton style
+using std::vector;
+using std::find;
+
+// PENDING(kalle) Wire text before and citation style
/*
* Constructs a FormCitationDialogImpl which is a child of 'parent', with the
void FormCitationDialogImpl::slotBibSelected( int sel )
{
insetKeysLB->clearSelection();
-
- if( sel < 0 || sel > form_->bibkeys.size()-1)
+
+ if( sel < 0 || sel > form_->bibkeys.size()-1)
return;
// Put into browser_info the additional info associated with
form_->setCiteButtons(FormCitation::OFF);
}
}
-
+
}
void FormCitationDialogImpl::slotInsetSelected( int sel )
{
- if (sel < 0 || sel > form_->citekeys.size() -1 )
+ if (sel < 0 || sel > form_->citekeys.size() -1 )
return;
if (!form_->lv_->buffer()->isReadonly()) {
// Highlight the selected browser_cite key in browser_bib
vector<string>::iterator it =
::find(form_->bibkeys.begin(), form_->bibkeys.end(), form_->citekeys[sel]);
-
+
if (it != form_->bibkeys.end()) {
int n = static_cast<int>(it - form_->bibkeys.begin());
bibliographyKeysLB->setSelected( n, true );
-
+
// Put into browser_info the additional info associated with
// the selected browser_cite key
infoML->clear();
{
qDebug( "FormCitationDialogImpl::slotAddClicked()" );
int sel = bibliographyKeysLB->currentItem();
- if (sel < 0 || sel > form_->bibkeys.size() -1 )
+ if (sel < 0 || sel > form_->bibkeys.size() -1 )
return;
qDebug( "sel = %d" );
qDebug( "bibkeys.size() = %d", form_->bibkeys.size() );
-
+
// Add the selected browser_bib key to browser_cite
insetKeysLB->insertItem( form_->bibkeys[sel].c_str());
form_->citekeys.push_back(form_->bibkeys[sel]);
int n = static_cast<int>(form_->citekeys.size());
insetKeysLB->setSelected( n, true );
-
+
form_->setBibButtons(FormCitation::OFF);
form_->setCiteButtons(FormCitation::ON);
}
void FormCitationDialogImpl::slotDelClicked()
{
int sel = insetKeysLB->currentItem();
- if (sel < 0 || sel > form_->citekeys.size()-1)
+ if (sel < 0 || sel > form_->citekeys.size()-1)
return;
-
+
// Remove the selected key from browser_cite
insetKeysLB->removeItem( sel );
form_->citekeys.erase(form_->citekeys.begin() + sel);
-
+
form_->setBibButtons(FormCitation::ON);
form_->setCiteButtons(FormCitation::OFF);
}
void FormCitationDialogImpl::slotUpClicked()
{
int sel = insetKeysLB->currentItem();
- if (sel < 1 || sel > form_->citekeys.size()-1)
+ if (sel < 1 || sel > form_->citekeys.size()-1)
return;
-
+
// Move the selected key up one line
vector<string>::iterator it = form_->citekeys.begin() + sel;
string tmp = *it;
-
+
insetKeysLB->removeItem( sel );
form_->citekeys.erase(it);
-
+
insetKeysLB->insertItem( tmp.c_str(), sel-1 );
insetKeysLB->setSelected( sel-1, true );
form_->citekeys.insert(it-1, tmp);
void FormCitationDialogImpl::slotDownClicked()
{
int sel = insetKeysLB->currentItem();
- if (sel < 0 || sel > form_->citekeys.size()-2)
+ if (sel < 0 || sel > form_->citekeys.size()-2)
return;
-
+
// Move the selected key down one line
vector<string>::iterator it = form_->citekeys.begin() + sel;
string tmp = *it;
-
+
insetKeysLB->removeItem( sel );
form_->citekeys.erase(it);
}
-void FormCitationDialogImpl::apply_adaptor()
+void FormCitationDialogImpl::apply_adaptor()
{
form_->apply();
-}
-
+}
+
-void FormCitationDialogImpl::close_adaptor()
+void FormCitationDialogImpl::close_adaptor()
{
form_->close();
hide();
#include "ControlCopyright.h"
#include "FormCopyright.h"
-typedef FormCB<ControlCopyright, FormDB<FormCopyrightDialogImpl> > base_class;
+typedef Qt2CB<ControlCopyright, Qt2DB<FormCopyrightDialogImpl> > base_class;
FormCopyright::FormCopyright( ControlCopyright& c ) :
base_class( c, _( "Copyright and Warranty" ) )
#ifndef FORMCOPYRIGHT_H
#define FORMCOPYRIGHT_H
-#include "FormBase.h"
+#include "Qt2Base.h"
#include "boost/utility.hpp"
class Dialogs;
@author Kalle Dalheimer
*/
class FormCopyright
- : public FormCB<ControlCopyright, FormDB<FormCopyrightDialogImpl> >
+ : public Qt2CB<ControlCopyright, Qt2DB<FormCopyrightDialogImpl> >
{
public:
FormCopyright( ControlCopyright& );
#include "lyxtext.h"
#include "debug.h"
+using SigC::slot;
using Liason::setMinibuffer;
using std::endl;
FormSplash::FormSplash(LyXView *, Dialogs * d)
: dialog_(0), d_(d)
{
- c_ = d->showSplash.connect(slot(this, &FormSplash::show));
+ c_ = d->showSplash.connect(SigC::slot(this, &FormSplash::show));
}
{
if (!lyxrc.show_banner)
return;
-
+
if (!dialog_)
dialog_ = new FormSplashBase( 0, "LyX");
-
+
// show banner
dialog_->show();
}
* \file FormTabularCreate.C
* Copyright 2001 LyX Team
* see the file COPYING
- *
+ *
* \author John Levon, moz@compsoc.man.ac.uk
*/
#include "gettext.h"
#include "QtLyXView.h"
#include "BufferView.h"
-#include "insets/insettabular.h"
+#include "insets/insettabular.h"
#include "support/lstrings.h"
+using SigC::slot;
+
FormTabularCreate::FormTabularCreate(LyXView *v, Dialogs *d)
: dialog_(0), lv_(v), d_(d), h_(0)
{
{
if (!lv_->view()->available())
return;
-
+
string tmp = tostr(rows) + " " + tostr(cols);
lv_->getLyXFunc()->Dispatch(LFUN_INSET_TABULAR, tmp);
}
{
if (!dialog_)
dialog_ = new TabularCreateDlgImpl(this, 0, _("LyX: Insert Table"));
-
+
if (!dialog_->isVisible()) {
h_ = d_->hideBufferDependent.connect(slot(this, &FormTabularCreate::hide));
}
-
+
dialog_->raise();
dialog_->setActiveWindow();
-
+
update();
dialog_->show();
}
BOOST_INCLUDES = -I$(top_srcdir)/boost
INCLUDES = -I${top_srcdir}/src/ -I${top_srcdir}/src/frontends/ \
${SIGC_CFLAGS} ${FRONTEND_INCLUDES} $(BOOST_INCLUDES) \
- -I${top_srcdir}/src/frontends/xforms \
-I$(top_srcdir)/src/frontends/controllers
-CXXFLAGS += -DQT_CLEAN_NAMESPACE -fno-rtti -fno-exceptions
+DEFINES += -DQT_CLEAN_NAMESPACE
# moc generated files
BUILTSOURCES = \
moc_FileDialog_private.C \
- moc_FormBase.C \
+ moc_Qt2Base.C \
moc_FormCitationDialog.C \
moc_FormCitationDialogImpl.C \
moc_FormCopyrightDialog.C \
chardlgimpl.h \
FileDialog.C \
FileDialog_private.C \
- FormBase.C \
- FormBase.h \
+ Qt2Base.C \
+ Qt2Base.h \
FormCitation.C \
FormCitation.h \
FormCitationDialog.C \
done ; \
done
-moc_FormBase.C: FormBase.h
+moc_Qt2Base.C: Qt2Base.h
$(MOC) -o $@ $<
FormCitation.C: FormCitationDialog.h
--- /dev/null
+// -*- C++ -*-
+/* This file is part of
+ * ======================================================
+ *
+ * LyX, The Document Processor
+ *
+ * Copyright 2000 The LyX Team.
+ *
+ * ======================================================
+ *
+ * \author Angus Leeming <a.leeming@ic.ac.uk>
+ */
+
+#include <config.h>
+
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
+#include <qdialog.h>
+#undef emit
+
+#include "Dialogs.h"
+#include "Qt2Base.h"
+#include "qt2BC.h"
+#include "support/LAssert.h"
+
+#include <stdio.h>
+
+
+Qt2Base::Qt2Base(ControlBase & c, string const & t)
+ : ViewBC<qt2BC>(c), title_(t)
+{}
+
+
+
+void Qt2Base::show()
+{
+ if (!form()) {
+ build();
+ }
+
+ update(); // make sure its up-to-date
+
+ if (form()->isVisible()) {
+ form()->raise();
+ } else {
+ form()->setCaption( title_.c_str() );
+ form()->show();
+ }
+}
+
+
+void Qt2Base::hide()
+{
+ if (form() && form()->isVisible() )
+ form()->hide();
+}
+
+
+// PENDING(kalle) Handle this with QValidator?
+// void Qt2Base::InputCB(FL_OBJECT * ob, long data)
+// {
+// bc().input(input(ob, data));
+// }
+
+
+ButtonPolicy::SMInput Qt2Base::input(QWidget*, long)
+{
+ return ButtonPolicy::SMI_VALID;
+}
+
+
+
+void Qt2Base::slotWMHide()
+{
+ CancelButton();
+}
+
+
+
+void Qt2Base::slotApply()
+{
+ ApplyButton();
+}
+
+
+void Qt2Base::slotOK()
+{
+ OKButton();
+}
+
+
+void Qt2Base::slotCancel()
+{
+ CancelButton();
+}
+
+
+void Qt2Base::slotRestore()
+{
+ RestoreButton();
+}
+
+
+// PENDING(kalle) How to handle this?
+// extern "C" void C_Qt2BaseInputCB(FL_OBJECT * ob, long d)
+// {
+// GetForm(ob)->InputCB(ob, d);
+// }
--- /dev/null
+// -*- C++ -*-
+/* This file is part of
+ * ======================================================
+ *
+ * LyX, The Document Processor
+ *
+ * Copyright 2000 The LyX Team.
+ *
+ * ======================================================
+ *
+ * \author Angus Leeming <a.leeming@ic.ac.uk>
+ */
+
+#ifndef QT2BASE_H
+#define QT2BASE_H
+
+#include <boost/smart_ptr.hpp>
+
+class QDialog;
+
+#include <qfont.h>
+#include <qobject.h>
+
+#ifdef __GNUG__
+#pragma interface
+#endif
+
+#include "ViewBase.h"
+#include "LString.h"
+#include "ButtonPolicies.h"
+
+class qt2BC;
+
+/** This class is an Qt2 GUI base class.
+ */
+class Qt2Base : public QObject, public ViewBC<qt2BC>
+{
+ Q_OBJECT
+public:
+ ///
+ Qt2Base(ControlBase &, string const &);
+ ///
+ virtual ~Qt2Base() {}
+
+protected:
+ /// Build the dialog
+ virtual void build() = 0;
+ /// Hide the dialog.
+ void hide();
+ /// Create the dialog if necessary, update it and display it.
+ void show();
+
+protected slots:
+ // dialog closed from WM
+ void slotWMHide();
+
+ // Apply button clicked
+ void slotApply();
+
+ // OK button clicked
+ void slotOK();
+
+ // Cancel button clicked
+ void slotCancel();
+
+ // Restore button clicked
+ void slotRestore();
+
+private:
+ /// Pointer to the actual instantiation of xform's form
+ virtual QDialog* form() const = 0;
+ /** Filter the inputs on callback from xforms
+ Return true if inputs are valid. */
+ virtual ButtonPolicy::SMInput input(QWidget*, long);
+
+private:
+ /// dialog title, displayed by WM.
+ string title_;
+};
+
+
+template <class Dialog>
+class Qt2DB: public Qt2Base
+{
+protected:
+ ///
+ Qt2DB(ControlBase &, string const &);
+ /// Pointer to the actual instantiation of the Qt dialog
+ virtual QDialog* form() const;
+ /// Real GUI implementation.
+ boost::scoped_ptr<Dialog> dialog_;
+};
+
+
+template <class Dialog>
+Qt2DB<Dialog>::Qt2DB(ControlBase & c, string const & t)
+ : Qt2Base(c, t)
+{}
+
+
+template <class Dialog>
+QDialog* Qt2DB<Dialog>::form() const
+{
+ return dialog_.get();
+}
+
+
+template <class Controller, class Base>
+class Qt2CB: public Base
+{
+protected:
+ ///
+ Qt2CB(ControlBase &, string const &);
+ /// The parent controller
+ Controller & controller() const;
+};
+
+
+template <class Controller, class Base>
+Qt2CB<Controller, Base>::Qt2CB(ControlBase & c, string const & t)
+ : Base(c, t)
+{}
+
+
+template <class Controller, class Base>
+Controller & Qt2CB<Controller, Base>::controller() const
+{
+ return static_cast<Controller &>(controller_);
+ //return dynamic_cast<Controller &>(controller_);
+}
+
+
+#endif // FORMBASE_H
LyXFont getChar();
int langItem() {
- lang->currentItem();
+ return lang->currentItem();
};
bool toggleAll() {
- toggleall->isChecked();
+ return toggleall->isChecked();
};
void setReadOnly(bool);
/****************************************************************************
** Form implementation generated from reading ui file 'searchdlg.ui'
**
-** Created: Sun Mar 4 21:52:22 2001
+** Created: Mon Mar 26 21:50:02 2001
** by: The User Interface Compiler (uic)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "searchdlg.h"
+#include <config.h>
#include <qcheckbox.h>
#include <qcombobox.h>
#include <qlabel.h>
{
if ( !name )
setName( "SearchDlg" );
- resize( 379, 168 );
+ resize( 388, 168 );
setCaption( tr( "Form1" ) );
setSizeGripEnabled( TRUE );
SearchDlgLayout = new QGridLayout( this );
find = new QComboBox( FALSE, this, "find" );
find->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)0, find->sizePolicy().hasHeightForWidth() ) );
+ find->setFocusPolicy( QComboBox::StrongFocus );
find->setEditable( TRUE );
find->setDuplicatesEnabled( TRUE );
- find->setFocusPolicy( QComboBox::StrongFocus );
SearchDlgLayout->addMultiCellWidget( find, 0, 0, 1, 2 );
/****************************************************************************
** Form interface generated from reading ui file 'searchdlg.ui'
**
-** Created: Sun Mar 4 21:52:20 2001
+** Created: Mon Mar 26 21:48:19 2001
** by: The User Interface Compiler (uic)
**
** WARNING! All changes made in this file will be lost!
<!DOCTYPE UI><UI>
<class>SearchDlg</class>
+<include location="global">config.h</include>
<widget>
<class>QDialog</class>
<property stdset="1">
<rect>
<x>0</x>
<y>0</y>
- <width>379</width>
+ <width>388</width>
<height>168</height>
</rect>
</property>
<vsizetype>0</vsizetype>
</sizepolicy>
</property>
+ <property stdset="1">
+ <name>focusPolicy</name>
+ <enum>StrongFocus</enum>
+ </property>
<property stdset="1">
<name>editable</name>
<bool>true</bool>
<name>duplicatesEnabled</name>
<bool>true</bool>
</property>
- <property stdset="1">
- <name>focusPolicy</name>
- <enum>StrongFocus</enum>
- </property>
</widget>
<widget row="1" column="0" >
<class>QLabel</class>
-/**
+/**
* \file searchdlgimpl.h
* Copyright 2001 The LyX Team.
* See the file COPYING.
- *
+ *
* \author Edwin Leuven
*/
+#include <config.h>
+
#include "searchdlgimpl.h"
#include <qpushbutton.h>