John Levon wrote: > > This doesn't seem to do anything either way, so why special case > > readOnly()? > > Oh right. Well it can be removed altogether ...
Yes, it was just silly logic (this signal and slot stuff is not yet very clear to me and I have just copied stuff from citation and ref). Thanks for teaching :-) Is this better? Jürgen.
/** * \file QSendtoDialog.C * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * * \author Juergen Spitzmueller * * Full author contact details are available in file CREDITS */ #include <config.h> #ifdef __GNUG__ #pragma implementation #endif #include <vector> #include "ControlSendto.h" #include "gettext.h" #include "debug.h" #include "converter.h" #include "LString.h" #include <qcombobox.h> #include <qlabel.h> #include <qlistbox.h> #include <qpushbutton.h> #include "QSendtoDialog.h" #include "QSendto.h" QSendtoDialog::QSendtoDialog(QSendto * form) : QSendtoDialogBase(0, 0, false, 0), form_(form) { connect(okPB, SIGNAL(clicked()), form, SLOT(slotOK())); connect(applyPB, SIGNAL(clicked()), form, SLOT(slotApply())); connect(closePB, SIGNAL(clicked()), form, SLOT(slotClose())); } void QSendtoDialog::changed_adaptor() { form_->changed(); } void QSendtoDialog::closeEvent(QCloseEvent * e) { form_->slotWMHide(); e->accept(); }
// -*- C++ -*- /** * \file QSendtoDialog.h * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * * \author Juergen Spitzmueller * * Full author contact details are available in file CREDITS */ #ifndef QSENDTODIALOG_H #define QSENDTODIALOG_H #ifdef __GNUG__ #pragma interface #endif #include "ui/QSendtoDialogBase.h" class QSendto; class QSendtoDialog : public QSendtoDialogBase { Q_OBJECT public: QSendtoDialog(QSendto * form); protected slots: virtual void changed_adaptor(); virtual void slotFormatHighlighted(const QString&) {}; virtual void slotFormatSelected(const QString&) {}; protected: virtual void closeEvent(QCloseEvent * e); private: QSendto * form_; }; #endif // QSENDTODIALOG_H