+2004-06-21 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
+
+ * QCitation.[Ch]: add validation (fix bug 1617).
+
2004-06-18 Lars Gullik Bjonnes <larsbj@gullik.net>
* lyx_gui.C (roman_font_name): go through QString when converting
#include "bufferparams.h"
+#include "controllers/ButtonController.h"
#include "controllers/ControlCitation.h"
#include "support/lstrings.h"
// the bool prevents that this is also done after "apply"
if (open_find_)
dialog_->openFind();
+
+ bc().valid(isValid());
}
}
}
+
+bool QCitation::isValid()
+{
+ return dialog_->selectedLB->count() > 0;
+}
+
+
} // namespace frontend
} // namespace lyx
friend class QCitationDialog;
///
QCitation(Dialog &);
+protected:
+ virtual bool isValid();
private:
/// Set the Params variable for the Controller.
+2004-06-21 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
+
+ * FormCitation.C: Don't allow incomplete input (fix bug 1617).
+
2004-06-04 Angus Leeming <leeming@lyx.org>
* combox.c (combox_handle): prevent crash when trying to draw
controller().getCiteStrings(currentCitekey));
fl_set_choice(dialog_->choice_style, choice);
}
+
+ // Invalid if no citation has been chosen
+ if (fl_get_browser_maxline(dialog_->browser_cite) < 1)
+ activate = ButtonPolicy::SMI_INVALID;
return activate;
}